configure 427 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. # Check that we are running under the correct shell.
  513. SHELL=${CONFIG_SHELL-/bin/sh}
  514. case X$ECHO in
  515. X*--fallback-echo)
  516. # Remove one level of quotation (which was required for Make).
  517. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  518. ;;
  519. esac
  520. echo=${ECHO-echo}
  521. if test "X$1" = X--no-reexec; then
  522. # Discard the --no-reexec flag, and continue.
  523. shift
  524. elif test "X$1" = X--fallback-echo; then
  525. # Avoid inline document here, it may be left over
  526. :
  527. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  528. # Yippee, $echo works!
  529. :
  530. else
  531. # Restart under the correct shell.
  532. exec $SHELL "$0" --no-reexec ${1+"$@"}
  533. fi
  534. if test "X$1" = X--fallback-echo; then
  535. # used as fallback echo
  536. shift
  537. cat <<EOF
  538. $*
  539. EOF
  540. exit 0
  541. fi
  542. # The HP-UX ksh and POSIX shell print the target directory to stdout
  543. # if CDPATH is set.
  544. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  545. if test -z "$ECHO"; then
  546. if test "X${echo_test_string+set}" != Xset; then
  547. # find a string as large as possible, as long as the shell can cope with it
  548. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  549. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  550. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  551. echo_test_string=`eval $cmd` &&
  552. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  553. then
  554. break
  555. fi
  556. done
  557. fi
  558. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  559. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  560. test "X$echo_testing_string" = "X$echo_test_string"; then
  561. :
  562. else
  563. # The Solaris, AIX, and Digital Unix default echo programs unquote
  564. # backslashes. This makes it impossible to quote backslashes using
  565. # echo "$something" | sed 's/\\/\\\\/g'
  566. #
  567. # So, first we look for a working echo in the user's PATH.
  568. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  569. for dir in $PATH /usr/ucb; do
  570. IFS="$lt_save_ifs"
  571. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  572. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  573. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  574. test "X$echo_testing_string" = "X$echo_test_string"; then
  575. echo="$dir/echo"
  576. break
  577. fi
  578. done
  579. IFS="$lt_save_ifs"
  580. if test "X$echo" = Xecho; then
  581. # We didn't find a better echo, so look for alternatives.
  582. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  583. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  584. test "X$echo_testing_string" = "X$echo_test_string"; then
  585. # This shell has a builtin print -r that does the trick.
  586. echo='print -r'
  587. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  588. test "X$CONFIG_SHELL" != X/bin/ksh; then
  589. # If we have ksh, try running configure again with it.
  590. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  591. export ORIGINAL_CONFIG_SHELL
  592. CONFIG_SHELL=/bin/ksh
  593. export CONFIG_SHELL
  594. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  595. else
  596. # Try using printf.
  597. echo='printf %s\n'
  598. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  599. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  600. test "X$echo_testing_string" = "X$echo_test_string"; then
  601. # Cool, printf works
  602. :
  603. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  604. test "X$echo_testing_string" = 'X\t' &&
  605. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  606. test "X$echo_testing_string" = "X$echo_test_string"; then
  607. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  608. export CONFIG_SHELL
  609. SHELL="$CONFIG_SHELL"
  610. export SHELL
  611. echo="$CONFIG_SHELL $0 --fallback-echo"
  612. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  613. test "X$echo_testing_string" = 'X\t' &&
  614. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  615. test "X$echo_testing_string" = "X$echo_test_string"; then
  616. echo="$CONFIG_SHELL $0 --fallback-echo"
  617. else
  618. # maybe with a smaller string...
  619. prev=:
  620. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  621. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  622. then
  623. break
  624. fi
  625. prev="$cmd"
  626. done
  627. if test "$prev" != 'sed 50q "$0"'; then
  628. echo_test_string=`eval $prev`
  629. export echo_test_string
  630. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  631. else
  632. # Oops. We lost completely, so just stick with echo.
  633. echo=echo
  634. fi
  635. fi
  636. fi
  637. fi
  638. fi
  639. fi
  640. # Copy echo and quote the copy suitably for passing to libtool from
  641. # the Makefile, instead of quoting the original, which is used later.
  642. ECHO=$echo
  643. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  644. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  645. fi
  646. tagnames=${tagnames+${tagnames},}CXX
  647. test -n "$DJDIR" || exec 7<&0 </dev/null
  648. exec 6>&1
  649. # Name of the host.
  650. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  651. # so uname gets run too.
  652. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  653. #
  654. # Initializations.
  655. #
  656. ac_default_prefix=/usr/local
  657. ac_clean_files=
  658. ac_config_libobj_dir=.
  659. LIBOBJS=
  660. cross_compiling=no
  661. subdirs=
  662. MFLAGS=
  663. MAKEFLAGS=
  664. # Identity of this package.
  665. PACKAGE_NAME=
  666. PACKAGE_TARNAME=
  667. PACKAGE_VERSION=
  668. PACKAGE_STRING=
  669. PACKAGE_BUGREPORT=
  670. PACKAGE_URL=
  671. ac_unique_file="config.m4"
  672. # Factoring default headers for most tests.
  673. ac_includes_default="\
  674. #include <stdio.h>
  675. #ifdef HAVE_SYS_TYPES_H
  676. # include <sys/types.h>
  677. #endif
  678. #ifdef HAVE_SYS_STAT_H
  679. # include <sys/stat.h>
  680. #endif
  681. #ifdef STDC_HEADERS
  682. # include <stdlib.h>
  683. # include <stddef.h>
  684. #else
  685. # ifdef HAVE_STDLIB_H
  686. # include <stdlib.h>
  687. # endif
  688. #endif
  689. #ifdef HAVE_STRING_H
  690. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  691. # include <memory.h>
  692. # endif
  693. # include <string.h>
  694. #endif
  695. #ifdef HAVE_STRINGS_H
  696. # include <strings.h>
  697. #endif
  698. #ifdef HAVE_INTTYPES_H
  699. # include <inttypes.h>
  700. #endif
  701. #ifdef HAVE_STDINT_H
  702. # include <stdint.h>
  703. #endif
  704. #ifdef HAVE_UNISTD_H
  705. # include <unistd.h>
  706. #endif"
  707. ac_subst_vars='LTLIBOBJS
  708. LIBOBJS
  709. LIBTOOL
  710. NMEDIT
  711. DSYMUTIL
  712. STRIP
  713. RANLIB
  714. AR
  715. ECHO
  716. LN_S
  717. AWK
  718. RE2C
  719. SHLIB_DL_SUFFIX_NAME
  720. SHLIB_SUFFIX_NAME
  721. target_os
  722. target_vendor
  723. target_cpu
  724. target
  725. host_os
  726. host_vendor
  727. host_cpu
  728. host
  729. build_os
  730. build_vendor
  731. build_cpu
  732. build
  733. CPP
  734. OBJEXT
  735. EXEEXT
  736. ac_ct_CC
  737. CPPFLAGS
  738. LDFLAGS
  739. CFLAGS
  740. CC
  741. CONFIGURE_OPTIONS
  742. CONFIGURE_COMMAND
  743. SED
  744. EGREP
  745. GREP
  746. target_alias
  747. host_alias
  748. build_alias
  749. LIBS
  750. ECHO_T
  751. ECHO_N
  752. ECHO_C
  753. DEFS
  754. mandir
  755. localedir
  756. libdir
  757. psdir
  758. pdfdir
  759. dvidir
  760. htmldir
  761. infodir
  762. docdir
  763. oldincludedir
  764. includedir
  765. localstatedir
  766. sharedstatedir
  767. sysconfdir
  768. datadir
  769. datarootdir
  770. libexecdir
  771. sbindir
  772. bindir
  773. program_transform_name
  774. prefix
  775. exec_prefix
  776. PACKAGE_URL
  777. PACKAGE_BUGREPORT
  778. PACKAGE_STRING
  779. PACKAGE_VERSION
  780. PACKAGE_TARNAME
  781. PACKAGE_NAME
  782. PATH_SEPARATOR
  783. SHELL'
  784. ac_subst_files=''
  785. ac_user_opts='
  786. enable_option_checking
  787. with_libdir
  788. with_php_config
  789. enable_fcgi
  790. enable_shared
  791. enable_static
  792. enable_fast_install
  793. with_gnu_ld
  794. enable_libtool_lock
  795. with_pic
  796. with_tags
  797. '
  798. ac_precious_vars='build_alias
  799. host_alias
  800. target_alias
  801. CC
  802. CFLAGS
  803. LDFLAGS
  804. LIBS
  805. CPPFLAGS
  806. CPP'
  807. # Initialize some variables set by options.
  808. ac_init_help=
  809. ac_init_version=false
  810. ac_unrecognized_opts=
  811. ac_unrecognized_sep=
  812. # The variables have the same names as the options, with
  813. # dashes changed to underlines.
  814. cache_file=/dev/null
  815. exec_prefix=NONE
  816. no_create=
  817. no_recursion=
  818. prefix=NONE
  819. program_prefix=NONE
  820. program_suffix=NONE
  821. program_transform_name=s,x,x,
  822. silent=
  823. site=
  824. srcdir=
  825. verbose=
  826. x_includes=NONE
  827. x_libraries=NONE
  828. # Installation directory options.
  829. # These are left unexpanded so users can "make install exec_prefix=/foo"
  830. # and all the variables that are supposed to be based on exec_prefix
  831. # by default will actually change.
  832. # Use braces instead of parens because sh, perl, etc. also accept them.
  833. # (The list follows the same order as the GNU Coding Standards.)
  834. bindir='${exec_prefix}/bin'
  835. sbindir='${exec_prefix}/sbin'
  836. libexecdir='${exec_prefix}/libexec'
  837. datarootdir='${prefix}/share'
  838. datadir='${datarootdir}'
  839. sysconfdir='${prefix}/etc'
  840. sharedstatedir='${prefix}/com'
  841. localstatedir='${prefix}/var'
  842. includedir='${prefix}/include'
  843. oldincludedir='/usr/include'
  844. docdir='${datarootdir}/doc/${PACKAGE}'
  845. infodir='${datarootdir}/info'
  846. htmldir='${docdir}'
  847. dvidir='${docdir}'
  848. pdfdir='${docdir}'
  849. psdir='${docdir}'
  850. libdir='${exec_prefix}/lib'
  851. localedir='${datarootdir}/locale'
  852. mandir='${datarootdir}/man'
  853. ac_prev=
  854. ac_dashdash=
  855. for ac_option
  856. do
  857. # If the previous option needs an argument, assign it.
  858. if test -n "$ac_prev"; then
  859. eval $ac_prev=\$ac_option
  860. ac_prev=
  861. continue
  862. fi
  863. case $ac_option in
  864. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  865. *=) ac_optarg= ;;
  866. *) ac_optarg=yes ;;
  867. esac
  868. # Accept the important Cygnus configure options, so we can diagnose typos.
  869. case $ac_dashdash$ac_option in
  870. --)
  871. ac_dashdash=yes ;;
  872. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  873. ac_prev=bindir ;;
  874. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  875. bindir=$ac_optarg ;;
  876. -build | --build | --buil | --bui | --bu)
  877. ac_prev=build_alias ;;
  878. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  879. build_alias=$ac_optarg ;;
  880. -cache-file | --cache-file | --cache-fil | --cache-fi \
  881. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  882. ac_prev=cache_file ;;
  883. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  884. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  885. cache_file=$ac_optarg ;;
  886. --config-cache | -C)
  887. cache_file=config.cache ;;
  888. -datadir | --datadir | --datadi | --datad)
  889. ac_prev=datadir ;;
  890. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  891. datadir=$ac_optarg ;;
  892. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  893. | --dataroo | --dataro | --datar)
  894. ac_prev=datarootdir ;;
  895. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  896. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  897. datarootdir=$ac_optarg ;;
  898. -disable-* | --disable-*)
  899. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  900. # Reject names that are not valid shell variable names.
  901. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  902. as_fn_error $? "invalid feature name: $ac_useropt"
  903. ac_useropt_orig=$ac_useropt
  904. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  905. case $ac_user_opts in
  906. *"
  907. "enable_$ac_useropt"
  908. "*) ;;
  909. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  910. ac_unrecognized_sep=', ';;
  911. esac
  912. eval enable_$ac_useropt=no ;;
  913. -docdir | --docdir | --docdi | --doc | --do)
  914. ac_prev=docdir ;;
  915. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  916. docdir=$ac_optarg ;;
  917. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  918. ac_prev=dvidir ;;
  919. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  920. dvidir=$ac_optarg ;;
  921. -enable-* | --enable-*)
  922. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  923. # Reject names that are not valid shell variable names.
  924. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  925. as_fn_error $? "invalid feature name: $ac_useropt"
  926. ac_useropt_orig=$ac_useropt
  927. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  928. case $ac_user_opts in
  929. *"
  930. "enable_$ac_useropt"
  931. "*) ;;
  932. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  933. ac_unrecognized_sep=', ';;
  934. esac
  935. eval enable_$ac_useropt=\$ac_optarg ;;
  936. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  937. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  938. | --exec | --exe | --ex)
  939. ac_prev=exec_prefix ;;
  940. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  941. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  942. | --exec=* | --exe=* | --ex=*)
  943. exec_prefix=$ac_optarg ;;
  944. -gas | --gas | --ga | --g)
  945. # Obsolete; use --with-gas.
  946. with_gas=yes ;;
  947. -help | --help | --hel | --he | -h)
  948. ac_init_help=long ;;
  949. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  950. ac_init_help=recursive ;;
  951. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  952. ac_init_help=short ;;
  953. -host | --host | --hos | --ho)
  954. ac_prev=host_alias ;;
  955. -host=* | --host=* | --hos=* | --ho=*)
  956. host_alias=$ac_optarg ;;
  957. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  958. ac_prev=htmldir ;;
  959. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  960. | --ht=*)
  961. htmldir=$ac_optarg ;;
  962. -includedir | --includedir | --includedi | --included | --include \
  963. | --includ | --inclu | --incl | --inc)
  964. ac_prev=includedir ;;
  965. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  966. | --includ=* | --inclu=* | --incl=* | --inc=*)
  967. includedir=$ac_optarg ;;
  968. -infodir | --infodir | --infodi | --infod | --info | --inf)
  969. ac_prev=infodir ;;
  970. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  971. infodir=$ac_optarg ;;
  972. -libdir | --libdir | --libdi | --libd)
  973. ac_prev=libdir ;;
  974. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  975. libdir=$ac_optarg ;;
  976. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  977. | --libexe | --libex | --libe)
  978. ac_prev=libexecdir ;;
  979. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  980. | --libexe=* | --libex=* | --libe=*)
  981. libexecdir=$ac_optarg ;;
  982. -localedir | --localedir | --localedi | --localed | --locale)
  983. ac_prev=localedir ;;
  984. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  985. localedir=$ac_optarg ;;
  986. -localstatedir | --localstatedir | --localstatedi | --localstated \
  987. | --localstate | --localstat | --localsta | --localst | --locals)
  988. ac_prev=localstatedir ;;
  989. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  990. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  991. localstatedir=$ac_optarg ;;
  992. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  993. ac_prev=mandir ;;
  994. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  995. mandir=$ac_optarg ;;
  996. -nfp | --nfp | --nf)
  997. # Obsolete; use --without-fp.
  998. with_fp=no ;;
  999. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1000. | --no-cr | --no-c | -n)
  1001. no_create=yes ;;
  1002. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1003. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1004. no_recursion=yes ;;
  1005. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1006. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1007. | --oldin | --oldi | --old | --ol | --o)
  1008. ac_prev=oldincludedir ;;
  1009. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1010. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1011. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1012. oldincludedir=$ac_optarg ;;
  1013. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1014. ac_prev=prefix ;;
  1015. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1016. prefix=$ac_optarg ;;
  1017. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1018. | --program-pre | --program-pr | --program-p)
  1019. ac_prev=program_prefix ;;
  1020. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1021. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1022. program_prefix=$ac_optarg ;;
  1023. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1024. | --program-suf | --program-su | --program-s)
  1025. ac_prev=program_suffix ;;
  1026. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1027. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1028. program_suffix=$ac_optarg ;;
  1029. -program-transform-name | --program-transform-name \
  1030. | --program-transform-nam | --program-transform-na \
  1031. | --program-transform-n | --program-transform- \
  1032. | --program-transform | --program-transfor \
  1033. | --program-transfo | --program-transf \
  1034. | --program-trans | --program-tran \
  1035. | --progr-tra | --program-tr | --program-t)
  1036. ac_prev=program_transform_name ;;
  1037. -program-transform-name=* | --program-transform-name=* \
  1038. | --program-transform-nam=* | --program-transform-na=* \
  1039. | --program-transform-n=* | --program-transform-=* \
  1040. | --program-transform=* | --program-transfor=* \
  1041. | --program-transfo=* | --program-transf=* \
  1042. | --program-trans=* | --program-tran=* \
  1043. | --progr-tra=* | --program-tr=* | --program-t=*)
  1044. program_transform_name=$ac_optarg ;;
  1045. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1046. ac_prev=pdfdir ;;
  1047. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1048. pdfdir=$ac_optarg ;;
  1049. -psdir | --psdir | --psdi | --psd | --ps)
  1050. ac_prev=psdir ;;
  1051. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1052. psdir=$ac_optarg ;;
  1053. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1054. | -silent | --silent | --silen | --sile | --sil)
  1055. silent=yes ;;
  1056. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1057. ac_prev=sbindir ;;
  1058. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1059. | --sbi=* | --sb=*)
  1060. sbindir=$ac_optarg ;;
  1061. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1062. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1063. | --sharedst | --shareds | --shared | --share | --shar \
  1064. | --sha | --sh)
  1065. ac_prev=sharedstatedir ;;
  1066. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1067. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1068. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1069. | --sha=* | --sh=*)
  1070. sharedstatedir=$ac_optarg ;;
  1071. -site | --site | --sit)
  1072. ac_prev=site ;;
  1073. -site=* | --site=* | --sit=*)
  1074. site=$ac_optarg ;;
  1075. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1076. ac_prev=srcdir ;;
  1077. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1078. srcdir=$ac_optarg ;;
  1079. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1080. | --syscon | --sysco | --sysc | --sys | --sy)
  1081. ac_prev=sysconfdir ;;
  1082. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1083. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1084. sysconfdir=$ac_optarg ;;
  1085. -target | --target | --targe | --targ | --tar | --ta | --t)
  1086. ac_prev=target_alias ;;
  1087. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1088. target_alias=$ac_optarg ;;
  1089. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1090. verbose=yes ;;
  1091. -version | --version | --versio | --versi | --vers | -V)
  1092. ac_init_version=: ;;
  1093. -with-* | --with-*)
  1094. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1095. # Reject names that are not valid shell variable names.
  1096. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1097. as_fn_error $? "invalid package name: $ac_useropt"
  1098. ac_useropt_orig=$ac_useropt
  1099. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1100. case $ac_user_opts in
  1101. *"
  1102. "with_$ac_useropt"
  1103. "*) ;;
  1104. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1105. ac_unrecognized_sep=', ';;
  1106. esac
  1107. eval with_$ac_useropt=\$ac_optarg ;;
  1108. -without-* | --without-*)
  1109. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1110. # Reject names that are not valid shell variable names.
  1111. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1112. as_fn_error $? "invalid package name: $ac_useropt"
  1113. ac_useropt_orig=$ac_useropt
  1114. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1115. case $ac_user_opts in
  1116. *"
  1117. "with_$ac_useropt"
  1118. "*) ;;
  1119. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1120. ac_unrecognized_sep=', ';;
  1121. esac
  1122. eval with_$ac_useropt=no ;;
  1123. --x)
  1124. # Obsolete; use --with-x.
  1125. with_x=yes ;;
  1126. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1127. | --x-incl | --x-inc | --x-in | --x-i)
  1128. ac_prev=x_includes ;;
  1129. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1130. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1131. x_includes=$ac_optarg ;;
  1132. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1133. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1134. ac_prev=x_libraries ;;
  1135. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1136. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1137. x_libraries=$ac_optarg ;;
  1138. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1139. Try \`$0 --help' for more information"
  1140. ;;
  1141. *=*)
  1142. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1143. # Reject names that are not valid shell variable names.
  1144. case $ac_envvar in #(
  1145. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1146. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1147. esac
  1148. eval $ac_envvar=\$ac_optarg
  1149. export $ac_envvar ;;
  1150. *)
  1151. # FIXME: should be removed in autoconf 3.0.
  1152. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1153. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1154. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1155. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1156. ;;
  1157. esac
  1158. done
  1159. if test -n "$ac_prev"; then
  1160. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1161. as_fn_error $? "missing argument to $ac_option"
  1162. fi
  1163. if test -n "$ac_unrecognized_opts"; then
  1164. case $enable_option_checking in
  1165. no) ;;
  1166. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1167. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1168. esac
  1169. fi
  1170. # Check all directory arguments for consistency.
  1171. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1172. datadir sysconfdir sharedstatedir localstatedir includedir \
  1173. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1174. libdir localedir mandir
  1175. do
  1176. eval ac_val=\$$ac_var
  1177. # Remove trailing slashes.
  1178. case $ac_val in
  1179. */ )
  1180. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1181. eval $ac_var=\$ac_val;;
  1182. esac
  1183. # Be sure to have absolute directory names.
  1184. case $ac_val in
  1185. [\\/$]* | ?:[\\/]* ) continue;;
  1186. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1187. esac
  1188. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1189. done
  1190. # There might be people who depend on the old broken behavior: `$host'
  1191. # used to hold the argument of --host etc.
  1192. # FIXME: To remove some day.
  1193. build=$build_alias
  1194. host=$host_alias
  1195. target=$target_alias
  1196. # FIXME: To remove some day.
  1197. if test "x$host_alias" != x; then
  1198. if test "x$build_alias" = x; then
  1199. cross_compiling=maybe
  1200. elif test "x$build_alias" != "x$host_alias"; then
  1201. cross_compiling=yes
  1202. fi
  1203. fi
  1204. ac_tool_prefix=
  1205. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1206. test "$silent" = yes && exec 6>/dev/null
  1207. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1208. ac_ls_di=`ls -di .` &&
  1209. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1210. as_fn_error $? "working directory cannot be determined"
  1211. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1212. as_fn_error $? "pwd does not report name of working directory"
  1213. # Find the source files, if location was not specified.
  1214. if test -z "$srcdir"; then
  1215. ac_srcdir_defaulted=yes
  1216. # Try the directory containing this script, then the parent directory.
  1217. ac_confdir=`$as_dirname -- "$as_myself" ||
  1218. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1219. X"$as_myself" : 'X\(//\)[^/]' \| \
  1220. X"$as_myself" : 'X\(//\)$' \| \
  1221. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1222. $as_echo X"$as_myself" |
  1223. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1224. s//\1/
  1225. q
  1226. }
  1227. /^X\(\/\/\)[^/].*/{
  1228. s//\1/
  1229. q
  1230. }
  1231. /^X\(\/\/\)$/{
  1232. s//\1/
  1233. q
  1234. }
  1235. /^X\(\/\).*/{
  1236. s//\1/
  1237. q
  1238. }
  1239. s/.*/./; q'`
  1240. srcdir=$ac_confdir
  1241. if test ! -r "$srcdir/$ac_unique_file"; then
  1242. srcdir=..
  1243. fi
  1244. else
  1245. ac_srcdir_defaulted=no
  1246. fi
  1247. if test ! -r "$srcdir/$ac_unique_file"; then
  1248. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1249. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1250. fi
  1251. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1252. ac_abs_confdir=`(
  1253. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1254. pwd)`
  1255. # When building in place, set srcdir=.
  1256. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1257. srcdir=.
  1258. fi
  1259. # Remove unnecessary trailing slashes from srcdir.
  1260. # Double slashes in file names in object file debugging info
  1261. # mess up M-x gdb in Emacs.
  1262. case $srcdir in
  1263. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1264. esac
  1265. for ac_var in $ac_precious_vars; do
  1266. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1267. eval ac_env_${ac_var}_value=\$${ac_var}
  1268. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1269. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1270. done
  1271. #
  1272. # Report the --help message.
  1273. #
  1274. if test "$ac_init_help" = "long"; then
  1275. # Omit some internal or obsolete options to make the list less imposing.
  1276. # This message is too long to be a string in the A/UX 3.1 sh.
  1277. cat <<_ACEOF
  1278. \`configure' configures this package to adapt to many kinds of systems.
  1279. Usage: $0 [OPTION]... [VAR=VALUE]...
  1280. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1281. VAR=VALUE. See below for descriptions of some of the useful variables.
  1282. Defaults for the options are specified in brackets.
  1283. Configuration:
  1284. -h, --help display this help and exit
  1285. --help=short display options specific to this package
  1286. --help=recursive display the short help of all the included packages
  1287. -V, --version display version information and exit
  1288. -q, --quiet, --silent do not print \`checking ...' messages
  1289. --cache-file=FILE cache test results in FILE [disabled]
  1290. -C, --config-cache alias for \`--cache-file=config.cache'
  1291. -n, --no-create do not create output files
  1292. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1293. Installation directories:
  1294. --prefix=PREFIX install architecture-independent files in PREFIX
  1295. [$ac_default_prefix]
  1296. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1297. [PREFIX]
  1298. By default, \`make install' will install all the files in
  1299. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1300. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1301. for instance \`--prefix=\$HOME'.
  1302. For better control, use the options below.
  1303. Fine tuning of the installation directories:
  1304. --bindir=DIR user executables [EPREFIX/bin]
  1305. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1306. --libexecdir=DIR program executables [EPREFIX/libexec]
  1307. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1308. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1309. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1310. --libdir=DIR object code libraries [EPREFIX/lib]
  1311. --includedir=DIR C header files [PREFIX/include]
  1312. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1313. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1314. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1315. --infodir=DIR info documentation [DATAROOTDIR/info]
  1316. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1317. --mandir=DIR man documentation [DATAROOTDIR/man]
  1318. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1319. --htmldir=DIR html documentation [DOCDIR]
  1320. --dvidir=DIR dvi documentation [DOCDIR]
  1321. --pdfdir=DIR pdf documentation [DOCDIR]
  1322. --psdir=DIR ps documentation [DOCDIR]
  1323. _ACEOF
  1324. cat <<\_ACEOF
  1325. System types:
  1326. --build=BUILD configure for building on BUILD [guessed]
  1327. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1328. --target=TARGET configure for building compilers for TARGET [HOST]
  1329. _ACEOF
  1330. fi
  1331. if test -n "$ac_init_help"; then
  1332. cat <<\_ACEOF
  1333. Optional Features and Packages:
  1334. --disable-option-checking ignore unrecognized --enable/--with options
  1335. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1336. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1337. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1338. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1339. --with-libdir=NAME Look for libraries in .../NAME rather than .../lib
  1340. --with-php-config=PATH Path to php-config php-config
  1341. --enable-fcgi Enable fcgi support
  1342. --enable-shared=PKGS Build shared libraries default=yes
  1343. --enable-static=PKGS Build static libraries default=yes
  1344. --enable-fast-install=PKGS
  1345. Optimize for fast installation default=yes
  1346. --with-gnu-ld Assume the C compiler uses GNU ld default=no
  1347. --disable-libtool-lock Avoid locking (might break parallel builds)
  1348. --with-pic Try to use only PIC/non-PIC objects default=use both
  1349. --with-tags=TAGS Include additional configurations automatic
  1350. Some influential environment variables:
  1351. CC C compiler command
  1352. CFLAGS C compiler flags
  1353. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1354. nonstandard directory <lib dir>
  1355. LIBS libraries to pass to the linker, e.g. -l<library>
  1356. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1357. you have headers in a nonstandard directory <include dir>
  1358. CPP C preprocessor
  1359. Use these variables to override the choices made by `configure' or to help
  1360. it to find libraries and programs with nonstandard names/locations.
  1361. Report bugs to the package provider.
  1362. _ACEOF
  1363. ac_status=$?
  1364. fi
  1365. if test "$ac_init_help" = "recursive"; then
  1366. # If there are subdirs, report their specific --help.
  1367. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1368. test -d "$ac_dir" ||
  1369. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1370. continue
  1371. ac_builddir=.
  1372. case "$ac_dir" in
  1373. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1374. *)
  1375. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1376. # A ".." for each directory in $ac_dir_suffix.
  1377. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1378. case $ac_top_builddir_sub in
  1379. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1380. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1381. esac ;;
  1382. esac
  1383. ac_abs_top_builddir=$ac_pwd
  1384. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1385. # for backward compatibility:
  1386. ac_top_builddir=$ac_top_build_prefix
  1387. case $srcdir in
  1388. .) # We are building in place.
  1389. ac_srcdir=.
  1390. ac_top_srcdir=$ac_top_builddir_sub
  1391. ac_abs_top_srcdir=$ac_pwd ;;
  1392. [\\/]* | ?:[\\/]* ) # Absolute name.
  1393. ac_srcdir=$srcdir$ac_dir_suffix;
  1394. ac_top_srcdir=$srcdir
  1395. ac_abs_top_srcdir=$srcdir ;;
  1396. *) # Relative name.
  1397. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1398. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1399. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1400. esac
  1401. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1402. cd "$ac_dir" || { ac_status=$?; continue; }
  1403. # Check for guested configure.
  1404. if test -f "$ac_srcdir/configure.gnu"; then
  1405. echo &&
  1406. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1407. elif test -f "$ac_srcdir/configure"; then
  1408. echo &&
  1409. $SHELL "$ac_srcdir/configure" --help=recursive
  1410. else
  1411. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1412. fi || ac_status=$?
  1413. cd "$ac_pwd" || { ac_status=$?; break; }
  1414. done
  1415. fi
  1416. test -n "$ac_init_help" && exit $ac_status
  1417. if $ac_init_version; then
  1418. cat <<\_ACEOF
  1419. configure
  1420. generated by GNU Autoconf 2.69
  1421. Copyright (C) 2012 Free Software Foundation, Inc.
  1422. This configure script is free software; the Free Software Foundation
  1423. gives unlimited permission to copy, distribute and modify it.
  1424. _ACEOF
  1425. exit
  1426. fi
  1427. ## ------------------------ ##
  1428. ## Autoconf initialization. ##
  1429. ## ------------------------ ##
  1430. # ac_fn_c_try_compile LINENO
  1431. # --------------------------
  1432. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1433. ac_fn_c_try_compile ()
  1434. {
  1435. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1436. rm -f conftest.$ac_objext
  1437. if { { ac_try="$ac_compile"
  1438. case "(($ac_try" in
  1439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1440. *) ac_try_echo=$ac_try;;
  1441. esac
  1442. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1443. $as_echo "$ac_try_echo"; } >&5
  1444. (eval "$ac_compile") 2>conftest.err
  1445. ac_status=$?
  1446. if test -s conftest.err; then
  1447. grep -v '^ *+' conftest.err >conftest.er1
  1448. cat conftest.er1 >&5
  1449. mv -f conftest.er1 conftest.err
  1450. fi
  1451. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1452. test $ac_status = 0; } && {
  1453. test -z "$ac_c_werror_flag" ||
  1454. test ! -s conftest.err
  1455. } && test -s conftest.$ac_objext; then :
  1456. ac_retval=0
  1457. else
  1458. $as_echo "$as_me: failed program was:" >&5
  1459. sed 's/^/| /' conftest.$ac_ext >&5
  1460. ac_retval=1
  1461. fi
  1462. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1463. as_fn_set_status $ac_retval
  1464. } # ac_fn_c_try_compile
  1465. # ac_fn_c_try_cpp LINENO
  1466. # ----------------------
  1467. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1468. ac_fn_c_try_cpp ()
  1469. {
  1470. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1471. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1472. case "(($ac_try" in
  1473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1474. *) ac_try_echo=$ac_try;;
  1475. esac
  1476. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1477. $as_echo "$ac_try_echo"; } >&5
  1478. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1479. ac_status=$?
  1480. if test -s conftest.err; then
  1481. grep -v '^ *+' conftest.err >conftest.er1
  1482. cat conftest.er1 >&5
  1483. mv -f conftest.er1 conftest.err
  1484. fi
  1485. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1486. test $ac_status = 0; } > conftest.i && {
  1487. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1488. test ! -s conftest.err
  1489. }; then :
  1490. ac_retval=0
  1491. else
  1492. $as_echo "$as_me: failed program was:" >&5
  1493. sed 's/^/| /' conftest.$ac_ext >&5
  1494. ac_retval=1
  1495. fi
  1496. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1497. as_fn_set_status $ac_retval
  1498. } # ac_fn_c_try_cpp
  1499. # ac_fn_c_try_link LINENO
  1500. # -----------------------
  1501. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1502. ac_fn_c_try_link ()
  1503. {
  1504. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1505. rm -f conftest.$ac_objext conftest$ac_exeext
  1506. if { { ac_try="$ac_link"
  1507. case "(($ac_try" in
  1508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1509. *) ac_try_echo=$ac_try;;
  1510. esac
  1511. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1512. $as_echo "$ac_try_echo"; } >&5
  1513. (eval "$ac_link") 2>conftest.err
  1514. ac_status=$?
  1515. if test -s conftest.err; then
  1516. grep -v '^ *+' conftest.err >conftest.er1
  1517. cat conftest.er1 >&5
  1518. mv -f conftest.er1 conftest.err
  1519. fi
  1520. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1521. test $ac_status = 0; } && {
  1522. test -z "$ac_c_werror_flag" ||
  1523. test ! -s conftest.err
  1524. } && test -s conftest$ac_exeext && {
  1525. test "$cross_compiling" = yes ||
  1526. test -x conftest$ac_exeext
  1527. }; then :
  1528. ac_retval=0
  1529. else
  1530. $as_echo "$as_me: failed program was:" >&5
  1531. sed 's/^/| /' conftest.$ac_ext >&5
  1532. ac_retval=1
  1533. fi
  1534. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1535. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1536. # interfere with the next link command; also delete a directory that is
  1537. # left behind by Apple's compiler. We do this before executing the actions.
  1538. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1539. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1540. as_fn_set_status $ac_retval
  1541. } # ac_fn_c_try_link
  1542. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1543. # -------------------------------------------------------
  1544. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1545. # the include files in INCLUDES and setting the cache variable VAR
  1546. # accordingly.
  1547. ac_fn_c_check_header_mongrel ()
  1548. {
  1549. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1550. if eval \${$3+:} false; then :
  1551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1552. $as_echo_n "checking for $2... " >&6; }
  1553. if eval \${$3+:} false; then :
  1554. $as_echo_n "(cached) " >&6
  1555. fi
  1556. eval ac_res=\$$3
  1557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1558. $as_echo "$ac_res" >&6; }
  1559. else
  1560. # Is the header compilable?
  1561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1562. $as_echo_n "checking $2 usability... " >&6; }
  1563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1564. /* end confdefs.h. */
  1565. $4
  1566. #include <$2>
  1567. _ACEOF
  1568. if ac_fn_c_try_compile "$LINENO"; then :
  1569. ac_header_compiler=yes
  1570. else
  1571. ac_header_compiler=no
  1572. fi
  1573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1575. $as_echo "$ac_header_compiler" >&6; }
  1576. # Is the header present?
  1577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1578. $as_echo_n "checking $2 presence... " >&6; }
  1579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1580. /* end confdefs.h. */
  1581. #include <$2>
  1582. _ACEOF
  1583. if ac_fn_c_try_cpp "$LINENO"; then :
  1584. ac_header_preproc=yes
  1585. else
  1586. ac_header_preproc=no
  1587. fi
  1588. rm -f conftest.err conftest.i conftest.$ac_ext
  1589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1590. $as_echo "$ac_header_preproc" >&6; }
  1591. # So? What about this header?
  1592. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1593. yes:no: )
  1594. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1595. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1596. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1597. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1598. ;;
  1599. no:yes:* )
  1600. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1601. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1602. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1603. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1604. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1605. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1606. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1607. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1608. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1609. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1610. ;;
  1611. esac
  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. else
  1617. eval "$3=\$ac_header_compiler"
  1618. fi
  1619. eval ac_res=\$$3
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1621. $as_echo "$ac_res" >&6; }
  1622. fi
  1623. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1624. } # ac_fn_c_check_header_mongrel
  1625. # ac_fn_c_try_run LINENO
  1626. # ----------------------
  1627. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1628. # that executables *can* be run.
  1629. ac_fn_c_try_run ()
  1630. {
  1631. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1632. if { { ac_try="$ac_link"
  1633. case "(($ac_try" in
  1634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1635. *) ac_try_echo=$ac_try;;
  1636. esac
  1637. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1638. $as_echo "$ac_try_echo"; } >&5
  1639. (eval "$ac_link") 2>&5
  1640. ac_status=$?
  1641. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1642. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1643. { { case "(($ac_try" in
  1644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1645. *) ac_try_echo=$ac_try;;
  1646. esac
  1647. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1648. $as_echo "$ac_try_echo"; } >&5
  1649. (eval "$ac_try") 2>&5
  1650. ac_status=$?
  1651. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1652. test $ac_status = 0; }; }; then :
  1653. ac_retval=0
  1654. else
  1655. $as_echo "$as_me: program exited with status $ac_status" >&5
  1656. $as_echo "$as_me: failed program was:" >&5
  1657. sed 's/^/| /' conftest.$ac_ext >&5
  1658. ac_retval=$ac_status
  1659. fi
  1660. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1661. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1662. as_fn_set_status $ac_retval
  1663. } # ac_fn_c_try_run
  1664. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1665. # -------------------------------------------------------
  1666. # Tests whether HEADER exists and can be compiled using the include files in
  1667. # INCLUDES, setting the cache variable VAR accordingly.
  1668. ac_fn_c_check_header_compile ()
  1669. {
  1670. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1672. $as_echo_n "checking for $2... " >&6; }
  1673. if eval \${$3+:} false; then :
  1674. $as_echo_n "(cached) " >&6
  1675. else
  1676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1677. /* end confdefs.h. */
  1678. $4
  1679. #include <$2>
  1680. _ACEOF
  1681. if ac_fn_c_try_compile "$LINENO"; then :
  1682. eval "$3=yes"
  1683. else
  1684. eval "$3=no"
  1685. fi
  1686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1687. fi
  1688. eval ac_res=\$$3
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1690. $as_echo "$ac_res" >&6; }
  1691. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1692. } # ac_fn_c_check_header_compile
  1693. # ac_fn_c_check_func LINENO FUNC VAR
  1694. # ----------------------------------
  1695. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1696. ac_fn_c_check_func ()
  1697. {
  1698. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1700. $as_echo_n "checking for $2... " >&6; }
  1701. if eval \${$3+:} false; then :
  1702. $as_echo_n "(cached) " >&6
  1703. else
  1704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1705. /* end confdefs.h. */
  1706. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1707. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1708. #define $2 innocuous_$2
  1709. /* System header to define __stub macros and hopefully few prototypes,
  1710. which can conflict with char $2 (); below.
  1711. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1712. <limits.h> exists even on freestanding compilers. */
  1713. #ifdef __STDC__
  1714. # include <limits.h>
  1715. #else
  1716. # include <assert.h>
  1717. #endif
  1718. #undef $2
  1719. /* Override any GCC internal prototype to avoid an error.
  1720. Use char because int might match the return type of a GCC
  1721. builtin and then its argument prototype would still apply. */
  1722. #ifdef __cplusplus
  1723. extern "C"
  1724. #endif
  1725. char $2 ();
  1726. /* The GNU C library defines this for functions which it implements
  1727. to always fail with ENOSYS. Some functions are actually named
  1728. something starting with __ and the normal name is an alias. */
  1729. #if defined __stub_$2 || defined __stub___$2
  1730. choke me
  1731. #endif
  1732. int
  1733. main ()
  1734. {
  1735. return $2 ();
  1736. ;
  1737. return 0;
  1738. }
  1739. _ACEOF
  1740. if ac_fn_c_try_link "$LINENO"; then :
  1741. eval "$3=yes"
  1742. else
  1743. eval "$3=no"
  1744. fi
  1745. rm -f core conftest.err conftest.$ac_objext \
  1746. conftest$ac_exeext conftest.$ac_ext
  1747. fi
  1748. eval ac_res=\$$3
  1749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1750. $as_echo "$ac_res" >&6; }
  1751. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1752. } # ac_fn_c_check_func
  1753. cat >config.log <<_ACEOF
  1754. This file contains any messages produced by compilers while
  1755. running configure, to aid debugging if configure makes a mistake.
  1756. It was created by $as_me, which was
  1757. generated by GNU Autoconf 2.69. Invocation command line was
  1758. $ $0 $@
  1759. _ACEOF
  1760. exec 5>>config.log
  1761. {
  1762. cat <<_ASUNAME
  1763. ## --------- ##
  1764. ## Platform. ##
  1765. ## --------- ##
  1766. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1767. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1768. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1769. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1770. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1771. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1772. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1773. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1774. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1775. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1776. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1777. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1778. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1779. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1780. _ASUNAME
  1781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1782. for as_dir in $PATH
  1783. do
  1784. IFS=$as_save_IFS
  1785. test -z "$as_dir" && as_dir=.
  1786. $as_echo "PATH: $as_dir"
  1787. done
  1788. IFS=$as_save_IFS
  1789. } >&5
  1790. cat >&5 <<_ACEOF
  1791. ## ----------- ##
  1792. ## Core tests. ##
  1793. ## ----------- ##
  1794. _ACEOF
  1795. # Keep a trace of the command line.
  1796. # Strip out --no-create and --no-recursion so they do not pile up.
  1797. # Strip out --silent because we don't want to record it for future runs.
  1798. # Also quote any args containing shell meta-characters.
  1799. # Make two passes to allow for proper duplicate-argument suppression.
  1800. ac_configure_args=
  1801. ac_configure_args0=
  1802. ac_configure_args1=
  1803. ac_must_keep_next=false
  1804. for ac_pass in 1 2
  1805. do
  1806. for ac_arg
  1807. do
  1808. case $ac_arg in
  1809. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1810. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1811. | -silent | --silent | --silen | --sile | --sil)
  1812. continue ;;
  1813. *\'*)
  1814. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1815. esac
  1816. case $ac_pass in
  1817. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1818. 2)
  1819. as_fn_append ac_configure_args1 " '$ac_arg'"
  1820. if test $ac_must_keep_next = true; then
  1821. ac_must_keep_next=false # Got value, back to normal.
  1822. else
  1823. case $ac_arg in
  1824. *=* | --config-cache | -C | -disable-* | --disable-* \
  1825. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1826. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1827. | -with-* | --with-* | -without-* | --without-* | --x)
  1828. case "$ac_configure_args0 " in
  1829. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1830. esac
  1831. ;;
  1832. -* ) ac_must_keep_next=true ;;
  1833. esac
  1834. fi
  1835. as_fn_append ac_configure_args " '$ac_arg'"
  1836. ;;
  1837. esac
  1838. done
  1839. done
  1840. { ac_configure_args0=; unset ac_configure_args0;}
  1841. { ac_configure_args1=; unset ac_configure_args1;}
  1842. # When interrupted or exit'd, cleanup temporary files, and complete
  1843. # config.log. We remove comments because anyway the quotes in there
  1844. # would cause problems or look ugly.
  1845. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1846. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1847. trap 'exit_status=$?
  1848. # Save into config.log some information that might help in debugging.
  1849. {
  1850. echo
  1851. $as_echo "## ---------------- ##
  1852. ## Cache variables. ##
  1853. ## ---------------- ##"
  1854. echo
  1855. # The following way of writing the cache mishandles newlines in values,
  1856. (
  1857. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1858. eval ac_val=\$$ac_var
  1859. case $ac_val in #(
  1860. *${as_nl}*)
  1861. case $ac_var in #(
  1862. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1863. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1864. esac
  1865. case $ac_var in #(
  1866. _ | IFS | as_nl) ;; #(
  1867. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1868. *) { eval $ac_var=; unset $ac_var;} ;;
  1869. esac ;;
  1870. esac
  1871. done
  1872. (set) 2>&1 |
  1873. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1874. *${as_nl}ac_space=\ *)
  1875. sed -n \
  1876. "s/'\''/'\''\\\\'\'''\''/g;
  1877. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1878. ;; #(
  1879. *)
  1880. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1881. ;;
  1882. esac |
  1883. sort
  1884. )
  1885. echo
  1886. $as_echo "## ----------------- ##
  1887. ## Output variables. ##
  1888. ## ----------------- ##"
  1889. echo
  1890. for ac_var in $ac_subst_vars
  1891. do
  1892. eval ac_val=\$$ac_var
  1893. case $ac_val in
  1894. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1895. esac
  1896. $as_echo "$ac_var='\''$ac_val'\''"
  1897. done | sort
  1898. echo
  1899. if test -n "$ac_subst_files"; then
  1900. $as_echo "## ------------------- ##
  1901. ## File substitutions. ##
  1902. ## ------------------- ##"
  1903. echo
  1904. for ac_var in $ac_subst_files
  1905. do
  1906. eval ac_val=\$$ac_var
  1907. case $ac_val in
  1908. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1909. esac
  1910. $as_echo "$ac_var='\''$ac_val'\''"
  1911. done | sort
  1912. echo
  1913. fi
  1914. if test -s confdefs.h; then
  1915. $as_echo "## ----------- ##
  1916. ## confdefs.h. ##
  1917. ## ----------- ##"
  1918. echo
  1919. cat confdefs.h
  1920. echo
  1921. fi
  1922. test "$ac_signal" != 0 &&
  1923. $as_echo "$as_me: caught signal $ac_signal"
  1924. $as_echo "$as_me: exit $exit_status"
  1925. } >&5
  1926. rm -f core *.core core.conftest.* &&
  1927. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1928. exit $exit_status
  1929. ' 0
  1930. for ac_signal in 1 2 13 15; do
  1931. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1932. done
  1933. ac_signal=0
  1934. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1935. rm -f -r conftest* confdefs.h
  1936. $as_echo "/* confdefs.h */" > confdefs.h
  1937. # Predefined preprocessor variables.
  1938. cat >>confdefs.h <<_ACEOF
  1939. #define PACKAGE_NAME "$PACKAGE_NAME"
  1940. _ACEOF
  1941. cat >>confdefs.h <<_ACEOF
  1942. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1943. _ACEOF
  1944. cat >>confdefs.h <<_ACEOF
  1945. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1946. _ACEOF
  1947. cat >>confdefs.h <<_ACEOF
  1948. #define PACKAGE_STRING "$PACKAGE_STRING"
  1949. _ACEOF
  1950. cat >>confdefs.h <<_ACEOF
  1951. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1952. _ACEOF
  1953. cat >>confdefs.h <<_ACEOF
  1954. #define PACKAGE_URL "$PACKAGE_URL"
  1955. _ACEOF
  1956. # Let the site file select an alternate cache file if it wants to.
  1957. # Prefer an explicitly selected file to automatically selected ones.
  1958. ac_site_file1=NONE
  1959. ac_site_file2=NONE
  1960. if test -n "$CONFIG_SITE"; then
  1961. # We do not want a PATH search for config.site.
  1962. case $CONFIG_SITE in #((
  1963. -*) ac_site_file1=./$CONFIG_SITE;;
  1964. */*) ac_site_file1=$CONFIG_SITE;;
  1965. *) ac_site_file1=./$CONFIG_SITE;;
  1966. esac
  1967. elif test "x$prefix" != xNONE; then
  1968. ac_site_file1=$prefix/share/config.site
  1969. ac_site_file2=$prefix/etc/config.site
  1970. else
  1971. ac_site_file1=$ac_default_prefix/share/config.site
  1972. ac_site_file2=$ac_default_prefix/etc/config.site
  1973. fi
  1974. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1975. do
  1976. test "x$ac_site_file" = xNONE && continue
  1977. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1978. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1979. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1980. sed 's/^/| /' "$ac_site_file" >&5
  1981. . "$ac_site_file" \
  1982. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1983. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1984. as_fn_error $? "failed to load site script $ac_site_file
  1985. See \`config.log' for more details" "$LINENO" 5; }
  1986. fi
  1987. done
  1988. if test -r "$cache_file"; then
  1989. # Some versions of bash will fail to source /dev/null (special files
  1990. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1991. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1993. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1994. case $cache_file in
  1995. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1996. *) . "./$cache_file";;
  1997. esac
  1998. fi
  1999. else
  2000. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2001. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2002. >$cache_file
  2003. fi
  2004. # Check that the precious variables saved in the cache have kept the same
  2005. # value.
  2006. ac_cache_corrupted=false
  2007. for ac_var in $ac_precious_vars; do
  2008. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2009. eval ac_new_set=\$ac_env_${ac_var}_set
  2010. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2011. eval ac_new_val=\$ac_env_${ac_var}_value
  2012. case $ac_old_set,$ac_new_set in
  2013. set,)
  2014. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2015. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2016. ac_cache_corrupted=: ;;
  2017. ,set)
  2018. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2019. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2020. ac_cache_corrupted=: ;;
  2021. ,);;
  2022. *)
  2023. if test "x$ac_old_val" != "x$ac_new_val"; then
  2024. # differences in whitespace do not lead to failure.
  2025. ac_old_val_w=`echo x $ac_old_val`
  2026. ac_new_val_w=`echo x $ac_new_val`
  2027. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2028. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2029. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2030. ac_cache_corrupted=:
  2031. else
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2033. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2034. eval $ac_var=\$ac_old_val
  2035. fi
  2036. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2037. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2038. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2039. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2040. fi;;
  2041. esac
  2042. # Pass precious variables to config.status.
  2043. if test "$ac_new_set" = set; then
  2044. case $ac_new_val in
  2045. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2046. *) ac_arg=$ac_var=$ac_new_val ;;
  2047. esac
  2048. case " $ac_configure_args " in
  2049. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2050. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2051. esac
  2052. fi
  2053. done
  2054. if $ac_cache_corrupted; then
  2055. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2056. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2058. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2059. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2060. fi
  2061. ## -------------------- ##
  2062. ## Main body of script. ##
  2063. ## -------------------- ##
  2064. ac_ext=c
  2065. ac_cpp='$CPP $CPPFLAGS'
  2066. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2067. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2068. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  2070. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2071. if ${ac_cv_path_GREP+:} false; then :
  2072. $as_echo_n "(cached) " >&6
  2073. else
  2074. if test -z "$GREP"; then
  2075. ac_path_GREP_found=false
  2076. # Loop through the user's path and test for each of PROGNAME-LIST
  2077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2078. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2079. do
  2080. IFS=$as_save_IFS
  2081. test -z "$as_dir" && as_dir=.
  2082. for ac_prog in grep ggrep; do
  2083. for ac_exec_ext in '' $ac_executable_extensions; do
  2084. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2085. as_fn_executable_p "$ac_path_GREP" || continue
  2086. # Check for GNU ac_path_GREP and select it if it is found.
  2087. # Check for GNU $ac_path_GREP
  2088. case `"$ac_path_GREP" --version 2>&1` in
  2089. *GNU*)
  2090. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2091. *)
  2092. ac_count=0
  2093. $as_echo_n 0123456789 >"conftest.in"
  2094. while :
  2095. do
  2096. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2097. mv "conftest.tmp" "conftest.in"
  2098. cp "conftest.in" "conftest.nl"
  2099. $as_echo 'GREP' >> "conftest.nl"
  2100. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2101. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2102. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2103. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2104. # Best one so far, save it but keep looking for a better one
  2105. ac_cv_path_GREP="$ac_path_GREP"
  2106. ac_path_GREP_max=$ac_count
  2107. fi
  2108. # 10*(2^10) chars as input seems more than enough
  2109. test $ac_count -gt 10 && break
  2110. done
  2111. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2112. esac
  2113. $ac_path_GREP_found && break 3
  2114. done
  2115. done
  2116. done
  2117. IFS=$as_save_IFS
  2118. if test -z "$ac_cv_path_GREP"; then
  2119. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2120. fi
  2121. else
  2122. ac_cv_path_GREP=$GREP
  2123. fi
  2124. fi
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  2126. $as_echo "$ac_cv_path_GREP" >&6; }
  2127. GREP="$ac_cv_path_GREP"
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  2129. $as_echo_n "checking for egrep... " >&6; }
  2130. if ${ac_cv_path_EGREP+:} false; then :
  2131. $as_echo_n "(cached) " >&6
  2132. else
  2133. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2134. then ac_cv_path_EGREP="$GREP -E"
  2135. else
  2136. if test -z "$EGREP"; then
  2137. ac_path_EGREP_found=false
  2138. # Loop through the user's path and test for each of PROGNAME-LIST
  2139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2140. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2141. do
  2142. IFS=$as_save_IFS
  2143. test -z "$as_dir" && as_dir=.
  2144. for ac_prog in egrep; do
  2145. for ac_exec_ext in '' $ac_executable_extensions; do
  2146. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2147. as_fn_executable_p "$ac_path_EGREP" || continue
  2148. # Check for GNU ac_path_EGREP and select it if it is found.
  2149. # Check for GNU $ac_path_EGREP
  2150. case `"$ac_path_EGREP" --version 2>&1` in
  2151. *GNU*)
  2152. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2153. *)
  2154. ac_count=0
  2155. $as_echo_n 0123456789 >"conftest.in"
  2156. while :
  2157. do
  2158. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2159. mv "conftest.tmp" "conftest.in"
  2160. cp "conftest.in" "conftest.nl"
  2161. $as_echo 'EGREP' >> "conftest.nl"
  2162. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2163. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2164. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2165. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2166. # Best one so far, save it but keep looking for a better one
  2167. ac_cv_path_EGREP="$ac_path_EGREP"
  2168. ac_path_EGREP_max=$ac_count
  2169. fi
  2170. # 10*(2^10) chars as input seems more than enough
  2171. test $ac_count -gt 10 && break
  2172. done
  2173. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2174. esac
  2175. $ac_path_EGREP_found && break 3
  2176. done
  2177. done
  2178. done
  2179. IFS=$as_save_IFS
  2180. if test -z "$ac_cv_path_EGREP"; then
  2181. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2182. fi
  2183. else
  2184. ac_cv_path_EGREP=$EGREP
  2185. fi
  2186. fi
  2187. fi
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  2189. $as_echo "$ac_cv_path_EGREP" >&6; }
  2190. EGREP="$ac_cv_path_EGREP"
  2191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  2192. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  2193. if ${lt_cv_path_SED+:} false; then :
  2194. $as_echo_n "(cached) " >&6
  2195. else
  2196. # Loop through the user's path and test for sed and gsed.
  2197. # Then use that list of sed's as ones to test for truncation.
  2198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2199. for as_dir in $PATH
  2200. do
  2201. IFS=$as_save_IFS
  2202. test -z "$as_dir" && as_dir=.
  2203. for lt_ac_prog in sed gsed; do
  2204. for ac_exec_ext in '' $ac_executable_extensions; do
  2205. if test -f "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  2206. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  2207. fi
  2208. done
  2209. done
  2210. done
  2211. lt_ac_max=0
  2212. lt_ac_count=0
  2213. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  2214. # along with /bin/sed that truncates output.
  2215. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  2216. test ! -f $lt_ac_sed && continue
  2217. cat /dev/null > conftest.in
  2218. lt_ac_count=0
  2219. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  2220. # Check for GNU sed and select it if it is found.
  2221. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  2222. lt_cv_path_SED=$lt_ac_sed
  2223. break
  2224. fi
  2225. while true; do
  2226. cat conftest.in conftest.in >conftest.tmp
  2227. mv conftest.tmp conftest.in
  2228. cp conftest.in conftest.nl
  2229. echo >>conftest.nl
  2230. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  2231. cmp -s conftest.out conftest.nl || break
  2232. # 10000 chars as input seems more than enough
  2233. test $lt_ac_count -gt 10 && break
  2234. lt_ac_count=`expr $lt_ac_count + 1`
  2235. if test $lt_ac_count -gt $lt_ac_max; then
  2236. lt_ac_max=$lt_ac_count
  2237. lt_cv_path_SED=$lt_ac_sed
  2238. fi
  2239. done
  2240. done
  2241. fi
  2242. SED=$lt_cv_path_SED
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
  2244. $as_echo "$SED" >&6; }
  2245. PHP_VAR_SUBST="$PHP_VAR_SUBST EGREP"
  2246. PHP_VAR_SUBST="$PHP_VAR_SUBST SED"
  2247. test -f config.nice && mv config.nice config.nice.old
  2248. rm -f config.nice.old
  2249. cat >config.nice<<EOF
  2250. #! /bin/sh
  2251. #
  2252. # Created by configure
  2253. EOF
  2254. for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS EXTRA_LDFLAGS_PROGRAM LIBS CC CXX; do
  2255. eval val=\$$var
  2256. if test -n "$val"; then
  2257. echo "$var='$val' \\" >> config.nice
  2258. fi
  2259. done
  2260. echo "'$0' \\" >> config.nice
  2261. if test `expr -- $0 : "'.*"` = 0; then
  2262. CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'"
  2263. else
  2264. CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0"
  2265. fi
  2266. for arg in $ac_configure_args; do
  2267. if test `expr -- $arg : "'.*"` = 0; then
  2268. if test `expr -- $arg : "-.*"` = 0 && test `expr -- $arg : ".*=.*"` = 0; then
  2269. continue;
  2270. fi
  2271. echo "'$arg' \\" >> config.nice
  2272. CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS '$arg'"
  2273. else
  2274. if test `expr -- $arg : "'-.*"` = 0 && test `expr -- $arg : "'.*=.*"` = 0; then
  2275. continue;
  2276. fi
  2277. echo "$arg \\" >> config.nice
  2278. CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $arg"
  2279. fi
  2280. done
  2281. echo '"$@"' >> config.nice
  2282. chmod +x config.nice
  2283. CONFIGURE_COMMAND="$CONFIGURE_COMMAND $CONFIGURE_OPTIONS"
  2284. PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_COMMAND"
  2285. PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_OPTIONS"
  2286. test -z "$CFLAGS" && auto_cflags=1
  2287. abs_srcdir=`(cd $srcdir && pwd)`
  2288. abs_builddir=`pwd`
  2289. ac_ext=c
  2290. ac_cpp='$CPP $CPPFLAGS'
  2291. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2292. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2293. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2294. if test -n "$ac_tool_prefix"; then
  2295. for ac_prog in cc gcc
  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 cc gcc
  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. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2387. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2388. as_fn_error $? "no acceptable C compiler found in \$PATH
  2389. See \`config.log' for more details" "$LINENO" 5; }
  2390. # Provide some information about the compiler.
  2391. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2392. set X $ac_compile
  2393. ac_compiler=$2
  2394. for ac_option in --version -v -V -qversion; do
  2395. { { ac_try="$ac_compiler $ac_option >&5"
  2396. case "(($ac_try" in
  2397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2398. *) ac_try_echo=$ac_try;;
  2399. esac
  2400. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2401. $as_echo "$ac_try_echo"; } >&5
  2402. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2403. ac_status=$?
  2404. if test -s conftest.err; then
  2405. sed '10a\
  2406. ... rest of stderr output deleted ...
  2407. 10q' conftest.err >conftest.er1
  2408. cat conftest.er1 >&5
  2409. fi
  2410. rm -f conftest.er1 conftest.err
  2411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2412. test $ac_status = 0; }
  2413. done
  2414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2415. /* end confdefs.h. */
  2416. int
  2417. main ()
  2418. {
  2419. ;
  2420. return 0;
  2421. }
  2422. _ACEOF
  2423. ac_clean_files_save=$ac_clean_files
  2424. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2425. # Try to create an executable without -o first, disregard a.out.
  2426. # It will help us diagnose broken compilers, and finding out an intuition
  2427. # of exeext.
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2429. $as_echo_n "checking whether the C compiler works... " >&6; }
  2430. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2431. # The possible output files:
  2432. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2433. ac_rmfiles=
  2434. for ac_file in $ac_files
  2435. do
  2436. case $ac_file in
  2437. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2438. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2439. esac
  2440. done
  2441. rm -f $ac_rmfiles
  2442. if { { ac_try="$ac_link_default"
  2443. case "(($ac_try" in
  2444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2445. *) ac_try_echo=$ac_try;;
  2446. esac
  2447. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2448. $as_echo "$ac_try_echo"; } >&5
  2449. (eval "$ac_link_default") 2>&5
  2450. ac_status=$?
  2451. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2452. test $ac_status = 0; }; then :
  2453. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2454. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2455. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2456. # so that the user can short-circuit this test for compilers unknown to
  2457. # Autoconf.
  2458. for ac_file in $ac_files ''
  2459. do
  2460. test -f "$ac_file" || continue
  2461. case $ac_file in
  2462. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2463. ;;
  2464. [ab].out )
  2465. # We found the default executable, but exeext='' is most
  2466. # certainly right.
  2467. break;;
  2468. *.* )
  2469. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2470. then :; else
  2471. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2472. fi
  2473. # We set ac_cv_exeext here because the later test for it is not
  2474. # safe: cross compilers may not add the suffix if given an `-o'
  2475. # argument, so we may need to know it at that point already.
  2476. # Even if this section looks crufty: it has the advantage of
  2477. # actually working.
  2478. break;;
  2479. * )
  2480. break;;
  2481. esac
  2482. done
  2483. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2484. else
  2485. ac_file=''
  2486. fi
  2487. if test -z "$ac_file"; then :
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2489. $as_echo "no" >&6; }
  2490. $as_echo "$as_me: failed program was:" >&5
  2491. sed 's/^/| /' conftest.$ac_ext >&5
  2492. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2493. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2494. as_fn_error 77 "C compiler cannot create executables
  2495. See \`config.log' for more details" "$LINENO" 5; }
  2496. else
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2498. $as_echo "yes" >&6; }
  2499. fi
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2501. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2503. $as_echo "$ac_file" >&6; }
  2504. ac_exeext=$ac_cv_exeext
  2505. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2506. ac_clean_files=$ac_clean_files_save
  2507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2508. $as_echo_n "checking for suffix of executables... " >&6; }
  2509. if { { ac_try="$ac_link"
  2510. case "(($ac_try" in
  2511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2512. *) ac_try_echo=$ac_try;;
  2513. esac
  2514. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2515. $as_echo "$ac_try_echo"; } >&5
  2516. (eval "$ac_link") 2>&5
  2517. ac_status=$?
  2518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2519. test $ac_status = 0; }; then :
  2520. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2521. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2522. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2523. # `rm'.
  2524. for ac_file in conftest.exe conftest conftest.*; do
  2525. test -f "$ac_file" || continue
  2526. case $ac_file in
  2527. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2528. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2529. break;;
  2530. * ) break;;
  2531. esac
  2532. done
  2533. else
  2534. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2535. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2536. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2537. See \`config.log' for more details" "$LINENO" 5; }
  2538. fi
  2539. rm -f conftest conftest$ac_cv_exeext
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2541. $as_echo "$ac_cv_exeext" >&6; }
  2542. rm -f conftest.$ac_ext
  2543. EXEEXT=$ac_cv_exeext
  2544. ac_exeext=$EXEEXT
  2545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2546. /* end confdefs.h. */
  2547. #include <stdio.h>
  2548. int
  2549. main ()
  2550. {
  2551. FILE *f = fopen ("conftest.out", "w");
  2552. return ferror (f) || fclose (f) != 0;
  2553. ;
  2554. return 0;
  2555. }
  2556. _ACEOF
  2557. ac_clean_files="$ac_clean_files conftest.out"
  2558. # Check that the compiler produces executables we can run. If not, either
  2559. # the compiler is broken, or we cross compile.
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2561. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2562. if test "$cross_compiling" != yes; then
  2563. { { ac_try="$ac_link"
  2564. case "(($ac_try" in
  2565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2566. *) ac_try_echo=$ac_try;;
  2567. esac
  2568. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2569. $as_echo "$ac_try_echo"; } >&5
  2570. (eval "$ac_link") 2>&5
  2571. ac_status=$?
  2572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2573. test $ac_status = 0; }
  2574. if { ac_try='./conftest$ac_cv_exeext'
  2575. { { case "(($ac_try" in
  2576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2577. *) ac_try_echo=$ac_try;;
  2578. esac
  2579. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2580. $as_echo "$ac_try_echo"; } >&5
  2581. (eval "$ac_try") 2>&5
  2582. ac_status=$?
  2583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2584. test $ac_status = 0; }; }; then
  2585. cross_compiling=no
  2586. else
  2587. if test "$cross_compiling" = maybe; then
  2588. cross_compiling=yes
  2589. else
  2590. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2591. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2592. as_fn_error $? "cannot run C compiled programs.
  2593. If you meant to cross compile, use \`--host'.
  2594. See \`config.log' for more details" "$LINENO" 5; }
  2595. fi
  2596. fi
  2597. fi
  2598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2599. $as_echo "$cross_compiling" >&6; }
  2600. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2601. ac_clean_files=$ac_clean_files_save
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2603. $as_echo_n "checking for suffix of object files... " >&6; }
  2604. if ${ac_cv_objext+:} false; then :
  2605. $as_echo_n "(cached) " >&6
  2606. else
  2607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2608. /* end confdefs.h. */
  2609. int
  2610. main ()
  2611. {
  2612. ;
  2613. return 0;
  2614. }
  2615. _ACEOF
  2616. rm -f conftest.o conftest.obj
  2617. if { { ac_try="$ac_compile"
  2618. case "(($ac_try" in
  2619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2620. *) ac_try_echo=$ac_try;;
  2621. esac
  2622. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2623. $as_echo "$ac_try_echo"; } >&5
  2624. (eval "$ac_compile") 2>&5
  2625. ac_status=$?
  2626. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2627. test $ac_status = 0; }; then :
  2628. for ac_file in conftest.o conftest.obj conftest.*; do
  2629. test -f "$ac_file" || continue;
  2630. case $ac_file in
  2631. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2632. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2633. break;;
  2634. esac
  2635. done
  2636. else
  2637. $as_echo "$as_me: failed program was:" >&5
  2638. sed 's/^/| /' conftest.$ac_ext >&5
  2639. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2640. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2641. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2642. See \`config.log' for more details" "$LINENO" 5; }
  2643. fi
  2644. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2645. fi
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2647. $as_echo "$ac_cv_objext" >&6; }
  2648. OBJEXT=$ac_cv_objext
  2649. ac_objext=$OBJEXT
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2651. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2652. if ${ac_cv_c_compiler_gnu+:} false; then :
  2653. $as_echo_n "(cached) " >&6
  2654. else
  2655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2656. /* end confdefs.h. */
  2657. int
  2658. main ()
  2659. {
  2660. #ifndef __GNUC__
  2661. choke me
  2662. #endif
  2663. ;
  2664. return 0;
  2665. }
  2666. _ACEOF
  2667. if ac_fn_c_try_compile "$LINENO"; then :
  2668. ac_compiler_gnu=yes
  2669. else
  2670. ac_compiler_gnu=no
  2671. fi
  2672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2673. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2674. fi
  2675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2676. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2677. if test $ac_compiler_gnu = yes; then
  2678. GCC=yes
  2679. else
  2680. GCC=
  2681. fi
  2682. ac_test_CFLAGS=${CFLAGS+set}
  2683. ac_save_CFLAGS=$CFLAGS
  2684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2685. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2686. if ${ac_cv_prog_cc_g+:} false; then :
  2687. $as_echo_n "(cached) " >&6
  2688. else
  2689. ac_save_c_werror_flag=$ac_c_werror_flag
  2690. ac_c_werror_flag=yes
  2691. ac_cv_prog_cc_g=no
  2692. CFLAGS="-g"
  2693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2694. /* end confdefs.h. */
  2695. int
  2696. main ()
  2697. {
  2698. ;
  2699. return 0;
  2700. }
  2701. _ACEOF
  2702. if ac_fn_c_try_compile "$LINENO"; then :
  2703. ac_cv_prog_cc_g=yes
  2704. else
  2705. CFLAGS=""
  2706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2707. /* end confdefs.h. */
  2708. int
  2709. main ()
  2710. {
  2711. ;
  2712. return 0;
  2713. }
  2714. _ACEOF
  2715. if ac_fn_c_try_compile "$LINENO"; then :
  2716. else
  2717. ac_c_werror_flag=$ac_save_c_werror_flag
  2718. CFLAGS="-g"
  2719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2720. /* end confdefs.h. */
  2721. int
  2722. main ()
  2723. {
  2724. ;
  2725. return 0;
  2726. }
  2727. _ACEOF
  2728. if ac_fn_c_try_compile "$LINENO"; then :
  2729. ac_cv_prog_cc_g=yes
  2730. fi
  2731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2732. fi
  2733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2734. fi
  2735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2736. ac_c_werror_flag=$ac_save_c_werror_flag
  2737. fi
  2738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2739. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2740. if test "$ac_test_CFLAGS" = set; then
  2741. CFLAGS=$ac_save_CFLAGS
  2742. elif test $ac_cv_prog_cc_g = yes; then
  2743. if test "$GCC" = yes; then
  2744. CFLAGS="-g -O2"
  2745. else
  2746. CFLAGS="-g"
  2747. fi
  2748. else
  2749. if test "$GCC" = yes; then
  2750. CFLAGS="-O2"
  2751. else
  2752. CFLAGS=
  2753. fi
  2754. fi
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2756. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2757. if ${ac_cv_prog_cc_c89+:} false; then :
  2758. $as_echo_n "(cached) " >&6
  2759. else
  2760. ac_cv_prog_cc_c89=no
  2761. ac_save_CC=$CC
  2762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2763. /* end confdefs.h. */
  2764. #include <stdarg.h>
  2765. #include <stdio.h>
  2766. struct stat;
  2767. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2768. struct buf { int x; };
  2769. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2770. static char *e (p, i)
  2771. char **p;
  2772. int i;
  2773. {
  2774. return p[i];
  2775. }
  2776. static char *f (char * (*g) (char **, int), char **p, ...)
  2777. {
  2778. char *s;
  2779. va_list v;
  2780. va_start (v,p);
  2781. s = g (p, va_arg (v,int));
  2782. va_end (v);
  2783. return s;
  2784. }
  2785. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2786. function prototypes and stuff, but not '\xHH' hex character constants.
  2787. These don't provoke an error unfortunately, instead are silently treated
  2788. as 'x'. The following induces an error, until -std is added to get
  2789. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2790. array size at least. It's necessary to write '\x00'==0 to get something
  2791. that's true only with -std. */
  2792. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2793. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2794. inside strings and character constants. */
  2795. #define FOO(x) 'x'
  2796. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2797. int test (int i, double x);
  2798. struct s1 {int (*f) (int a);};
  2799. struct s2 {int (*f) (double a);};
  2800. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2801. int argc;
  2802. char **argv;
  2803. int
  2804. main ()
  2805. {
  2806. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2807. ;
  2808. return 0;
  2809. }
  2810. _ACEOF
  2811. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2812. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2813. do
  2814. CC="$ac_save_CC $ac_arg"
  2815. if ac_fn_c_try_compile "$LINENO"; then :
  2816. ac_cv_prog_cc_c89=$ac_arg
  2817. fi
  2818. rm -f core conftest.err conftest.$ac_objext
  2819. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2820. done
  2821. rm -f conftest.$ac_ext
  2822. CC=$ac_save_CC
  2823. fi
  2824. # AC_CACHE_VAL
  2825. case "x$ac_cv_prog_cc_c89" in
  2826. x)
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2828. $as_echo "none needed" >&6; } ;;
  2829. xno)
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2831. $as_echo "unsupported" >&6; } ;;
  2832. *)
  2833. CC="$CC $ac_cv_prog_cc_c89"
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2835. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2836. esac
  2837. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2838. fi
  2839. ac_ext=c
  2840. ac_cpp='$CPP $CPPFLAGS'
  2841. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2842. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2843. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2844. ac_ext=c
  2845. ac_cpp='$CPP $CPPFLAGS'
  2846. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2847. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2848. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2850. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2851. # On Suns, sometimes $CPP names a directory.
  2852. if test -n "$CPP" && test -d "$CPP"; then
  2853. CPP=
  2854. fi
  2855. if test -z "$CPP"; then
  2856. if ${ac_cv_prog_CPP+:} false; then :
  2857. $as_echo_n "(cached) " >&6
  2858. else
  2859. # Double quotes because CPP needs to be expanded
  2860. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2861. do
  2862. ac_preproc_ok=false
  2863. for ac_c_preproc_warn_flag in '' yes
  2864. do
  2865. # Use a header file that comes with gcc, so configuring glibc
  2866. # with a fresh cross-compiler works.
  2867. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2868. # <limits.h> exists even on freestanding compilers.
  2869. # On the NeXT, cc -E runs the code through the compiler's parser,
  2870. # not just through cpp. "Syntax error" is here to catch this case.
  2871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2872. /* end confdefs.h. */
  2873. #ifdef __STDC__
  2874. # include <limits.h>
  2875. #else
  2876. # include <assert.h>
  2877. #endif
  2878. Syntax error
  2879. _ACEOF
  2880. if ac_fn_c_try_cpp "$LINENO"; then :
  2881. else
  2882. # Broken: fails on valid input.
  2883. continue
  2884. fi
  2885. rm -f conftest.err conftest.i conftest.$ac_ext
  2886. # OK, works on sane cases. Now check whether nonexistent headers
  2887. # can be detected and how.
  2888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2889. /* end confdefs.h. */
  2890. #include <ac_nonexistent.h>
  2891. _ACEOF
  2892. if ac_fn_c_try_cpp "$LINENO"; then :
  2893. # Broken: success on invalid input.
  2894. continue
  2895. else
  2896. # Passes both tests.
  2897. ac_preproc_ok=:
  2898. break
  2899. fi
  2900. rm -f conftest.err conftest.i conftest.$ac_ext
  2901. done
  2902. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2903. rm -f conftest.i conftest.err conftest.$ac_ext
  2904. if $ac_preproc_ok; then :
  2905. break
  2906. fi
  2907. done
  2908. ac_cv_prog_CPP=$CPP
  2909. fi
  2910. CPP=$ac_cv_prog_CPP
  2911. else
  2912. ac_cv_prog_CPP=$CPP
  2913. fi
  2914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  2915. $as_echo "$CPP" >&6; }
  2916. ac_preproc_ok=false
  2917. for ac_c_preproc_warn_flag in '' yes
  2918. do
  2919. # Use a header file that comes with gcc, so configuring glibc
  2920. # with a fresh cross-compiler works.
  2921. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2922. # <limits.h> exists even on freestanding compilers.
  2923. # On the NeXT, cc -E runs the code through the compiler's parser,
  2924. # not just through cpp. "Syntax error" is here to catch this case.
  2925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2926. /* end confdefs.h. */
  2927. #ifdef __STDC__
  2928. # include <limits.h>
  2929. #else
  2930. # include <assert.h>
  2931. #endif
  2932. Syntax error
  2933. _ACEOF
  2934. if ac_fn_c_try_cpp "$LINENO"; then :
  2935. else
  2936. # Broken: fails on valid input.
  2937. continue
  2938. fi
  2939. rm -f conftest.err conftest.i conftest.$ac_ext
  2940. # OK, works on sane cases. Now check whether nonexistent headers
  2941. # can be detected and how.
  2942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2943. /* end confdefs.h. */
  2944. #include <ac_nonexistent.h>
  2945. _ACEOF
  2946. if ac_fn_c_try_cpp "$LINENO"; then :
  2947. # Broken: success on invalid input.
  2948. continue
  2949. else
  2950. # Passes both tests.
  2951. ac_preproc_ok=:
  2952. break
  2953. fi
  2954. rm -f conftest.err conftest.i conftest.$ac_ext
  2955. done
  2956. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2957. rm -f conftest.i conftest.err conftest.$ac_ext
  2958. if $ac_preproc_ok; then :
  2959. else
  2960. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2961. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2962. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  2963. See \`config.log' for more details" "$LINENO" 5; }
  2964. fi
  2965. ac_ext=c
  2966. ac_cpp='$CPP $CPPFLAGS'
  2967. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2968. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2969. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2970. ICC="no"
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc" >&5
  2972. $as_echo_n "checking for icc... " >&6; }
  2973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2974. /* end confdefs.h. */
  2975. __INTEL_COMPILER
  2976. _ACEOF
  2977. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2978. $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then :
  2979. ICC="no"
  2980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2981. $as_echo "no" >&6; }
  2982. else
  2983. ICC="yes"
  2984. GCC="no"
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2986. $as_echo "yes" >&6; }
  2987. fi
  2988. rm -f conftest*
  2989. SUNCC="no"
  2990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suncc" >&5
  2991. $as_echo_n "checking for suncc... " >&6; }
  2992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2993. /* end confdefs.h. */
  2994. __SUNPRO_C
  2995. _ACEOF
  2996. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2997. $EGREP "^__SUNPRO_C" >/dev/null 2>&1; then :
  2998. SUNCC="no"
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3000. $as_echo "no" >&6; }
  3001. else
  3002. SUNCC="yes"
  3003. GCC="no"
  3004. test -n "$auto_cflags" && CFLAGS="-O -xs -xstrconst -zlazyload"
  3005. GCC=""
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3007. $as_echo "yes" >&6; }
  3008. fi
  3009. rm -f conftest*
  3010. if test "x$CC" != xcc; then
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  3012. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  3013. else
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  3015. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  3016. fi
  3017. set dummy $CC; ac_cc=`$as_echo "$2" |
  3018. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3019. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  3020. $as_echo_n "(cached) " >&6
  3021. else
  3022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3023. /* end confdefs.h. */
  3024. int
  3025. main ()
  3026. {
  3027. ;
  3028. return 0;
  3029. }
  3030. _ACEOF
  3031. # Make sure it works both with $CC and with simple cc.
  3032. # We do the test twice because some compilers refuse to overwrite an
  3033. # existing .o file with -o, though they will create one.
  3034. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3035. rm -f conftest2.*
  3036. if { { case "(($ac_try" in
  3037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3038. *) ac_try_echo=$ac_try;;
  3039. esac
  3040. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3041. $as_echo "$ac_try_echo"; } >&5
  3042. (eval "$ac_try") 2>&5
  3043. ac_status=$?
  3044. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3045. test $ac_status = 0; } &&
  3046. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3048. *) ac_try_echo=$ac_try;;
  3049. esac
  3050. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3051. $as_echo "$ac_try_echo"; } >&5
  3052. (eval "$ac_try") 2>&5
  3053. ac_status=$?
  3054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3055. test $ac_status = 0; };
  3056. then
  3057. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3058. if test "x$CC" != xcc; then
  3059. # Test first that cc exists at all.
  3060. if { ac_try='cc -c conftest.$ac_ext >&5'
  3061. { { case "(($ac_try" in
  3062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3063. *) ac_try_echo=$ac_try;;
  3064. esac
  3065. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3066. $as_echo "$ac_try_echo"; } >&5
  3067. (eval "$ac_try") 2>&5
  3068. ac_status=$?
  3069. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3070. test $ac_status = 0; }; }; then
  3071. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3072. rm -f conftest2.*
  3073. if { { case "(($ac_try" in
  3074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3075. *) ac_try_echo=$ac_try;;
  3076. esac
  3077. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3078. $as_echo "$ac_try_echo"; } >&5
  3079. (eval "$ac_try") 2>&5
  3080. ac_status=$?
  3081. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3082. test $ac_status = 0; } &&
  3083. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3085. *) ac_try_echo=$ac_try;;
  3086. esac
  3087. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3088. $as_echo "$ac_try_echo"; } >&5
  3089. (eval "$ac_try") 2>&5
  3090. ac_status=$?
  3091. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3092. test $ac_status = 0; };
  3093. then
  3094. # cc works too.
  3095. :
  3096. else
  3097. # cc exists but doesn't like -o.
  3098. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3099. fi
  3100. fi
  3101. fi
  3102. else
  3103. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3104. fi
  3105. rm -f core conftest*
  3106. fi
  3107. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3109. $as_echo "yes" >&6; }
  3110. else
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3112. $as_echo "no" >&6; }
  3113. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  3114. fi
  3115. php_with_libdir=lib
  3116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system library directory" >&5
  3117. $as_echo_n "checking for system library directory... " >&6; }
  3118. # Check whether --with-libdir was given.
  3119. if test "${with_libdir+set}" = set; then :
  3120. withval=$with_libdir; PHP_LIBDIR=$withval
  3121. else
  3122. PHP_LIBDIR=lib
  3123. fi
  3124. ext_output=$PHP_LIBDIR
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
  3126. $as_echo "$ext_output" >&6; }
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -R" >&5
  3128. $as_echo_n "checking if compiler supports -R... " >&6; }
  3129. if ${php_cv_cc_dashr+:} false; then :
  3130. $as_echo_n "(cached) " >&6
  3131. else
  3132. SAVE_LIBS=$LIBS
  3133. LIBS="-R /usr/$PHP_LIBDIR $LIBS"
  3134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3135. /* end confdefs.h. */
  3136. int
  3137. main ()
  3138. {
  3139. ;
  3140. return 0;
  3141. }
  3142. _ACEOF
  3143. if ac_fn_c_try_link "$LINENO"; then :
  3144. php_cv_cc_dashr=yes
  3145. else
  3146. php_cv_cc_dashr=no
  3147. fi
  3148. rm -f core conftest.err conftest.$ac_objext \
  3149. conftest$ac_exeext conftest.$ac_ext
  3150. LIBS=$SAVE_LIBS
  3151. fi
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_dashr" >&5
  3153. $as_echo "$php_cv_cc_dashr" >&6; }
  3154. if test $php_cv_cc_dashr = "yes"; then
  3155. ld_runpath_switch=-R
  3156. else
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Wl,-rpath," >&5
  3158. $as_echo_n "checking if compiler supports -Wl,-rpath,... " >&6; }
  3159. if ${php_cv_cc_rpath+:} false; then :
  3160. $as_echo_n "(cached) " >&6
  3161. else
  3162. SAVE_LIBS=$LIBS
  3163. LIBS="-Wl,-rpath,/usr/$PHP_LIBDIR $LIBS"
  3164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3165. /* end confdefs.h. */
  3166. int
  3167. main ()
  3168. {
  3169. ;
  3170. return 0;
  3171. }
  3172. _ACEOF
  3173. if ac_fn_c_try_link "$LINENO"; then :
  3174. php_cv_cc_rpath=yes
  3175. else
  3176. php_cv_cc_rpath=no
  3177. fi
  3178. rm -f core conftest.err conftest.$ac_objext \
  3179. conftest$ac_exeext conftest.$ac_ext
  3180. LIBS=$SAVE_LIBS
  3181. fi
  3182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_rpath" >&5
  3183. $as_echo "$php_cv_cc_rpath" >&6; }
  3184. if test $php_cv_cc_rpath = "yes"; then
  3185. ld_runpath_switch=-Wl,-rpath,
  3186. else
  3187. ld_runpath_switch=-L
  3188. fi
  3189. fi
  3190. if test "$PHP_RPATH" = "no"; then
  3191. ld_runpath_switch=
  3192. fi
  3193. ac_aux_dir=
  3194. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3195. if test -f "$ac_dir/install-sh"; then
  3196. ac_aux_dir=$ac_dir
  3197. ac_install_sh="$ac_aux_dir/install-sh -c"
  3198. break
  3199. elif test -f "$ac_dir/install.sh"; then
  3200. ac_aux_dir=$ac_dir
  3201. ac_install_sh="$ac_aux_dir/install.sh -c"
  3202. break
  3203. elif test -f "$ac_dir/shtool"; then
  3204. ac_aux_dir=$ac_dir
  3205. ac_install_sh="$ac_aux_dir/shtool install -c"
  3206. break
  3207. fi
  3208. done
  3209. if test -z "$ac_aux_dir"; then
  3210. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3211. fi
  3212. # These three variables are undocumented and unsupported,
  3213. # and are intended to be withdrawn in a future Autoconf release.
  3214. # They can cause serious problems if a builder's source tree is in a directory
  3215. # whose full name contains unusual characters.
  3216. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3217. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3218. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3219. # Make sure we can run config.sub.
  3220. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3221. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3223. $as_echo_n "checking build system type... " >&6; }
  3224. if ${ac_cv_build+:} false; then :
  3225. $as_echo_n "(cached) " >&6
  3226. else
  3227. ac_build_alias=$build_alias
  3228. test "x$ac_build_alias" = x &&
  3229. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3230. test "x$ac_build_alias" = x &&
  3231. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3232. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3233. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3234. fi
  3235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3236. $as_echo "$ac_cv_build" >&6; }
  3237. case $ac_cv_build in
  3238. *-*-*) ;;
  3239. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3240. esac
  3241. build=$ac_cv_build
  3242. ac_save_IFS=$IFS; IFS='-'
  3243. set x $ac_cv_build
  3244. shift
  3245. build_cpu=$1
  3246. build_vendor=$2
  3247. shift; shift
  3248. # Remember, the first character of IFS is used to create $*,
  3249. # except with old shells:
  3250. build_os=$*
  3251. IFS=$ac_save_IFS
  3252. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3254. $as_echo_n "checking host system type... " >&6; }
  3255. if ${ac_cv_host+:} false; then :
  3256. $as_echo_n "(cached) " >&6
  3257. else
  3258. if test "x$host_alias" = x; then
  3259. ac_cv_host=$ac_cv_build
  3260. else
  3261. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3262. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3263. fi
  3264. fi
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3266. $as_echo "$ac_cv_host" >&6; }
  3267. case $ac_cv_host in
  3268. *-*-*) ;;
  3269. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3270. esac
  3271. host=$ac_cv_host
  3272. ac_save_IFS=$IFS; IFS='-'
  3273. set x $ac_cv_host
  3274. shift
  3275. host_cpu=$1
  3276. host_vendor=$2
  3277. shift; shift
  3278. # Remember, the first character of IFS is used to create $*,
  3279. # except with old shells:
  3280. host_os=$*
  3281. IFS=$ac_save_IFS
  3282. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3284. $as_echo_n "checking target system type... " >&6; }
  3285. if ${ac_cv_target+:} false; then :
  3286. $as_echo_n "(cached) " >&6
  3287. else
  3288. if test "x$target_alias" = x; then
  3289. ac_cv_target=$ac_cv_host
  3290. else
  3291. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3292. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3293. fi
  3294. fi
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3296. $as_echo "$ac_cv_target" >&6; }
  3297. case $ac_cv_target in
  3298. *-*-*) ;;
  3299. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  3300. esac
  3301. target=$ac_cv_target
  3302. ac_save_IFS=$IFS; IFS='-'
  3303. set x $ac_cv_target
  3304. shift
  3305. target_cpu=$1
  3306. target_vendor=$2
  3307. shift; shift
  3308. # Remember, the first character of IFS is used to create $*,
  3309. # except with old shells:
  3310. target_os=$*
  3311. IFS=$ac_save_IFS
  3312. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3313. # The aliases save the names the user supplied, while $host etc.
  3314. # will get canonicalized.
  3315. test -n "$target_alias" &&
  3316. test "$program_prefix$program_suffix$program_transform_name" = \
  3317. NONENONEs,x,x, &&
  3318. program_prefix=${target_alias}-
  3319. if test -z "$host_alias" && test -n "$host"; then
  3320. host_alias=$host
  3321. fi
  3322. if test -z "$host_alias"; then
  3323. as_fn_error $? "host_alias is not set!" "$LINENO" 5
  3324. fi
  3325. PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_SUFFIX_NAME"
  3326. PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_DL_SUFFIX_NAME"
  3327. SHLIB_SUFFIX_NAME=so
  3328. SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME
  3329. case $host_alias in
  3330. *hpux*)
  3331. SHLIB_SUFFIX_NAME=sl
  3332. SHLIB_DL_SUFFIX_NAME=sl
  3333. ;;
  3334. *darwin*)
  3335. SHLIB_SUFFIX_NAME=dylib
  3336. SHLIB_DL_SUFFIX_NAME=so
  3337. ;;
  3338. esac
  3339. php_with_php_config=php-config
  3340. # Check whether --with-php-config was given.
  3341. if test "${with_php_config+set}" = set; then :
  3342. withval=$with_php_config; PHP_PHP_CONFIG=$withval
  3343. else
  3344. PHP_PHP_CONFIG=php-config
  3345. fi
  3346. ext_output=$PHP_PHP_CONFIG
  3347. PHP_CONFIG=$PHP_PHP_CONFIG
  3348. prefix=`$PHP_CONFIG --prefix 2>/dev/null`
  3349. phpincludedir=`$PHP_CONFIG --include-dir 2>/dev/null`
  3350. INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
  3351. EXTENSION_DIR=`$PHP_CONFIG --extension-dir 2>/dev/null`
  3352. PHP_EXECUTABLE=`$PHP_CONFIG --php-binary 2>/dev/null`
  3353. if test -z "$prefix"; then
  3354. as_fn_error $? "Cannot find php-config. Please use --with-php-config=PATH" "$LINENO" 5
  3355. fi
  3356. php_shtool=$srcdir/build/shtool
  3357. test -d include || $php_shtool mkdir include
  3358. > Makefile.objects
  3359. > Makefile.fragments
  3360. pattern=define
  3361. $EGREP $pattern'.*include/php' $srcdir/configure|$SED 's/.*>//'|xargs touch 2>/dev/null
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP prefix" >&5
  3363. $as_echo_n "checking for PHP prefix... " >&6; }
  3364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $prefix" >&5
  3365. $as_echo "$prefix" >&6; }
  3366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP includes" >&5
  3367. $as_echo_n "checking for PHP includes... " >&6; }
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INCLUDES" >&5
  3369. $as_echo "$INCLUDES" >&6; }
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP extension directory" >&5
  3371. $as_echo_n "checking for PHP extension directory... " >&6; }
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTENSION_DIR" >&5
  3373. $as_echo "$EXTENSION_DIR" >&6; }
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP installed headers prefix" >&5
  3375. $as_echo_n "checking for PHP installed headers prefix... " >&6; }
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phpincludedir" >&5
  3377. $as_echo "$phpincludedir" >&6; }
  3378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if debug is enabled" >&5
  3379. $as_echo_n "checking if debug is enabled... " >&6; }
  3380. old_CPPFLAGS=$CPPFLAGS
  3381. CPPFLAGS="-I$phpincludedir"
  3382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3383. /* end confdefs.h. */
  3384. #include <main/php_config.h>
  3385. #if ZEND_DEBUG
  3386. php_debug_is_enabled
  3387. #endif
  3388. _ACEOF
  3389. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3390. $EGREP "php_debug_is_enabled" >/dev/null 2>&1; then :
  3391. PHP_DEBUG=yes
  3392. else
  3393. PHP_DEBUG=no
  3394. fi
  3395. rm -f conftest*
  3396. CPPFLAGS=$old_CPPFLAGS
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_DEBUG" >&5
  3398. $as_echo "$PHP_DEBUG" >&6; }
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if zts is enabled" >&5
  3400. $as_echo_n "checking if zts is enabled... " >&6; }
  3401. old_CPPFLAGS=$CPPFLAGS
  3402. CPPFLAGS="-I$phpincludedir"
  3403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3404. /* end confdefs.h. */
  3405. #include <main/php_config.h>
  3406. #if ZTS
  3407. php_zts_is_enabled
  3408. #endif
  3409. _ACEOF
  3410. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3411. $EGREP "php_zts_is_enabled" >/dev/null 2>&1; then :
  3412. PHP_THREAD_SAFETY=yes
  3413. else
  3414. PHP_THREAD_SAFETY=no
  3415. fi
  3416. rm -f conftest*
  3417. CPPFLAGS=$old_CPPFLAGS
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_DEBUG" >&5
  3419. $as_echo "$PHP_DEBUG" >&6; }
  3420. ZEND_EXT_TYPE="zend_extension"
  3421. PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXT_TYPE"
  3422. if test "$PHP_DEBUG" = "yes"; then
  3423. PHP_DEBUG=1
  3424. ZEND_DEBUG=yes
  3425. CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
  3426. CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
  3427. if test "$GCC" = "yes" || test "$ICC" = "yes"; then
  3428. CFLAGS="$CFLAGS -O0"
  3429. CXXFLAGS="$CXXFLAGS -g -O0"
  3430. fi
  3431. if test "$SUNCC" = "yes"; then
  3432. if test -n "$auto_cflags"; then
  3433. CFLAGS="-g"
  3434. CXXFLAGS="-g"
  3435. else
  3436. CFLAGS="$CFLAGS -g"
  3437. CXXFLAGS="$CFLAGS -g"
  3438. fi
  3439. fi
  3440. else
  3441. PHP_DEBUG=0
  3442. ZEND_DEBUG=no
  3443. fi
  3444. php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
  3445. php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
  3446. php_c_post=
  3447. php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
  3448. php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
  3449. php_cxx_post=
  3450. php_lo=lo
  3451. case $with_pic in
  3452. yes) pic_setting='-prefer-pic';;
  3453. no) pic_setting='-prefer-non-pic';;
  3454. esac
  3455. shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
  3456. shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
  3457. shared_c_post=
  3458. shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
  3459. shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
  3460. shared_cxx_post=
  3461. shared_lo=lo
  3462. OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
  3463. php_sapi_module=shared
  3464. php_c_pre=$shared_c_pre
  3465. php_c_meta=$shared_c_meta
  3466. php_c_post=$shared_c_post
  3467. php_cxx_pre=$shared_cxx_pre
  3468. php_cxx_meta=$shared_cxx_meta
  3469. php_cxx_post=$shared_cxx_post
  3470. php_lo=$shared_lo
  3471. # Extract the first word of "re2c", so it can be a program name with args.
  3472. set dummy re2c; ac_word=$2
  3473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3474. $as_echo_n "checking for $ac_word... " >&6; }
  3475. if ${ac_cv_prog_RE2C+:} false; then :
  3476. $as_echo_n "(cached) " >&6
  3477. else
  3478. if test -n "$RE2C"; then
  3479. ac_cv_prog_RE2C="$RE2C" # Let the user override the test.
  3480. else
  3481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3482. for as_dir in $PATH
  3483. do
  3484. IFS=$as_save_IFS
  3485. test -z "$as_dir" && as_dir=.
  3486. for ac_exec_ext in '' $ac_executable_extensions; do
  3487. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3488. ac_cv_prog_RE2C="re2c"
  3489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3490. break 2
  3491. fi
  3492. done
  3493. done
  3494. IFS=$as_save_IFS
  3495. fi
  3496. fi
  3497. RE2C=$ac_cv_prog_RE2C
  3498. if test -n "$RE2C"; then
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RE2C" >&5
  3500. $as_echo "$RE2C" >&6; }
  3501. else
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3503. $as_echo "no" >&6; }
  3504. fi
  3505. if test -n "$RE2C"; then
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re2c version" >&5
  3507. $as_echo_n "checking for re2c version... " >&6; }
  3508. if ${php_cv_re2c_version+:} false; then :
  3509. $as_echo_n "(cached) " >&6
  3510. else
  3511. re2c_vernum=`$RE2C --vernum 2>/dev/null`
  3512. if test -z "$re2c_vernum" || test "$re2c_vernum" -lt "1304"; then
  3513. php_cv_re2c_version=invalid
  3514. else
  3515. php_cv_re2c_version="`$RE2C --version | cut -d ' ' -f 2 2>/dev/null` (ok)"
  3516. fi
  3517. fi
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_re2c_version" >&5
  3519. $as_echo "$php_cv_re2c_version" >&6; }
  3520. fi
  3521. case $php_cv_re2c_version in
  3522. ""|invalid)
  3523. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&5
  3524. $as_echo "$as_me: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&2;}
  3525. RE2C="exit 0;"
  3526. ;;
  3527. esac
  3528. PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C"
  3529. for ac_prog in gawk nawk awk mawk
  3530. do
  3531. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3532. set dummy $ac_prog; ac_word=$2
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3534. $as_echo_n "checking for $ac_word... " >&6; }
  3535. if ${ac_cv_prog_AWK+:} false; then :
  3536. $as_echo_n "(cached) " >&6
  3537. else
  3538. if test -n "$AWK"; then
  3539. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3540. else
  3541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3542. as_dummy="/usr/xpg4/bin/:$PATH"
  3543. for as_dir in $as_dummy
  3544. do
  3545. IFS=$as_save_IFS
  3546. test -z "$as_dir" && as_dir=.
  3547. for ac_exec_ext in '' $ac_executable_extensions; do
  3548. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3549. ac_cv_prog_AWK="$ac_prog"
  3550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3551. break 2
  3552. fi
  3553. done
  3554. done
  3555. IFS=$as_save_IFS
  3556. fi
  3557. fi
  3558. AWK=$ac_cv_prog_AWK
  3559. if test -n "$AWK"; then
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3561. $as_echo "$AWK" >&6; }
  3562. else
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3564. $as_echo "no" >&6; }
  3565. fi
  3566. test -n "$AWK" && break
  3567. done
  3568. test -n "$AWK" || AWK="bork"
  3569. case "$AWK" in
  3570. *mawk)
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&5
  3572. $as_echo "$as_me: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&2;}
  3573. ;;
  3574. *gawk)
  3575. ;;
  3576. bork)
  3577. as_fn_error $? "Could not find awk; Install GNU awk" "$LINENO" 5
  3578. ;;
  3579. *)
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $AWK is broken" >&5
  3581. $as_echo_n "checking if $AWK is broken... " >&6; }
  3582. if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3584. $as_echo "yes" >&6; }
  3585. as_fn_error $? "You should install GNU awk" "$LINENO" 5
  3586. else
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3588. $as_echo "no" >&6; }
  3589. fi
  3590. ;;
  3591. esac
  3592. PHP_VAR_SUBST="$PHP_VAR_SUBST AWK"
  3593. php_enable_fcgi=no
  3594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fcgi support" >&5
  3595. $as_echo_n "checking whether to enable fcgi support... " >&6; }
  3596. # Check whether --enable-fcgi was given.
  3597. if test "${enable_fcgi+set}" = set; then :
  3598. enableval=$enable_fcgi; PHP_FCGI=$enableval
  3599. else
  3600. PHP_FCGI=no
  3601. test "$PHP_ENABLE_ALL" && PHP_FCGI=$PHP_ENABLE_ALL
  3602. fi
  3603. ext_output="yes, shared"
  3604. ext_shared=yes
  3605. case $PHP_FCGI in
  3606. shared,*)
  3607. PHP_FCGI=`echo "$PHP_FCGI"|$SED 's/^shared,//'`
  3608. ;;
  3609. shared)
  3610. PHP_FCGI=yes
  3611. ;;
  3612. no)
  3613. ext_output=no
  3614. ext_shared=no
  3615. ;;
  3616. *)
  3617. ext_output=yes
  3618. ext_shared=no
  3619. ;;
  3620. esac
  3621. ext_output="yes, shared"
  3622. ext_shared=yes
  3623. test "$PHP_FCGI" = "no" && PHP_FCGI=yes
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
  3625. $as_echo "$ext_output" >&6; }
  3626. if test "$PHP_FCGI" != "no"; then
  3627. ext_builddir=.
  3628. ext_srcdir=$abs_srcdir
  3629. ac_extra=
  3630. if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
  3631. PHP_FCGI_SHARED=no
  3632. case "" in
  3633. "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
  3634. /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
  3635. *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
  3636. esac
  3637. b_c_pre=$php_c_pre
  3638. b_cxx_pre=$php_cxx_pre
  3639. b_c_meta=$php_c_meta
  3640. b_cxx_meta=$php_cxx_meta
  3641. b_c_post=$php_c_post
  3642. b_cxx_post=$php_cxx_post
  3643. b_lo=$php_lo
  3644. old_IFS=$IFS
  3645. for ac_src in fcgi.c swap.c; do
  3646. IFS=.
  3647. set $ac_src
  3648. ac_obj=$1
  3649. IFS=$old_IFS
  3650. PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
  3651. case $ac_src in
  3652. *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  3653. *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  3654. *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  3655. *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
  3656. esac
  3657. cat >>Makefile.objects<<EOF
  3658. $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
  3659. $ac_comp
  3660. EOF
  3661. done
  3662. EXT_STATIC="$EXT_STATIC fcgi"
  3663. if test "$ext_shared" != "nocli"; then
  3664. EXT_CLI_STATIC="$EXT_CLI_STATIC fcgi"
  3665. fi
  3666. else
  3667. if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
  3668. PHP_FCGI_SHARED=yes
  3669. case "" in
  3670. "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
  3671. /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
  3672. *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
  3673. esac
  3674. b_c_pre=$shared_c_pre
  3675. b_cxx_pre=$shared_cxx_pre
  3676. b_c_meta=$shared_c_meta
  3677. b_cxx_meta=$shared_cxx_meta
  3678. b_c_post=$shared_c_post
  3679. b_cxx_post=$shared_cxx_post
  3680. b_lo=$shared_lo
  3681. old_IFS=$IFS
  3682. for ac_src in fcgi.c swap.c; do
  3683. IFS=.
  3684. set $ac_src
  3685. ac_obj=$1
  3686. IFS=$old_IFS
  3687. shared_objects_fcgi="$shared_objects_fcgi $ac_bdir$ac_obj.lo"
  3688. case $ac_src in
  3689. *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  3690. *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  3691. *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  3692. *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
  3693. esac
  3694. cat >>Makefile.objects<<EOF
  3695. $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
  3696. $ac_comp
  3697. EOF
  3698. done
  3699. case $host_alias in
  3700. *netware*)
  3701. install_modules="install-modules"
  3702. case $host_alias in
  3703. *aix*)
  3704. suffix=so
  3705. link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phpfcgi.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fcgi) $(PHPFCGI_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phpfcgi.so '$ext_builddir'/phpfcgi.so'
  3706. ;;
  3707. *netware*)
  3708. suffix=nlm
  3709. link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fcgi) -L$(top_builddir)/netware -lphp5lib $(FCGI_SHARED_LIBADD)'
  3710. ;;
  3711. *)
  3712. suffix=la
  3713. link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fcgi) $(PHPFCGI_SHARED_LIBADD)'
  3714. ;;
  3715. esac
  3716. if test "x" = "xyes"; then
  3717. PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpfcgi.$suffix"
  3718. else
  3719. PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpfcgi.$suffix"
  3720. fi
  3721. PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_fcgi"
  3722. cat >>Makefile.objects<<EOF
  3723. \$(phplibdir)/phpfcgi.$suffix: $ext_builddir/phpfcgi.$suffix
  3724. \$(LIBTOOL) --mode=install cp $ext_builddir/phpfcgi.$suffix \$(phplibdir)
  3725. $ext_builddir/phpfcgi.$suffix: \$(shared_objects_fcgi) \$(PHPFCGI_SHARED_DEPENDENCIES)
  3726. $link_cmd
  3727. EOF
  3728. ;;
  3729. *)
  3730. install_modules="install-modules"
  3731. case $host_alias in
  3732. *aix*)
  3733. suffix=so
  3734. link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/fcgi.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fcgi) $(FCGI_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/fcgi.so '$ext_builddir'/fcgi.so'
  3735. ;;
  3736. *netware*)
  3737. suffix=nlm
  3738. link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fcgi) -L$(top_builddir)/netware -lphp5lib $(I_SHARED_LIBADD)'
  3739. ;;
  3740. *)
  3741. suffix=la
  3742. link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_fcgi) $(FCGI_SHARED_LIBADD)'
  3743. ;;
  3744. esac
  3745. if test "x" = "xyes"; then
  3746. PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/fcgi.$suffix"
  3747. else
  3748. PHP_MODULES="$PHP_MODULES \$(phplibdir)/fcgi.$suffix"
  3749. fi
  3750. PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_fcgi"
  3751. cat >>Makefile.objects<<EOF
  3752. \$(phplibdir)/fcgi.$suffix: $ext_builddir/fcgi.$suffix
  3753. \$(LIBTOOL) --mode=install cp $ext_builddir/fcgi.$suffix \$(phplibdir)
  3754. $ext_builddir/fcgi.$suffix: \$(shared_objects_fcgi) \$(FCGI_SHARED_DEPENDENCIES)
  3755. $link_cmd
  3756. EOF
  3757. ;;
  3758. esac
  3759. cat >>confdefs.h <<_ACEOF
  3760. #define COMPILE_DL_FCGI 1
  3761. _ACEOF
  3762. fi
  3763. fi
  3764. if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
  3765. PHP_FCGI_SHARED=no
  3766. case "$PHP_SAPI" in
  3767. cgi|embed)
  3768. case "" in
  3769. "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
  3770. /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
  3771. *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
  3772. esac
  3773. b_c_pre=$php_c_pre
  3774. b_cxx_pre=$php_cxx_pre
  3775. b_c_meta=$php_c_meta
  3776. b_cxx_meta=$php_cxx_meta
  3777. b_c_post=$php_c_post
  3778. b_cxx_post=$php_cxx_post
  3779. b_lo=$php_lo
  3780. old_IFS=$IFS
  3781. for ac_src in fcgi.c swap.c; do
  3782. IFS=.
  3783. set $ac_src
  3784. ac_obj=$1
  3785. IFS=$old_IFS
  3786. PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
  3787. case $ac_src in
  3788. *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  3789. *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  3790. *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  3791. *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
  3792. esac
  3793. cat >>Makefile.objects<<EOF
  3794. $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
  3795. $ac_comp
  3796. EOF
  3797. done
  3798. EXT_STATIC="$EXT_STATIC fcgi"
  3799. ;;
  3800. *)
  3801. case "" in
  3802. "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
  3803. /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
  3804. *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
  3805. esac
  3806. b_c_pre=$php_c_pre
  3807. b_cxx_pre=$php_cxx_pre
  3808. b_c_meta=$php_c_meta
  3809. b_cxx_meta=$php_cxx_meta
  3810. b_c_post=$php_c_post
  3811. b_cxx_post=$php_cxx_post
  3812. b_lo=$php_lo
  3813. old_IFS=$IFS
  3814. for ac_src in fcgi.c swap.c; do
  3815. IFS=.
  3816. set $ac_src
  3817. ac_obj=$1
  3818. IFS=$old_IFS
  3819. PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
  3820. case $ac_src in
  3821. *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  3822. *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  3823. *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
  3824. *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
  3825. esac
  3826. cat >>Makefile.objects<<EOF
  3827. $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
  3828. $ac_comp
  3829. EOF
  3830. done
  3831. ;;
  3832. esac
  3833. EXT_CLI_STATIC="$EXT_CLI_STATIC fcgi"
  3834. fi
  3835. BUILD_DIR="$BUILD_DIR $ext_builddir"
  3836. if test "$ext_builddir" = "."; then
  3837. PHP_PECL_EXTENSION=fcgi
  3838. PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
  3839. fi
  3840. fi
  3841. enable_static=no
  3842. enable_shared=yes
  3843. # Check whether --enable-shared was given.
  3844. if test "${enable_shared+set}" = set; then :
  3845. enableval=$enable_shared; p=${PACKAGE-default}
  3846. case $enableval in
  3847. yes) enable_shared=yes ;;
  3848. no) enable_shared=no ;;
  3849. *)
  3850. enable_shared=no
  3851. # Look at the argument we got. We use all the common list separators.
  3852. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3853. for pkg in $enableval; do
  3854. IFS="$lt_save_ifs"
  3855. if test "X$pkg" = "X$p"; then
  3856. enable_shared=yes
  3857. fi
  3858. done
  3859. IFS="$lt_save_ifs"
  3860. ;;
  3861. esac
  3862. else
  3863. enable_shared=yes
  3864. fi
  3865. # Check whether --enable-static was given.
  3866. if test "${enable_static+set}" = set; then :
  3867. enableval=$enable_static; p=${PACKAGE-default}
  3868. case $enableval in
  3869. yes) enable_static=yes ;;
  3870. no) enable_static=no ;;
  3871. *)
  3872. enable_static=no
  3873. # Look at the argument we got. We use all the common list separators.
  3874. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3875. for pkg in $enableval; do
  3876. IFS="$lt_save_ifs"
  3877. if test "X$pkg" = "X$p"; then
  3878. enable_static=yes
  3879. fi
  3880. done
  3881. IFS="$lt_save_ifs"
  3882. ;;
  3883. esac
  3884. else
  3885. enable_static=yes
  3886. fi
  3887. # Check whether --enable-fast-install was given.
  3888. if test "${enable_fast_install+set}" = set; then :
  3889. enableval=$enable_fast_install; p=${PACKAGE-default}
  3890. case $enableval in
  3891. yes) enable_fast_install=yes ;;
  3892. no) enable_fast_install=no ;;
  3893. *)
  3894. enable_fast_install=no
  3895. # Look at the argument we got. We use all the common list separators.
  3896. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3897. for pkg in $enableval; do
  3898. IFS="$lt_save_ifs"
  3899. if test "X$pkg" = "X$p"; then
  3900. enable_fast_install=yes
  3901. fi
  3902. done
  3903. IFS="$lt_save_ifs"
  3904. ;;
  3905. esac
  3906. else
  3907. enable_fast_install=yes
  3908. fi
  3909. # Check whether --with-gnu-ld was given.
  3910. if test "${with_gnu_ld+set}" = set; then :
  3911. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3912. else
  3913. with_gnu_ld=no
  3914. fi
  3915. ac_prog=ld
  3916. if test "$GCC" = yes; then
  3917. # Check if gcc -print-prog-name=ld gives a path.
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3919. $as_echo_n "checking for ld used by $CC... " >&6; }
  3920. case $host in
  3921. *-*-mingw*)
  3922. # gcc leaves a trailing carriage return which upsets mingw
  3923. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3924. *)
  3925. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3926. esac
  3927. case $ac_prog in
  3928. # Accept absolute paths.
  3929. [\\/]* | ?:[\\/]*)
  3930. re_direlt='/[^/][^/]*/\.\./'
  3931. # Canonicalize the pathname of ld
  3932. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3933. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3934. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3935. done
  3936. test -z "$LD" && LD="$ac_prog"
  3937. ;;
  3938. "")
  3939. # If it fails, then pretend we aren't using GCC.
  3940. ac_prog=ld
  3941. ;;
  3942. *)
  3943. # If it is relative, then search for the first ld in PATH.
  3944. with_gnu_ld=unknown
  3945. ;;
  3946. esac
  3947. elif test "$with_gnu_ld" = yes; then
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3949. $as_echo_n "checking for GNU ld... " >&6; }
  3950. else
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3952. $as_echo_n "checking for non-GNU ld... " >&6; }
  3953. fi
  3954. if ${lt_cv_path_LD+:} false; then :
  3955. $as_echo_n "(cached) " >&6
  3956. else
  3957. if test -z "$LD"; then
  3958. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3959. for ac_dir in $PATH; do
  3960. IFS="$lt_save_ifs"
  3961. test -z "$ac_dir" && ac_dir=.
  3962. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3963. lt_cv_path_LD="$ac_dir/$ac_prog"
  3964. # Check to see if the program is GNU ld. I'd rather use --version,
  3965. # but apparently some variants of GNU ld only accept -v.
  3966. # Break only if it was the GNU/non-GNU ld that we prefer.
  3967. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3968. *GNU* | *'with BFD'*)
  3969. test "$with_gnu_ld" != no && break
  3970. ;;
  3971. *)
  3972. test "$with_gnu_ld" != yes && break
  3973. ;;
  3974. esac
  3975. fi
  3976. done
  3977. IFS="$lt_save_ifs"
  3978. else
  3979. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3980. fi
  3981. fi
  3982. LD="$lt_cv_path_LD"
  3983. if test -n "$LD"; then
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3985. $as_echo "$LD" >&6; }
  3986. else
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3988. $as_echo "no" >&6; }
  3989. fi
  3990. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3992. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3993. if ${lt_cv_prog_gnu_ld+:} false; then :
  3994. $as_echo_n "(cached) " >&6
  3995. else
  3996. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3997. case `$LD -v 2>&1 </dev/null` in
  3998. *GNU* | *'with BFD'*)
  3999. lt_cv_prog_gnu_ld=yes
  4000. ;;
  4001. *)
  4002. lt_cv_prog_gnu_ld=no
  4003. ;;
  4004. esac
  4005. fi
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4007. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4008. with_gnu_ld=$lt_cv_prog_gnu_ld
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4010. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4011. if ${lt_cv_ld_reload_flag+:} false; then :
  4012. $as_echo_n "(cached) " >&6
  4013. else
  4014. lt_cv_ld_reload_flag='-r'
  4015. fi
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4017. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4018. reload_flag=$lt_cv_ld_reload_flag
  4019. case $reload_flag in
  4020. "" | " "*) ;;
  4021. *) reload_flag=" $reload_flag" ;;
  4022. esac
  4023. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4024. case $host_os in
  4025. darwin*)
  4026. if test "$GCC" = yes; then
  4027. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4028. else
  4029. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4030. fi
  4031. ;;
  4032. esac
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
  4034. $as_echo_n "checking for BSD-compatible nm... " >&6; }
  4035. if ${lt_cv_path_NM+:} false; then :
  4036. $as_echo_n "(cached) " >&6
  4037. else
  4038. if test -n "$NM"; then
  4039. # Let the user override the test.
  4040. lt_cv_path_NM="$NM"
  4041. else
  4042. lt_nm_to_check="${ac_tool_prefix}nm"
  4043. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4044. lt_nm_to_check="$lt_nm_to_check nm"
  4045. fi
  4046. for lt_tmp_nm in $lt_nm_to_check; do
  4047. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4048. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4049. IFS="$lt_save_ifs"
  4050. test -z "$ac_dir" && ac_dir=.
  4051. tmp_nm="$ac_dir/$lt_tmp_nm"
  4052. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4053. # Check to see if the nm accepts a BSD-compat flag.
  4054. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4055. # nm: unknown option "B" ignored
  4056. # Tru64's nm complains that /dev/null is an invalid object file
  4057. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4058. */dev/null* | *'Invalid file or object type'*)
  4059. lt_cv_path_NM="$tmp_nm -B"
  4060. break
  4061. ;;
  4062. *)
  4063. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4064. */dev/null*)
  4065. lt_cv_path_NM="$tmp_nm -p"
  4066. break
  4067. ;;
  4068. *)
  4069. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4070. continue # so that we can try to find one that supports BSD flags
  4071. ;;
  4072. esac
  4073. ;;
  4074. esac
  4075. fi
  4076. done
  4077. IFS="$lt_save_ifs"
  4078. done
  4079. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4080. fi
  4081. fi
  4082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4083. $as_echo "$lt_cv_path_NM" >&6; }
  4084. NM="$lt_cv_path_NM"
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4086. $as_echo_n "checking whether ln -s works... " >&6; }
  4087. LN_S=$as_ln_s
  4088. if test "$LN_S" = "ln -s"; then
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4090. $as_echo "yes" >&6; }
  4091. else
  4092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4093. $as_echo "no, using $LN_S" >&6; }
  4094. fi
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4096. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4097. if ${lt_cv_deplibs_check_method+:} false; then :
  4098. $as_echo_n "(cached) " >&6
  4099. else
  4100. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4101. lt_cv_file_magic_test_file=
  4102. lt_cv_deplibs_check_method='unknown'
  4103. # Need to set the preceding variable on all platforms that support
  4104. # interlibrary dependencies.
  4105. # 'none' -- dependencies not supported.
  4106. # `unknown' -- same as none, but documents that we really don't know.
  4107. # 'pass_all' -- all dependencies passed with no checks.
  4108. # 'test_compile' -- check by making test program.
  4109. # 'file_magic [[regex]]' -- check by looking for files in library path
  4110. # which responds to the $file_magic_cmd with a given extended regex.
  4111. # If you have `file' or equivalent on your system and you're not sure
  4112. # whether `pass_all' will *always* work, you probably want this one.
  4113. case $host_os in
  4114. aix[4-9]*)
  4115. lt_cv_deplibs_check_method=pass_all
  4116. ;;
  4117. beos*)
  4118. lt_cv_deplibs_check_method=pass_all
  4119. ;;
  4120. bsdi[45]*)
  4121. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4122. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4123. lt_cv_file_magic_test_file=/shlib/libc.so
  4124. ;;
  4125. cygwin*)
  4126. # func_win32_libid is a shell function defined in ltmain.sh
  4127. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4128. lt_cv_file_magic_cmd='func_win32_libid'
  4129. ;;
  4130. mingw* | pw32*)
  4131. # Base MSYS/MinGW do not provide the 'file' command needed by
  4132. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4133. # unless we find 'file', for example because we are cross-compiling.
  4134. if ( file / ) >/dev/null 2>&1; then
  4135. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4136. lt_cv_file_magic_cmd='func_win32_libid'
  4137. else
  4138. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4139. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4140. fi
  4141. ;;
  4142. darwin* | rhapsody*)
  4143. lt_cv_deplibs_check_method=pass_all
  4144. ;;
  4145. freebsd* | dragonfly*)
  4146. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4147. case $host_cpu in
  4148. i*86 )
  4149. # Not sure whether the presence of OpenBSD here was a mistake.
  4150. # Let's accept both of them until this is cleared up.
  4151. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4152. lt_cv_file_magic_cmd=/usr/bin/file
  4153. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4154. ;;
  4155. esac
  4156. else
  4157. lt_cv_deplibs_check_method=pass_all
  4158. fi
  4159. ;;
  4160. gnu*)
  4161. lt_cv_deplibs_check_method=pass_all
  4162. ;;
  4163. hpux10.20* | hpux11*)
  4164. lt_cv_file_magic_cmd=/usr/bin/file
  4165. case $host_cpu in
  4166. ia64*)
  4167. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4168. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4169. ;;
  4170. hppa*64*)
  4171. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4172. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4173. ;;
  4174. *)
  4175. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4176. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4177. ;;
  4178. esac
  4179. ;;
  4180. interix[3-9]*)
  4181. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4182. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4183. ;;
  4184. irix5* | irix6* | nonstopux*)
  4185. case $LD in
  4186. *-32|*"-32 ") libmagic=32-bit;;
  4187. *-n32|*"-n32 ") libmagic=N32;;
  4188. *-64|*"-64 ") libmagic=64-bit;;
  4189. *) libmagic=never-match;;
  4190. esac
  4191. lt_cv_deplibs_check_method=pass_all
  4192. ;;
  4193. # This must be Linux ELF.
  4194. linux* | k*bsd*-gnu)
  4195. lt_cv_deplibs_check_method=pass_all
  4196. ;;
  4197. netbsd*)
  4198. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4199. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4200. else
  4201. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4202. fi
  4203. ;;
  4204. newos6*)
  4205. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4206. lt_cv_file_magic_cmd=/usr/bin/file
  4207. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4208. ;;
  4209. nto-qnx*)
  4210. lt_cv_deplibs_check_method=unknown
  4211. ;;
  4212. openbsd*)
  4213. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4214. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4215. else
  4216. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4217. fi
  4218. ;;
  4219. osf3* | osf4* | osf5*)
  4220. lt_cv_deplibs_check_method=pass_all
  4221. ;;
  4222. rdos*)
  4223. lt_cv_deplibs_check_method=pass_all
  4224. ;;
  4225. solaris*)
  4226. lt_cv_deplibs_check_method=pass_all
  4227. ;;
  4228. sysv4 | sysv4.3*)
  4229. case $host_vendor in
  4230. motorola)
  4231. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  4232. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4233. ;;
  4234. ncr)
  4235. lt_cv_deplibs_check_method=pass_all
  4236. ;;
  4237. sequent)
  4238. lt_cv_file_magic_cmd='/bin/file'
  4239. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4240. ;;
  4241. sni)
  4242. lt_cv_file_magic_cmd='/bin/file'
  4243. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4244. lt_cv_file_magic_test_file=/lib/libc.so
  4245. ;;
  4246. siemens)
  4247. lt_cv_deplibs_check_method=pass_all
  4248. ;;
  4249. pc)
  4250. lt_cv_deplibs_check_method=pass_all
  4251. ;;
  4252. esac
  4253. ;;
  4254. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4255. lt_cv_deplibs_check_method=pass_all
  4256. ;;
  4257. esac
  4258. fi
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4260. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4261. file_magic_cmd=$lt_cv_file_magic_cmd
  4262. deplibs_check_method=$lt_cv_deplibs_check_method
  4263. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4264. # If no C compiler was specified, use CC.
  4265. LTCC=${LTCC-"$CC"}
  4266. # If no C compiler flags were specified, use CFLAGS.
  4267. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4268. # Allow CC to be a program name with arguments.
  4269. compiler=$CC
  4270. #AC_ARG_ENABLE([libtool-lock],
  4271. #[ --disable-libtool-lock avoid locking (might break parallel builds)])
  4272. #test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4273. # Some flags need to be propagated to the compiler or linker for good
  4274. # libtool support.
  4275. case $host in
  4276. ia64-*-hpux*)
  4277. # Find out which ABI we are using.
  4278. echo 'int i;' > conftest.$ac_ext
  4279. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4280. (eval $ac_compile) 2>&5
  4281. ac_status=$?
  4282. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4283. test $ac_status = 0; }; then
  4284. case `/usr/bin/file conftest.$ac_objext` in
  4285. *ELF-32*)
  4286. HPUX_IA64_MODE="32"
  4287. ;;
  4288. *ELF-64*)
  4289. HPUX_IA64_MODE="64"
  4290. ;;
  4291. esac
  4292. fi
  4293. rm -rf conftest*
  4294. ;;
  4295. *-*-irix6*)
  4296. # Find out which ABI we are using.
  4297. echo '#line 4910 "configure"' > conftest.$ac_ext
  4298. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4299. (eval $ac_compile) 2>&5
  4300. ac_status=$?
  4301. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4302. test $ac_status = 0; }; then
  4303. if test "$lt_cv_prog_gnu_ld" = yes; then
  4304. case `/usr/bin/file conftest.$ac_objext` in
  4305. *32-bit*)
  4306. LD="${LD-ld} -melf32bsmip"
  4307. ;;
  4308. *N32*)
  4309. LD="${LD-ld} -melf32bmipn32"
  4310. ;;
  4311. *64-bit*)
  4312. LD="${LD-ld} -melf64bmip"
  4313. ;;
  4314. esac
  4315. else
  4316. case `/usr/bin/file conftest.$ac_objext` in
  4317. *32-bit*)
  4318. LD="${LD-ld} -32"
  4319. ;;
  4320. *N32*)
  4321. LD="${LD-ld} -n32"
  4322. ;;
  4323. *64-bit*)
  4324. LD="${LD-ld} -64"
  4325. ;;
  4326. esac
  4327. fi
  4328. fi
  4329. rm -rf conftest*
  4330. ;;
  4331. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  4332. s390*-*linux*|sparc*-*linux*)
  4333. # Find out which ABI we are using.
  4334. echo 'int i;' > conftest.$ac_ext
  4335. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4336. (eval $ac_compile) 2>&5
  4337. ac_status=$?
  4338. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4339. test $ac_status = 0; }; then
  4340. case `/usr/bin/file conftest.o` in
  4341. *32-bit*)
  4342. case $host in
  4343. x86_64-*kfreebsd*-gnu)
  4344. LD="${LD-ld} -m elf_i386_fbsd"
  4345. ;;
  4346. x86_64-*linux*)
  4347. LD="${LD-ld} -m elf_i386"
  4348. ;;
  4349. powerpc64le-*linux*)
  4350. LD="${LD-ld} -m elf32lppclinux"
  4351. ;;
  4352. powerpc64-*linux*)
  4353. LD="${LD-ld} -m elf32ppclinux"
  4354. ;;
  4355. s390x-*linux*)
  4356. LD="${LD-ld} -m elf_s390"
  4357. ;;
  4358. sparc64-*linux*)
  4359. LD="${LD-ld} -m elf32_sparc"
  4360. ;;
  4361. esac
  4362. ;;
  4363. *64-bit*)
  4364. case $host in
  4365. x86_64-*kfreebsd*-gnu)
  4366. LD="${LD-ld} -m elf_x86_64_fbsd"
  4367. ;;
  4368. x86_64-*linux*)
  4369. LD="${LD-ld} -m elf_x86_64"
  4370. ;;
  4371. powerpcle-*linux*)
  4372. LD="${LD-ld} -m elf64lppc"
  4373. ;;
  4374. powerpc-*linux*)
  4375. LD="${LD-ld} -m elf64ppc"
  4376. ;;
  4377. s390*-*linux*)
  4378. LD="${LD-ld} -m elf64_s390"
  4379. ;;
  4380. sparc*-*linux*)
  4381. LD="${LD-ld} -m elf64_sparc"
  4382. ;;
  4383. esac
  4384. ;;
  4385. esac
  4386. fi
  4387. rm -rf conftest*
  4388. ;;
  4389. *-*-sco3.2v5*)
  4390. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4391. SAVE_CFLAGS="$CFLAGS"
  4392. CFLAGS="$CFLAGS -belf"
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  4394. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  4395. if ${lt_cv_cc_needs_belf+:} false; then :
  4396. $as_echo_n "(cached) " >&6
  4397. else
  4398. ac_ext=c
  4399. ac_cpp='$CPP $CPPFLAGS'
  4400. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4401. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4402. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4404. /* end confdefs.h. */
  4405. int
  4406. main ()
  4407. {
  4408. ;
  4409. return 0;
  4410. }
  4411. _ACEOF
  4412. if ac_fn_c_try_link "$LINENO"; then :
  4413. lt_cv_cc_needs_belf=yes
  4414. else
  4415. lt_cv_cc_needs_belf=no
  4416. fi
  4417. rm -f core conftest.err conftest.$ac_objext \
  4418. conftest$ac_exeext conftest.$ac_ext
  4419. ac_ext=c
  4420. ac_cpp='$CPP $CPPFLAGS'
  4421. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4422. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4423. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4424. fi
  4425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  4426. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  4427. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4428. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4429. CFLAGS="$SAVE_CFLAGS"
  4430. fi
  4431. ;;
  4432. sparc*-*solaris*)
  4433. # Find out which ABI we are using.
  4434. echo 'int i;' > conftest.$ac_ext
  4435. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4436. (eval $ac_compile) 2>&5
  4437. ac_status=$?
  4438. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4439. test $ac_status = 0; }; then
  4440. case `/usr/bin/file conftest.o` in
  4441. *64-bit*)
  4442. case $lt_cv_prog_gnu_ld in
  4443. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4444. *)
  4445. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  4446. LD="${LD-ld} -64"
  4447. fi
  4448. ;;
  4449. esac
  4450. ;;
  4451. esac
  4452. fi
  4453. rm -rf conftest*
  4454. ;;
  4455. esac
  4456. need_locks="$enable_libtool_lock"
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4458. $as_echo_n "checking for ANSI C header files... " >&6; }
  4459. if ${ac_cv_header_stdc+:} false; then :
  4460. $as_echo_n "(cached) " >&6
  4461. else
  4462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4463. /* end confdefs.h. */
  4464. #include <stdlib.h>
  4465. #include <stdarg.h>
  4466. #include <string.h>
  4467. #include <float.h>
  4468. int
  4469. main ()
  4470. {
  4471. ;
  4472. return 0;
  4473. }
  4474. _ACEOF
  4475. if ac_fn_c_try_compile "$LINENO"; then :
  4476. ac_cv_header_stdc=yes
  4477. else
  4478. ac_cv_header_stdc=no
  4479. fi
  4480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4481. if test $ac_cv_header_stdc = yes; then
  4482. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4484. /* end confdefs.h. */
  4485. #include <string.h>
  4486. _ACEOF
  4487. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4488. $EGREP "memchr" >/dev/null 2>&1; then :
  4489. else
  4490. ac_cv_header_stdc=no
  4491. fi
  4492. rm -f conftest*
  4493. fi
  4494. if test $ac_cv_header_stdc = yes; then
  4495. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4497. /* end confdefs.h. */
  4498. #include <stdlib.h>
  4499. _ACEOF
  4500. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4501. $EGREP "free" >/dev/null 2>&1; then :
  4502. else
  4503. ac_cv_header_stdc=no
  4504. fi
  4505. rm -f conftest*
  4506. fi
  4507. if test $ac_cv_header_stdc = yes; then
  4508. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4509. if test "$cross_compiling" = yes; then :
  4510. :
  4511. else
  4512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4513. /* end confdefs.h. */
  4514. #include <ctype.h>
  4515. #include <stdlib.h>
  4516. #if ((' ' & 0x0FF) == 0x020)
  4517. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4518. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4519. #else
  4520. # define ISLOWER(c) \
  4521. (('a' <= (c) && (c) <= 'i') \
  4522. || ('j' <= (c) && (c) <= 'r') \
  4523. || ('s' <= (c) && (c) <= 'z'))
  4524. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4525. #endif
  4526. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4527. int
  4528. main ()
  4529. {
  4530. int i;
  4531. for (i = 0; i < 256; i++)
  4532. if (XOR (islower (i), ISLOWER (i))
  4533. || toupper (i) != TOUPPER (i))
  4534. return 2;
  4535. return 0;
  4536. }
  4537. _ACEOF
  4538. if ac_fn_c_try_run "$LINENO"; then :
  4539. else
  4540. ac_cv_header_stdc=no
  4541. fi
  4542. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4543. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4544. fi
  4545. fi
  4546. fi
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4548. $as_echo "$ac_cv_header_stdc" >&6; }
  4549. if test $ac_cv_header_stdc = yes; then
  4550. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4551. fi
  4552. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4553. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4554. inttypes.h stdint.h unistd.h
  4555. do :
  4556. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4557. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4558. "
  4559. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4560. cat >>confdefs.h <<_ACEOF
  4561. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4562. _ACEOF
  4563. fi
  4564. done
  4565. for ac_header in dlfcn.h
  4566. do :
  4567. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  4568. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  4569. cat >>confdefs.h <<_ACEOF
  4570. #define HAVE_DLFCN_H 1
  4571. _ACEOF
  4572. fi
  4573. done
  4574. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4575. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4576. (test "X$CXX" != "Xg++"))) ; then
  4577. php_prog_cxxcpp=disabled
  4578. fi
  4579. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  4580. # find the maximum length of command line arguments
  4581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4582. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4583. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4584. $as_echo_n "(cached) " >&6
  4585. else
  4586. i=0
  4587. teststring="ABCD"
  4588. case $build_os in
  4589. msdosdjgpp*)
  4590. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4591. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4592. # during glob expansion). Even if it were fixed, the result of this
  4593. # check would be larger than it should be.
  4594. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4595. ;;
  4596. gnu*)
  4597. # Under GNU Hurd, this test is not required because there is
  4598. # no limit to the length of command line arguments.
  4599. # Libtool will interpret -1 as no limit whatsoever
  4600. lt_cv_sys_max_cmd_len=-1;
  4601. ;;
  4602. cygwin* | mingw*)
  4603. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4604. # about 5 minutes as the teststring grows exponentially.
  4605. # Worse, since 9x/ME are not pre-emptively multitasking,
  4606. # you end up with a "frozen" computer, even though with patience
  4607. # the test eventually succeeds (with a max line length of 256k).
  4608. # Instead, let's just punt: use the minimum linelength reported by
  4609. # all of the supported platforms: 8192 (on NT/2K/XP).
  4610. lt_cv_sys_max_cmd_len=8192;
  4611. ;;
  4612. amigaos*)
  4613. # On AmigaOS with pdksh, this test takes hours, literally.
  4614. # So we just punt and use a minimum line length of 8192.
  4615. lt_cv_sys_max_cmd_len=8192;
  4616. ;;
  4617. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4618. # This has been around since 386BSD, at least. Likely further.
  4619. if test -x /sbin/sysctl; then
  4620. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4621. elif test -x /usr/sbin/sysctl; then
  4622. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4623. else
  4624. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4625. fi
  4626. # And add a safety zone
  4627. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4628. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4629. ;;
  4630. interix*)
  4631. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4632. lt_cv_sys_max_cmd_len=196608
  4633. ;;
  4634. osf*)
  4635. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4636. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4637. # nice to cause kernel panics so lets avoid the loop below.
  4638. # First set a reasonable default.
  4639. lt_cv_sys_max_cmd_len=16384
  4640. #
  4641. if test -x /sbin/sysconfig; then
  4642. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4643. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4644. esac
  4645. fi
  4646. ;;
  4647. sco3.2v5*)
  4648. lt_cv_sys_max_cmd_len=102400
  4649. ;;
  4650. sysv5* | sco5v6* | sysv4.2uw2*)
  4651. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4652. if test -n "$kargmax"; then
  4653. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4654. else
  4655. lt_cv_sys_max_cmd_len=32768
  4656. fi
  4657. ;;
  4658. *)
  4659. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4660. if test -n "$lt_cv_sys_max_cmd_len"; then
  4661. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4662. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4663. else
  4664. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4665. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  4666. = "XX$teststring") >/dev/null 2>&1 &&
  4667. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  4668. lt_cv_sys_max_cmd_len=$new_result &&
  4669. test $i != 17 # 1/2 MB should be enough
  4670. do
  4671. i=`expr $i + 1`
  4672. teststring=$teststring$teststring
  4673. done
  4674. teststring=
  4675. # Add a significant safety factor because C++ compilers can tack on massive
  4676. # amounts of additional arguments before passing them to the linker.
  4677. # It appears as though 1/2 is a usable value.
  4678. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4679. fi
  4680. ;;
  4681. esac
  4682. fi
  4683. if test -n $lt_cv_sys_max_cmd_len ; then
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4685. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4686. else
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4688. $as_echo "none" >&6; }
  4689. fi
  4690. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4692. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4693. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4694. $as_echo_n "(cached) " >&6
  4695. else
  4696. # These are sane defaults that work on at least a few old systems.
  4697. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4698. # Character class describing NM global symbol codes.
  4699. symcode='[BCDEGRST]'
  4700. # Regexp to match symbols that can be accessed directly from C.
  4701. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4702. # Transform an extracted symbol line into a proper C declaration
  4703. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  4704. # Transform an extracted symbol line into symbol name and symbol address
  4705. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4706. # Define system-specific variables.
  4707. case $host_os in
  4708. aix*)
  4709. symcode='[BCDT]'
  4710. ;;
  4711. cygwin* | mingw* | pw32*)
  4712. symcode='[ABCDGISTW]'
  4713. ;;
  4714. hpux*) # Its linker distinguishes data from code symbols
  4715. if test "$host_cpu" = ia64; then
  4716. symcode='[ABCDEGRST]'
  4717. fi
  4718. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4719. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4720. ;;
  4721. linux* | k*bsd*-gnu)
  4722. if test "$host_cpu" = ia64; then
  4723. symcode='[ABCDGIRSTW]'
  4724. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4725. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  4726. fi
  4727. ;;
  4728. irix* | nonstopux*)
  4729. symcode='[BCDEGRST]'
  4730. ;;
  4731. osf*)
  4732. symcode='[BCDEGQRST]'
  4733. ;;
  4734. solaris*)
  4735. symcode='[BDRT]'
  4736. ;;
  4737. sco3.2v5*)
  4738. symcode='[DT]'
  4739. ;;
  4740. sysv4.2uw2*)
  4741. symcode='[DT]'
  4742. ;;
  4743. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4744. symcode='[ABDT]'
  4745. ;;
  4746. sysv4)
  4747. symcode='[DFNSTU]'
  4748. ;;
  4749. esac
  4750. # Handle CRLF in mingw tool chain
  4751. opt_cr=
  4752. case $build_os in
  4753. mingw*)
  4754. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4755. ;;
  4756. esac
  4757. # If we're using GNU nm, then use its standard symbol codes.
  4758. case `$NM -V 2>&1` in
  4759. *GNU* | *'with BFD'*)
  4760. symcode='[ABCDGIRSTW]' ;;
  4761. esac
  4762. # Try without a prefix undercore, then with it.
  4763. for ac_symprfx in "" "_"; do
  4764. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4765. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4766. # Write the raw and C identifiers.
  4767. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4768. # Check to see that the pipe works correctly.
  4769. pipe_works=no
  4770. rm -f conftest*
  4771. cat > conftest.$ac_ext <<EOF
  4772. #ifdef __cplusplus
  4773. extern "C" {
  4774. #endif
  4775. char nm_test_var;
  4776. void nm_test_func(){}
  4777. #ifdef __cplusplus
  4778. }
  4779. #endif
  4780. int main(){nm_test_var='a';nm_test_func();return(0);}
  4781. EOF
  4782. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4783. (eval $ac_compile) 2>&5
  4784. ac_status=$?
  4785. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4786. test $ac_status = 0; }; then
  4787. # Now try to grab the symbols.
  4788. nlist=conftest.nm
  4789. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  4790. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4791. ac_status=$?
  4792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4793. test $ac_status = 0; } && test -s "$nlist"; then
  4794. # Try sorting and uniquifying the output.
  4795. if sort "$nlist" | uniq > "$nlist"T; then
  4796. mv -f "$nlist"T "$nlist"
  4797. else
  4798. rm -f "$nlist"T
  4799. fi
  4800. # Make sure that we snagged all the symbols we need.
  4801. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  4802. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  4803. cat <<EOF > conftest.$ac_ext
  4804. #ifdef __cplusplus
  4805. extern "C" {
  4806. #endif
  4807. EOF
  4808. # Now generate the symbol file.
  4809. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  4810. cat <<EOF >> conftest.$ac_ext
  4811. #if defined (__STDC__) && __STDC__
  4812. # define lt_ptr_t void *
  4813. #else
  4814. # define lt_ptr_t char *
  4815. # define const
  4816. #endif
  4817. /* The mapping between symbol names and symbols. */
  4818. const struct {
  4819. const char *name;
  4820. lt_ptr_t address;
  4821. }
  4822. lt_preloaded_symbols[] =
  4823. {
  4824. EOF
  4825. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  4826. cat <<\EOF >> conftest.$ac_ext
  4827. {0, (lt_ptr_t) 0}
  4828. };
  4829. #ifdef __cplusplus
  4830. }
  4831. #endif
  4832. EOF
  4833. # Now try linking the two files.
  4834. mv conftest.$ac_objext conftstm.$ac_objext
  4835. lt_save_LIBS="$LIBS"
  4836. lt_save_CFLAGS="$CFLAGS"
  4837. LIBS="conftstm.$ac_objext"
  4838. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4839. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  4840. (eval $ac_link) 2>&5
  4841. ac_status=$?
  4842. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4843. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  4844. pipe_works=yes
  4845. fi
  4846. LIBS="$lt_save_LIBS"
  4847. CFLAGS="$lt_save_CFLAGS"
  4848. else
  4849. echo "cannot find nm_test_func in $nlist" >&5
  4850. fi
  4851. else
  4852. echo "cannot find nm_test_var in $nlist" >&5
  4853. fi
  4854. else
  4855. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4856. fi
  4857. else
  4858. echo "$progname: failed program was:" >&5
  4859. cat conftest.$ac_ext >&5
  4860. fi
  4861. rm -rf conftest* conftst*
  4862. # Do not use the global_symbol_pipe unless it works.
  4863. if test "$pipe_works" = yes; then
  4864. break
  4865. else
  4866. lt_cv_sys_global_symbol_pipe=
  4867. fi
  4868. done
  4869. fi
  4870. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4871. lt_cv_sys_global_symbol_to_cdecl=
  4872. fi
  4873. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  4875. $as_echo "failed" >&6; }
  4876. else
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  4878. $as_echo "ok" >&6; }
  4879. fi
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  4881. $as_echo_n "checking for objdir... " >&6; }
  4882. if ${lt_cv_objdir+:} false; then :
  4883. $as_echo_n "(cached) " >&6
  4884. else
  4885. rm -f .libs 2>/dev/null
  4886. mkdir .libs 2>/dev/null
  4887. if test -d .libs; then
  4888. lt_cv_objdir=.libs
  4889. else
  4890. # MS-DOS does not allow filenames that begin with a dot.
  4891. lt_cv_objdir=_libs
  4892. fi
  4893. rmdir .libs 2>/dev/null
  4894. fi
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  4896. $as_echo "$lt_cv_objdir" >&6; }
  4897. objdir=$lt_cv_objdir
  4898. case $host_os in
  4899. aix3*)
  4900. # AIX sometimes has problems with the GCC collect2 program. For some
  4901. # reason, if we set the COLLECT_NAMES environment variable, the problems
  4902. # vanish in a puff of smoke.
  4903. if test "X${COLLECT_NAMES+set}" != Xset; then
  4904. COLLECT_NAMES=
  4905. export COLLECT_NAMES
  4906. fi
  4907. ;;
  4908. esac
  4909. # Sed substitution that helps us do robust quoting. It backslashifies
  4910. # metacharacters that are still active within double-quoted strings.
  4911. Xsed='sed -e 1s/^X//'
  4912. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  4913. # Same as above, but do not quote variable references.
  4914. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  4915. # Sed substitution to delay expansion of an escaped shell variable in a
  4916. # double_quote_subst'ed string.
  4917. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4918. # Sed substitution to avoid accidental globbing in evaled expressions
  4919. no_glob_subst='s/\*/\\\*/g'
  4920. # Constants:
  4921. rm="rm -f"
  4922. # Global variables:
  4923. default_ofile=libtool
  4924. can_build_shared=yes
  4925. # All known linkers require a `.a' archive for static linking (except MSVC,
  4926. # which needs '.lib').
  4927. libext=a
  4928. ltmain="$ac_aux_dir/ltmain.sh"
  4929. ofile="$default_ofile"
  4930. with_gnu_ld="$lt_cv_prog_gnu_ld"
  4931. if test -n "$ac_tool_prefix"; then
  4932. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4933. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4935. $as_echo_n "checking for $ac_word... " >&6; }
  4936. if ${ac_cv_prog_AR+:} false; then :
  4937. $as_echo_n "(cached) " >&6
  4938. else
  4939. if test -n "$AR"; then
  4940. ac_cv_prog_AR="$AR" # Let the user override the test.
  4941. else
  4942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4943. for as_dir in $PATH
  4944. do
  4945. IFS=$as_save_IFS
  4946. test -z "$as_dir" && as_dir=.
  4947. for ac_exec_ext in '' $ac_executable_extensions; do
  4948. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4949. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4950. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4951. break 2
  4952. fi
  4953. done
  4954. done
  4955. IFS=$as_save_IFS
  4956. fi
  4957. fi
  4958. AR=$ac_cv_prog_AR
  4959. if test -n "$AR"; then
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4961. $as_echo "$AR" >&6; }
  4962. else
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4964. $as_echo "no" >&6; }
  4965. fi
  4966. fi
  4967. if test -z "$ac_cv_prog_AR"; then
  4968. ac_ct_AR=$AR
  4969. # Extract the first word of "ar", so it can be a program name with args.
  4970. set dummy ar; ac_word=$2
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4972. $as_echo_n "checking for $ac_word... " >&6; }
  4973. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4974. $as_echo_n "(cached) " >&6
  4975. else
  4976. if test -n "$ac_ct_AR"; then
  4977. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4978. else
  4979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4980. for as_dir in $PATH
  4981. do
  4982. IFS=$as_save_IFS
  4983. test -z "$as_dir" && as_dir=.
  4984. for ac_exec_ext in '' $ac_executable_extensions; do
  4985. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4986. ac_cv_prog_ac_ct_AR="ar"
  4987. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4988. break 2
  4989. fi
  4990. done
  4991. done
  4992. IFS=$as_save_IFS
  4993. fi
  4994. fi
  4995. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4996. if test -n "$ac_ct_AR"; then
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4998. $as_echo "$ac_ct_AR" >&6; }
  4999. else
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5001. $as_echo "no" >&6; }
  5002. fi
  5003. if test "x$ac_ct_AR" = x; then
  5004. AR="false"
  5005. else
  5006. case $cross_compiling:$ac_tool_warned in
  5007. yes:)
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5009. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5010. ac_tool_warned=yes ;;
  5011. esac
  5012. AR=$ac_ct_AR
  5013. fi
  5014. else
  5015. AR="$ac_cv_prog_AR"
  5016. fi
  5017. if test -n "$ac_tool_prefix"; then
  5018. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5019. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5021. $as_echo_n "checking for $ac_word... " >&6; }
  5022. if ${ac_cv_prog_RANLIB+:} false; then :
  5023. $as_echo_n "(cached) " >&6
  5024. else
  5025. if test -n "$RANLIB"; then
  5026. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5027. else
  5028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5029. for as_dir in $PATH
  5030. do
  5031. IFS=$as_save_IFS
  5032. test -z "$as_dir" && as_dir=.
  5033. for ac_exec_ext in '' $ac_executable_extensions; do
  5034. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5035. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5036. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5037. break 2
  5038. fi
  5039. done
  5040. done
  5041. IFS=$as_save_IFS
  5042. fi
  5043. fi
  5044. RANLIB=$ac_cv_prog_RANLIB
  5045. if test -n "$RANLIB"; then
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5047. $as_echo "$RANLIB" >&6; }
  5048. else
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5050. $as_echo "no" >&6; }
  5051. fi
  5052. fi
  5053. if test -z "$ac_cv_prog_RANLIB"; then
  5054. ac_ct_RANLIB=$RANLIB
  5055. # Extract the first word of "ranlib", so it can be a program name with args.
  5056. set dummy ranlib; ac_word=$2
  5057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5058. $as_echo_n "checking for $ac_word... " >&6; }
  5059. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5060. $as_echo_n "(cached) " >&6
  5061. else
  5062. if test -n "$ac_ct_RANLIB"; then
  5063. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5064. else
  5065. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5066. for as_dir in $PATH
  5067. do
  5068. IFS=$as_save_IFS
  5069. test -z "$as_dir" && as_dir=.
  5070. for ac_exec_ext in '' $ac_executable_extensions; do
  5071. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5072. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5073. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5074. break 2
  5075. fi
  5076. done
  5077. done
  5078. IFS=$as_save_IFS
  5079. fi
  5080. fi
  5081. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5082. if test -n "$ac_ct_RANLIB"; then
  5083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5084. $as_echo "$ac_ct_RANLIB" >&6; }
  5085. else
  5086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5087. $as_echo "no" >&6; }
  5088. fi
  5089. if test "x$ac_ct_RANLIB" = x; then
  5090. RANLIB=":"
  5091. else
  5092. case $cross_compiling:$ac_tool_warned in
  5093. yes:)
  5094. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5095. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5096. ac_tool_warned=yes ;;
  5097. esac
  5098. RANLIB=$ac_ct_RANLIB
  5099. fi
  5100. else
  5101. RANLIB="$ac_cv_prog_RANLIB"
  5102. fi
  5103. if test -n "$ac_tool_prefix"; then
  5104. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5105. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5107. $as_echo_n "checking for $ac_word... " >&6; }
  5108. if ${ac_cv_prog_STRIP+:} false; then :
  5109. $as_echo_n "(cached) " >&6
  5110. else
  5111. if test -n "$STRIP"; then
  5112. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5113. else
  5114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5115. for as_dir in $PATH
  5116. do
  5117. IFS=$as_save_IFS
  5118. test -z "$as_dir" && as_dir=.
  5119. for ac_exec_ext in '' $ac_executable_extensions; do
  5120. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5121. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5122. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5123. break 2
  5124. fi
  5125. done
  5126. done
  5127. IFS=$as_save_IFS
  5128. fi
  5129. fi
  5130. STRIP=$ac_cv_prog_STRIP
  5131. if test -n "$STRIP"; then
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5133. $as_echo "$STRIP" >&6; }
  5134. else
  5135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5136. $as_echo "no" >&6; }
  5137. fi
  5138. fi
  5139. if test -z "$ac_cv_prog_STRIP"; then
  5140. ac_ct_STRIP=$STRIP
  5141. # Extract the first word of "strip", so it can be a program name with args.
  5142. set dummy strip; ac_word=$2
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5144. $as_echo_n "checking for $ac_word... " >&6; }
  5145. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5146. $as_echo_n "(cached) " >&6
  5147. else
  5148. if test -n "$ac_ct_STRIP"; then
  5149. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5150. else
  5151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5152. for as_dir in $PATH
  5153. do
  5154. IFS=$as_save_IFS
  5155. test -z "$as_dir" && as_dir=.
  5156. for ac_exec_ext in '' $ac_executable_extensions; do
  5157. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5158. ac_cv_prog_ac_ct_STRIP="strip"
  5159. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5160. break 2
  5161. fi
  5162. done
  5163. done
  5164. IFS=$as_save_IFS
  5165. fi
  5166. fi
  5167. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5168. if test -n "$ac_ct_STRIP"; then
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5170. $as_echo "$ac_ct_STRIP" >&6; }
  5171. else
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5173. $as_echo "no" >&6; }
  5174. fi
  5175. if test "x$ac_ct_STRIP" = x; then
  5176. STRIP=":"
  5177. else
  5178. case $cross_compiling:$ac_tool_warned in
  5179. yes:)
  5180. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5181. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5182. ac_tool_warned=yes ;;
  5183. esac
  5184. STRIP=$ac_ct_STRIP
  5185. fi
  5186. else
  5187. STRIP="$ac_cv_prog_STRIP"
  5188. fi
  5189. old_CC="$CC"
  5190. old_CFLAGS="$CFLAGS"
  5191. # Set sane defaults for various variables
  5192. test -z "$AR" && AR=ar
  5193. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5194. test -z "$AS" && AS=as
  5195. test -z "$CC" && CC=cc
  5196. test -z "$LTCC" && LTCC=$CC
  5197. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  5198. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5199. test -z "$LD" && LD=ld
  5200. test -z "$LN_S" && LN_S="ln -s"
  5201. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5202. test -z "$NM" && NM=nm
  5203. test -z "$SED" && SED=sed
  5204. test -z "$OBJDUMP" && OBJDUMP=objdump
  5205. test -z "$RANLIB" && RANLIB=:
  5206. test -z "$STRIP" && STRIP=:
  5207. test -z "$ac_objext" && ac_objext=o
  5208. # Determine commands to create old-style static archives.
  5209. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5210. old_postinstall_cmds='chmod 644 $oldlib'
  5211. old_postuninstall_cmds=
  5212. if test -n "$RANLIB"; then
  5213. case $host_os in
  5214. openbsd*)
  5215. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5216. ;;
  5217. *)
  5218. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5219. ;;
  5220. esac
  5221. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5222. fi
  5223. for cc_temp in $compiler""; do
  5224. case $cc_temp in
  5225. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5226. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5227. \-*) ;;
  5228. *) break;;
  5229. esac
  5230. done
  5231. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5232. # Only perform the check for file, if the check method requires it
  5233. case $deplibs_check_method in
  5234. file_magic*)
  5235. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  5237. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  5238. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  5239. $as_echo_n "(cached) " >&6
  5240. else
  5241. case $MAGIC_CMD in
  5242. [\\/*] | ?:[\\/]*)
  5243. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5244. ;;
  5245. *)
  5246. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5247. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5248. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5249. for ac_dir in $ac_dummy; do
  5250. IFS="$lt_save_ifs"
  5251. test -z "$ac_dir" && ac_dir=.
  5252. if test -f $ac_dir/${ac_tool_prefix}file; then
  5253. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5254. if test -n "$file_magic_test_file"; then
  5255. case $deplibs_check_method in
  5256. "file_magic "*)
  5257. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5258. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5259. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5260. $EGREP "$file_magic_regex" > /dev/null; then
  5261. :
  5262. else
  5263. cat <<EOF 1>&2
  5264. *** Warning: the command libtool uses to detect shared libraries,
  5265. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5266. *** The result is that libtool may fail to recognize shared libraries
  5267. *** as such. This will affect the creation of libtool libraries that
  5268. *** depend on shared libraries, but programs linked with such libtool
  5269. *** libraries will work regardless of this problem. Nevertheless, you
  5270. *** may want to report the problem to your system manager and/or to
  5271. *** bug-libtool@gnu.org
  5272. EOF
  5273. fi ;;
  5274. esac
  5275. fi
  5276. break
  5277. fi
  5278. done
  5279. IFS="$lt_save_ifs"
  5280. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5281. ;;
  5282. esac
  5283. fi
  5284. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5285. if test -n "$MAGIC_CMD"; then
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  5287. $as_echo "$MAGIC_CMD" >&6; }
  5288. else
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5290. $as_echo "no" >&6; }
  5291. fi
  5292. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5293. if test -n "$ac_tool_prefix"; then
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  5295. $as_echo_n "checking for file... " >&6; }
  5296. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  5297. $as_echo_n "(cached) " >&6
  5298. else
  5299. case $MAGIC_CMD in
  5300. [\\/*] | ?:[\\/]*)
  5301. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5302. ;;
  5303. *)
  5304. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5305. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5306. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5307. for ac_dir in $ac_dummy; do
  5308. IFS="$lt_save_ifs"
  5309. test -z "$ac_dir" && ac_dir=.
  5310. if test -f $ac_dir/file; then
  5311. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5312. if test -n "$file_magic_test_file"; then
  5313. case $deplibs_check_method in
  5314. "file_magic "*)
  5315. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5316. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5317. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5318. $EGREP "$file_magic_regex" > /dev/null; then
  5319. :
  5320. else
  5321. cat <<EOF 1>&2
  5322. *** Warning: the command libtool uses to detect shared libraries,
  5323. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5324. *** The result is that libtool may fail to recognize shared libraries
  5325. *** as such. This will affect the creation of libtool libraries that
  5326. *** depend on shared libraries, but programs linked with such libtool
  5327. *** libraries will work regardless of this problem. Nevertheless, you
  5328. *** may want to report the problem to your system manager and/or to
  5329. *** bug-libtool@gnu.org
  5330. EOF
  5331. fi ;;
  5332. esac
  5333. fi
  5334. break
  5335. fi
  5336. done
  5337. IFS="$lt_save_ifs"
  5338. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5339. ;;
  5340. esac
  5341. fi
  5342. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5343. if test -n "$MAGIC_CMD"; then
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  5345. $as_echo "$MAGIC_CMD" >&6; }
  5346. else
  5347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5348. $as_echo "no" >&6; }
  5349. fi
  5350. else
  5351. MAGIC_CMD=:
  5352. fi
  5353. fi
  5354. fi
  5355. ;;
  5356. esac
  5357. case $host_os in
  5358. rhapsody* | darwin*)
  5359. if test -n "$ac_tool_prefix"; then
  5360. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5361. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5363. $as_echo_n "checking for $ac_word... " >&6; }
  5364. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5365. $as_echo_n "(cached) " >&6
  5366. else
  5367. if test -n "$DSYMUTIL"; then
  5368. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5369. else
  5370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5371. for as_dir in $PATH
  5372. do
  5373. IFS=$as_save_IFS
  5374. test -z "$as_dir" && as_dir=.
  5375. for ac_exec_ext in '' $ac_executable_extensions; do
  5376. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5377. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5379. break 2
  5380. fi
  5381. done
  5382. done
  5383. IFS=$as_save_IFS
  5384. fi
  5385. fi
  5386. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5387. if test -n "$DSYMUTIL"; then
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5389. $as_echo "$DSYMUTIL" >&6; }
  5390. else
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5392. $as_echo "no" >&6; }
  5393. fi
  5394. fi
  5395. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5396. ac_ct_DSYMUTIL=$DSYMUTIL
  5397. # Extract the first word of "dsymutil", so it can be a program name with args.
  5398. set dummy dsymutil; ac_word=$2
  5399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5400. $as_echo_n "checking for $ac_word... " >&6; }
  5401. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5402. $as_echo_n "(cached) " >&6
  5403. else
  5404. if test -n "$ac_ct_DSYMUTIL"; then
  5405. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5406. else
  5407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5408. for as_dir in $PATH
  5409. do
  5410. IFS=$as_save_IFS
  5411. test -z "$as_dir" && as_dir=.
  5412. for ac_exec_ext in '' $ac_executable_extensions; do
  5413. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5414. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5415. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5416. break 2
  5417. fi
  5418. done
  5419. done
  5420. IFS=$as_save_IFS
  5421. fi
  5422. fi
  5423. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5424. if test -n "$ac_ct_DSYMUTIL"; then
  5425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5426. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5427. else
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5429. $as_echo "no" >&6; }
  5430. fi
  5431. if test "x$ac_ct_DSYMUTIL" = x; then
  5432. DSYMUTIL=":"
  5433. else
  5434. case $cross_compiling:$ac_tool_warned in
  5435. yes:)
  5436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5437. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5438. ac_tool_warned=yes ;;
  5439. esac
  5440. DSYMUTIL=$ac_ct_DSYMUTIL
  5441. fi
  5442. else
  5443. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5444. fi
  5445. if test -n "$ac_tool_prefix"; then
  5446. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5447. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5449. $as_echo_n "checking for $ac_word... " >&6; }
  5450. if ${ac_cv_prog_NMEDIT+:} false; then :
  5451. $as_echo_n "(cached) " >&6
  5452. else
  5453. if test -n "$NMEDIT"; then
  5454. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5455. else
  5456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5457. for as_dir in $PATH
  5458. do
  5459. IFS=$as_save_IFS
  5460. test -z "$as_dir" && as_dir=.
  5461. for ac_exec_ext in '' $ac_executable_extensions; do
  5462. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5463. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5464. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5465. break 2
  5466. fi
  5467. done
  5468. done
  5469. IFS=$as_save_IFS
  5470. fi
  5471. fi
  5472. NMEDIT=$ac_cv_prog_NMEDIT
  5473. if test -n "$NMEDIT"; then
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5475. $as_echo "$NMEDIT" >&6; }
  5476. else
  5477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5478. $as_echo "no" >&6; }
  5479. fi
  5480. fi
  5481. if test -z "$ac_cv_prog_NMEDIT"; then
  5482. ac_ct_NMEDIT=$NMEDIT
  5483. # Extract the first word of "nmedit", so it can be a program name with args.
  5484. set dummy nmedit; ac_word=$2
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5486. $as_echo_n "checking for $ac_word... " >&6; }
  5487. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5488. $as_echo_n "(cached) " >&6
  5489. else
  5490. if test -n "$ac_ct_NMEDIT"; then
  5491. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5492. else
  5493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5494. for as_dir in $PATH
  5495. do
  5496. IFS=$as_save_IFS
  5497. test -z "$as_dir" && as_dir=.
  5498. for ac_exec_ext in '' $ac_executable_extensions; do
  5499. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5500. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5501. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5502. break 2
  5503. fi
  5504. done
  5505. done
  5506. IFS=$as_save_IFS
  5507. fi
  5508. fi
  5509. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5510. if test -n "$ac_ct_NMEDIT"; then
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5512. $as_echo "$ac_ct_NMEDIT" >&6; }
  5513. else
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5515. $as_echo "no" >&6; }
  5516. fi
  5517. if test "x$ac_ct_NMEDIT" = x; then
  5518. NMEDIT=":"
  5519. else
  5520. case $cross_compiling:$ac_tool_warned in
  5521. yes:)
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5523. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5524. ac_tool_warned=yes ;;
  5525. esac
  5526. NMEDIT=$ac_ct_NMEDIT
  5527. fi
  5528. else
  5529. NMEDIT="$ac_cv_prog_NMEDIT"
  5530. fi
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5532. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5533. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5534. $as_echo_n "(cached) " >&6
  5535. else
  5536. lt_cv_apple_cc_single_mod=no
  5537. if test -z "${LT_MULTI_MODULE}"; then
  5538. # By default we will add the -single_module flag. You can override
  5539. # by either setting the environment variable LT_MULTI_MODULE
  5540. # non-empty at configure time, or by adding -multi_module to the
  5541. # link flags.
  5542. echo "int foo(void){return 1;}" > conftest.c
  5543. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5544. -dynamiclib ${wl}-single_module conftest.c
  5545. if test -f libconftest.dylib; then
  5546. lt_cv_apple_cc_single_mod=yes
  5547. rm -rf libconftest.dylib*
  5548. fi
  5549. rm conftest.c
  5550. fi
  5551. fi
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5553. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5555. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5556. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5557. $as_echo_n "(cached) " >&6
  5558. else
  5559. lt_cv_ld_exported_symbols_list=no
  5560. save_LDFLAGS=$LDFLAGS
  5561. echo "_main" > conftest.sym
  5562. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5563. cat > conftest.$ac_ext <<EOF
  5564. #line 6318 "configure"
  5565. #include "confdefs.h"
  5566. int main() {
  5567. ; return 0; }
  5568. EOF
  5569. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5570. (eval $ac_link) 2>&5
  5571. ac_status=$?
  5572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5573. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5574. lt_cv_ld_exported_symbols_list=yes
  5575. rm -rf conftest*
  5576. else
  5577. echo "configure: failed program was:" >&5
  5578. cat conftest.$ac_ext >&6
  5579. lt_cv_ld_exported_symbols_list=no
  5580. rm -rf conftest*
  5581. fi
  5582. rm -f conftest*
  5583. LDFLAGS="$save_LDFLAGS"
  5584. fi
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5586. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5587. case $host_os in
  5588. rhapsody* | darwin1.[0123])
  5589. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  5590. darwin1.*)
  5591. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5592. darwin*)
  5593. # if running on 10.5 or later, the deployment target defaults
  5594. # to the OS version, if on x86, and 10.4, the deployment
  5595. # target defaults to 10.4. Don't you love it?
  5596. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  5597. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  5598. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5599. 10.[012]*)
  5600. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  5601. 10.*)
  5602. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  5603. esac
  5604. ;;
  5605. esac
  5606. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  5607. _lt_dar_single_mod='$single_module'
  5608. fi
  5609. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  5610. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  5611. else
  5612. _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  5613. fi
  5614. if test "$DSYMUTIL" != ":"; then
  5615. _lt_dsymutil="~$DSYMUTIL \$lib || :"
  5616. else
  5617. _lt_dsymutil=
  5618. fi
  5619. ;;
  5620. esac
  5621. enable_dlopen=no
  5622. enable_win32_dll=no
  5623. # Check whether --enable-libtool-lock was given.
  5624. if test "${enable_libtool_lock+set}" = set; then :
  5625. enableval=$enable_libtool_lock;
  5626. fi
  5627. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5628. # Check whether --with-pic was given.
  5629. if test "${with_pic+set}" = set; then :
  5630. withval=$with_pic; pic_mode="$withval"
  5631. else
  5632. pic_mode=default
  5633. fi
  5634. test -z "$pic_mode" && pic_mode=default
  5635. # Use C for the default configuration in the libtool script
  5636. tagname=
  5637. lt_save_CC="$CC"
  5638. ac_ext=c
  5639. ac_cpp='$CPP $CPPFLAGS'
  5640. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5641. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5642. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5643. # Source file extension for C test sources.
  5644. ac_ext=c
  5645. # Object file extension for compiled C test sources.
  5646. objext=o
  5647. objext=$objext
  5648. # Code to be used in simple compile tests
  5649. lt_simple_compile_test_code="int some_variable = 0;"
  5650. # Code to be used in simple link tests
  5651. lt_simple_link_test_code='int main(){return(0);}'
  5652. # If no C compiler was specified, use CC.
  5653. LTCC=${LTCC-"$CC"}
  5654. # If no C compiler flags were specified, use CFLAGS.
  5655. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5656. # Allow CC to be a program name with arguments.
  5657. compiler=$CC
  5658. # save warnings/boilerplate of simple test code
  5659. ac_outfile=conftest.$ac_objext
  5660. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  5661. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5662. _lt_compiler_boilerplate=`cat conftest.err`
  5663. $rm conftest*
  5664. ac_outfile=conftest.$ac_objext
  5665. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  5666. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  5667. _lt_linker_boilerplate=`cat conftest.err`
  5668. $rm -r conftest*
  5669. ## CAVEAT EMPTOR:
  5670. ## There is no encapsulation within the following macros, do not change
  5671. ## the running order or otherwise move them around unless you know exactly
  5672. ## what you are doing...
  5673. lt_prog_compiler_no_builtin_flag=
  5674. if test "$GCC" = yes; then
  5675. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5677. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  5678. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  5679. $as_echo_n "(cached) " >&6
  5680. else
  5681. lt_cv_prog_compiler_rtti_exceptions=no
  5682. ac_outfile=conftest.$ac_objext
  5683. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5684. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5685. # Insert the option either (1) after the last *FLAGS variable, or
  5686. # (2) before a word containing "conftest.", or (3) at the end.
  5687. # Note that $ac_compile itself does not contain backslashes and begins
  5688. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5689. # The option is referenced via a variable to avoid confusing sed.
  5690. lt_compile=`echo "$ac_compile" | $SED \
  5691. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5692. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5693. -e 's:$: $lt_compiler_flag:'`
  5694. (eval echo "\"configure:6476: $lt_compile\"" >&5)
  5695. (eval "$lt_compile" 2>conftest.err)
  5696. ac_status=$?
  5697. cat conftest.err >&5
  5698. echo "configure:6480: \$? = $ac_status" >&5
  5699. if (exit $ac_status) && test -s "$ac_outfile"; then
  5700. # The compiler can only warn and ignore the option if not recognized
  5701. # So say no if there are warnings other than the usual output.
  5702. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5703. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5704. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5705. lt_cv_prog_compiler_rtti_exceptions=yes
  5706. fi
  5707. fi
  5708. $rm conftest*
  5709. fi
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5711. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  5712. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5713. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5714. else
  5715. :
  5716. fi
  5717. fi
  5718. lt_prog_compiler_wl=
  5719. lt_prog_compiler_pic=
  5720. lt_prog_compiler_static=
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  5722. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  5723. if test "$GCC" = yes; then
  5724. lt_prog_compiler_wl='-Wl,'
  5725. lt_prog_compiler_static='-static'
  5726. case $host_os in
  5727. aix*)
  5728. # All AIX code is PIC.
  5729. if test "$host_cpu" = ia64; then
  5730. # AIX 5 now supports IA64 processor
  5731. lt_prog_compiler_static='-Bstatic'
  5732. fi
  5733. ;;
  5734. amigaos*)
  5735. # FIXME: we need at least 68020 code to build shared libraries, but
  5736. # adding the `-m68020' flag to GCC prevents building anything better,
  5737. # like `-m68040'.
  5738. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5739. ;;
  5740. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5741. # PIC is the default for these OSes.
  5742. ;;
  5743. mingw* | cygwin* | pw32* | os2*)
  5744. # This hack is so that the source file can tell whether it is being
  5745. # built for inclusion in a dll (and should export symbols for example).
  5746. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  5747. # (--disable-auto-import) libraries
  5748. lt_prog_compiler_pic='-DDLL_EXPORT'
  5749. ;;
  5750. darwin* | rhapsody*)
  5751. # PIC is the default on this platform
  5752. # Common symbols not allowed in MH_DYLIB files
  5753. lt_prog_compiler_pic='-fno-common'
  5754. ;;
  5755. interix[3-9]*)
  5756. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5757. # Instead, we relocate shared libraries at runtime.
  5758. ;;
  5759. msdosdjgpp*)
  5760. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5761. # on systems that don't support them.
  5762. lt_prog_compiler_can_build_shared=no
  5763. enable_shared=no
  5764. ;;
  5765. sysv4*MP*)
  5766. if test -d /usr/nec; then
  5767. lt_prog_compiler_pic=-Kconform_pic
  5768. fi
  5769. ;;
  5770. hpux*)
  5771. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5772. # not for PA HP-UX.
  5773. case $host_cpu in
  5774. hppa*64*|ia64*)
  5775. # +Z the default
  5776. ;;
  5777. *)
  5778. lt_prog_compiler_pic='-fPIC'
  5779. ;;
  5780. esac
  5781. ;;
  5782. *)
  5783. lt_prog_compiler_pic='-fPIC'
  5784. ;;
  5785. esac
  5786. else
  5787. # PORTME Check for flag to pass linker flags through the system compiler.
  5788. case $host_os in
  5789. aix*)
  5790. lt_prog_compiler_wl='-Wl,'
  5791. if test "$host_cpu" = ia64; then
  5792. # AIX 5 now supports IA64 processor
  5793. lt_prog_compiler_static='-Bstatic'
  5794. else
  5795. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5796. fi
  5797. ;;
  5798. darwin*)
  5799. # PIC is the default on this platform
  5800. # Common symbols not allowed in MH_DYLIB files
  5801. case $cc_basename in
  5802. xlc*)
  5803. lt_prog_compiler_pic='-qnocommon'
  5804. lt_prog_compiler_wl='-Wl,'
  5805. ;;
  5806. esac
  5807. ;;
  5808. mingw* | cygwin* | pw32* | os2*)
  5809. # This hack is so that the source file can tell whether it is being
  5810. # built for inclusion in a dll (and should export symbols for example).
  5811. lt_prog_compiler_pic='-DDLL_EXPORT'
  5812. ;;
  5813. hpux9* | hpux10* | hpux11*)
  5814. lt_prog_compiler_wl='-Wl,'
  5815. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5816. # not for PA HP-UX.
  5817. case $host_cpu in
  5818. hppa*64*|ia64*)
  5819. # +Z the default
  5820. ;;
  5821. *)
  5822. lt_prog_compiler_pic='+Z'
  5823. ;;
  5824. esac
  5825. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5826. lt_prog_compiler_static='${wl}-a ${wl}archive'
  5827. ;;
  5828. irix5* | irix6* | nonstopux*)
  5829. lt_prog_compiler_wl='-Wl,'
  5830. # PIC (with -KPIC) is the default.
  5831. lt_prog_compiler_static='-non_shared'
  5832. ;;
  5833. newsos6)
  5834. lt_prog_compiler_pic='-KPIC'
  5835. lt_prog_compiler_static='-Bstatic'
  5836. ;;
  5837. linux* | k*bsd*-gnu)
  5838. case $cc_basename in
  5839. # old Intel for x86_64 which still supported -KPIC.
  5840. ecc*)
  5841. lt_prog_compiler_wl='-Wl,'
  5842. lt_prog_compiler_pic='-KPIC'
  5843. lt_prog_compiler_static='-static'
  5844. ;;
  5845. # icc used to be incompatible with GCC.
  5846. # ICC 10 doesn't accept -KPIC any more.
  5847. icc*)
  5848. lt_prog_compiler_wl='-Wl,'
  5849. lt_prog_compiler_pic='-fPIC'
  5850. lt_prog_compiler_static='-static'
  5851. ;;
  5852. pgcc* | pgf77* | pgf90* | pgf95*)
  5853. # Portland Group compilers (*not* the Pentium gcc compiler,
  5854. # which looks to be a dead project)
  5855. lt_prog_compiler_wl='-Wl,'
  5856. lt_prog_compiler_pic='-fpic'
  5857. lt_prog_compiler_static='-Bstatic'
  5858. ;;
  5859. ccc*)
  5860. lt_prog_compiler_wl='-Wl,'
  5861. # All Alpha code is PIC.
  5862. lt_prog_compiler_static='-non_shared'
  5863. ;;
  5864. *)
  5865. case `$CC -V 2>&1 | sed 5q` in
  5866. *Sun\ C*)
  5867. # Sun C 5.9
  5868. lt_prog_compiler_pic='-KPIC'
  5869. lt_prog_compiler_static='-Bstatic'
  5870. lt_prog_compiler_wl='-Wl,'
  5871. ;;
  5872. *Sun\ F*)
  5873. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  5874. lt_prog_compiler_pic='-KPIC'
  5875. lt_prog_compiler_static='-Bstatic'
  5876. lt_prog_compiler_wl=''
  5877. ;;
  5878. esac
  5879. ;;
  5880. esac
  5881. ;;
  5882. osf3* | osf4* | osf5*)
  5883. lt_prog_compiler_wl='-Wl,'
  5884. # All OSF/1 code is PIC.
  5885. lt_prog_compiler_static='-non_shared'
  5886. ;;
  5887. rdos*)
  5888. lt_prog_compiler_static='-non_shared'
  5889. ;;
  5890. solaris*)
  5891. lt_prog_compiler_pic='-KPIC'
  5892. lt_prog_compiler_static='-Bstatic'
  5893. case $cc_basename in
  5894. f77* | f90* | f95*)
  5895. lt_prog_compiler_wl='-Qoption ld ';;
  5896. *)
  5897. lt_prog_compiler_wl='-Wl,';;
  5898. esac
  5899. ;;
  5900. sunos4*)
  5901. lt_prog_compiler_wl='-Qoption ld '
  5902. lt_prog_compiler_pic='-PIC'
  5903. lt_prog_compiler_static='-Bstatic'
  5904. ;;
  5905. sysv4 | sysv4.2uw2* | sysv4.3*)
  5906. lt_prog_compiler_wl='-Wl,'
  5907. lt_prog_compiler_pic='-KPIC'
  5908. lt_prog_compiler_static='-Bstatic'
  5909. ;;
  5910. sysv4*MP*)
  5911. if test -d /usr/nec ;then
  5912. lt_prog_compiler_pic='-Kconform_pic'
  5913. lt_prog_compiler_static='-Bstatic'
  5914. fi
  5915. ;;
  5916. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5917. lt_prog_compiler_wl='-Wl,'
  5918. lt_prog_compiler_pic='-KPIC'
  5919. lt_prog_compiler_static='-Bstatic'
  5920. ;;
  5921. unicos*)
  5922. lt_prog_compiler_wl='-Wl,'
  5923. lt_prog_compiler_can_build_shared=no
  5924. ;;
  5925. uts4*)
  5926. lt_prog_compiler_pic='-pic'
  5927. lt_prog_compiler_static='-Bstatic'
  5928. ;;
  5929. *)
  5930. lt_prog_compiler_can_build_shared=no
  5931. ;;
  5932. esac
  5933. fi
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  5935. $as_echo "$lt_prog_compiler_pic" >&6; }
  5936. #
  5937. # Check to make sure the PIC flag actually works.
  5938. #
  5939. if test -n "$lt_prog_compiler_pic"; then
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  5941. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  5942. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  5943. $as_echo_n "(cached) " >&6
  5944. else
  5945. lt_cv_prog_compiler_pic_works=no
  5946. ac_outfile=conftest.$ac_objext
  5947. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5948. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  5949. # Insert the option either (1) after the last *FLAGS variable, or
  5950. # (2) before a word containing "conftest.", or (3) at the end.
  5951. # Note that $ac_compile itself does not contain backslashes and begins
  5952. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5953. # The option is referenced via a variable to avoid confusing sed.
  5954. lt_compile=`echo "$ac_compile" | $SED \
  5955. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5956. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5957. -e 's:$: $lt_compiler_flag:'`
  5958. (eval echo "\"configure:6774: $lt_compile\"" >&5)
  5959. (eval "$lt_compile" 2>conftest.err)
  5960. ac_status=$?
  5961. cat conftest.err >&5
  5962. echo "configure:6778: \$? = $ac_status" >&5
  5963. if (exit $ac_status) && test -s "$ac_outfile"; then
  5964. # The compiler can only warn and ignore the option if not recognized
  5965. # So say no if there are warnings other than the usual output.
  5966. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  5967. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  5968. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  5969. lt_cv_prog_compiler_pic_works=yes
  5970. fi
  5971. fi
  5972. $rm conftest*
  5973. fi
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  5975. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  5976. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  5977. case $lt_prog_compiler_pic in
  5978. "" | " "*) ;;
  5979. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  5980. esac
  5981. else
  5982. lt_prog_compiler_pic=
  5983. lt_prog_compiler_can_build_shared=no
  5984. fi
  5985. fi
  5986. case $host_os in
  5987. # For platforms which do not support PIC, -DPIC is meaningless:
  5988. *djgpp*)
  5989. lt_prog_compiler_pic=
  5990. ;;
  5991. *)
  5992. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  5993. ;;
  5994. esac
  5995. #
  5996. # Check to make sure the static flag actually works.
  5997. #
  5998. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  5999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6000. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6001. if ${lt_cv_prog_compiler_static_works+:} false; then :
  6002. $as_echo_n "(cached) " >&6
  6003. else
  6004. lt_cv_prog_compiler_static_works=no
  6005. save_LDFLAGS="$LDFLAGS"
  6006. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6007. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6008. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6009. # The linker can only warn and ignore the option if not recognized
  6010. # So say no if there are warnings
  6011. if test -s conftest.err; then
  6012. # Append any errors to the config.log.
  6013. cat conftest.err 1>&5
  6014. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6015. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6016. if diff conftest.exp conftest.er2 >/dev/null; then
  6017. lt_cv_prog_compiler_static_works=yes
  6018. fi
  6019. else
  6020. lt_cv_prog_compiler_static_works=yes
  6021. fi
  6022. fi
  6023. $rm -r conftest*
  6024. LDFLAGS="$save_LDFLAGS"
  6025. fi
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  6027. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  6028. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  6029. :
  6030. else
  6031. lt_prog_compiler_static=
  6032. fi
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  6034. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  6035. if ${lt_cv_prog_compiler_c_o+:} false; then :
  6036. $as_echo_n "(cached) " >&6
  6037. else
  6038. lt_cv_prog_compiler_c_o=no
  6039. $rm -r conftest 2>/dev/null
  6040. mkdir conftest
  6041. cd conftest
  6042. mkdir out
  6043. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6044. lt_compiler_flag="-o out/conftest2.$ac_objext"
  6045. # Insert the option either (1) after the last *FLAGS variable, or
  6046. # (2) before a word containing "conftest.", or (3) at the end.
  6047. # Note that $ac_compile itself does not contain backslashes and begins
  6048. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6049. lt_compile=`echo "$ac_compile" | $SED \
  6050. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6051. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6052. -e 's:$: $lt_compiler_flag:'`
  6053. (eval echo "\"configure:6878: $lt_compile\"" >&5)
  6054. (eval "$lt_compile" 2>out/conftest.err)
  6055. ac_status=$?
  6056. cat out/conftest.err >&5
  6057. echo "configure:6882: \$? = $ac_status" >&5
  6058. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  6059. then
  6060. # The compiler can only warn and ignore the option if not recognized
  6061. # So say no if there are warnings
  6062. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  6063. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  6064. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  6065. lt_cv_prog_compiler_c_o=yes
  6066. fi
  6067. fi
  6068. chmod u+w . 2>&5
  6069. $rm conftest*
  6070. # SGI C++ compiler will create directory out/ii_files/ for
  6071. # template instantiation
  6072. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  6073. $rm out/* && rmdir out
  6074. cd ..
  6075. rmdir conftest
  6076. $rm conftest*
  6077. fi
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  6079. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  6080. hard_links="nottested"
  6081. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  6082. # do not overwrite the value of need_locks provided by the user
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  6084. $as_echo_n "checking if we can lock with hard links... " >&6; }
  6085. hard_links=yes
  6086. $rm conftest*
  6087. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6088. touch conftest.a
  6089. ln conftest.a conftest.b 2>&5 || hard_links=no
  6090. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  6092. $as_echo "$hard_links" >&6; }
  6093. if test "$hard_links" = no; then
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6095. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6096. need_locks=warn
  6097. fi
  6098. else
  6099. need_locks=no
  6100. fi
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  6102. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  6103. runpath_var=
  6104. allow_undefined_flag=
  6105. enable_shared_with_static_runtimes=no
  6106. archive_cmds=
  6107. archive_expsym_cmds=
  6108. old_archive_From_new_cmds=
  6109. old_archive_from_expsyms_cmds=
  6110. export_dynamic_flag_spec=
  6111. whole_archive_flag_spec=
  6112. thread_safe_flag_spec=
  6113. hardcode_libdir_flag_spec=
  6114. hardcode_libdir_flag_spec_ld=
  6115. hardcode_libdir_separator=
  6116. hardcode_direct=no
  6117. hardcode_minus_L=no
  6118. hardcode_shlibpath_var=unsupported
  6119. link_all_deplibs=unknown
  6120. hardcode_automatic=no
  6121. module_cmds=
  6122. module_expsym_cmds=
  6123. always_export_symbols=no
  6124. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6125. # include_expsyms should be a list of space-separated symbols to be *always*
  6126. # included in the symbol list
  6127. include_expsyms=
  6128. # exclude_expsyms can be an extended regexp of symbols to exclude
  6129. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6130. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6131. # as well as any symbol that contains `d'.
  6132. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  6133. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6134. # platforms (ab)use it in PIC code, but their linkers get confused if
  6135. # the symbol is explicitly referenced. Since portable code cannot
  6136. # rely on this symbol name, it's probably fine to never include it in
  6137. # preloaded symbol tables.
  6138. # Exclude shared library initialization/finalization symbols.
  6139. extract_expsyms_cmds=
  6140. # Just being paranoid about ensuring that cc_basename is set.
  6141. for cc_temp in $compiler""; do
  6142. case $cc_temp in
  6143. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6144. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6145. \-*) ;;
  6146. *) break;;
  6147. esac
  6148. done
  6149. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6150. case $host_os in
  6151. cygwin* | mingw* | pw32*)
  6152. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6153. # When not using gcc, we currently assume that we are using
  6154. # Microsoft Visual C++.
  6155. if test "$GCC" != yes; then
  6156. with_gnu_ld=no
  6157. fi
  6158. ;;
  6159. interix*)
  6160. # we just hope/assume this is gcc and not c89 (= MSVC++)
  6161. with_gnu_ld=yes
  6162. ;;
  6163. openbsd*)
  6164. with_gnu_ld=no
  6165. ;;
  6166. esac
  6167. ld_shlibs=yes
  6168. if test "$with_gnu_ld" = yes; then
  6169. # If archive_cmds runs LD, not CC, wlarc should be empty
  6170. wlarc='${wl}'
  6171. # Set some defaults for GNU ld with shared library support. These
  6172. # are reset later if shared libraries are not supported. Putting them
  6173. # here allows them to be overridden if necessary.
  6174. runpath_var=LD_RUN_PATH
  6175. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6176. export_dynamic_flag_spec='${wl}--export-dynamic'
  6177. # ancient GNU ld didn't support --whole-archive et. al.
  6178. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6179. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6180. else
  6181. whole_archive_flag_spec=
  6182. fi
  6183. supports_anon_versioning=no
  6184. case `$LD -v 2>/dev/null` in
  6185. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  6186. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6187. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6188. *\ 2.11.*) ;; # other 2.11 versions
  6189. *) supports_anon_versioning=yes ;;
  6190. esac
  6191. # See if GNU ld supports shared libraries.
  6192. case $host_os in
  6193. aix[3-9]*)
  6194. # On AIX/PPC, the GNU linker is very broken
  6195. if test "$host_cpu" != ia64; then
  6196. ld_shlibs=no
  6197. cat <<EOF 1>&2
  6198. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6199. *** to be unable to reliably create shared libraries on AIX.
  6200. *** Therefore, libtool is disabling shared libraries support. If you
  6201. *** really care for shared libraries, you may want to modify your PATH
  6202. *** so that a non-GNU linker is found, and then restart.
  6203. EOF
  6204. fi
  6205. ;;
  6206. amigaos*)
  6207. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  6208. hardcode_libdir_flag_spec='-L$libdir'
  6209. hardcode_minus_L=yes
  6210. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  6211. # that the semantics of dynamic libraries on AmigaOS, at least up
  6212. # to version 4, is to share data among multiple programs linked
  6213. # with the same dynamic library. Since this doesn't match the
  6214. # behavior of shared libraries on other platforms, we can't use
  6215. # them.
  6216. ld_shlibs=no
  6217. ;;
  6218. beos*)
  6219. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6220. allow_undefined_flag=unsupported
  6221. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6222. # support --undefined. This deserves some investigation. FIXME
  6223. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6224. else
  6225. ld_shlibs=no
  6226. fi
  6227. ;;
  6228. cygwin* | mingw* | pw32*)
  6229. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6230. # as there is no search path for DLLs.
  6231. hardcode_libdir_flag_spec='-L$libdir'
  6232. allow_undefined_flag=unsupported
  6233. always_export_symbols=no
  6234. enable_shared_with_static_runtimes=yes
  6235. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  6236. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6237. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6238. # If the export-symbols file already is a .def file (1st line
  6239. # is EXPORTS), use it as is; otherwise, prepend...
  6240. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6241. cp $export_symbols $output_objdir/$soname.def;
  6242. else
  6243. echo EXPORTS > $output_objdir/$soname.def;
  6244. cat $export_symbols >> $output_objdir/$soname.def;
  6245. fi~
  6246. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6247. else
  6248. ld_shlibs=no
  6249. fi
  6250. ;;
  6251. interix[3-9]*)
  6252. hardcode_direct=no
  6253. hardcode_shlibpath_var=no
  6254. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6255. export_dynamic_flag_spec='${wl}-E'
  6256. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6257. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6258. # default) and relocated if they conflict, which is a slow very memory
  6259. # consuming and fragmenting process. To avoid this, we pick a random,
  6260. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6261. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6262. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6263. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6264. ;;
  6265. gnu* | linux* | k*bsd*-gnu)
  6266. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6267. tmp_addflag=
  6268. case $cc_basename,$host_cpu in
  6269. pgcc*) # Portland Group C compiler
  6270. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  6271. tmp_addflag=' $pic_flag'
  6272. ;;
  6273. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6274. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  6275. tmp_addflag=' $pic_flag -Mnomain' ;;
  6276. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6277. tmp_addflag=' -i_dynamic' ;;
  6278. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6279. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6280. ifc* | ifort*) # Intel Fortran compiler
  6281. tmp_addflag=' -nofor_main' ;;
  6282. esac
  6283. case `$CC -V 2>&1 | sed 5q` in
  6284. *Sun\ C*) # Sun C 5.9
  6285. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  6286. tmp_sharedflag='-G' ;;
  6287. *Sun\ F*) # Sun Fortran 8.3
  6288. tmp_sharedflag='-G' ;;
  6289. *)
  6290. tmp_sharedflag='-shared' ;;
  6291. esac
  6292. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6293. if test $supports_anon_versioning = yes; then
  6294. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6295. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6296. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6297. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6298. fi
  6299. else
  6300. ld_shlibs=no
  6301. fi
  6302. ;;
  6303. netbsd*)
  6304. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6305. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6306. wlarc=
  6307. else
  6308. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6309. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6310. fi
  6311. ;;
  6312. solaris*)
  6313. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6314. ld_shlibs=no
  6315. cat <<EOF 1>&2
  6316. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6317. *** create shared libraries on Solaris systems. Therefore, libtool
  6318. *** is disabling shared libraries support. We urge you to upgrade GNU
  6319. *** binutils to release 2.9.1 or newer. Another option is to modify
  6320. *** your PATH or compiler configuration so that the native linker is
  6321. *** used, and then restart.
  6322. EOF
  6323. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6324. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6325. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6326. else
  6327. ld_shlibs=no
  6328. fi
  6329. ;;
  6330. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6331. case `$LD -v 2>&1` in
  6332. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  6333. ld_shlibs=no
  6334. cat <<_LT_EOF 1>&2
  6335. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6336. *** reliably create shared libraries on SCO systems. Therefore, libtool
  6337. *** is disabling shared libraries support. We urge you to upgrade GNU
  6338. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6339. *** your PATH or compiler configuration so that the native linker is
  6340. *** used, and then restart.
  6341. _LT_EOF
  6342. ;;
  6343. *)
  6344. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6345. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6346. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6347. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  6348. else
  6349. ld_shlibs=no
  6350. fi
  6351. ;;
  6352. esac
  6353. ;;
  6354. sunos4*)
  6355. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6356. wlarc=
  6357. hardcode_direct=yes
  6358. hardcode_shlibpath_var=no
  6359. ;;
  6360. *)
  6361. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6362. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6363. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6364. else
  6365. ld_shlibs=no
  6366. fi
  6367. ;;
  6368. esac
  6369. if test "$ld_shlibs" = no; then
  6370. runpath_var=
  6371. hardcode_libdir_flag_spec=
  6372. export_dynamic_flag_spec=
  6373. whole_archive_flag_spec=
  6374. fi
  6375. else
  6376. # PORTME fill in a description of your system's linker (not GNU ld)
  6377. case $host_os in
  6378. aix3*)
  6379. allow_undefined_flag=unsupported
  6380. always_export_symbols=yes
  6381. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  6382. # Note: this linker hardcodes the directories in LIBPATH if there
  6383. # are no directories specified by -L.
  6384. hardcode_minus_L=yes
  6385. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6386. # Neither direct hardcoding nor static linking is supported with a
  6387. # broken collect2.
  6388. hardcode_direct=unsupported
  6389. fi
  6390. ;;
  6391. aix[4-9]*)
  6392. if test "$host_cpu" = ia64; then
  6393. # On IA64, the linker does run time linking by default, so we don't
  6394. # have to do anything special.
  6395. aix_use_runtimelinking=no
  6396. exp_sym_flag='-Bexport'
  6397. no_entry_flag=""
  6398. else
  6399. # If we're using GNU nm, then we don't want the "-C" option.
  6400. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6401. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6402. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  6403. else
  6404. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  6405. fi
  6406. aix_use_runtimelinking=no
  6407. # Test if we are trying to use run time linking or normal
  6408. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6409. # need to do runtime linking.
  6410. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  6411. for ld_flag in $LDFLAGS; do
  6412. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6413. aix_use_runtimelinking=yes
  6414. break
  6415. fi
  6416. done
  6417. ;;
  6418. esac
  6419. exp_sym_flag='-bexport'
  6420. no_entry_flag='-bnoentry'
  6421. fi
  6422. # When large executables or shared objects are built, AIX ld can
  6423. # have problems creating the table of contents. If linking a library
  6424. # or program results in "error TOC overflow" add -mminimal-toc to
  6425. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6426. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6427. archive_cmds=''
  6428. hardcode_direct=yes
  6429. hardcode_libdir_separator=':'
  6430. link_all_deplibs=yes
  6431. if test "$GCC" = yes; then
  6432. case $host_os in aix4.[012]|aix4.[012].*)
  6433. # We only want to do this on AIX 4.2 and lower, the check
  6434. # below for broken collect2 doesn't work under 4.3+
  6435. collect2name=`${CC} -print-prog-name=collect2`
  6436. if test -f "$collect2name" && \
  6437. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6438. then
  6439. # We have reworked collect2
  6440. :
  6441. else
  6442. # We have old collect2
  6443. hardcode_direct=unsupported
  6444. # It fails to find uninstalled libraries when the uninstalled
  6445. # path is not listed in the libpath. Setting hardcode_minus_L
  6446. # to unsupported forces relinking
  6447. hardcode_minus_L=yes
  6448. hardcode_libdir_flag_spec='-L$libdir'
  6449. hardcode_libdir_separator=
  6450. fi
  6451. ;;
  6452. esac
  6453. shared_flag='-shared'
  6454. if test "$aix_use_runtimelinking" = yes; then
  6455. shared_flag="$shared_flag "'${wl}-G'
  6456. fi
  6457. else
  6458. # not using gcc
  6459. if test "$host_cpu" = ia64; then
  6460. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6461. # chokes on -Wl,-G. The following line is correct:
  6462. shared_flag='-G'
  6463. else
  6464. if test "$aix_use_runtimelinking" = yes; then
  6465. shared_flag='${wl}-G'
  6466. else
  6467. shared_flag='${wl}-bM:SRE'
  6468. fi
  6469. fi
  6470. fi
  6471. # It seems that -bexpall does not export symbols beginning with
  6472. # underscore (_), so it is better to generate a list of symbols to export.
  6473. always_export_symbols=yes
  6474. if test "$aix_use_runtimelinking" = yes; then
  6475. # Warning - without using the other runtime loading flags (-brtl),
  6476. # -berok will link without error, but may produce a broken library.
  6477. allow_undefined_flag='-berok'
  6478. # Determine the default libpath from the value encoded in an empty executable.
  6479. cat > conftest.$ac_ext <<EOF
  6480. #line 7342 "configure"
  6481. #include "confdefs.h"
  6482. int main() {
  6483. ; return 0; }
  6484. EOF
  6485. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6486. (eval $ac_link) 2>&5
  6487. ac_status=$?
  6488. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6489. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6490. lt_aix_libpath_sed='
  6491. /Import File Strings/,/^$/ {
  6492. /^0/ {
  6493. s/^0 *\(.*\)$/\1/
  6494. p
  6495. }
  6496. }'
  6497. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  6498. # Check for a 64-bit object if we didn't find anything.
  6499. if test -z "$aix_libpath"; then
  6500. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  6501. fi
  6502. rm -rf conftest*
  6503. else
  6504. echo "configure: failed program was:" >&5
  6505. cat conftest.$ac_ext >&6
  6506. fi
  6507. rm -f conftest*
  6508. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6509. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6510. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  6511. else
  6512. if test "$host_cpu" = ia64; then
  6513. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6514. allow_undefined_flag="-z nodefs"
  6515. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  6516. else
  6517. # Determine the default libpath from the value encoded in an empty executable.
  6518. cat > conftest.$ac_ext <<EOF
  6519. #line 7384 "configure"
  6520. #include "confdefs.h"
  6521. int main() {
  6522. ; return 0; }
  6523. EOF
  6524. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6525. (eval $ac_link) 2>&5
  6526. ac_status=$?
  6527. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6528. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6529. lt_aix_libpath_sed='
  6530. /Import File Strings/,/^$/ {
  6531. /^0/ {
  6532. s/^0 *\(.*\)$/\1/
  6533. p
  6534. }
  6535. }'
  6536. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  6537. # Check for a 64-bit object if we didn't find anything.
  6538. if test -z "$aix_libpath"; then
  6539. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  6540. fi
  6541. rm -rf conftest*
  6542. else
  6543. echo "configure: failed program was:" >&5
  6544. cat conftest.$ac_ext >&6
  6545. fi
  6546. rm -f conftest*
  6547. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6548. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6549. # Warning - without using the other run time loading flags,
  6550. # -berok will link without error, but may produce a broken library.
  6551. no_undefined_flag=' ${wl}-bernotok'
  6552. allow_undefined_flag=' ${wl}-berok'
  6553. # Exported symbols can be pulled into shared objects from archives
  6554. whole_archive_flag_spec='$convenience'
  6555. archive_cmds_need_lc=yes
  6556. # This is similar to how AIX traditionally builds its shared libraries.
  6557. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  6558. fi
  6559. fi
  6560. ;;
  6561. amigaos*)
  6562. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  6563. hardcode_libdir_flag_spec='-L$libdir'
  6564. hardcode_minus_L=yes
  6565. # see comment about different semantics on the GNU ld section
  6566. ld_shlibs=no
  6567. ;;
  6568. bsdi[45]*)
  6569. export_dynamic_flag_spec=-rdynamic
  6570. ;;
  6571. cygwin* | mingw* | pw32*)
  6572. # When not using gcc, we currently assume that we are using
  6573. # Microsoft Visual C++.
  6574. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6575. # no search path for DLLs.
  6576. hardcode_libdir_flag_spec=' '
  6577. allow_undefined_flag=unsupported
  6578. # Tell ltmain to make .lib files, not .a files.
  6579. libext=lib
  6580. # Tell ltmain to make .dll files, not .so files.
  6581. shrext_cmds=".dll"
  6582. # FIXME: Setting linknames here is a bad hack.
  6583. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6584. # The linker will automatically build a .lib file if we build a DLL.
  6585. old_archive_From_new_cmds='true'
  6586. # FIXME: Should let the user specify the lib program.
  6587. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  6588. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6589. enable_shared_with_static_runtimes=yes
  6590. ;;
  6591. darwin* | rhapsody*)
  6592. case $host_os in
  6593. rhapsody* | darwin1.[012])
  6594. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6595. ;;
  6596. *) # Darwin 1.3 on
  6597. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6598. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6599. else
  6600. case ${MACOSX_DEPLOYMENT_TARGET} in
  6601. 10.[012])
  6602. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6603. ;;
  6604. 10.*)
  6605. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6606. ;;
  6607. esac
  6608. fi
  6609. ;;
  6610. esac
  6611. archive_cmds_need_lc=no
  6612. hardcode_direct=no
  6613. hardcode_automatic=yes
  6614. hardcode_shlibpath_var=unsupported
  6615. whole_archive_flag_spec=''
  6616. link_all_deplibs=yes
  6617. if test "$GCC" = yes ; then
  6618. output_verbose_link_cmd='echo'
  6619. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  6620. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  6621. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  6622. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  6623. else
  6624. case $cc_basename in
  6625. xlc*)
  6626. output_verbose_link_cmd='echo'
  6627. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  6628. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6629. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6630. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6631. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6632. ;;
  6633. *)
  6634. ld_shlibs=no
  6635. ;;
  6636. esac
  6637. fi
  6638. ;;
  6639. dgux*)
  6640. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6641. hardcode_libdir_flag_spec='-L$libdir'
  6642. hardcode_shlibpath_var=no
  6643. ;;
  6644. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6645. # support. Future versions do this automatically, but an explicit c++rt0.o
  6646. # does not break anything, and helps significantly (at the cost of a little
  6647. # extra space).
  6648. freebsd2.2*)
  6649. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6650. hardcode_libdir_flag_spec='-R$libdir'
  6651. hardcode_direct=yes
  6652. hardcode_shlibpath_var=no
  6653. ;;
  6654. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6655. freebsd2*)
  6656. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6657. hardcode_direct=yes
  6658. hardcode_minus_L=yes
  6659. hardcode_shlibpath_var=no
  6660. ;;
  6661. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6662. freebsd* | dragonfly*)
  6663. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6664. hardcode_libdir_flag_spec='-R$libdir'
  6665. hardcode_direct=yes
  6666. hardcode_shlibpath_var=no
  6667. ;;
  6668. hpux9*)
  6669. if test "$GCC" = yes; then
  6670. archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  6671. else
  6672. archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  6673. fi
  6674. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6675. hardcode_libdir_separator=:
  6676. hardcode_direct=yes
  6677. # hardcode_minus_L: Not really in the search PATH,
  6678. # but as the default location of the library.
  6679. hardcode_minus_L=yes
  6680. export_dynamic_flag_spec='${wl}-E'
  6681. ;;
  6682. hpux10*)
  6683. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6684. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6685. else
  6686. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6687. fi
  6688. if test "$with_gnu_ld" = no; then
  6689. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6690. hardcode_libdir_separator=:
  6691. hardcode_direct=yes
  6692. export_dynamic_flag_spec='${wl}-E'
  6693. # hardcode_minus_L: Not really in the search PATH,
  6694. # but as the default location of the library.
  6695. hardcode_minus_L=yes
  6696. fi
  6697. ;;
  6698. hpux11*)
  6699. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6700. case $host_cpu in
  6701. hppa*64*)
  6702. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6703. ;;
  6704. ia64*)
  6705. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6706. ;;
  6707. *)
  6708. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6709. ;;
  6710. esac
  6711. else
  6712. case $host_cpu in
  6713. hppa*64*)
  6714. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6715. ;;
  6716. ia64*)
  6717. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6718. ;;
  6719. *)
  6720. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6721. ;;
  6722. esac
  6723. fi
  6724. if test "$with_gnu_ld" = no; then
  6725. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6726. hardcode_libdir_separator=:
  6727. case $host_cpu in
  6728. hppa*64*|ia64*)
  6729. hardcode_libdir_flag_spec_ld='+b $libdir'
  6730. hardcode_direct=no
  6731. hardcode_shlibpath_var=no
  6732. ;;
  6733. *)
  6734. hardcode_direct=yes
  6735. export_dynamic_flag_spec='${wl}-E'
  6736. # hardcode_minus_L: Not really in the search PATH,
  6737. # but as the default location of the library.
  6738. hardcode_minus_L=yes
  6739. ;;
  6740. esac
  6741. fi
  6742. ;;
  6743. irix5* | irix6* | nonstopux*)
  6744. if test "$GCC" = yes; then
  6745. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6746. else
  6747. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6748. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6749. fi
  6750. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6751. hardcode_libdir_separator=:
  6752. link_all_deplibs=yes
  6753. ;;
  6754. netbsd*)
  6755. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6756. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6757. else
  6758. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6759. fi
  6760. hardcode_libdir_flag_spec='-R$libdir'
  6761. hardcode_direct=yes
  6762. hardcode_shlibpath_var=no
  6763. ;;
  6764. newsos6)
  6765. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6766. hardcode_direct=yes
  6767. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6768. hardcode_libdir_separator=:
  6769. hardcode_shlibpath_var=no
  6770. ;;
  6771. openbsd*)
  6772. if test -f /usr/libexec/ld.so; then
  6773. hardcode_direct=yes
  6774. hardcode_shlibpath_var=no
  6775. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6776. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6777. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6778. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6779. export_dynamic_flag_spec='${wl}-E'
  6780. else
  6781. case $host_os in
  6782. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6783. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6784. hardcode_libdir_flag_spec='-R$libdir'
  6785. ;;
  6786. *)
  6787. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6788. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6789. ;;
  6790. esac
  6791. fi
  6792. else
  6793. ld_shlibs=no
  6794. fi
  6795. ;;
  6796. os2*)
  6797. hardcode_libdir_flag_spec='-L$libdir'
  6798. hardcode_minus_L=yes
  6799. allow_undefined_flag=unsupported
  6800. archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  6801. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6802. ;;
  6803. osf3*)
  6804. if test "$GCC" = yes; then
  6805. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6806. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6807. else
  6808. allow_undefined_flag=' -expect_unresolved \*'
  6809. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6810. fi
  6811. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6812. hardcode_libdir_separator=:
  6813. ;;
  6814. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6815. if test "$GCC" = yes; then
  6816. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6817. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6818. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6819. else
  6820. allow_undefined_flag=' -expect_unresolved \*'
  6821. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6822. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  6823. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  6824. # Both c and cxx compiler support -rpath directly
  6825. hardcode_libdir_flag_spec='-rpath $libdir'
  6826. fi
  6827. hardcode_libdir_separator=:
  6828. ;;
  6829. solaris*)
  6830. no_undefined_flag=' -z text'
  6831. if test "$GCC" = yes; then
  6832. wlarc='${wl}'
  6833. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6834. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6835. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6836. else
  6837. wlarc=''
  6838. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6839. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6840. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6841. fi
  6842. hardcode_libdir_flag_spec='-R$libdir'
  6843. hardcode_shlibpath_var=no
  6844. case $host_os in
  6845. solaris2.[0-5] | solaris2.[0-5].*) ;;
  6846. *)
  6847. # The compiler driver will combine and reorder linker options,
  6848. # but understands `-z linker_flag'. GCC discards it without `$wl',
  6849. # but is careful enough not to reorder.
  6850. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6851. if test "$GCC" = yes; then
  6852. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6853. else
  6854. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  6855. fi
  6856. ;;
  6857. esac
  6858. link_all_deplibs=yes
  6859. ;;
  6860. sunos4*)
  6861. if test "x$host_vendor" = xsequent; then
  6862. # Use $CC to link under sequent, because it throws in some extra .o
  6863. # files that make .init and .fini sections work.
  6864. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6865. else
  6866. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6867. fi
  6868. hardcode_libdir_flag_spec='-L$libdir'
  6869. hardcode_direct=yes
  6870. hardcode_minus_L=yes
  6871. hardcode_shlibpath_var=no
  6872. ;;
  6873. sysv4)
  6874. case $host_vendor in
  6875. sni)
  6876. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6877. hardcode_direct=yes # is this really true???
  6878. ;;
  6879. siemens)
  6880. ## LD is ld it makes a PLAMLIB
  6881. ## CC just makes a GrossModule.
  6882. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6883. reload_cmds='$CC -r -o $output$reload_objs'
  6884. hardcode_direct=no
  6885. ;;
  6886. motorola)
  6887. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6888. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  6889. ;;
  6890. esac
  6891. runpath_var='LD_RUN_PATH'
  6892. hardcode_shlibpath_var=no
  6893. ;;
  6894. sysv4.3*)
  6895. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6896. hardcode_shlibpath_var=no
  6897. export_dynamic_flag_spec='-Bexport'
  6898. ;;
  6899. sysv4*MP*)
  6900. if test -d /usr/nec; then
  6901. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6902. hardcode_shlibpath_var=no
  6903. runpath_var=LD_RUN_PATH
  6904. hardcode_runpath_var=yes
  6905. ld_shlibs=yes
  6906. fi
  6907. ;;
  6908. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  6909. no_undefined_flag='${wl}-z,text'
  6910. archive_cmds_need_lc=no
  6911. hardcode_shlibpath_var=no
  6912. runpath_var='LD_RUN_PATH'
  6913. if test "$GCC" = yes; then
  6914. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6915. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6916. else
  6917. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6918. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6919. fi
  6920. ;;
  6921. sysv5* | sco3.2v5* | sco5v6*)
  6922. # Note: We can NOT use -z defs as we might desire, because we do not
  6923. # link with -lc, and that would cause any symbols used from libc to
  6924. # always be unresolved, which means just about no library would
  6925. # ever link correctly. If we're not using GNU ld we use -z text
  6926. # though, which does catch some bad symbols but isn't as heavy-handed
  6927. # as -z defs.
  6928. no_undefined_flag='${wl}-z,text'
  6929. allow_undefined_flag='${wl}-z,nodefs'
  6930. archive_cmds_need_lc=no
  6931. hardcode_shlibpath_var=no
  6932. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  6933. hardcode_libdir_separator=':'
  6934. link_all_deplibs=yes
  6935. export_dynamic_flag_spec='${wl}-Bexport'
  6936. runpath_var='LD_RUN_PATH'
  6937. if test "$GCC" = yes; then
  6938. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6939. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6940. else
  6941. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6942. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6943. fi
  6944. ;;
  6945. uts4*)
  6946. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6947. hardcode_libdir_flag_spec='-L$libdir'
  6948. hardcode_shlibpath_var=no
  6949. ;;
  6950. *)
  6951. ld_shlibs=no
  6952. ;;
  6953. esac
  6954. fi
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  6956. $as_echo "$ld_shlibs" >&6; }
  6957. test "$ld_shlibs" = no && can_build_shared=no
  6958. #
  6959. # Do we need to explicitly link libc?
  6960. #
  6961. case "x$archive_cmds_need_lc" in
  6962. x|xyes)
  6963. # Assume -lc should be added
  6964. archive_cmds_need_lc=yes
  6965. if test "$enable_shared" = yes && test "$GCC" = yes; then
  6966. case $archive_cmds in
  6967. *'~'*)
  6968. # FIXME: we may have to deal with multi-command sequences.
  6969. ;;
  6970. '$CC '*)
  6971. # Test whether the compiler implicitly links with -lc since on some
  6972. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6973. # to ld, don't add -lc before -lgcc.
  6974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  6975. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  6976. $rm conftest*
  6977. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6978. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6979. (eval $ac_compile) 2>&5
  6980. ac_status=$?
  6981. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6982. test $ac_status = 0; } 2>conftest.err; then
  6983. soname=conftest
  6984. lib=conftest
  6985. libobjs=conftest.$ac_objext
  6986. deplibs=
  6987. wl=$lt_prog_compiler_wl
  6988. pic_flag=$lt_prog_compiler_pic
  6989. compiler_flags=-v
  6990. linker_flags=-v
  6991. verstring=
  6992. output_objdir=.
  6993. libname=conftest
  6994. lt_save_allow_undefined_flag=$allow_undefined_flag
  6995. allow_undefined_flag=
  6996. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  6997. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  6998. ac_status=$?
  6999. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7000. test $ac_status = 0; }
  7001. then
  7002. archive_cmds_need_lc=no
  7003. else
  7004. archive_cmds_need_lc=yes
  7005. fi
  7006. allow_undefined_flag=$lt_save_allow_undefined_flag
  7007. else
  7008. cat conftest.err 1>&5
  7009. fi
  7010. $rm conftest*
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  7012. $as_echo "$archive_cmds_need_lc" >&6; }
  7013. ;;
  7014. esac
  7015. fi
  7016. ;;
  7017. esac
  7018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  7019. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  7020. library_names_spec=
  7021. libname_spec='lib$name'
  7022. soname_spec=
  7023. shrext_cmds=".so"
  7024. postinstall_cmds=
  7025. postuninstall_cmds=
  7026. finish_cmds=
  7027. finish_eval=
  7028. shlibpath_var=
  7029. shlibpath_overrides_runpath=unknown
  7030. version_type=none
  7031. dynamic_linker="$host_os ld.so"
  7032. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7033. if test "$GCC" = yes; then
  7034. case $host_os in
  7035. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  7036. *) lt_awk_arg="/^libraries:/" ;;
  7037. esac
  7038. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7039. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  7040. # if the path contains ";" then we assume it to be the separator
  7041. # otherwise default to the standard path separator (i.e. ":") - it is
  7042. # assumed that no part of a normal pathname contains ";" but that should
  7043. # okay in the real world where ";" in dirpaths is itself problematic.
  7044. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  7045. else
  7046. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7047. fi
  7048. # Ok, now we have the path, separated by spaces, we can step through it
  7049. # and add multilib dir if necessary.
  7050. lt_tmp_lt_search_path_spec=
  7051. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  7052. for lt_sys_path in $lt_search_path_spec; do
  7053. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  7054. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  7055. else
  7056. test -d "$lt_sys_path" && \
  7057. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  7058. fi
  7059. done
  7060. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  7061. BEGIN {RS=" "; FS="/|\n";} {
  7062. lt_foo="";
  7063. lt_count=0;
  7064. for (lt_i = NF; lt_i > 0; lt_i--) {
  7065. if ($lt_i != "" && $lt_i != ".") {
  7066. if ($lt_i == "..") {
  7067. lt_count++;
  7068. } else {
  7069. if (lt_count == 0) {
  7070. lt_foo="/" $lt_i lt_foo;
  7071. } else {
  7072. lt_count--;
  7073. }
  7074. }
  7075. }
  7076. }
  7077. if (lt_foo != "") { lt_freq[lt_foo]++; }
  7078. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  7079. }'`
  7080. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  7081. else
  7082. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7083. fi
  7084. need_lib_prefix=unknown
  7085. hardcode_into_libs=no
  7086. # when you set need_version to no, make sure it does not cause -set_version
  7087. # flags to be left without arguments
  7088. need_version=unknown
  7089. case $host_os in
  7090. aix3*)
  7091. version_type=linux
  7092. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  7093. shlibpath_var=LIBPATH
  7094. # AIX 3 has no versioning support, so we append a major version to the name.
  7095. soname_spec='${libname}${release}${shared_ext}$major'
  7096. ;;
  7097. aix[4-9]*)
  7098. version_type=linux
  7099. need_lib_prefix=no
  7100. need_version=no
  7101. hardcode_into_libs=yes
  7102. if test "$host_cpu" = ia64; then
  7103. # AIX 5 supports IA64
  7104. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  7105. shlibpath_var=LD_LIBRARY_PATH
  7106. else
  7107. # With GCC up to 2.95.x, collect2 would create an import file
  7108. # for dependence libraries. The import file would start with
  7109. # the line `#! .'. This would cause the generated library to
  7110. # depend on `.', always an invalid library. This was fixed in
  7111. # development snapshots of GCC prior to 3.0.
  7112. case $host_os in
  7113. aix4 | aix4.[01] | aix4.[01].*)
  7114. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7115. echo ' yes '
  7116. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7117. :
  7118. else
  7119. can_build_shared=no
  7120. fi
  7121. ;;
  7122. esac
  7123. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  7124. # soname into executable. Probably we can add versioning support to
  7125. # collect2, so additional links can be useful in future.
  7126. if test "$aix_use_runtimelinking" = yes; then
  7127. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7128. # instead of lib<name>.a to let people know that these are not
  7129. # typical AIX shared libraries.
  7130. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7131. else
  7132. # We preserve .a as extension for shared libraries through AIX4.2
  7133. # and later when we are not doing run time linking.
  7134. library_names_spec='${libname}${release}.a $libname.a'
  7135. soname_spec='${libname}${release}${shared_ext}$major'
  7136. fi
  7137. shlibpath_var=LIBPATH
  7138. fi
  7139. ;;
  7140. amigaos*)
  7141. library_names_spec='$libname.ixlibrary $libname.a'
  7142. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7143. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  7144. ;;
  7145. beos*)
  7146. library_names_spec='${libname}${shared_ext}'
  7147. dynamic_linker="$host_os ld.so"
  7148. shlibpath_var=LIBRARY_PATH
  7149. ;;
  7150. bsdi[45]*)
  7151. version_type=linux
  7152. need_version=no
  7153. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7154. soname_spec='${libname}${release}${shared_ext}$major'
  7155. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7156. shlibpath_var=LD_LIBRARY_PATH
  7157. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7158. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7159. # the default ld.so.conf also contains /usr/contrib/lib and
  7160. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7161. # libtool to hard-code these into programs
  7162. ;;
  7163. cygwin* | mingw* | pw32*)
  7164. version_type=windows
  7165. shrext_cmds=".dll"
  7166. need_version=no
  7167. need_lib_prefix=no
  7168. case $GCC,$host_os in
  7169. yes,cygwin* | yes,mingw* | yes,pw32*)
  7170. library_names_spec='$libname.dll.a'
  7171. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  7172. postinstall_cmds='base_file=`basename \${file}`~
  7173. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  7174. dldir=$destdir/`dirname \$dlpath`~
  7175. test -d \$dldir || mkdir -p \$dldir~
  7176. $install_prog $dir/$dlname \$dldir/$dlname~
  7177. chmod a+x \$dldir/$dlname'
  7178. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7179. dlpath=$dir/\$dldll~
  7180. $rm \$dlpath'
  7181. shlibpath_overrides_runpath=yes
  7182. case $host_os in
  7183. cygwin*)
  7184. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  7185. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7186. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  7187. ;;
  7188. mingw*)
  7189. # MinGW DLLs use traditional 'lib' prefix
  7190. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7191. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  7192. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  7193. # It is most probably a Windows format PATH printed by
  7194. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  7195. # path with ; separators, and with drive letters. We can handle the
  7196. # drive letters (cygwin fileutils understands them), so leave them,
  7197. # especially as we might pass files found there to a mingw objdump,
  7198. # which wouldn't understand a cygwinified path. Ahh.
  7199. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  7200. else
  7201. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  7202. fi
  7203. ;;
  7204. pw32*)
  7205. # pw32 DLLs use 'pw' prefix rather than 'lib'
  7206. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  7207. ;;
  7208. esac
  7209. ;;
  7210. *)
  7211. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  7212. ;;
  7213. esac
  7214. dynamic_linker='Win32 ld.exe'
  7215. # FIXME: first we should search . and the directory the executable is in
  7216. shlibpath_var=PATH
  7217. ;;
  7218. darwin* | rhapsody*)
  7219. dynamic_linker="$host_os dyld"
  7220. version_type=darwin
  7221. need_lib_prefix=no
  7222. need_version=no
  7223. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  7224. soname_spec='${libname}${release}${major}$shared_ext'
  7225. shlibpath_overrides_runpath=yes
  7226. shlibpath_var=DYLD_LIBRARY_PATH
  7227. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  7228. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  7229. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  7230. ;;
  7231. dgux*)
  7232. version_type=linux
  7233. need_lib_prefix=no
  7234. need_version=no
  7235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  7236. soname_spec='${libname}${release}${shared_ext}$major'
  7237. shlibpath_var=LD_LIBRARY_PATH
  7238. ;;
  7239. freebsd* | dragonfly*)
  7240. # DragonFly does not have aout. When/if they implement a new
  7241. # versioning mechanism, adjust this.
  7242. if test -x /usr/bin/objformat; then
  7243. objformat=`/usr/bin/objformat`
  7244. else
  7245. case $host_os in
  7246. freebsd[123].*) objformat=aout ;;
  7247. *) objformat=elf ;;
  7248. esac
  7249. fi
  7250. version_type=freebsd-$objformat
  7251. case $version_type in
  7252. freebsd-elf*)
  7253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7254. need_version=no
  7255. need_lib_prefix=no
  7256. ;;
  7257. freebsd-*)
  7258. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  7259. need_version=yes
  7260. ;;
  7261. esac
  7262. shlibpath_var=LD_LIBRARY_PATH
  7263. case $host_os in
  7264. freebsd2*)
  7265. shlibpath_overrides_runpath=yes
  7266. ;;
  7267. freebsd3.[01]* | freebsdelf3.[01]*)
  7268. shlibpath_overrides_runpath=yes
  7269. hardcode_into_libs=yes
  7270. ;;
  7271. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  7272. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  7273. shlibpath_overrides_runpath=no
  7274. hardcode_into_libs=yes
  7275. ;;
  7276. *) # from 4.6 on, and DragonFly
  7277. shlibpath_overrides_runpath=yes
  7278. hardcode_into_libs=yes
  7279. ;;
  7280. esac
  7281. ;;
  7282. gnu*)
  7283. version_type=linux
  7284. need_lib_prefix=no
  7285. need_version=no
  7286. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  7287. soname_spec='${libname}${release}${shared_ext}$major'
  7288. shlibpath_var=LD_LIBRARY_PATH
  7289. hardcode_into_libs=yes
  7290. ;;
  7291. hpux9* | hpux10* | hpux11*)
  7292. # Give a soname corresponding to the major version so that dld.sl refuses to
  7293. # link against other versions.
  7294. version_type=sunos
  7295. need_lib_prefix=no
  7296. need_version=no
  7297. case $host_cpu in
  7298. ia64*)
  7299. shrext_cmds='.so'
  7300. hardcode_into_libs=yes
  7301. dynamic_linker="$host_os dld.so"
  7302. shlibpath_var=LD_LIBRARY_PATH
  7303. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7305. soname_spec='${libname}${release}${shared_ext}$major'
  7306. if test "X$HPUX_IA64_MODE" = X32; then
  7307. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7308. else
  7309. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7310. fi
  7311. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7312. ;;
  7313. hppa*64*)
  7314. shrext_cmds='.sl'
  7315. hardcode_into_libs=yes
  7316. dynamic_linker="$host_os dld.sl"
  7317. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7318. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7320. soname_spec='${libname}${release}${shared_ext}$major'
  7321. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7322. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7323. ;;
  7324. *)
  7325. shrext_cmds='.sl'
  7326. dynamic_linker="$host_os dld.sl"
  7327. shlibpath_var=SHLIB_PATH
  7328. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7329. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7330. soname_spec='${libname}${release}${shared_ext}$major'
  7331. ;;
  7332. esac
  7333. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7334. postinstall_cmds='chmod 555 $lib'
  7335. ;;
  7336. interix[3-9]*)
  7337. version_type=linux
  7338. need_lib_prefix=no
  7339. need_version=no
  7340. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7341. soname_spec='${libname}${release}${shared_ext}$major'
  7342. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  7343. shlibpath_var=LD_LIBRARY_PATH
  7344. shlibpath_overrides_runpath=no
  7345. hardcode_into_libs=yes
  7346. ;;
  7347. irix5* | irix6* | nonstopux*)
  7348. case $host_os in
  7349. nonstopux*) version_type=nonstopux ;;
  7350. *)
  7351. if test "$lt_cv_prog_gnu_ld" = yes; then
  7352. version_type=linux
  7353. else
  7354. version_type=irix
  7355. fi ;;
  7356. esac
  7357. need_lib_prefix=no
  7358. need_version=no
  7359. soname_spec='${libname}${release}${shared_ext}$major'
  7360. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7361. case $host_os in
  7362. irix5* | nonstopux*)
  7363. libsuff= shlibsuff=
  7364. ;;
  7365. *)
  7366. case $LD in # libtool.m4 will add one of these switches to LD
  7367. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7368. libsuff= shlibsuff= libmagic=32-bit;;
  7369. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7370. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7371. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7372. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7373. *) libsuff= shlibsuff= libmagic=never-match;;
  7374. esac
  7375. ;;
  7376. esac
  7377. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7378. shlibpath_overrides_runpath=no
  7379. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7380. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7381. hardcode_into_libs=yes
  7382. ;;
  7383. # No shared lib support for Linux oldld, aout, or coff.
  7384. linux*oldld* | linux*aout* | linux*coff*)
  7385. dynamic_linker=no
  7386. ;;
  7387. # This must be Linux ELF.
  7388. linux* | k*bsd*-gnu)
  7389. version_type=linux
  7390. need_lib_prefix=no
  7391. need_version=no
  7392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7393. soname_spec='${libname}${release}${shared_ext}$major'
  7394. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7395. shlibpath_var=LD_LIBRARY_PATH
  7396. shlibpath_overrides_runpath=no
  7397. # This implies no fast_install, which is unacceptable.
  7398. # Some rework will be needed to allow for fast_install
  7399. # before this can be enabled.
  7400. hardcode_into_libs=yes
  7401. # Append ld.so.conf contents to the search path
  7402. if test -f /etc/ld.so.conf; then
  7403. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  7404. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  7405. fi
  7406. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7407. # powerpc, because MkLinux only supported shared libraries with the
  7408. # GNU dynamic linker. Since this was broken with cross compilers,
  7409. # most powerpc-linux boxes support dynamic linking these days and
  7410. # people can always --disable-shared, the test was removed, and we
  7411. # assume the GNU/Linux dynamic linker is in use.
  7412. dynamic_linker='GNU/Linux ld.so'
  7413. ;;
  7414. netbsd*)
  7415. version_type=sunos
  7416. need_lib_prefix=no
  7417. need_version=no
  7418. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7420. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7421. dynamic_linker='NetBSD (a.out) ld.so'
  7422. else
  7423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7424. soname_spec='${libname}${release}${shared_ext}$major'
  7425. dynamic_linker='NetBSD ld.elf_so'
  7426. fi
  7427. shlibpath_var=LD_LIBRARY_PATH
  7428. shlibpath_overrides_runpath=yes
  7429. hardcode_into_libs=yes
  7430. ;;
  7431. newsos6)
  7432. version_type=linux
  7433. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7434. shlibpath_var=LD_LIBRARY_PATH
  7435. shlibpath_overrides_runpath=yes
  7436. ;;
  7437. nto-qnx*)
  7438. version_type=linux
  7439. need_lib_prefix=no
  7440. need_version=no
  7441. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7442. soname_spec='${libname}${release}${shared_ext}$major'
  7443. shlibpath_var=LD_LIBRARY_PATH
  7444. shlibpath_overrides_runpath=yes
  7445. ;;
  7446. openbsd*)
  7447. version_type=sunos
  7448. sys_lib_dlsearch_path_spec="/usr/lib"
  7449. need_lib_prefix=no
  7450. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7451. case $host_os in
  7452. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7453. *) need_version=no ;;
  7454. esac
  7455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7456. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7457. shlibpath_var=LD_LIBRARY_PATH
  7458. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7459. case $host_os in
  7460. openbsd2.[89] | openbsd2.[89].*)
  7461. shlibpath_overrides_runpath=no
  7462. ;;
  7463. *)
  7464. shlibpath_overrides_runpath=yes
  7465. ;;
  7466. esac
  7467. else
  7468. shlibpath_overrides_runpath=yes
  7469. fi
  7470. ;;
  7471. os2*)
  7472. libname_spec='$name'
  7473. shrext_cmds=".dll"
  7474. need_lib_prefix=no
  7475. library_names_spec='$libname${shared_ext} $libname.a'
  7476. dynamic_linker='OS/2 ld.exe'
  7477. shlibpath_var=LIBPATH
  7478. ;;
  7479. osf3* | osf4* | osf5*)
  7480. version_type=osf
  7481. need_lib_prefix=no
  7482. need_version=no
  7483. soname_spec='${libname}${release}${shared_ext}$major'
  7484. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7485. shlibpath_var=LD_LIBRARY_PATH
  7486. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7487. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7488. ;;
  7489. rdos*)
  7490. dynamic_linker=no
  7491. ;;
  7492. solaris*)
  7493. version_type=linux
  7494. need_lib_prefix=no
  7495. need_version=no
  7496. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7497. soname_spec='${libname}${release}${shared_ext}$major'
  7498. shlibpath_var=LD_LIBRARY_PATH
  7499. shlibpath_overrides_runpath=yes
  7500. hardcode_into_libs=yes
  7501. # ldd complains unless libraries are executable
  7502. postinstall_cmds='chmod +x $lib'
  7503. ;;
  7504. sunos4*)
  7505. version_type=sunos
  7506. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7507. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7508. shlibpath_var=LD_LIBRARY_PATH
  7509. shlibpath_overrides_runpath=yes
  7510. if test "$with_gnu_ld" = yes; then
  7511. need_lib_prefix=no
  7512. fi
  7513. need_version=yes
  7514. ;;
  7515. sysv4 | sysv4.3*)
  7516. version_type=linux
  7517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7518. soname_spec='${libname}${release}${shared_ext}$major'
  7519. shlibpath_var=LD_LIBRARY_PATH
  7520. case $host_vendor in
  7521. sni)
  7522. shlibpath_overrides_runpath=no
  7523. need_lib_prefix=no
  7524. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7525. runpath_var=LD_RUN_PATH
  7526. ;;
  7527. siemens)
  7528. need_lib_prefix=no
  7529. ;;
  7530. motorola)
  7531. need_lib_prefix=no
  7532. need_version=no
  7533. shlibpath_overrides_runpath=no
  7534. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7535. ;;
  7536. esac
  7537. ;;
  7538. sysv4*MP*)
  7539. if test -d /usr/nec ;then
  7540. version_type=linux
  7541. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7542. soname_spec='$libname${shared_ext}.$major'
  7543. shlibpath_var=LD_LIBRARY_PATH
  7544. fi
  7545. ;;
  7546. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  7547. version_type=freebsd-elf
  7548. need_lib_prefix=no
  7549. need_version=no
  7550. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  7551. soname_spec='${libname}${release}${shared_ext}$major'
  7552. shlibpath_var=LD_LIBRARY_PATH
  7553. hardcode_into_libs=yes
  7554. if test "$with_gnu_ld" = yes; then
  7555. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  7556. shlibpath_overrides_runpath=no
  7557. else
  7558. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  7559. shlibpath_overrides_runpath=yes
  7560. case $host_os in
  7561. sco3.2v5*)
  7562. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  7563. ;;
  7564. esac
  7565. fi
  7566. sys_lib_dlsearch_path_spec='/usr/lib'
  7567. ;;
  7568. uts4*)
  7569. version_type=linux
  7570. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7571. soname_spec='${libname}${release}${shared_ext}$major'
  7572. shlibpath_var=LD_LIBRARY_PATH
  7573. ;;
  7574. *)
  7575. dynamic_linker=no
  7576. ;;
  7577. esac
  7578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  7579. $as_echo "$dynamic_linker" >&6; }
  7580. test "$dynamic_linker" = no && can_build_shared=no
  7581. if ${lt_cv_sys_lib_search_path_spec+:} false; then :
  7582. $as_echo_n "(cached) " >&6
  7583. else
  7584. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  7585. fi
  7586. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  7587. if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
  7588. $as_echo_n "(cached) " >&6
  7589. else
  7590. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  7591. fi
  7592. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  7593. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7594. if test "$GCC" = yes; then
  7595. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7596. fi
  7597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  7598. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  7599. hardcode_action=
  7600. if test -n "$hardcode_libdir_flag_spec" || \
  7601. test -n "$runpath_var" || \
  7602. test "X$hardcode_automatic" = "Xyes" ; then
  7603. # We can hardcode non-existent directories.
  7604. if test "$hardcode_direct" != no &&
  7605. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7606. # have to relink, otherwise we might link with an installed library
  7607. # when we should be linking with a yet-to-be-installed one
  7608. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7609. test "$hardcode_minus_L" != no; then
  7610. # Linking always hardcodes the temporary library directory.
  7611. hardcode_action=relink
  7612. else
  7613. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7614. hardcode_action=immediate
  7615. fi
  7616. else
  7617. # We cannot hardcode anything, or else we can only hardcode existing
  7618. # directories.
  7619. hardcode_action=unsupported
  7620. fi
  7621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  7622. $as_echo "$hardcode_action" >&6; }
  7623. if test "$hardcode_action" = relink; then
  7624. # Fast installation is not supported
  7625. enable_fast_install=no
  7626. elif test "$shlibpath_overrides_runpath" = yes ||
  7627. test "$enable_shared" = no; then
  7628. # Fast installation is not necessary
  7629. enable_fast_install=needless
  7630. fi
  7631. striplib=
  7632. old_striplib=
  7633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  7634. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  7635. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7636. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7637. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7639. $as_echo "yes" >&6; }
  7640. else
  7641. # FIXME - insert some real tests, host_os isn't really good enough
  7642. case $host_os in
  7643. darwin*)
  7644. if test -n "$STRIP" ; then
  7645. striplib="$STRIP -x"
  7646. old_striplib="$STRIP -S"
  7647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7648. $as_echo "yes" >&6; }
  7649. else
  7650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7651. $as_echo "no" >&6; }
  7652. fi
  7653. ;;
  7654. *)
  7655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7656. $as_echo "no" >&6; }
  7657. ;;
  7658. esac
  7659. fi
  7660. if test "x$enable_dlopen" != xyes; then
  7661. enable_dlopen=unknown
  7662. enable_dlopen_self=unknown
  7663. enable_dlopen_self_static=unknown
  7664. else
  7665. lt_cv_dlopen=no
  7666. lt_cv_dlopen_libs=
  7667. case $host_os in
  7668. beos*)
  7669. lt_cv_dlopen="load_add_on"
  7670. lt_cv_dlopen_libs=
  7671. lt_cv_dlopen_self=yes
  7672. ;;
  7673. mingw* | pw32*)
  7674. lt_cv_dlopen="LoadLibrary"
  7675. lt_cv_dlopen_libs=
  7676. ;;
  7677. cygwin*)
  7678. lt_cv_dlopen="dlopen"
  7679. lt_cv_dlopen_libs=
  7680. ;;
  7681. darwin*)
  7682. # if libdl is installed we need to link against it
  7683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  7684. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  7685. if ${ac_cv_lib_dl_dlopen+:} false; then :
  7686. $as_echo_n "(cached) " >&6
  7687. else
  7688. ac_check_lib_save_LIBS=$LIBS
  7689. LIBS="-ldl $LIBS"
  7690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7691. /* end confdefs.h. */
  7692. /* Override any GCC internal prototype to avoid an error.
  7693. Use char because int might match the return type of a GCC
  7694. builtin and then its argument prototype would still apply. */
  7695. #ifdef __cplusplus
  7696. extern "C"
  7697. #endif
  7698. char dlopen ();
  7699. int
  7700. main ()
  7701. {
  7702. return dlopen ();
  7703. ;
  7704. return 0;
  7705. }
  7706. _ACEOF
  7707. if ac_fn_c_try_link "$LINENO"; then :
  7708. ac_cv_lib_dl_dlopen=yes
  7709. else
  7710. ac_cv_lib_dl_dlopen=no
  7711. fi
  7712. rm -f core conftest.err conftest.$ac_objext \
  7713. conftest$ac_exeext conftest.$ac_ext
  7714. LIBS=$ac_check_lib_save_LIBS
  7715. fi
  7716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  7717. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  7718. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  7719. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7720. else
  7721. lt_cv_dlopen="dyld"
  7722. lt_cv_dlopen_libs=
  7723. lt_cv_dlopen_self=yes
  7724. fi
  7725. ;;
  7726. *)
  7727. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  7728. if test "x$ac_cv_func_shl_load" = xyes; then :
  7729. lt_cv_dlopen="shl_load"
  7730. else
  7731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  7732. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  7733. if ${ac_cv_lib_dld_shl_load+:} false; then :
  7734. $as_echo_n "(cached) " >&6
  7735. else
  7736. ac_check_lib_save_LIBS=$LIBS
  7737. LIBS="-ldld $LIBS"
  7738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7739. /* end confdefs.h. */
  7740. /* Override any GCC internal prototype to avoid an error.
  7741. Use char because int might match the return type of a GCC
  7742. builtin and then its argument prototype would still apply. */
  7743. #ifdef __cplusplus
  7744. extern "C"
  7745. #endif
  7746. char shl_load ();
  7747. int
  7748. main ()
  7749. {
  7750. return shl_load ();
  7751. ;
  7752. return 0;
  7753. }
  7754. _ACEOF
  7755. if ac_fn_c_try_link "$LINENO"; then :
  7756. ac_cv_lib_dld_shl_load=yes
  7757. else
  7758. ac_cv_lib_dld_shl_load=no
  7759. fi
  7760. rm -f core conftest.err conftest.$ac_objext \
  7761. conftest$ac_exeext conftest.$ac_ext
  7762. LIBS=$ac_check_lib_save_LIBS
  7763. fi
  7764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  7765. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  7766. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  7767. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  7768. else
  7769. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  7770. if test "x$ac_cv_func_dlopen" = xyes; then :
  7771. lt_cv_dlopen="dlopen"
  7772. else
  7773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  7774. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  7775. if ${ac_cv_lib_dl_dlopen+:} false; then :
  7776. $as_echo_n "(cached) " >&6
  7777. else
  7778. ac_check_lib_save_LIBS=$LIBS
  7779. LIBS="-ldl $LIBS"
  7780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7781. /* end confdefs.h. */
  7782. /* Override any GCC internal prototype to avoid an error.
  7783. Use char because int might match the return type of a GCC
  7784. builtin and then its argument prototype would still apply. */
  7785. #ifdef __cplusplus
  7786. extern "C"
  7787. #endif
  7788. char dlopen ();
  7789. int
  7790. main ()
  7791. {
  7792. return dlopen ();
  7793. ;
  7794. return 0;
  7795. }
  7796. _ACEOF
  7797. if ac_fn_c_try_link "$LINENO"; then :
  7798. ac_cv_lib_dl_dlopen=yes
  7799. else
  7800. ac_cv_lib_dl_dlopen=no
  7801. fi
  7802. rm -f core conftest.err conftest.$ac_objext \
  7803. conftest$ac_exeext conftest.$ac_ext
  7804. LIBS=$ac_check_lib_save_LIBS
  7805. fi
  7806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  7807. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  7808. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  7809. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7810. else
  7811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  7812. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  7813. if ${ac_cv_lib_svld_dlopen+:} false; then :
  7814. $as_echo_n "(cached) " >&6
  7815. else
  7816. ac_check_lib_save_LIBS=$LIBS
  7817. LIBS="-lsvld $LIBS"
  7818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7819. /* end confdefs.h. */
  7820. /* Override any GCC internal prototype to avoid an error.
  7821. Use char because int might match the return type of a GCC
  7822. builtin and then its argument prototype would still apply. */
  7823. #ifdef __cplusplus
  7824. extern "C"
  7825. #endif
  7826. char dlopen ();
  7827. int
  7828. main ()
  7829. {
  7830. return dlopen ();
  7831. ;
  7832. return 0;
  7833. }
  7834. _ACEOF
  7835. if ac_fn_c_try_link "$LINENO"; then :
  7836. ac_cv_lib_svld_dlopen=yes
  7837. else
  7838. ac_cv_lib_svld_dlopen=no
  7839. fi
  7840. rm -f core conftest.err conftest.$ac_objext \
  7841. conftest$ac_exeext conftest.$ac_ext
  7842. LIBS=$ac_check_lib_save_LIBS
  7843. fi
  7844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  7845. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  7846. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  7847. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  7848. else
  7849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  7850. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  7851. if ${ac_cv_lib_dld_dld_link+:} false; then :
  7852. $as_echo_n "(cached) " >&6
  7853. else
  7854. ac_check_lib_save_LIBS=$LIBS
  7855. LIBS="-ldld $LIBS"
  7856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7857. /* end confdefs.h. */
  7858. /* Override any GCC internal prototype to avoid an error.
  7859. Use char because int might match the return type of a GCC
  7860. builtin and then its argument prototype would still apply. */
  7861. #ifdef __cplusplus
  7862. extern "C"
  7863. #endif
  7864. char dld_link ();
  7865. int
  7866. main ()
  7867. {
  7868. return dld_link ();
  7869. ;
  7870. return 0;
  7871. }
  7872. _ACEOF
  7873. if ac_fn_c_try_link "$LINENO"; then :
  7874. ac_cv_lib_dld_dld_link=yes
  7875. else
  7876. ac_cv_lib_dld_dld_link=no
  7877. fi
  7878. rm -f core conftest.err conftest.$ac_objext \
  7879. conftest$ac_exeext conftest.$ac_ext
  7880. LIBS=$ac_check_lib_save_LIBS
  7881. fi
  7882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  7883. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  7884. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  7885. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  7886. fi
  7887. fi
  7888. fi
  7889. fi
  7890. fi
  7891. fi
  7892. ;;
  7893. esac
  7894. if test "x$lt_cv_dlopen" != xno; then
  7895. enable_dlopen=yes
  7896. else
  7897. enable_dlopen=no
  7898. fi
  7899. case $lt_cv_dlopen in
  7900. dlopen)
  7901. save_CPPFLAGS="$CPPFLAGS"
  7902. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  7903. save_LDFLAGS="$LDFLAGS"
  7904. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  7905. save_LIBS="$LIBS"
  7906. LIBS="$lt_cv_dlopen_libs $LIBS"
  7907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  7908. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  7909. if ${lt_cv_dlopen_self+:} false; then :
  7910. $as_echo_n "(cached) " >&6
  7911. else
  7912. if test "$cross_compiling" = yes; then :
  7913. lt_cv_dlopen_self=cross
  7914. else
  7915. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7916. lt_status=$lt_dlunknown
  7917. cat > conftest.$ac_ext <<EOF
  7918. #line 8901 "configure"
  7919. #include "confdefs.h"
  7920. #if HAVE_DLFCN_H
  7921. #include <dlfcn.h>
  7922. #endif
  7923. #include <stdio.h>
  7924. #ifdef RTLD_GLOBAL
  7925. # define LT_DLGLOBAL RTLD_GLOBAL
  7926. #else
  7927. # ifdef DL_GLOBAL
  7928. # define LT_DLGLOBAL DL_GLOBAL
  7929. # else
  7930. # define LT_DLGLOBAL 0
  7931. # endif
  7932. #endif
  7933. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7934. find out it does not work in some platform. */
  7935. #ifndef LT_DLLAZY_OR_NOW
  7936. # ifdef RTLD_LAZY
  7937. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7938. # else
  7939. # ifdef DL_LAZY
  7940. # define LT_DLLAZY_OR_NOW DL_LAZY
  7941. # else
  7942. # ifdef RTLD_NOW
  7943. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7944. # else
  7945. # ifdef DL_NOW
  7946. # define LT_DLLAZY_OR_NOW DL_NOW
  7947. # else
  7948. # define LT_DLLAZY_OR_NOW 0
  7949. # endif
  7950. # endif
  7951. # endif
  7952. # endif
  7953. #endif
  7954. #ifdef __cplusplus
  7955. extern "C" void exit (int);
  7956. #endif
  7957. void fnord() { int i=42;}
  7958. int main ()
  7959. {
  7960. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7961. int status = $lt_dlunknown;
  7962. if (self)
  7963. {
  7964. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7965. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7966. /* dlclose (self); */
  7967. }
  7968. else
  7969. puts (dlerror ());
  7970. exit (status);
  7971. }
  7972. EOF
  7973. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7974. (eval $ac_link) 2>&5
  7975. ac_status=$?
  7976. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7977. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  7978. (./conftest; exit; ) >&5 2>/dev/null
  7979. lt_status=$?
  7980. case x$lt_status in
  7981. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  7982. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  7983. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  7984. esac
  7985. else :
  7986. # compilation failed
  7987. lt_cv_dlopen_self=no
  7988. fi
  7989. fi
  7990. rm -fr conftest*
  7991. fi
  7992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  7993. $as_echo "$lt_cv_dlopen_self" >&6; }
  7994. if test "x$lt_cv_dlopen_self" = xyes; then
  7995. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  7996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  7997. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  7998. if ${lt_cv_dlopen_self_static+:} false; then :
  7999. $as_echo_n "(cached) " >&6
  8000. else
  8001. if test "$cross_compiling" = yes; then :
  8002. lt_cv_dlopen_self_static=cross
  8003. else
  8004. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8005. lt_status=$lt_dlunknown
  8006. cat > conftest.$ac_ext <<EOF
  8007. #line 9001 "configure"
  8008. #include "confdefs.h"
  8009. #if HAVE_DLFCN_H
  8010. #include <dlfcn.h>
  8011. #endif
  8012. #include <stdio.h>
  8013. #ifdef RTLD_GLOBAL
  8014. # define LT_DLGLOBAL RTLD_GLOBAL
  8015. #else
  8016. # ifdef DL_GLOBAL
  8017. # define LT_DLGLOBAL DL_GLOBAL
  8018. # else
  8019. # define LT_DLGLOBAL 0
  8020. # endif
  8021. #endif
  8022. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8023. find out it does not work in some platform. */
  8024. #ifndef LT_DLLAZY_OR_NOW
  8025. # ifdef RTLD_LAZY
  8026. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  8027. # else
  8028. # ifdef DL_LAZY
  8029. # define LT_DLLAZY_OR_NOW DL_LAZY
  8030. # else
  8031. # ifdef RTLD_NOW
  8032. # define LT_DLLAZY_OR_NOW RTLD_NOW
  8033. # else
  8034. # ifdef DL_NOW
  8035. # define LT_DLLAZY_OR_NOW DL_NOW
  8036. # else
  8037. # define LT_DLLAZY_OR_NOW 0
  8038. # endif
  8039. # endif
  8040. # endif
  8041. # endif
  8042. #endif
  8043. #ifdef __cplusplus
  8044. extern "C" void exit (int);
  8045. #endif
  8046. void fnord() { int i=42;}
  8047. int main ()
  8048. {
  8049. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8050. int status = $lt_dlunknown;
  8051. if (self)
  8052. {
  8053. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8054. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8055. /* dlclose (self); */
  8056. }
  8057. else
  8058. puts (dlerror ());
  8059. exit (status);
  8060. }
  8061. EOF
  8062. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8063. (eval $ac_link) 2>&5
  8064. ac_status=$?
  8065. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8066. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  8067. (./conftest; exit; ) >&5 2>/dev/null
  8068. lt_status=$?
  8069. case x$lt_status in
  8070. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8071. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8072. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  8073. esac
  8074. else :
  8075. # compilation failed
  8076. lt_cv_dlopen_self_static=no
  8077. fi
  8078. fi
  8079. rm -fr conftest*
  8080. fi
  8081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  8082. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  8083. fi
  8084. CPPFLAGS="$save_CPPFLAGS"
  8085. LDFLAGS="$save_LDFLAGS"
  8086. LIBS="$save_LIBS"
  8087. ;;
  8088. esac
  8089. case $lt_cv_dlopen_self in
  8090. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8091. *) enable_dlopen_self=unknown ;;
  8092. esac
  8093. case $lt_cv_dlopen_self_static in
  8094. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8095. *) enable_dlopen_self_static=unknown ;;
  8096. esac
  8097. fi
  8098. # Report which library types will actually be built
  8099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  8100. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  8101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  8102. $as_echo "$can_build_shared" >&6; }
  8103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  8104. $as_echo_n "checking whether to build shared libraries... " >&6; }
  8105. test "$can_build_shared" = "no" && enable_shared=no
  8106. # On AIX, shared libraries and static libraries use the same namespace, and
  8107. # are all built from PIC.
  8108. case $host_os in
  8109. aix3*)
  8110. test "$enable_shared" = yes && enable_static=no
  8111. if test -n "$RANLIB"; then
  8112. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8113. postinstall_cmds='$RANLIB $lib'
  8114. fi
  8115. ;;
  8116. aix[4-9]*)
  8117. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8118. test "$enable_shared" = yes && enable_static=no
  8119. fi
  8120. ;;
  8121. esac
  8122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  8123. $as_echo "$enable_shared" >&6; }
  8124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  8125. $as_echo_n "checking whether to build static libraries... " >&6; }
  8126. # Make sure either enable_shared or enable_static is yes.
  8127. test "$enable_shared" = yes || enable_static=yes
  8128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  8129. $as_echo "$enable_static" >&6; }
  8130. # The else clause should only fire when bootstrapping the
  8131. # libtool distribution, otherwise you forgot to ship ltmain.sh
  8132. # with your package, and you will get complaints that there are
  8133. # no rules to generate ltmain.sh.
  8134. if test -f "$ltmain"; then
  8135. # See if we are running on zsh, and set the options which allow our commands through
  8136. # without removal of \ escapes.
  8137. if test -n "${ZSH_VERSION+set}" ; then
  8138. setopt NO_GLOB_SUBST
  8139. fi
  8140. # Now quote all the things that may contain metacharacters while being
  8141. # careful not to overquote the AC_SUBSTed values. We take copies of the
  8142. # variables and quote the copies for generation of the libtool script.
  8143. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  8144. SED SHELL STRIP \
  8145. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  8146. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  8147. deplibs_check_method reload_flag reload_cmds need_locks \
  8148. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  8149. lt_cv_sys_global_symbol_to_c_name_address \
  8150. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8151. old_postinstall_cmds old_postuninstall_cmds \
  8152. compiler \
  8153. CC \
  8154. LD \
  8155. lt_prog_compiler_wl \
  8156. lt_prog_compiler_pic \
  8157. lt_prog_compiler_static \
  8158. lt_prog_compiler_no_builtin_flag \
  8159. export_dynamic_flag_spec \
  8160. thread_safe_flag_spec \
  8161. whole_archive_flag_spec \
  8162. enable_shared_with_static_runtimes \
  8163. old_archive_cmds \
  8164. old_archive_from_new_cmds \
  8165. predep_objects \
  8166. postdep_objects \
  8167. predeps \
  8168. postdeps \
  8169. compiler_lib_search_path \
  8170. compiler_lib_search_dirs \
  8171. archive_cmds \
  8172. archive_expsym_cmds \
  8173. postinstall_cmds \
  8174. postuninstall_cmds \
  8175. old_archive_from_expsyms_cmds \
  8176. allow_undefined_flag \
  8177. no_undefined_flag \
  8178. export_symbols_cmds \
  8179. hardcode_libdir_flag_spec \
  8180. hardcode_libdir_flag_spec_ld \
  8181. hardcode_libdir_separator \
  8182. hardcode_automatic \
  8183. module_cmds \
  8184. module_expsym_cmds \
  8185. lt_cv_prog_compiler_c_o \
  8186. fix_srcfile_path \
  8187. exclude_expsyms \
  8188. include_expsyms; do
  8189. case $var in
  8190. old_archive_cmds | \
  8191. old_archive_from_new_cmds | \
  8192. archive_cmds | \
  8193. archive_expsym_cmds | \
  8194. module_cmds | \
  8195. module_expsym_cmds | \
  8196. old_archive_from_expsyms_cmds | \
  8197. export_symbols_cmds | \
  8198. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  8199. postinstall_cmds | postuninstall_cmds | \
  8200. old_postinstall_cmds | old_postuninstall_cmds | \
  8201. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8202. # Double-quote double-evaled strings.
  8203. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8204. ;;
  8205. *)
  8206. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8207. ;;
  8208. esac
  8209. done
  8210. case $lt_echo in
  8211. *'\$0 --fallback-echo"')
  8212. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  8213. ;;
  8214. esac
  8215. cfgfile="${ofile}T"
  8216. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  8217. $rm -f "$cfgfile"
  8218. { $as_echo "$as_me:${as_lineno-$LINENO}: result:
  8219. creating $ofile" >&5
  8220. $as_echo "
  8221. creating $ofile" >&6; }
  8222. cat <<__EOF__ >> "$cfgfile"
  8223. #! $SHELL
  8224. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8225. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8226. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8227. #
  8228. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  8229. # Free Software Foundation, Inc.
  8230. #
  8231. # This file is part of GNU Libtool:
  8232. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  8233. #
  8234. # This program is free software; you can redistribute it and/or modify
  8235. # it under the terms of the GNU General Public License as published by
  8236. # the Free Software Foundation; either version 2 of the License, or
  8237. # (at your option) any later version.
  8238. #
  8239. # This program is distributed in the hope that it will be useful, but
  8240. # WITHOUT ANY WARRANTY; without even the implied warranty of
  8241. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8242. # General Public License for more details.
  8243. #
  8244. # You should have received a copy of the GNU General Public License
  8245. # along with this program; if not, write to the Free Software
  8246. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  8247. #
  8248. # As a special exception to the GNU General Public License, if you
  8249. # distribute this file as part of a program that contains a
  8250. # configuration script generated by Autoconf, you may include it under
  8251. # the same distribution terms that you use for the rest of that program.
  8252. # A sed program that does not truncate output.
  8253. SED=$lt_SED
  8254. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8255. Xsed="$SED -e 1s/^X//"
  8256. # The HP-UX ksh and POSIX shell print the target directory to stdout
  8257. # if CDPATH is set.
  8258. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8259. # The names of the tagged configurations supported by this script.
  8260. available_tags=
  8261. # ### BEGIN LIBTOOL CONFIG
  8262. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8263. # Shell to use when invoking shell scripts.
  8264. SHELL=$lt_SHELL
  8265. # Whether or not to build shared libraries.
  8266. build_libtool_libs=$enable_shared
  8267. # Whether or not to build static libraries.
  8268. build_old_libs=$enable_static
  8269. # Whether or not to add -lc for building shared libraries.
  8270. build_libtool_need_lc=$archive_cmds_need_lc
  8271. # Whether or not to disallow shared libs when runtime libs are static
  8272. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  8273. # Whether or not to optimize for fast installation.
  8274. fast_install=$enable_fast_install
  8275. # The host system.
  8276. host_alias=$host_alias
  8277. host=$host
  8278. host_os=$host_os
  8279. # The build system.
  8280. build_alias=$build_alias
  8281. build=$build
  8282. build_os=$build_os
  8283. # An echo program that does not interpret backslashes.
  8284. echo=$lt_echo
  8285. # The archiver.
  8286. AR=$lt_AR
  8287. AR_FLAGS=$lt_AR_FLAGS
  8288. # A C compiler.
  8289. LTCC=$lt_LTCC
  8290. # LTCC compiler flags.
  8291. LTCFLAGS=$lt_LTCFLAGS
  8292. # A language-specific compiler.
  8293. CC=$lt_compiler
  8294. # Is the compiler the GNU C compiler?
  8295. with_gcc=$GCC
  8296. # An ERE matcher.
  8297. EGREP=$lt_EGREP
  8298. # The linker used to build libraries.
  8299. LD=$lt_LD
  8300. # Whether we need hard or soft links.
  8301. LN_S=$lt_LN_S
  8302. # A BSD-compatible nm program.
  8303. NM=$lt_NM
  8304. # A symbol stripping program
  8305. STRIP=$lt_STRIP
  8306. # Used to examine libraries when file_magic_cmd begins "file"
  8307. MAGIC_CMD=$MAGIC_CMD
  8308. # Used on cygwin: DLL creation program.
  8309. DLLTOOL="$DLLTOOL"
  8310. # Used on cygwin: object dumper.
  8311. OBJDUMP="$OBJDUMP"
  8312. # Used on cygwin: assembler.
  8313. AS="$AS"
  8314. # The name of the directory that contains temporary libtool files.
  8315. objdir=$objdir
  8316. # How to create reloadable object files.
  8317. reload_flag=$lt_reload_flag
  8318. reload_cmds=$lt_reload_cmds
  8319. # How to pass a linker flag through the compiler.
  8320. wl=$lt_lt_prog_compiler_wl
  8321. # Object file suffix (normally "o").
  8322. objext="$ac_objext"
  8323. # Old archive suffix (normally "a").
  8324. libext="$libext"
  8325. # Shared library suffix (normally ".so").
  8326. shrext_cmds='$shrext_cmds'
  8327. # Executable file suffix (normally "").
  8328. exeext="$exeext"
  8329. # Additional compiler flags for building library objects.
  8330. pic_flag=$lt_lt_prog_compiler_pic
  8331. pic_mode=$pic_mode
  8332. # What is the maximum length of a command?
  8333. max_cmd_len=$lt_cv_sys_max_cmd_len
  8334. # Does compiler simultaneously support -c and -o options?
  8335. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  8336. # Must we lock files when doing compilation?
  8337. need_locks=$lt_need_locks
  8338. # Do we need the lib prefix for modules?
  8339. need_lib_prefix=$need_lib_prefix
  8340. # Do we need a version for libraries?
  8341. need_version=$need_version
  8342. # Whether dlopen is supported.
  8343. dlopen_support=$enable_dlopen
  8344. # Whether dlopen of programs is supported.
  8345. dlopen_self=$enable_dlopen_self
  8346. # Whether dlopen of statically linked programs is supported.
  8347. dlopen_self_static=$enable_dlopen_self_static
  8348. # Compiler flag to prevent dynamic linking.
  8349. link_static_flag=$lt_lt_prog_compiler_static
  8350. # Compiler flag to turn off builtin functions.
  8351. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8352. # Compiler flag to allow reflexive dlopens.
  8353. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8354. # Compiler flag to generate shared objects directly from archives.
  8355. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8356. # Compiler flag to generate thread-safe objects.
  8357. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8358. # Library versioning type.
  8359. version_type=$version_type
  8360. # Format of library name prefix.
  8361. libname_spec=$lt_libname_spec
  8362. # List of archive names. First name is the real one, the rest are links.
  8363. # The last name is the one that the linker finds with -lNAME.
  8364. library_names_spec=$lt_library_names_spec
  8365. # The coded name of the library, if different from the real name.
  8366. soname_spec=$lt_soname_spec
  8367. # Commands used to build and install an old-style archive.
  8368. RANLIB=$lt_RANLIB
  8369. old_archive_cmds=$lt_old_archive_cmds
  8370. old_postinstall_cmds=$lt_old_postinstall_cmds
  8371. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8372. # Create an old-style archive from a shared archive.
  8373. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8374. # Create a temporary old-style archive to link instead of a shared archive.
  8375. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8376. # Commands used to build and install a shared archive.
  8377. archive_cmds=$lt_archive_cmds
  8378. archive_expsym_cmds=$lt_archive_expsym_cmds
  8379. postinstall_cmds=$lt_postinstall_cmds
  8380. postuninstall_cmds=$lt_postuninstall_cmds
  8381. # Commands used to build a loadable module (assumed same as above if empty)
  8382. module_cmds=$lt_module_cmds
  8383. module_expsym_cmds=$lt_module_expsym_cmds
  8384. # Commands to strip libraries.
  8385. old_striplib=$lt_old_striplib
  8386. striplib=$lt_striplib
  8387. # Dependencies to place before the objects being linked to create a
  8388. # shared library.
  8389. predep_objects=$lt_predep_objects
  8390. # Dependencies to place after the objects being linked to create a
  8391. # shared library.
  8392. postdep_objects=$lt_postdep_objects
  8393. # Dependencies to place before the objects being linked to create a
  8394. # shared library.
  8395. predeps=$lt_predeps
  8396. # Dependencies to place after the objects being linked to create a
  8397. # shared library.
  8398. postdeps=$lt_postdeps
  8399. # The directories searched by this compiler when creating a shared
  8400. # library
  8401. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  8402. # The library search path used internally by the compiler when linking
  8403. # a shared library.
  8404. compiler_lib_search_path=$lt_compiler_lib_search_path
  8405. # Method to check whether dependent libraries are shared objects.
  8406. deplibs_check_method=$lt_deplibs_check_method
  8407. # Command to use when deplibs_check_method == file_magic.
  8408. file_magic_cmd=$lt_file_magic_cmd
  8409. # Flag that allows shared libraries with undefined symbols to be built.
  8410. allow_undefined_flag=$lt_allow_undefined_flag
  8411. # Flag that forces no undefined symbols.
  8412. no_undefined_flag=$lt_no_undefined_flag
  8413. # Commands used to finish a libtool library installation in a directory.
  8414. finish_cmds=$lt_finish_cmds
  8415. # Same as above, but a single script fragment to be evaled but not shown.
  8416. finish_eval=$lt_finish_eval
  8417. # Take the output of nm and produce a listing of raw symbols and C names.
  8418. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8419. # Transform the output of nm in a proper C declaration
  8420. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8421. # Transform the output of nm in a C name address pair
  8422. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8423. # This is the shared library runtime path variable.
  8424. runpath_var=$runpath_var
  8425. # This is the shared library path variable.
  8426. shlibpath_var=$shlibpath_var
  8427. # Is shlibpath searched before the hard-coded library search path?
  8428. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8429. # How to hardcode a shared library path into an executable.
  8430. hardcode_action=$hardcode_action
  8431. # Whether we should hardcode library paths into libraries.
  8432. hardcode_into_libs=$hardcode_into_libs
  8433. # Flag to hardcode \$libdir into a binary during linking.
  8434. # This must work even if \$libdir does not exist.
  8435. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8436. # If ld is used when linking, flag to hardcode \$libdir into
  8437. # a binary during linking. This must work even if \$libdir does
  8438. # not exist.
  8439. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8440. # Whether we need a single -rpath flag with a separated argument.
  8441. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8442. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8443. # resulting binary.
  8444. hardcode_direct=$hardcode_direct
  8445. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8446. # resulting binary.
  8447. hardcode_minus_L=$hardcode_minus_L
  8448. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8449. # the resulting binary.
  8450. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8451. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8452. # and all subsequent libraries and executables linked against it.
  8453. hardcode_automatic=$hardcode_automatic
  8454. # Variables whose values should be saved in libtool wrapper scripts and
  8455. # restored at relink time.
  8456. variables_saved_for_relink="$variables_saved_for_relink"
  8457. # Whether libtool must link a program against all its dependency libraries.
  8458. link_all_deplibs=$link_all_deplibs
  8459. # Compile-time system search path for libraries
  8460. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8461. # Run-time system search path for libraries
  8462. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8463. # Fix the shell variable \$srcfile for the compiler.
  8464. fix_srcfile_path=$lt_fix_srcfile_path
  8465. # Set to yes if exported symbols are required.
  8466. always_export_symbols=$always_export_symbols
  8467. # The commands to list exported symbols.
  8468. export_symbols_cmds=$lt_export_symbols_cmds
  8469. # The commands to extract the exported symbol list from a shared archive.
  8470. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8471. # Symbols that should not be listed in the preloaded symbols.
  8472. exclude_expsyms=$lt_exclude_expsyms
  8473. # Symbols that must always be exported.
  8474. include_expsyms=$lt_include_expsyms
  8475. # ### END LIBTOOL CONFIG
  8476. __EOF__
  8477. case $host_os in
  8478. aix3*)
  8479. cat <<\EOF >> "$cfgfile"
  8480. # AIX sometimes has problems with the GCC collect2 program. For some
  8481. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8482. # vanish in a puff of smoke.
  8483. if test "X${COLLECT_NAMES+set}" != Xset; then
  8484. COLLECT_NAMES=
  8485. export COLLECT_NAMES
  8486. fi
  8487. EOF
  8488. ;;
  8489. esac
  8490. # We use sed instead of cat because bash on DJGPP gets confused if
  8491. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8492. # text mode, it properly converts lines to CR/LF. This bash problem
  8493. # is reportedly fixed, but why not run on old versions too?
  8494. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8495. mv -f "$cfgfile" "$ofile" || \
  8496. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8497. chmod +x "$ofile"
  8498. else
  8499. # If there is no Makefile yet, we rely on a make rule to execute
  8500. # `config.status --recheck' to rerun these tests and create the
  8501. # libtool script then.
  8502. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8503. if test -f "$ltmain_in"; then
  8504. test -f Makefile && make "$ltmain"
  8505. fi
  8506. fi
  8507. ac_ext=c
  8508. ac_cpp='$CPP $CPPFLAGS'
  8509. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8510. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8511. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8512. CC="$lt_save_CC"
  8513. # Check whether --with-tags was given.
  8514. if test "${with_tags+set}" = set; then :
  8515. withval=$with_tags; tagnames="$withval"
  8516. fi
  8517. if test -f "$ltmain" && test -n "$tagnames"; then
  8518. if test ! -f "${ofile}"; then
  8519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
  8520. $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  8521. fi
  8522. if test -z "$LTCC"; then
  8523. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  8524. if test -z "$LTCC"; then
  8525. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  8526. $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  8527. else
  8528. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  8529. $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  8530. fi
  8531. fi
  8532. if test -z "$LTCFLAGS"; then
  8533. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  8534. fi
  8535. # Extract list of available tagged configurations in $ofile.
  8536. # Note that this assumes the entire list is on one line.
  8537. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  8538. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8539. for tagname in $tagnames; do
  8540. IFS="$lt_save_ifs"
  8541. # Check whether tagname contains only valid characters
  8542. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  8543. "") ;;
  8544. *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
  8545. ;;
  8546. esac
  8547. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  8548. then
  8549. as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
  8550. fi
  8551. # Update the list of available tags.
  8552. if test -n "$tagname"; then
  8553. echo appending configuration tag \"$tagname\" to $ofile
  8554. case $tagname in
  8555. CXX)
  8556. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  8557. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  8558. (test "X$CXX" != "Xg++"))) ; then
  8559. ac_ext=cpp
  8560. ac_cpp='$CXXCPP $CPPFLAGS'
  8561. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8562. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8563. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8564. archive_cmds_need_lc_CXX=no
  8565. allow_undefined_flag_CXX=
  8566. always_export_symbols_CXX=no
  8567. archive_expsym_cmds_CXX=
  8568. export_dynamic_flag_spec_CXX=
  8569. hardcode_direct_CXX=no
  8570. hardcode_libdir_flag_spec_CXX=
  8571. hardcode_libdir_flag_spec_ld_CXX=
  8572. hardcode_libdir_separator_CXX=
  8573. hardcode_minus_L_CXX=no
  8574. hardcode_shlibpath_var_CXX=unsupported
  8575. hardcode_automatic_CXX=no
  8576. module_cmds_CXX=
  8577. module_expsym_cmds_CXX=
  8578. link_all_deplibs_CXX=unknown
  8579. old_archive_cmds_CXX=$old_archive_cmds
  8580. no_undefined_flag_CXX=
  8581. whole_archive_flag_spec_CXX=
  8582. enable_shared_with_static_runtimes_CXX=no
  8583. # Dependencies to place before and after the object being linked:
  8584. predep_objects_CXX=
  8585. postdep_objects_CXX=
  8586. predeps_CXX=
  8587. postdeps_CXX=
  8588. compiler_lib_search_path_CXX=
  8589. compiler_lib_search_dirs_CXX=
  8590. # Source file extension for C++ test sources.
  8591. ac_ext=cpp
  8592. # Object file extension for compiled C++ test sources.
  8593. objext=o
  8594. objext_CXX=$objext
  8595. # Code to be used in simple compile tests
  8596. lt_simple_compile_test_code="int some_variable = 0;"
  8597. # Code to be used in simple link tests
  8598. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  8599. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8600. # If no C compiler was specified, use CC.
  8601. LTCC=${LTCC-"$CC"}
  8602. # If no C compiler flags were specified, use CFLAGS.
  8603. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8604. # Allow CC to be a program name with arguments.
  8605. compiler=$CC
  8606. # save warnings/boilerplate of simple test code
  8607. ac_outfile=conftest.$ac_objext
  8608. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8609. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8610. _lt_compiler_boilerplate=`cat conftest.err`
  8611. $rm conftest*
  8612. ac_outfile=conftest.$ac_objext
  8613. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8614. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8615. _lt_linker_boilerplate=`cat conftest.err`
  8616. $rm -r conftest*
  8617. # Allow CC to be a program name with arguments.
  8618. lt_save_CC=$CC
  8619. lt_save_LD=$LD
  8620. lt_save_GCC=$GCC
  8621. GCC=$GXX
  8622. lt_save_with_gnu_ld=$with_gnu_ld
  8623. lt_save_path_LD=$lt_cv_path_LD
  8624. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  8625. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  8626. else
  8627. unset lt_cv_prog_gnu_ld
  8628. fi
  8629. if test -n "${lt_cv_path_LDCXX+set}"; then
  8630. lt_cv_path_LD=$lt_cv_path_LDCXX
  8631. else
  8632. unset lt_cv_path_LD
  8633. fi
  8634. test -z "${LDCXX+set}" || LD=$LDCXX
  8635. CC=${CXX-"c++"}
  8636. compiler=$CC
  8637. compiler_CXX=$CC
  8638. for cc_temp in $compiler""; do
  8639. case $cc_temp in
  8640. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8641. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8642. \-*) ;;
  8643. *) break;;
  8644. esac
  8645. done
  8646. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8647. # We don't want -fno-exception wen compiling C++ code, so set the
  8648. # no_builtin_flag separately
  8649. if test "$GXX" = yes; then
  8650. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  8651. else
  8652. lt_prog_compiler_no_builtin_flag_CXX=
  8653. fi
  8654. if test "$GXX" = yes; then
  8655. # Set up default GNU C++ configuration
  8656. # Check whether --with-gnu-ld was given.
  8657. if test "${with_gnu_ld+set}" = set; then :
  8658. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8659. else
  8660. with_gnu_ld=no
  8661. fi
  8662. ac_prog=ld
  8663. if test "$GCC" = yes; then
  8664. # Check if gcc -print-prog-name=ld gives a path.
  8665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  8666. $as_echo_n "checking for ld used by $CC... " >&6; }
  8667. case $host in
  8668. *-*-mingw*)
  8669. # gcc leaves a trailing carriage return which upsets mingw
  8670. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8671. *)
  8672. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8673. esac
  8674. case $ac_prog in
  8675. # Accept absolute paths.
  8676. [\\/]* | ?:[\\/]*)
  8677. re_direlt='/[^/][^/]*/\.\./'
  8678. # Canonicalize the pathname of ld
  8679. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  8680. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8681. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  8682. done
  8683. test -z "$LD" && LD="$ac_prog"
  8684. ;;
  8685. "")
  8686. # If it fails, then pretend we aren't using GCC.
  8687. ac_prog=ld
  8688. ;;
  8689. *)
  8690. # If it is relative, then search for the first ld in PATH.
  8691. with_gnu_ld=unknown
  8692. ;;
  8693. esac
  8694. elif test "$with_gnu_ld" = yes; then
  8695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8696. $as_echo_n "checking for GNU ld... " >&6; }
  8697. else
  8698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8699. $as_echo_n "checking for non-GNU ld... " >&6; }
  8700. fi
  8701. if ${lt_cv_path_LD+:} false; then :
  8702. $as_echo_n "(cached) " >&6
  8703. else
  8704. if test -z "$LD"; then
  8705. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8706. for ac_dir in $PATH; do
  8707. IFS="$lt_save_ifs"
  8708. test -z "$ac_dir" && ac_dir=.
  8709. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8710. lt_cv_path_LD="$ac_dir/$ac_prog"
  8711. # Check to see if the program is GNU ld. I'd rather use --version,
  8712. # but apparently some variants of GNU ld only accept -v.
  8713. # Break only if it was the GNU/non-GNU ld that we prefer.
  8714. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  8715. *GNU* | *'with BFD'*)
  8716. test "$with_gnu_ld" != no && break
  8717. ;;
  8718. *)
  8719. test "$with_gnu_ld" != yes && break
  8720. ;;
  8721. esac
  8722. fi
  8723. done
  8724. IFS="$lt_save_ifs"
  8725. else
  8726. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  8727. fi
  8728. fi
  8729. LD="$lt_cv_path_LD"
  8730. if test -n "$LD"; then
  8731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8732. $as_echo "$LD" >&6; }
  8733. else
  8734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8735. $as_echo "no" >&6; }
  8736. fi
  8737. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  8738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8739. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8740. if ${lt_cv_prog_gnu_ld+:} false; then :
  8741. $as_echo_n "(cached) " >&6
  8742. else
  8743. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  8744. case `$LD -v 2>&1 </dev/null` in
  8745. *GNU* | *'with BFD'*)
  8746. lt_cv_prog_gnu_ld=yes
  8747. ;;
  8748. *)
  8749. lt_cv_prog_gnu_ld=no
  8750. ;;
  8751. esac
  8752. fi
  8753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  8754. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  8755. with_gnu_ld=$lt_cv_prog_gnu_ld
  8756. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  8757. # archiving commands below assume that GNU ld is being used.
  8758. if test "$with_gnu_ld" = yes; then
  8759. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8760. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8761. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  8762. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  8763. # If archive_cmds runs LD, not CC, wlarc should be empty
  8764. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  8765. # investigate it a little bit more. (MM)
  8766. wlarc='${wl}'
  8767. # ancient GNU ld didn't support --whole-archive et. al.
  8768. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  8769. grep 'no-whole-archive' > /dev/null; then
  8770. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8771. else
  8772. whole_archive_flag_spec_CXX=
  8773. fi
  8774. else
  8775. with_gnu_ld=no
  8776. wlarc=
  8777. # A generic and very simple default shared library creation
  8778. # command for GNU C++ for the case where it uses the native
  8779. # linker, instead of GNU ld. If possible, this setting should
  8780. # overridden to take advantage of the native linker features on
  8781. # the platform it is being used on.
  8782. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  8783. fi
  8784. # Commands to make compiler produce verbose output that lists
  8785. # what "hidden" libraries, object files and flags are used when
  8786. # linking a shared library.
  8787. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  8788. else
  8789. GXX=no
  8790. with_gnu_ld=no
  8791. wlarc=
  8792. fi
  8793. # PORTME: fill in a description of your system's C++ link characteristics
  8794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8795. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8796. ld_shlibs_CXX=yes
  8797. case $host_os in
  8798. aix3*)
  8799. # FIXME: insert proper C++ library support
  8800. ld_shlibs_CXX=no
  8801. ;;
  8802. aix[4-9]*)
  8803. if test "$host_cpu" = ia64; then
  8804. # On IA64, the linker does run time linking by default, so we don't
  8805. # have to do anything special.
  8806. aix_use_runtimelinking=no
  8807. exp_sym_flag='-Bexport'
  8808. no_entry_flag=""
  8809. else
  8810. aix_use_runtimelinking=no
  8811. # Test if we are trying to use run time linking or normal
  8812. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8813. # need to do runtime linking.
  8814. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8815. for ld_flag in $LDFLAGS; do
  8816. case $ld_flag in
  8817. *-brtl*)
  8818. aix_use_runtimelinking=yes
  8819. break
  8820. ;;
  8821. esac
  8822. done
  8823. ;;
  8824. esac
  8825. exp_sym_flag='-bexport'
  8826. no_entry_flag='-bnoentry'
  8827. fi
  8828. # When large executables or shared objects are built, AIX ld can
  8829. # have problems creating the table of contents. If linking a library
  8830. # or program results in "error TOC overflow" add -mminimal-toc to
  8831. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8832. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8833. archive_cmds_CXX=''
  8834. hardcode_direct_CXX=yes
  8835. hardcode_libdir_separator_CXX=':'
  8836. link_all_deplibs_CXX=yes
  8837. if test "$GXX" = yes; then
  8838. case $host_os in aix4.[012]|aix4.[012].*)
  8839. # We only want to do this on AIX 4.2 and lower, the check
  8840. # below for broken collect2 doesn't work under 4.3+
  8841. collect2name=`${CC} -print-prog-name=collect2`
  8842. if test -f "$collect2name" && \
  8843. strings "$collect2name" | grep resolve_lib_name >/dev/null
  8844. then
  8845. # We have reworked collect2
  8846. :
  8847. else
  8848. # We have old collect2
  8849. hardcode_direct_CXX=unsupported
  8850. # It fails to find uninstalled libraries when the uninstalled
  8851. # path is not listed in the libpath. Setting hardcode_minus_L
  8852. # to unsupported forces relinking
  8853. hardcode_minus_L_CXX=yes
  8854. hardcode_libdir_flag_spec_CXX='-L$libdir'
  8855. hardcode_libdir_separator_CXX=
  8856. fi
  8857. ;;
  8858. esac
  8859. shared_flag='-shared'
  8860. if test "$aix_use_runtimelinking" = yes; then
  8861. shared_flag="$shared_flag "'${wl}-G'
  8862. fi
  8863. else
  8864. # not using gcc
  8865. if test "$host_cpu" = ia64; then
  8866. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8867. # chokes on -Wl,-G. The following line is correct:
  8868. shared_flag='-G'
  8869. else
  8870. if test "$aix_use_runtimelinking" = yes; then
  8871. shared_flag='${wl}-G'
  8872. else
  8873. shared_flag='${wl}-bM:SRE'
  8874. fi
  8875. fi
  8876. fi
  8877. # It seems that -bexpall does not export symbols beginning with
  8878. # underscore (_), so it is better to generate a list of symbols to export.
  8879. always_export_symbols_CXX=yes
  8880. if test "$aix_use_runtimelinking" = yes; then
  8881. # Warning - without using the other runtime loading flags (-brtl),
  8882. # -berok will link without error, but may produce a broken library.
  8883. allow_undefined_flag_CXX='-berok'
  8884. # Determine the default libpath from the value encoded in an empty executable.
  8885. cat > conftest.$ac_ext <<EOF
  8886. #line 10066 "configure"
  8887. #include "confdefs.h"
  8888. int main() {
  8889. ; return 0; }
  8890. EOF
  8891. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8892. (eval $ac_link) 2>&5
  8893. ac_status=$?
  8894. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8895. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  8896. lt_aix_libpath_sed='
  8897. /Import File Strings/,/^$/ {
  8898. /^0/ {
  8899. s/^0 *\(.*\)$/\1/
  8900. p
  8901. }
  8902. }'
  8903. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8904. # Check for a 64-bit object if we didn't find anything.
  8905. if test -z "$aix_libpath"; then
  8906. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8907. fi
  8908. rm -rf conftest*
  8909. else
  8910. echo "configure: failed program was:" >&5
  8911. cat conftest.$ac_ext >&6
  8912. fi
  8913. rm -f conftest*
  8914. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8915. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  8916. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8917. else
  8918. if test "$host_cpu" = ia64; then
  8919. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  8920. allow_undefined_flag_CXX="-z nodefs"
  8921. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  8922. else
  8923. # Determine the default libpath from the value encoded in an empty executable.
  8924. cat > conftest.$ac_ext <<EOF
  8925. #line 10109 "configure"
  8926. #include "confdefs.h"
  8927. int main() {
  8928. ; return 0; }
  8929. EOF
  8930. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8931. (eval $ac_link) 2>&5
  8932. ac_status=$?
  8933. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8934. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  8935. lt_aix_libpath_sed='
  8936. /Import File Strings/,/^$/ {
  8937. /^0/ {
  8938. s/^0 *\(.*\)$/\1/
  8939. p
  8940. }
  8941. }'
  8942. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8943. # Check for a 64-bit object if we didn't find anything.
  8944. if test -z "$aix_libpath"; then
  8945. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8946. fi
  8947. rm -rf conftest*
  8948. else
  8949. echo "configure: failed program was:" >&5
  8950. cat conftest.$ac_ext >&6
  8951. fi
  8952. rm -f conftest*
  8953. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8954. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  8955. # Warning - without using the other run time loading flags,
  8956. # -berok will link without error, but may produce a broken library.
  8957. no_undefined_flag_CXX=' ${wl}-bernotok'
  8958. allow_undefined_flag_CXX=' ${wl}-berok'
  8959. # Exported symbols can be pulled into shared objects from archives
  8960. whole_archive_flag_spec_CXX='$convenience'
  8961. archive_cmds_need_lc_CXX=yes
  8962. # This is similar to how AIX traditionally builds its shared libraries.
  8963. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8964. fi
  8965. fi
  8966. ;;
  8967. beos*)
  8968. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8969. allow_undefined_flag_CXX=unsupported
  8970. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8971. # support --undefined. This deserves some investigation. FIXME
  8972. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8973. else
  8974. ld_shlibs_CXX=no
  8975. fi
  8976. ;;
  8977. chorus*)
  8978. case $cc_basename in
  8979. *)
  8980. # FIXME: insert proper C++ library support
  8981. ld_shlibs_CXX=no
  8982. ;;
  8983. esac
  8984. ;;
  8985. cygwin* | mingw* | pw32*)
  8986. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  8987. # as there is no search path for DLLs.
  8988. hardcode_libdir_flag_spec_CXX='-L$libdir'
  8989. allow_undefined_flag_CXX=unsupported
  8990. always_export_symbols_CXX=no
  8991. enable_shared_with_static_runtimes_CXX=yes
  8992. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  8993. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8994. # If the export-symbols file already is a .def file (1st line
  8995. # is EXPORTS), use it as is; otherwise, prepend...
  8996. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8997. cp $export_symbols $output_objdir/$soname.def;
  8998. else
  8999. echo EXPORTS > $output_objdir/$soname.def;
  9000. cat $export_symbols >> $output_objdir/$soname.def;
  9001. fi~
  9002. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9003. else
  9004. ld_shlibs_CXX=no
  9005. fi
  9006. ;;
  9007. darwin* | rhapsody*)
  9008. archive_cmds_need_lc_CXX=no
  9009. hardcode_direct_CXX=no
  9010. hardcode_automatic_CXX=yes
  9011. hardcode_shlibpath_var_CXX=unsupported
  9012. whole_archive_flag_spec_CXX=''
  9013. link_all_deplibs_CXX=yes
  9014. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  9015. if test "$GXX" = yes ; then
  9016. output_verbose_link_cmd='echo'
  9017. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9018. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9019. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  9020. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  9021. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  9022. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  9023. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  9024. fi
  9025. else
  9026. case $cc_basename in
  9027. xlc*)
  9028. output_verbose_link_cmd='echo'
  9029. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  9030. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9031. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9032. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9033. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9034. ;;
  9035. *)
  9036. ld_shlibs_CXX=no
  9037. ;;
  9038. esac
  9039. fi
  9040. ;;
  9041. dgux*)
  9042. case $cc_basename in
  9043. ec++*)
  9044. # FIXME: insert proper C++ library support
  9045. ld_shlibs_CXX=no
  9046. ;;
  9047. ghcx*)
  9048. # Green Hills C++ Compiler
  9049. # FIXME: insert proper C++ library support
  9050. ld_shlibs_CXX=no
  9051. ;;
  9052. *)
  9053. # FIXME: insert proper C++ library support
  9054. ld_shlibs_CXX=no
  9055. ;;
  9056. esac
  9057. ;;
  9058. freebsd[12].*)
  9059. # C++ shared libraries reported to be fairly broken before switch to ELF
  9060. ld_shlibs_CXX=no
  9061. ;;
  9062. freebsd-elf*)
  9063. archive_cmds_need_lc_CXX=no
  9064. ;;
  9065. freebsd* | dragonfly*)
  9066. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9067. # conventions
  9068. ld_shlibs_CXX=yes
  9069. ;;
  9070. gnu*)
  9071. ;;
  9072. hpux9*)
  9073. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9074. hardcode_libdir_separator_CXX=:
  9075. export_dynamic_flag_spec_CXX='${wl}-E'
  9076. hardcode_direct_CXX=yes
  9077. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9078. # but as the default
  9079. # location of the library.
  9080. case $cc_basename in
  9081. CC*)
  9082. # FIXME: insert proper C++ library support
  9083. ld_shlibs_CXX=no
  9084. ;;
  9085. aCC*)
  9086. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9087. # Commands to make compiler produce verbose output that lists
  9088. # what "hidden" libraries, object files and flags are used when
  9089. # linking a shared library.
  9090. #
  9091. # There doesn't appear to be a way to prevent this compiler from
  9092. # explicitly linking system object files so we need to strip them
  9093. # from the output so that they don't get included in the library
  9094. # dependencies.
  9095. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9096. ;;
  9097. *)
  9098. if test "$GXX" = yes; then
  9099. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9100. else
  9101. # FIXME: insert proper C++ library support
  9102. ld_shlibs_CXX=no
  9103. fi
  9104. ;;
  9105. esac
  9106. ;;
  9107. hpux10*|hpux11*)
  9108. if test $with_gnu_ld = no; then
  9109. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  9110. hardcode_libdir_separator_CXX=:
  9111. case $host_cpu in
  9112. hppa*64*|ia64*) ;;
  9113. *)
  9114. export_dynamic_flag_spec_CXX='${wl}-E'
  9115. ;;
  9116. esac
  9117. fi
  9118. case $host_cpu in
  9119. hppa*64*|ia64*)
  9120. hardcode_direct_CXX=no
  9121. hardcode_shlibpath_var_CXX=no
  9122. ;;
  9123. *)
  9124. hardcode_direct_CXX=yes
  9125. hardcode_minus_L_CXX=yes # Not in the search PATH,
  9126. # but as the default
  9127. # location of the library.
  9128. ;;
  9129. esac
  9130. case $cc_basename in
  9131. CC*)
  9132. # FIXME: insert proper C++ library support
  9133. ld_shlibs_CXX=no
  9134. ;;
  9135. aCC*)
  9136. case $host_cpu in
  9137. hppa*64*)
  9138. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9139. ;;
  9140. ia64*)
  9141. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9142. ;;
  9143. *)
  9144. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9145. ;;
  9146. esac
  9147. # Commands to make compiler produce verbose output that lists
  9148. # what "hidden" libraries, object files and flags are used when
  9149. # linking a shared library.
  9150. #
  9151. # There doesn't appear to be a way to prevent this compiler from
  9152. # explicitly linking system object files so we need to strip them
  9153. # from the output so that they don't get included in the library
  9154. # dependencies.
  9155. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9156. ;;
  9157. *)
  9158. if test "$GXX" = yes; then
  9159. if test $with_gnu_ld = no; then
  9160. case $host_cpu in
  9161. hppa*64*)
  9162. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9163. ;;
  9164. ia64*)
  9165. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9166. ;;
  9167. *)
  9168. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9169. ;;
  9170. esac
  9171. fi
  9172. else
  9173. # FIXME: insert proper C++ library support
  9174. ld_shlibs_CXX=no
  9175. fi
  9176. ;;
  9177. esac
  9178. ;;
  9179. interix[3-9]*)
  9180. hardcode_direct_CXX=no
  9181. hardcode_shlibpath_var_CXX=no
  9182. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9183. export_dynamic_flag_spec_CXX='${wl}-E'
  9184. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9185. # Instead, shared libraries are loaded at an image base (0x10000000 by
  9186. # default) and relocated if they conflict, which is a slow very memory
  9187. # consuming and fragmenting process. To avoid this, we pick a random,
  9188. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9189. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9190. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9191. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9192. ;;
  9193. irix5* | irix6*)
  9194. case $cc_basename in
  9195. CC*)
  9196. # SGI C++
  9197. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  9198. # Archives containing C++ object files must be created using
  9199. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9200. # necessary to make sure instantiated templates are included
  9201. # in the archive.
  9202. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9203. ;;
  9204. *)
  9205. if test "$GXX" = yes; then
  9206. if test "$with_gnu_ld" = no; then
  9207. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9208. else
  9209. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  9210. fi
  9211. fi
  9212. link_all_deplibs_CXX=yes
  9213. ;;
  9214. esac
  9215. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9216. hardcode_libdir_separator_CXX=:
  9217. ;;
  9218. linux* | k*bsd*-gnu)
  9219. case $cc_basename in
  9220. KCC*)
  9221. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9222. # KCC will only create a shared library if the output file
  9223. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9224. # to its proper name (with version) after linking.
  9225. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  9226. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  9227. # Commands to make compiler produce verbose output that lists
  9228. # what "hidden" libraries, object files and flags are used when
  9229. # linking a shared library.
  9230. #
  9231. # There doesn't appear to be a way to prevent this compiler from
  9232. # explicitly linking system object files so we need to strip them
  9233. # from the output so that they don't get included in the library
  9234. # dependencies.
  9235. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9236. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  9237. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9238. # Archives containing C++ object files must be created using
  9239. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9240. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9241. ;;
  9242. icpc*)
  9243. # Intel C++
  9244. with_gnu_ld=yes
  9245. # version 8.0 and above of icpc choke on multiply defined symbols
  9246. # if we add $predep_objects and $postdep_objects, however 7.1 and
  9247. # earlier do not add the objects themselves.
  9248. case `$CC -V 2>&1` in
  9249. *"Version 7."*)
  9250. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9251. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9252. ;;
  9253. *) # Version 8.0 or newer
  9254. tmp_idyn=
  9255. case $host_cpu in
  9256. ia64*) tmp_idyn=' -i_dynamic';;
  9257. esac
  9258. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9259. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9260. ;;
  9261. esac
  9262. archive_cmds_need_lc_CXX=no
  9263. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9264. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9265. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9266. ;;
  9267. pgCC* | pgcpp*)
  9268. # Portland Group C++ compiler
  9269. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9270. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  9271. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  9272. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9273. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9274. ;;
  9275. cxx*)
  9276. # Compaq C++
  9277. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9278. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  9279. runpath_var=LD_RUN_PATH
  9280. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9281. hardcode_libdir_separator_CXX=:
  9282. # Commands to make compiler produce verbose output that lists
  9283. # what "hidden" libraries, object files and flags are used when
  9284. # linking a shared library.
  9285. #
  9286. # There doesn't appear to be a way to prevent this compiler from
  9287. # explicitly linking system object files so we need to strip them
  9288. # from the output so that they don't get included in the library
  9289. # dependencies.
  9290. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9291. ;;
  9292. *)
  9293. case `$CC -V 2>&1 | sed 5q` in
  9294. *Sun\ C*)
  9295. # Sun C++ 5.9
  9296. no_undefined_flag_CXX=' -zdefs'
  9297. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9298. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  9299. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9300. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9301. # Not sure whether something based on
  9302. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  9303. # would be better.
  9304. output_verbose_link_cmd='echo'
  9305. # Archives containing C++ object files must be created using
  9306. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9307. # necessary to make sure instantiated templates are included
  9308. # in the archive.
  9309. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  9310. ;;
  9311. esac
  9312. ;;
  9313. esac
  9314. ;;
  9315. lynxos*)
  9316. # FIXME: insert proper C++ library support
  9317. ld_shlibs_CXX=no
  9318. ;;
  9319. m88k*)
  9320. # FIXME: insert proper C++ library support
  9321. ld_shlibs_CXX=no
  9322. ;;
  9323. mvs*)
  9324. case $cc_basename in
  9325. cxx*)
  9326. # FIXME: insert proper C++ library support
  9327. ld_shlibs_CXX=no
  9328. ;;
  9329. *)
  9330. # FIXME: insert proper C++ library support
  9331. ld_shlibs_CXX=no
  9332. ;;
  9333. esac
  9334. ;;
  9335. netbsd*)
  9336. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9337. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9338. wlarc=
  9339. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9340. hardcode_direct_CXX=yes
  9341. hardcode_shlibpath_var_CXX=no
  9342. fi
  9343. # Workaround some broken pre-1.5 toolchains
  9344. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9345. ;;
  9346. openbsd2*)
  9347. # C++ shared libraries are fairly broken
  9348. ld_shlibs_CXX=no
  9349. ;;
  9350. openbsd*)
  9351. if test -f /usr/libexec/ld.so; then
  9352. hardcode_direct_CXX=yes
  9353. hardcode_shlibpath_var_CXX=no
  9354. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9355. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9356. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9357. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9358. export_dynamic_flag_spec_CXX='${wl}-E'
  9359. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9360. fi
  9361. output_verbose_link_cmd='echo'
  9362. else
  9363. ld_shlibs_CXX=no
  9364. fi
  9365. ;;
  9366. osf3*)
  9367. case $cc_basename in
  9368. KCC*)
  9369. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9370. # KCC will only create a shared library if the output file
  9371. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9372. # to its proper name (with version) after linking.
  9373. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  9374. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9375. hardcode_libdir_separator_CXX=:
  9376. # Archives containing C++ object files must be created using
  9377. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9378. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  9379. ;;
  9380. RCC*)
  9381. # Rational C++ 2.4.1
  9382. # FIXME: insert proper C++ library support
  9383. ld_shlibs_CXX=no
  9384. ;;
  9385. cxx*)
  9386. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9387. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  9388. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9389. hardcode_libdir_separator_CXX=:
  9390. # Commands to make compiler produce verbose output that lists
  9391. # what "hidden" libraries, object files and flags are used when
  9392. # linking a shared library.
  9393. #
  9394. # There doesn't appear to be a way to prevent this compiler from
  9395. # explicitly linking system object files so we need to strip them
  9396. # from the output so that they don't get included in the library
  9397. # dependencies.
  9398. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9399. ;;
  9400. *)
  9401. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9402. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9403. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9404. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9405. hardcode_libdir_separator_CXX=:
  9406. # Commands to make compiler produce verbose output that lists
  9407. # what "hidden" libraries, object files and flags are used when
  9408. # linking a shared library.
  9409. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9410. else
  9411. # FIXME: insert proper C++ library support
  9412. ld_shlibs_CXX=no
  9413. fi
  9414. ;;
  9415. esac
  9416. ;;
  9417. osf4* | osf5*)
  9418. case $cc_basename in
  9419. KCC*)
  9420. # Kuck and Associates, Inc. (KAI) C++ Compiler
  9421. # KCC will only create a shared library if the output file
  9422. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9423. # to its proper name (with version) after linking.
  9424. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  9425. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  9426. hardcode_libdir_separator_CXX=:
  9427. # Archives containing C++ object files must be created using
  9428. # the KAI C++ compiler.
  9429. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  9430. ;;
  9431. RCC*)
  9432. # Rational C++ 2.4.1
  9433. # FIXME: insert proper C++ library support
  9434. ld_shlibs_CXX=no
  9435. ;;
  9436. cxx*)
  9437. allow_undefined_flag_CXX=' -expect_unresolved \*'
  9438. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  9439. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9440. echo "-hidden">> $lib.exp~
  9441. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  9442. $rm $lib.exp'
  9443. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  9444. hardcode_libdir_separator_CXX=:
  9445. # Commands to make compiler produce verbose output that lists
  9446. # what "hidden" libraries, object files and flags are used when
  9447. # linking a shared library.
  9448. #
  9449. # There doesn't appear to be a way to prevent this compiler from
  9450. # explicitly linking system object files so we need to strip them
  9451. # from the output so that they don't get included in the library
  9452. # dependencies.
  9453. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  9454. ;;
  9455. *)
  9456. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9457. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  9458. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9459. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9460. hardcode_libdir_separator_CXX=:
  9461. # Commands to make compiler produce verbose output that lists
  9462. # what "hidden" libraries, object files and flags are used when
  9463. # linking a shared library.
  9464. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  9465. else
  9466. # FIXME: insert proper C++ library support
  9467. ld_shlibs_CXX=no
  9468. fi
  9469. ;;
  9470. esac
  9471. ;;
  9472. psos*)
  9473. # FIXME: insert proper C++ library support
  9474. ld_shlibs_CXX=no
  9475. ;;
  9476. sunos4*)
  9477. case $cc_basename in
  9478. CC*)
  9479. # Sun C++ 4.x
  9480. # FIXME: insert proper C++ library support
  9481. ld_shlibs_CXX=no
  9482. ;;
  9483. lcc*)
  9484. # Lucid
  9485. # FIXME: insert proper C++ library support
  9486. ld_shlibs_CXX=no
  9487. ;;
  9488. *)
  9489. # FIXME: insert proper C++ library support
  9490. ld_shlibs_CXX=no
  9491. ;;
  9492. esac
  9493. ;;
  9494. solaris*)
  9495. case $cc_basename in
  9496. CC*)
  9497. # Sun C++ 4.2, 5.x and Centerline C++
  9498. archive_cmds_need_lc_CXX=yes
  9499. no_undefined_flag_CXX=' -zdefs'
  9500. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9501. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9502. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9503. hardcode_libdir_flag_spec_CXX='-R$libdir'
  9504. hardcode_shlibpath_var_CXX=no
  9505. case $host_os in
  9506. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9507. *)
  9508. # The compiler driver will combine and reorder linker options,
  9509. # but understands `-z linker_flag'.
  9510. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9511. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  9512. ;;
  9513. esac
  9514. link_all_deplibs_CXX=yes
  9515. output_verbose_link_cmd='echo'
  9516. # Archives containing C++ object files must be created using
  9517. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9518. # necessary to make sure instantiated templates are included
  9519. # in the archive.
  9520. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  9521. ;;
  9522. gcx*)
  9523. # Green Hills C++ Compiler
  9524. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9525. # The C++ compiler must be used to create the archive.
  9526. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  9527. ;;
  9528. *)
  9529. # GNU C++ compiler with Solaris linker
  9530. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9531. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  9532. if $CC --version | grep -v '^2\.7' > /dev/null; then
  9533. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9534. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9535. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9536. # Commands to make compiler produce verbose output that lists
  9537. # what "hidden" libraries, object files and flags are used when
  9538. # linking a shared library.
  9539. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9540. else
  9541. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  9542. # platform.
  9543. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9544. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9545. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  9546. # Commands to make compiler produce verbose output that lists
  9547. # what "hidden" libraries, object files and flags are used when
  9548. # linking a shared library.
  9549. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  9550. fi
  9551. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  9552. case $host_os in
  9553. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9554. *)
  9555. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9556. ;;
  9557. esac
  9558. fi
  9559. ;;
  9560. esac
  9561. ;;
  9562. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9563. no_undefined_flag_CXX='${wl}-z,text'
  9564. archive_cmds_need_lc_CXX=no
  9565. hardcode_shlibpath_var_CXX=no
  9566. runpath_var='LD_RUN_PATH'
  9567. case $cc_basename in
  9568. CC*)
  9569. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9570. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9571. ;;
  9572. *)
  9573. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9574. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9575. ;;
  9576. esac
  9577. ;;
  9578. sysv5* | sco3.2v5* | sco5v6*)
  9579. # Note: We can NOT use -z defs as we might desire, because we do not
  9580. # link with -lc, and that would cause any symbols used from libc to
  9581. # always be unresolved, which means just about no library would
  9582. # ever link correctly. If we're not using GNU ld we use -z text
  9583. # though, which does catch some bad symbols but isn't as heavy-handed
  9584. # as -z defs.
  9585. # For security reasons, it is highly recommended that you always
  9586. # use absolute paths for naming shared libraries, and exclude the
  9587. # DT_RUNPATH tag from executables and libraries. But doing so
  9588. # requires that you compile everything twice, which is a pain.
  9589. # So that behaviour is only enabled if SCOABSPATH is set to a
  9590. # non-empty value in the environment. Most likely only useful for
  9591. # creating official distributions of packages.
  9592. # This is a hack until libtool officially supports absolute path
  9593. # names for shared libraries.
  9594. no_undefined_flag_CXX='${wl}-z,text'
  9595. allow_undefined_flag_CXX='${wl}-z,nodefs'
  9596. archive_cmds_need_lc_CXX=no
  9597. hardcode_shlibpath_var_CXX=no
  9598. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  9599. hardcode_libdir_separator_CXX=':'
  9600. link_all_deplibs_CXX=yes
  9601. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  9602. runpath_var='LD_RUN_PATH'
  9603. case $cc_basename in
  9604. CC*)
  9605. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9606. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9607. ;;
  9608. *)
  9609. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9610. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9611. ;;
  9612. esac
  9613. ;;
  9614. tandem*)
  9615. case $cc_basename in
  9616. NCC*)
  9617. # NonStop-UX NCC 3.20
  9618. # FIXME: insert proper C++ library support
  9619. ld_shlibs_CXX=no
  9620. ;;
  9621. *)
  9622. # FIXME: insert proper C++ library support
  9623. ld_shlibs_CXX=no
  9624. ;;
  9625. esac
  9626. ;;
  9627. vxworks*)
  9628. # FIXME: insert proper C++ library support
  9629. ld_shlibs_CXX=no
  9630. ;;
  9631. *)
  9632. # FIXME: insert proper C++ library support
  9633. ld_shlibs_CXX=no
  9634. ;;
  9635. esac
  9636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  9637. $as_echo "$ld_shlibs_CXX" >&6; }
  9638. test "$ld_shlibs_CXX" = no && can_build_shared=no
  9639. GCC_CXX="$GXX"
  9640. LD_CXX="$LD"
  9641. ## CAVEAT EMPTOR:
  9642. ## There is no encapsulation within the following macros, do not change
  9643. ## the running order or otherwise move them around unless you know exactly
  9644. ## what you are doing...
  9645. cat > conftest.$ac_ext <<EOF
  9646. class Foo
  9647. {
  9648. public:
  9649. Foo (void) { a = 0; }
  9650. private:
  9651. int a;
  9652. };
  9653. EOF
  9654. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9655. (eval $ac_compile) 2>&5
  9656. ac_status=$?
  9657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9658. test $ac_status = 0; }; then
  9659. # Parse the compiler output and extract the necessary
  9660. # objects, libraries and library flags.
  9661. # Sentinel used to keep track of whether or not we are before
  9662. # the conftest object file.
  9663. pre_test_object_deps_done=no
  9664. # The `*' in the case matches for architectures that use `case' in
  9665. # $output_verbose_cmd can trigger glob expansion during the loop
  9666. # eval without this substitution.
  9667. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  9668. for p in `eval $output_verbose_link_cmd`; do
  9669. case $p in
  9670. -L* | -R* | -l*)
  9671. # Some compilers place space between "-{L,R}" and the path.
  9672. # Remove the space.
  9673. if test $p = "-L" \
  9674. || test $p = "-R"; then
  9675. prev=$p
  9676. continue
  9677. else
  9678. prev=
  9679. fi
  9680. if test "$pre_test_object_deps_done" = no; then
  9681. case $p in
  9682. -L* | -R*)
  9683. # Internal compiler library paths should come after those
  9684. # provided the user. The postdeps already come after the
  9685. # user supplied libs so there is no need to process them.
  9686. if test -z "$compiler_lib_search_path_CXX"; then
  9687. compiler_lib_search_path_CXX="${prev}${p}"
  9688. else
  9689. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  9690. fi
  9691. ;;
  9692. # The "-l" case would never come before the object being
  9693. # linked, so don't bother handling this case.
  9694. esac
  9695. else
  9696. if test -z "$postdeps_CXX"; then
  9697. postdeps_CXX="${prev}${p}"
  9698. else
  9699. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  9700. fi
  9701. fi
  9702. ;;
  9703. *.$objext)
  9704. # This assumes that the test object file only shows up
  9705. # once in the compiler output.
  9706. if test "$p" = "conftest.$objext"; then
  9707. pre_test_object_deps_done=yes
  9708. continue
  9709. fi
  9710. if test "$pre_test_object_deps_done" = no; then
  9711. if test -z "$predep_objects_CXX"; then
  9712. predep_objects_CXX="$p"
  9713. else
  9714. predep_objects_CXX="$predep_objects_CXX $p"
  9715. fi
  9716. else
  9717. if test -z "$postdep_objects_CXX"; then
  9718. postdep_objects_CXX="$p"
  9719. else
  9720. postdep_objects_CXX="$postdep_objects_CXX $p"
  9721. fi
  9722. fi
  9723. ;;
  9724. *) ;; # Ignore the rest.
  9725. esac
  9726. done
  9727. # Clean up.
  9728. rm -f a.out a.exe
  9729. else
  9730. echo "libtool.m4: error: problem compiling CXX test program"
  9731. fi
  9732. $rm -f confest.$objext
  9733. compiler_lib_search_dirs_CXX=
  9734. if test -n "$compiler_lib_search_path_CXX"; then
  9735. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  9736. fi
  9737. # PORTME: override above test on systems where it is broken
  9738. case $host_os in
  9739. interix[3-9]*)
  9740. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  9741. # hack all around it, let's just trust "g++" to DTRT.
  9742. predep_objects_CXX=
  9743. postdep_objects_CXX=
  9744. postdeps_CXX=
  9745. ;;
  9746. linux*)
  9747. case `$CC -V 2>&1 | sed 5q` in
  9748. *Sun\ C*)
  9749. # Sun C++ 5.9
  9750. #
  9751. # The more standards-conforming stlport4 library is
  9752. # incompatible with the Cstd library. Avoid specifying
  9753. # it if it's in CXXFLAGS. Ignore libCrun as
  9754. # -library=stlport4 depends on it.
  9755. case " $CXX $CXXFLAGS " in
  9756. *" -library=stlport4 "*)
  9757. solaris_use_stlport4=yes
  9758. ;;
  9759. esac
  9760. if test "$solaris_use_stlport4" != yes; then
  9761. postdeps_CXX='-library=Cstd -library=Crun'
  9762. fi
  9763. ;;
  9764. esac
  9765. ;;
  9766. solaris*)
  9767. case $cc_basename in
  9768. CC*)
  9769. # The more standards-conforming stlport4 library is
  9770. # incompatible with the Cstd library. Avoid specifying
  9771. # it if it's in CXXFLAGS. Ignore libCrun as
  9772. # -library=stlport4 depends on it.
  9773. case " $CXX $CXXFLAGS " in
  9774. *" -library=stlport4 "*)
  9775. solaris_use_stlport4=yes
  9776. ;;
  9777. esac
  9778. # Adding this requires a known-good setup of shared libraries for
  9779. # Sun compiler versions before 5.6, else PIC objects from an old
  9780. # archive will be linked into the output, leading to subtle bugs.
  9781. if test "$solaris_use_stlport4" != yes; then
  9782. postdeps_CXX='-library=Cstd -library=Crun'
  9783. fi
  9784. ;;
  9785. esac
  9786. ;;
  9787. esac
  9788. case " $postdeps_CXX " in
  9789. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  9790. esac
  9791. lt_prog_compiler_wl_CXX=
  9792. lt_prog_compiler_pic_CXX=
  9793. lt_prog_compiler_static_CXX=
  9794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9795. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9796. # C++ specific cases for pic, static, wl, etc.
  9797. if test "$GXX" = yes; then
  9798. lt_prog_compiler_wl_CXX='-Wl,'
  9799. lt_prog_compiler_static_CXX='-static'
  9800. case $host_os in
  9801. aix*)
  9802. # All AIX code is PIC.
  9803. if test "$host_cpu" = ia64; then
  9804. # AIX 5 now supports IA64 processor
  9805. lt_prog_compiler_static_CXX='-Bstatic'
  9806. fi
  9807. ;;
  9808. amigaos*)
  9809. # FIXME: we need at least 68020 code to build shared libraries, but
  9810. # adding the `-m68020' flag to GCC prevents building anything better,
  9811. # like `-m68040'.
  9812. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  9813. ;;
  9814. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9815. # PIC is the default for these OSes.
  9816. ;;
  9817. mingw* | cygwin* | os2* | pw32*)
  9818. # This hack is so that the source file can tell whether it is being
  9819. # built for inclusion in a dll (and should export symbols for example).
  9820. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9821. # (--disable-auto-import) libraries
  9822. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  9823. ;;
  9824. darwin* | rhapsody*)
  9825. # PIC is the default on this platform
  9826. # Common symbols not allowed in MH_DYLIB files
  9827. lt_prog_compiler_pic_CXX='-fno-common'
  9828. ;;
  9829. *djgpp*)
  9830. # DJGPP does not support shared libraries at all
  9831. lt_prog_compiler_pic_CXX=
  9832. ;;
  9833. interix[3-9]*)
  9834. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9835. # Instead, we relocate shared libraries at runtime.
  9836. ;;
  9837. sysv4*MP*)
  9838. if test -d /usr/nec; then
  9839. lt_prog_compiler_pic_CXX=-Kconform_pic
  9840. fi
  9841. ;;
  9842. hpux*)
  9843. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9844. # not for PA HP-UX.
  9845. case $host_cpu in
  9846. hppa*64*|ia64*)
  9847. ;;
  9848. *)
  9849. lt_prog_compiler_pic_CXX='-fPIC'
  9850. ;;
  9851. esac
  9852. ;;
  9853. *)
  9854. lt_prog_compiler_pic_CXX='-fPIC'
  9855. ;;
  9856. esac
  9857. else
  9858. case $host_os in
  9859. aix[4-9]*)
  9860. # All AIX code is PIC.
  9861. if test "$host_cpu" = ia64; then
  9862. # AIX 5 now supports IA64 processor
  9863. lt_prog_compiler_static_CXX='-Bstatic'
  9864. else
  9865. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  9866. fi
  9867. ;;
  9868. chorus*)
  9869. case $cc_basename in
  9870. cxch68*)
  9871. # Green Hills C++ Compiler
  9872. # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  9873. ;;
  9874. esac
  9875. ;;
  9876. darwin*)
  9877. # PIC is the default on this platform
  9878. # Common symbols not allowed in MH_DYLIB files
  9879. case $cc_basename in
  9880. xlc*)
  9881. lt_prog_compiler_pic_CXX='-qnocommon'
  9882. lt_prog_compiler_wl_CXX='-Wl,'
  9883. ;;
  9884. esac
  9885. ;;
  9886. dgux*)
  9887. case $cc_basename in
  9888. ec++*)
  9889. lt_prog_compiler_pic_CXX='-KPIC'
  9890. ;;
  9891. ghcx*)
  9892. # Green Hills C++ Compiler
  9893. lt_prog_compiler_pic_CXX='-pic'
  9894. ;;
  9895. *)
  9896. ;;
  9897. esac
  9898. ;;
  9899. freebsd* | dragonfly*)
  9900. # FreeBSD uses GNU C++
  9901. ;;
  9902. hpux9* | hpux10* | hpux11*)
  9903. case $cc_basename in
  9904. CC*)
  9905. lt_prog_compiler_wl_CXX='-Wl,'
  9906. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  9907. if test "$host_cpu" != ia64; then
  9908. lt_prog_compiler_pic_CXX='+Z'
  9909. fi
  9910. ;;
  9911. aCC*)
  9912. lt_prog_compiler_wl_CXX='-Wl,'
  9913. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  9914. case $host_cpu in
  9915. hppa*64*|ia64*)
  9916. # +Z the default
  9917. ;;
  9918. *)
  9919. lt_prog_compiler_pic_CXX='+Z'
  9920. ;;
  9921. esac
  9922. ;;
  9923. *)
  9924. ;;
  9925. esac
  9926. ;;
  9927. interix*)
  9928. # This is c89, which is MS Visual C++ (no shared libs)
  9929. # Anyone wants to do a port?
  9930. ;;
  9931. irix5* | irix6* | nonstopux*)
  9932. case $cc_basename in
  9933. CC*)
  9934. lt_prog_compiler_wl_CXX='-Wl,'
  9935. lt_prog_compiler_static_CXX='-non_shared'
  9936. # CC pic flag -KPIC is the default.
  9937. ;;
  9938. *)
  9939. ;;
  9940. esac
  9941. ;;
  9942. linux* | k*bsd*-gnu)
  9943. case $cc_basename in
  9944. KCC*)
  9945. # KAI C++ Compiler
  9946. lt_prog_compiler_wl_CXX='--backend -Wl,'
  9947. lt_prog_compiler_pic_CXX='-fPIC'
  9948. ;;
  9949. ecpc*)
  9950. # old Intel C++ for x86_64 which still supported -KPIC.
  9951. lt_prog_compiler_wl_CXX='-Wl,'
  9952. lt_prog_compiler_pic_CXX='-KPIC'
  9953. lt_prog_compiler_static_CXX='-static'
  9954. ;;
  9955. icpc*)
  9956. # Intel C++, used to be incompatible with GCC.
  9957. lt_prog_compiler_wl_CXX='-Wl,'
  9958. lt_prog_compiler_pic_CXX='-fPIC'
  9959. lt_prog_compiler_static_CXX='-static'
  9960. ;;
  9961. pgCC* | pgcpp*)
  9962. # Portland Group C++ compiler.
  9963. lt_prog_compiler_wl_CXX='-Wl,'
  9964. lt_prog_compiler_pic_CXX='-fpic'
  9965. lt_prog_compiler_static_CXX='-Bstatic'
  9966. ;;
  9967. cxx*)
  9968. # Compaq C++
  9969. # Make sure the PIC flag is empty. It appears that all Alpha
  9970. # Linux and Compaq Tru64 Unix objects are PIC.
  9971. lt_prog_compiler_pic_CXX=
  9972. lt_prog_compiler_static_CXX='-non_shared'
  9973. ;;
  9974. *)
  9975. case `$CC -V 2>&1 | sed 5q` in
  9976. *Sun\ C*)
  9977. # Sun C++ 5.9
  9978. lt_prog_compiler_pic_CXX='-KPIC'
  9979. lt_prog_compiler_static_CXX='-Bstatic'
  9980. lt_prog_compiler_wl_CXX='-Qoption ld '
  9981. ;;
  9982. esac
  9983. ;;
  9984. esac
  9985. ;;
  9986. lynxos*)
  9987. ;;
  9988. m88k*)
  9989. ;;
  9990. mvs*)
  9991. case $cc_basename in
  9992. cxx*)
  9993. lt_prog_compiler_pic_CXX='-W c,exportall'
  9994. ;;
  9995. *)
  9996. ;;
  9997. esac
  9998. ;;
  9999. netbsd*)
  10000. ;;
  10001. osf3* | osf4* | osf5*)
  10002. case $cc_basename in
  10003. KCC*)
  10004. lt_prog_compiler_wl_CXX='--backend -Wl,'
  10005. ;;
  10006. RCC*)
  10007. # Rational C++ 2.4.1
  10008. lt_prog_compiler_pic_CXX='-pic'
  10009. ;;
  10010. cxx*)
  10011. # Digital/Compaq C++
  10012. lt_prog_compiler_wl_CXX='-Wl,'
  10013. # Make sure the PIC flag is empty. It appears that all Alpha
  10014. # Linux and Compaq Tru64 Unix objects are PIC.
  10015. lt_prog_compiler_pic_CXX=
  10016. lt_prog_compiler_static_CXX='-non_shared'
  10017. ;;
  10018. *)
  10019. ;;
  10020. esac
  10021. ;;
  10022. psos*)
  10023. ;;
  10024. solaris*)
  10025. case $cc_basename in
  10026. CC*)
  10027. # Sun C++ 4.2, 5.x and Centerline C++
  10028. lt_prog_compiler_pic_CXX='-KPIC'
  10029. lt_prog_compiler_static_CXX='-Bstatic'
  10030. lt_prog_compiler_wl_CXX='-Qoption ld '
  10031. ;;
  10032. gcx*)
  10033. # Green Hills C++ Compiler
  10034. lt_prog_compiler_pic_CXX='-PIC'
  10035. ;;
  10036. *)
  10037. ;;
  10038. esac
  10039. ;;
  10040. sunos4*)
  10041. case $cc_basename in
  10042. CC*)
  10043. # Sun C++ 4.x
  10044. lt_prog_compiler_pic_CXX='-pic'
  10045. lt_prog_compiler_static_CXX='-Bstatic'
  10046. ;;
  10047. lcc*)
  10048. # Lucid
  10049. lt_prog_compiler_pic_CXX='-pic'
  10050. ;;
  10051. *)
  10052. ;;
  10053. esac
  10054. ;;
  10055. tandem*)
  10056. case $cc_basename in
  10057. NCC*)
  10058. # NonStop-UX NCC 3.20
  10059. lt_prog_compiler_pic_CXX='-KPIC'
  10060. ;;
  10061. *)
  10062. ;;
  10063. esac
  10064. ;;
  10065. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10066. case $cc_basename in
  10067. CC*)
  10068. lt_prog_compiler_wl_CXX='-Wl,'
  10069. lt_prog_compiler_pic_CXX='-KPIC'
  10070. lt_prog_compiler_static_CXX='-Bstatic'
  10071. ;;
  10072. esac
  10073. ;;
  10074. vxworks*)
  10075. ;;
  10076. *)
  10077. lt_prog_compiler_can_build_shared_CXX=no
  10078. ;;
  10079. esac
  10080. fi
  10081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  10082. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  10083. #
  10084. # Check to make sure the PIC flag actually works.
  10085. #
  10086. if test -n "$lt_prog_compiler_pic_CXX"; then
  10087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  10088. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  10089. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  10090. $as_echo_n "(cached) " >&6
  10091. else
  10092. lt_cv_prog_compiler_pic_works_CXX=no
  10093. ac_outfile=conftest.$ac_objext
  10094. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10095. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  10096. # Insert the option either (1) after the last *FLAGS variable, or
  10097. # (2) before a word containing "conftest.", or (3) at the end.
  10098. # Note that $ac_compile itself does not contain backslashes and begins
  10099. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10100. # The option is referenced via a variable to avoid confusing sed.
  10101. lt_compile=`echo "$ac_compile" | $SED \
  10102. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10103. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10104. -e 's:$: $lt_compiler_flag:'`
  10105. (eval echo "\"configure:11361: $lt_compile\"" >&5)
  10106. (eval "$lt_compile" 2>conftest.err)
  10107. ac_status=$?
  10108. cat conftest.err >&5
  10109. echo "configure:11365: \$? = $ac_status" >&5
  10110. if (exit $ac_status) && test -s "$ac_outfile"; then
  10111. # The compiler can only warn and ignore the option if not recognized
  10112. # So say no if there are warnings other than the usual output.
  10113. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  10114. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10115. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10116. lt_cv_prog_compiler_pic_works_CXX=yes
  10117. fi
  10118. fi
  10119. $rm conftest*
  10120. fi
  10121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  10122. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  10123. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  10124. case $lt_prog_compiler_pic_CXX in
  10125. "" | " "*) ;;
  10126. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  10127. esac
  10128. else
  10129. lt_prog_compiler_pic_CXX=
  10130. lt_prog_compiler_can_build_shared_CXX=no
  10131. fi
  10132. fi
  10133. case $host_os in
  10134. # For platforms which do not support PIC, -DPIC is meaningless:
  10135. *djgpp*)
  10136. lt_prog_compiler_pic_CXX=
  10137. ;;
  10138. *)
  10139. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  10140. ;;
  10141. esac
  10142. #
  10143. # Check to make sure the static flag actually works.
  10144. #
  10145. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  10146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10147. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  10148. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  10149. $as_echo_n "(cached) " >&6
  10150. else
  10151. lt_cv_prog_compiler_static_works_CXX=no
  10152. save_LDFLAGS="$LDFLAGS"
  10153. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10154. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10155. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10156. # The linker can only warn and ignore the option if not recognized
  10157. # So say no if there are warnings
  10158. if test -s conftest.err; then
  10159. # Append any errors to the config.log.
  10160. cat conftest.err 1>&5
  10161. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  10162. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10163. if diff conftest.exp conftest.er2 >/dev/null; then
  10164. lt_cv_prog_compiler_static_works_CXX=yes
  10165. fi
  10166. else
  10167. lt_cv_prog_compiler_static_works_CXX=yes
  10168. fi
  10169. fi
  10170. $rm -r conftest*
  10171. LDFLAGS="$save_LDFLAGS"
  10172. fi
  10173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  10174. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  10175. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  10176. :
  10177. else
  10178. lt_prog_compiler_static_CXX=
  10179. fi
  10180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10181. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10182. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  10183. $as_echo_n "(cached) " >&6
  10184. else
  10185. lt_cv_prog_compiler_c_o_CXX=no
  10186. $rm -r conftest 2>/dev/null
  10187. mkdir conftest
  10188. cd conftest
  10189. mkdir out
  10190. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10191. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10192. # Insert the option either (1) after the last *FLAGS variable, or
  10193. # (2) before a word containing "conftest.", or (3) at the end.
  10194. # Note that $ac_compile itself does not contain backslashes and begins
  10195. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10196. lt_compile=`echo "$ac_compile" | $SED \
  10197. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10198. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10199. -e 's:$: $lt_compiler_flag:'`
  10200. (eval echo "\"configure:11465: $lt_compile\"" >&5)
  10201. (eval "$lt_compile" 2>out/conftest.err)
  10202. ac_status=$?
  10203. cat out/conftest.err >&5
  10204. echo "configure:11469: \$? = $ac_status" >&5
  10205. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10206. then
  10207. # The compiler can only warn and ignore the option if not recognized
  10208. # So say no if there are warnings
  10209. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  10210. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10211. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10212. lt_cv_prog_compiler_c_o_CXX=yes
  10213. fi
  10214. fi
  10215. chmod u+w . 2>&5
  10216. $rm conftest*
  10217. # SGI C++ compiler will create directory out/ii_files/ for
  10218. # template instantiation
  10219. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  10220. $rm out/* && rmdir out
  10221. cd ..
  10222. rmdir conftest
  10223. $rm conftest*
  10224. fi
  10225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  10226. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  10227. hard_links="nottested"
  10228. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  10229. # do not overwrite the value of need_locks provided by the user
  10230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  10231. $as_echo_n "checking if we can lock with hard links... " >&6; }
  10232. hard_links=yes
  10233. $rm conftest*
  10234. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10235. touch conftest.a
  10236. ln conftest.a conftest.b 2>&5 || hard_links=no
  10237. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  10239. $as_echo "$hard_links" >&6; }
  10240. if test "$hard_links" = no; then
  10241. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10242. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10243. need_locks=warn
  10244. fi
  10245. else
  10246. need_locks=no
  10247. fi
  10248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10249. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10250. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10251. case $host_os in
  10252. aix[4-9]*)
  10253. # If we're using GNU nm, then we don't want the "-C" option.
  10254. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10255. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10256. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  10257. else
  10258. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  10259. fi
  10260. ;;
  10261. pw32*)
  10262. export_symbols_cmds_CXX="$ltdll_cmds"
  10263. ;;
  10264. cygwin* | mingw*)
  10265. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10266. ;;
  10267. *)
  10268. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10269. ;;
  10270. esac
  10271. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  10272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  10273. $as_echo "$ld_shlibs_CXX" >&6; }
  10274. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10275. #
  10276. # Do we need to explicitly link libc?
  10277. #
  10278. case "x$archive_cmds_need_lc_CXX" in
  10279. x|xyes)
  10280. # Assume -lc should be added
  10281. archive_cmds_need_lc_CXX=yes
  10282. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10283. case $archive_cmds_CXX in
  10284. *'~'*)
  10285. # FIXME: we may have to deal with multi-command sequences.
  10286. ;;
  10287. '$CC '*)
  10288. # Test whether the compiler implicitly links with -lc since on some
  10289. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10290. # to ld, don't add -lc before -lgcc.
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10292. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10293. $rm conftest*
  10294. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10295. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10296. (eval $ac_compile) 2>&5
  10297. ac_status=$?
  10298. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10299. test $ac_status = 0; } 2>conftest.err; then
  10300. soname=conftest
  10301. lib=conftest
  10302. libobjs=conftest.$ac_objext
  10303. deplibs=
  10304. wl=$lt_prog_compiler_wl_CXX
  10305. pic_flag=$lt_prog_compiler_pic_CXX
  10306. compiler_flags=-v
  10307. linker_flags=-v
  10308. verstring=
  10309. output_objdir=.
  10310. libname=conftest
  10311. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  10312. allow_undefined_flag_CXX=
  10313. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10314. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10315. ac_status=$?
  10316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10317. test $ac_status = 0; }
  10318. then
  10319. archive_cmds_need_lc_CXX=no
  10320. else
  10321. archive_cmds_need_lc_CXX=yes
  10322. fi
  10323. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  10324. else
  10325. cat conftest.err 1>&5
  10326. fi
  10327. $rm conftest*
  10328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  10329. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  10330. ;;
  10331. esac
  10332. fi
  10333. ;;
  10334. esac
  10335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10336. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10337. library_names_spec=
  10338. libname_spec='lib$name'
  10339. soname_spec=
  10340. shrext_cmds=".so"
  10341. postinstall_cmds=
  10342. postuninstall_cmds=
  10343. finish_cmds=
  10344. finish_eval=
  10345. shlibpath_var=
  10346. shlibpath_overrides_runpath=unknown
  10347. version_type=none
  10348. dynamic_linker="$host_os ld.so"
  10349. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10350. need_lib_prefix=unknown
  10351. hardcode_into_libs=no
  10352. # when you set need_version to no, make sure it does not cause -set_version
  10353. # flags to be left without arguments
  10354. need_version=unknown
  10355. case $host_os in
  10356. aix3*)
  10357. version_type=linux
  10358. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10359. shlibpath_var=LIBPATH
  10360. # AIX 3 has no versioning support, so we append a major version to the name.
  10361. soname_spec='${libname}${release}${shared_ext}$major'
  10362. ;;
  10363. aix[4-9]*)
  10364. version_type=linux
  10365. need_lib_prefix=no
  10366. need_version=no
  10367. hardcode_into_libs=yes
  10368. if test "$host_cpu" = ia64; then
  10369. # AIX 5 supports IA64
  10370. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10371. shlibpath_var=LD_LIBRARY_PATH
  10372. else
  10373. # With GCC up to 2.95.x, collect2 would create an import file
  10374. # for dependence libraries. The import file would start with
  10375. # the line `#! .'. This would cause the generated library to
  10376. # depend on `.', always an invalid library. This was fixed in
  10377. # development snapshots of GCC prior to 3.0.
  10378. case $host_os in
  10379. aix4 | aix4.[01] | aix4.[01].*)
  10380. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10381. echo ' yes '
  10382. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10383. :
  10384. else
  10385. can_build_shared=no
  10386. fi
  10387. ;;
  10388. esac
  10389. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10390. # soname into executable. Probably we can add versioning support to
  10391. # collect2, so additional links can be useful in future.
  10392. if test "$aix_use_runtimelinking" = yes; then
  10393. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10394. # instead of lib<name>.a to let people know that these are not
  10395. # typical AIX shared libraries.
  10396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10397. else
  10398. # We preserve .a as extension for shared libraries through AIX4.2
  10399. # and later when we are not doing run time linking.
  10400. library_names_spec='${libname}${release}.a $libname.a'
  10401. soname_spec='${libname}${release}${shared_ext}$major'
  10402. fi
  10403. shlibpath_var=LIBPATH
  10404. fi
  10405. ;;
  10406. amigaos*)
  10407. library_names_spec='$libname.ixlibrary $libname.a'
  10408. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10409. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10410. ;;
  10411. beos*)
  10412. library_names_spec='${libname}${shared_ext}'
  10413. dynamic_linker="$host_os ld.so"
  10414. shlibpath_var=LIBRARY_PATH
  10415. ;;
  10416. bsdi[45]*)
  10417. version_type=linux
  10418. need_version=no
  10419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10420. soname_spec='${libname}${release}${shared_ext}$major'
  10421. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10422. shlibpath_var=LD_LIBRARY_PATH
  10423. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10424. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10425. # the default ld.so.conf also contains /usr/contrib/lib and
  10426. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10427. # libtool to hard-code these into programs
  10428. ;;
  10429. cygwin* | mingw* | pw32*)
  10430. version_type=windows
  10431. shrext_cmds=".dll"
  10432. need_version=no
  10433. need_lib_prefix=no
  10434. case $GCC,$host_os in
  10435. yes,cygwin* | yes,mingw* | yes,pw32*)
  10436. library_names_spec='$libname.dll.a'
  10437. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10438. postinstall_cmds='base_file=`basename \${file}`~
  10439. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10440. dldir=$destdir/`dirname \$dlpath`~
  10441. test -d \$dldir || mkdir -p \$dldir~
  10442. $install_prog $dir/$dlname \$dldir/$dlname~
  10443. chmod a+x \$dldir/$dlname'
  10444. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10445. dlpath=$dir/\$dldll~
  10446. $rm \$dlpath'
  10447. shlibpath_overrides_runpath=yes
  10448. case $host_os in
  10449. cygwin*)
  10450. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10451. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10452. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10453. ;;
  10454. mingw*)
  10455. # MinGW DLLs use traditional 'lib' prefix
  10456. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10457. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10458. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10459. # It is most probably a Windows format PATH printed by
  10460. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10461. # path with ; separators, and with drive letters. We can handle the
  10462. # drive letters (cygwin fileutils understands them), so leave them,
  10463. # especially as we might pass files found there to a mingw objdump,
  10464. # which wouldn't understand a cygwinified path. Ahh.
  10465. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10466. else
  10467. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10468. fi
  10469. ;;
  10470. pw32*)
  10471. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10472. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10473. ;;
  10474. esac
  10475. ;;
  10476. *)
  10477. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10478. ;;
  10479. esac
  10480. dynamic_linker='Win32 ld.exe'
  10481. # FIXME: first we should search . and the directory the executable is in
  10482. shlibpath_var=PATH
  10483. ;;
  10484. darwin* | rhapsody*)
  10485. dynamic_linker="$host_os dyld"
  10486. version_type=darwin
  10487. need_lib_prefix=no
  10488. need_version=no
  10489. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10490. soname_spec='${libname}${release}${major}$shared_ext'
  10491. shlibpath_overrides_runpath=yes
  10492. shlibpath_var=DYLD_LIBRARY_PATH
  10493. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10494. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10495. ;;
  10496. dgux*)
  10497. version_type=linux
  10498. need_lib_prefix=no
  10499. need_version=no
  10500. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10501. soname_spec='${libname}${release}${shared_ext}$major'
  10502. shlibpath_var=LD_LIBRARY_PATH
  10503. ;;
  10504. freebsd* | dragonfly*)
  10505. # DragonFly does not have aout. When/if they implement a new
  10506. # versioning mechanism, adjust this.
  10507. if test -x /usr/bin/objformat; then
  10508. objformat=`/usr/bin/objformat`
  10509. else
  10510. case $host_os in
  10511. freebsd[123].*) objformat=aout ;;
  10512. *) objformat=elf ;;
  10513. esac
  10514. fi
  10515. version_type=freebsd-$objformat
  10516. case $version_type in
  10517. freebsd-elf*)
  10518. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10519. need_version=no
  10520. need_lib_prefix=no
  10521. ;;
  10522. freebsd-*)
  10523. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10524. need_version=yes
  10525. ;;
  10526. esac
  10527. shlibpath_var=LD_LIBRARY_PATH
  10528. case $host_os in
  10529. freebsd2*)
  10530. shlibpath_overrides_runpath=yes
  10531. ;;
  10532. freebsd3.[01]* | freebsdelf3.[01]*)
  10533. shlibpath_overrides_runpath=yes
  10534. hardcode_into_libs=yes
  10535. ;;
  10536. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10537. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10538. shlibpath_overrides_runpath=no
  10539. hardcode_into_libs=yes
  10540. ;;
  10541. *) # from 4.6 on, and DragonFly
  10542. shlibpath_overrides_runpath=yes
  10543. hardcode_into_libs=yes
  10544. ;;
  10545. esac
  10546. ;;
  10547. gnu*)
  10548. version_type=linux
  10549. need_lib_prefix=no
  10550. need_version=no
  10551. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10552. soname_spec='${libname}${release}${shared_ext}$major'
  10553. shlibpath_var=LD_LIBRARY_PATH
  10554. hardcode_into_libs=yes
  10555. ;;
  10556. hpux9* | hpux10* | hpux11*)
  10557. # Give a soname corresponding to the major version so that dld.sl refuses to
  10558. # link against other versions.
  10559. version_type=sunos
  10560. need_lib_prefix=no
  10561. need_version=no
  10562. case $host_cpu in
  10563. ia64*)
  10564. shrext_cmds='.so'
  10565. hardcode_into_libs=yes
  10566. dynamic_linker="$host_os dld.so"
  10567. shlibpath_var=LD_LIBRARY_PATH
  10568. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10569. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10570. soname_spec='${libname}${release}${shared_ext}$major'
  10571. if test "X$HPUX_IA64_MODE" = X32; then
  10572. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10573. else
  10574. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10575. fi
  10576. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10577. ;;
  10578. hppa*64*)
  10579. shrext_cmds='.sl'
  10580. hardcode_into_libs=yes
  10581. dynamic_linker="$host_os dld.sl"
  10582. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10583. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10584. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10585. soname_spec='${libname}${release}${shared_ext}$major'
  10586. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10587. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10588. ;;
  10589. *)
  10590. shrext_cmds='.sl'
  10591. dynamic_linker="$host_os dld.sl"
  10592. shlibpath_var=SHLIB_PATH
  10593. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10594. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10595. soname_spec='${libname}${release}${shared_ext}$major'
  10596. ;;
  10597. esac
  10598. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10599. postinstall_cmds='chmod 555 $lib'
  10600. ;;
  10601. interix[3-9]*)
  10602. version_type=linux
  10603. need_lib_prefix=no
  10604. need_version=no
  10605. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10606. soname_spec='${libname}${release}${shared_ext}$major'
  10607. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10608. shlibpath_var=LD_LIBRARY_PATH
  10609. shlibpath_overrides_runpath=no
  10610. hardcode_into_libs=yes
  10611. ;;
  10612. irix5* | irix6* | nonstopux*)
  10613. case $host_os in
  10614. nonstopux*) version_type=nonstopux ;;
  10615. *)
  10616. if test "$lt_cv_prog_gnu_ld" = yes; then
  10617. version_type=linux
  10618. else
  10619. version_type=irix
  10620. fi ;;
  10621. esac
  10622. need_lib_prefix=no
  10623. need_version=no
  10624. soname_spec='${libname}${release}${shared_ext}$major'
  10625. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10626. case $host_os in
  10627. irix5* | nonstopux*)
  10628. libsuff= shlibsuff=
  10629. ;;
  10630. *)
  10631. case $LD in # libtool.m4 will add one of these switches to LD
  10632. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10633. libsuff= shlibsuff= libmagic=32-bit;;
  10634. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10635. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10636. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10637. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10638. *) libsuff= shlibsuff= libmagic=never-match;;
  10639. esac
  10640. ;;
  10641. esac
  10642. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10643. shlibpath_overrides_runpath=no
  10644. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10645. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10646. hardcode_into_libs=yes
  10647. ;;
  10648. # No shared lib support for Linux oldld, aout, or coff.
  10649. linux*oldld* | linux*aout* | linux*coff*)
  10650. dynamic_linker=no
  10651. ;;
  10652. # This must be Linux ELF.
  10653. linux* | k*bsd*-gnu)
  10654. version_type=linux
  10655. need_lib_prefix=no
  10656. need_version=no
  10657. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10658. soname_spec='${libname}${release}${shared_ext}$major'
  10659. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10660. shlibpath_var=LD_LIBRARY_PATH
  10661. shlibpath_overrides_runpath=no
  10662. # This implies no fast_install, which is unacceptable.
  10663. # Some rework will be needed to allow for fast_install
  10664. # before this can be enabled.
  10665. hardcode_into_libs=yes
  10666. # Append ld.so.conf contents to the search path
  10667. if test -f /etc/ld.so.conf; then
  10668. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  10669. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10670. fi
  10671. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10672. # powerpc, because MkLinux only supported shared libraries with the
  10673. # GNU dynamic linker. Since this was broken with cross compilers,
  10674. # most powerpc-linux boxes support dynamic linking these days and
  10675. # people can always --disable-shared, the test was removed, and we
  10676. # assume the GNU/Linux dynamic linker is in use.
  10677. dynamic_linker='GNU/Linux ld.so'
  10678. ;;
  10679. netbsd*)
  10680. version_type=sunos
  10681. need_lib_prefix=no
  10682. need_version=no
  10683. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10685. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10686. dynamic_linker='NetBSD (a.out) ld.so'
  10687. else
  10688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10689. soname_spec='${libname}${release}${shared_ext}$major'
  10690. dynamic_linker='NetBSD ld.elf_so'
  10691. fi
  10692. shlibpath_var=LD_LIBRARY_PATH
  10693. shlibpath_overrides_runpath=yes
  10694. hardcode_into_libs=yes
  10695. ;;
  10696. newsos6)
  10697. version_type=linux
  10698. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10699. shlibpath_var=LD_LIBRARY_PATH
  10700. shlibpath_overrides_runpath=yes
  10701. ;;
  10702. nto-qnx*)
  10703. version_type=linux
  10704. need_lib_prefix=no
  10705. need_version=no
  10706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10707. soname_spec='${libname}${release}${shared_ext}$major'
  10708. shlibpath_var=LD_LIBRARY_PATH
  10709. shlibpath_overrides_runpath=yes
  10710. ;;
  10711. openbsd*)
  10712. version_type=sunos
  10713. sys_lib_dlsearch_path_spec="/usr/lib"
  10714. need_lib_prefix=no
  10715. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10716. case $host_os in
  10717. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10718. *) need_version=no ;;
  10719. esac
  10720. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10721. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10722. shlibpath_var=LD_LIBRARY_PATH
  10723. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10724. case $host_os in
  10725. openbsd2.[89] | openbsd2.[89].*)
  10726. shlibpath_overrides_runpath=no
  10727. ;;
  10728. *)
  10729. shlibpath_overrides_runpath=yes
  10730. ;;
  10731. esac
  10732. else
  10733. shlibpath_overrides_runpath=yes
  10734. fi
  10735. ;;
  10736. os2*)
  10737. libname_spec='$name'
  10738. shrext_cmds=".dll"
  10739. need_lib_prefix=no
  10740. library_names_spec='$libname${shared_ext} $libname.a'
  10741. dynamic_linker='OS/2 ld.exe'
  10742. shlibpath_var=LIBPATH
  10743. ;;
  10744. osf3* | osf4* | osf5*)
  10745. version_type=osf
  10746. need_lib_prefix=no
  10747. need_version=no
  10748. soname_spec='${libname}${release}${shared_ext}$major'
  10749. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10750. shlibpath_var=LD_LIBRARY_PATH
  10751. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10752. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10753. ;;
  10754. rdos*)
  10755. dynamic_linker=no
  10756. ;;
  10757. solaris*)
  10758. version_type=linux
  10759. need_lib_prefix=no
  10760. need_version=no
  10761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10762. soname_spec='${libname}${release}${shared_ext}$major'
  10763. shlibpath_var=LD_LIBRARY_PATH
  10764. shlibpath_overrides_runpath=yes
  10765. hardcode_into_libs=yes
  10766. # ldd complains unless libraries are executable
  10767. postinstall_cmds='chmod +x $lib'
  10768. ;;
  10769. sunos4*)
  10770. version_type=sunos
  10771. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10772. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10773. shlibpath_var=LD_LIBRARY_PATH
  10774. shlibpath_overrides_runpath=yes
  10775. if test "$with_gnu_ld" = yes; then
  10776. need_lib_prefix=no
  10777. fi
  10778. need_version=yes
  10779. ;;
  10780. sysv4 | sysv4.3*)
  10781. version_type=linux
  10782. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10783. soname_spec='${libname}${release}${shared_ext}$major'
  10784. shlibpath_var=LD_LIBRARY_PATH
  10785. case $host_vendor in
  10786. sni)
  10787. shlibpath_overrides_runpath=no
  10788. need_lib_prefix=no
  10789. export_dynamic_flag_spec='${wl}-Blargedynsym'
  10790. runpath_var=LD_RUN_PATH
  10791. ;;
  10792. siemens)
  10793. need_lib_prefix=no
  10794. ;;
  10795. motorola)
  10796. need_lib_prefix=no
  10797. need_version=no
  10798. shlibpath_overrides_runpath=no
  10799. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10800. ;;
  10801. esac
  10802. ;;
  10803. sysv4*MP*)
  10804. if test -d /usr/nec ;then
  10805. version_type=linux
  10806. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10807. soname_spec='$libname${shared_ext}.$major'
  10808. shlibpath_var=LD_LIBRARY_PATH
  10809. fi
  10810. ;;
  10811. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10812. version_type=freebsd-elf
  10813. need_lib_prefix=no
  10814. need_version=no
  10815. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10816. soname_spec='${libname}${release}${shared_ext}$major'
  10817. shlibpath_var=LD_LIBRARY_PATH
  10818. hardcode_into_libs=yes
  10819. if test "$with_gnu_ld" = yes; then
  10820. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10821. shlibpath_overrides_runpath=no
  10822. else
  10823. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10824. shlibpath_overrides_runpath=yes
  10825. case $host_os in
  10826. sco3.2v5*)
  10827. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10828. ;;
  10829. esac
  10830. fi
  10831. sys_lib_dlsearch_path_spec='/usr/lib'
  10832. ;;
  10833. uts4*)
  10834. version_type=linux
  10835. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10836. soname_spec='${libname}${release}${shared_ext}$major'
  10837. shlibpath_var=LD_LIBRARY_PATH
  10838. ;;
  10839. *)
  10840. dynamic_linker=no
  10841. ;;
  10842. esac
  10843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10844. $as_echo "$dynamic_linker" >&6; }
  10845. test "$dynamic_linker" = no && can_build_shared=no
  10846. if ${lt_cv_sys_lib_search_path_spec+:} false; then :
  10847. $as_echo_n "(cached) " >&6
  10848. else
  10849. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  10850. fi
  10851. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10852. if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
  10853. $as_echo_n "(cached) " >&6
  10854. else
  10855. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  10856. fi
  10857. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10858. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10859. if test "$GCC" = yes; then
  10860. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10861. fi
  10862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10863. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10864. hardcode_action_CXX=
  10865. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  10866. test -n "$runpath_var_CXX" || \
  10867. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  10868. # We can hardcode non-existent directories.
  10869. if test "$hardcode_direct_CXX" != no &&
  10870. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10871. # have to relink, otherwise we might link with an installed library
  10872. # when we should be linking with a yet-to-be-installed one
  10873. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  10874. test "$hardcode_minus_L_CXX" != no; then
  10875. # Linking always hardcodes the temporary library directory.
  10876. hardcode_action_CXX=relink
  10877. else
  10878. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10879. hardcode_action_CXX=immediate
  10880. fi
  10881. else
  10882. # We cannot hardcode anything, or else we can only hardcode existing
  10883. # directories.
  10884. hardcode_action_CXX=unsupported
  10885. fi
  10886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  10887. $as_echo "$hardcode_action_CXX" >&6; }
  10888. if test "$hardcode_action_CXX" = relink; then
  10889. # Fast installation is not supported
  10890. enable_fast_install=no
  10891. elif test "$shlibpath_overrides_runpath" = yes ||
  10892. test "$enable_shared" = no; then
  10893. # Fast installation is not necessary
  10894. enable_fast_install=needless
  10895. fi
  10896. # The else clause should only fire when bootstrapping the
  10897. # libtool distribution, otherwise you forgot to ship ltmain.sh
  10898. # with your package, and you will get complaints that there are
  10899. # no rules to generate ltmain.sh.
  10900. if test -f "$ltmain"; then
  10901. # See if we are running on zsh, and set the options which allow our commands through
  10902. # without removal of \ escapes.
  10903. if test -n "${ZSH_VERSION+set}" ; then
  10904. setopt NO_GLOB_SUBST
  10905. fi
  10906. # Now quote all the things that may contain metacharacters while being
  10907. # careful not to overquote the AC_SUBSTed values. We take copies of the
  10908. # variables and quote the copies for generation of the libtool script.
  10909. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  10910. SED SHELL STRIP \
  10911. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  10912. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  10913. deplibs_check_method reload_flag reload_cmds need_locks \
  10914. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  10915. lt_cv_sys_global_symbol_to_c_name_address \
  10916. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  10917. old_postinstall_cmds old_postuninstall_cmds \
  10918. compiler_CXX \
  10919. CC_CXX \
  10920. LD_CXX \
  10921. lt_prog_compiler_wl_CXX \
  10922. lt_prog_compiler_pic_CXX \
  10923. lt_prog_compiler_static_CXX \
  10924. lt_prog_compiler_no_builtin_flag_CXX \
  10925. export_dynamic_flag_spec_CXX \
  10926. thread_safe_flag_spec_CXX \
  10927. whole_archive_flag_spec_CXX \
  10928. enable_shared_with_static_runtimes_CXX \
  10929. old_archive_cmds_CXX \
  10930. old_archive_from_new_cmds_CXX \
  10931. predep_objects_CXX \
  10932. postdep_objects_CXX \
  10933. predeps_CXX \
  10934. postdeps_CXX \
  10935. compiler_lib_search_path_CXX \
  10936. compiler_lib_search_dirs_CXX \
  10937. archive_cmds_CXX \
  10938. archive_expsym_cmds_CXX \
  10939. postinstall_cmds_CXX \
  10940. postuninstall_cmds_CXX \
  10941. old_archive_from_expsyms_cmds_CXX \
  10942. allow_undefined_flag_CXX \
  10943. no_undefined_flag_CXX \
  10944. export_symbols_cmds_CXX \
  10945. hardcode_libdir_flag_spec_CXX \
  10946. hardcode_libdir_flag_spec_ld_CXX \
  10947. hardcode_libdir_separator_CXX \
  10948. hardcode_automatic_CXX \
  10949. module_cmds_CXX \
  10950. module_expsym_cmds_CXX \
  10951. lt_cv_prog_compiler_c_o_CXX \
  10952. fix_srcfile_path_CXX \
  10953. exclude_expsyms_CXX \
  10954. include_expsyms_CXX; do
  10955. case $var in
  10956. old_archive_cmds_CXX | \
  10957. old_archive_from_new_cmds_CXX | \
  10958. archive_cmds_CXX | \
  10959. archive_expsym_cmds_CXX | \
  10960. module_cmds_CXX | \
  10961. module_expsym_cmds_CXX | \
  10962. old_archive_from_expsyms_cmds_CXX | \
  10963. export_symbols_cmds_CXX | \
  10964. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  10965. postinstall_cmds | postuninstall_cmds | \
  10966. old_postinstall_cmds | old_postuninstall_cmds | \
  10967. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  10968. # Double-quote double-evaled strings.
  10969. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  10970. ;;
  10971. *)
  10972. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  10973. ;;
  10974. esac
  10975. done
  10976. case $lt_echo in
  10977. *'\$0 --fallback-echo"')
  10978. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  10979. ;;
  10980. esac
  10981. cfgfile="$ofile"
  10982. cat <<__EOF__ >> "$cfgfile"
  10983. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  10984. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10985. # Shell to use when invoking shell scripts.
  10986. SHELL=$lt_SHELL
  10987. # Whether or not to build shared libraries.
  10988. build_libtool_libs=$enable_shared
  10989. # Whether or not to build static libraries.
  10990. build_old_libs=$enable_static
  10991. # Whether or not to add -lc for building shared libraries.
  10992. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  10993. # Whether or not to disallow shared libs when runtime libs are static
  10994. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  10995. # Whether or not to optimize for fast installation.
  10996. fast_install=$enable_fast_install
  10997. # The host system.
  10998. host_alias=$host_alias
  10999. host=$host
  11000. host_os=$host_os
  11001. # The build system.
  11002. build_alias=$build_alias
  11003. build=$build
  11004. build_os=$build_os
  11005. # An echo program that does not interpret backslashes.
  11006. echo=$lt_echo
  11007. # The archiver.
  11008. AR=$lt_AR
  11009. AR_FLAGS=$lt_AR_FLAGS
  11010. # A C compiler.
  11011. LTCC=$lt_LTCC
  11012. # LTCC compiler flags.
  11013. LTCFLAGS=$lt_LTCFLAGS
  11014. # A language-specific compiler.
  11015. CC=$lt_compiler_CXX
  11016. # Is the compiler the GNU C compiler?
  11017. with_gcc=$GCC_CXX
  11018. # An ERE matcher.
  11019. EGREP=$lt_EGREP
  11020. # The linker used to build libraries.
  11021. LD=$lt_LD_CXX
  11022. # Whether we need hard or soft links.
  11023. LN_S=$lt_LN_S
  11024. # A BSD-compatible nm program.
  11025. NM=$lt_NM
  11026. # A symbol stripping program
  11027. STRIP=$lt_STRIP
  11028. # Used to examine libraries when file_magic_cmd begins "file"
  11029. MAGIC_CMD=$MAGIC_CMD
  11030. # Used on cygwin: DLL creation program.
  11031. DLLTOOL="$DLLTOOL"
  11032. # Used on cygwin: object dumper.
  11033. OBJDUMP="$OBJDUMP"
  11034. # Used on cygwin: assembler.
  11035. AS="$AS"
  11036. # The name of the directory that contains temporary libtool files.
  11037. objdir=$objdir
  11038. # How to create reloadable object files.
  11039. reload_flag=$lt_reload_flag
  11040. reload_cmds=$lt_reload_cmds
  11041. # How to pass a linker flag through the compiler.
  11042. wl=$lt_lt_prog_compiler_wl_CXX
  11043. # Object file suffix (normally "o").
  11044. objext="$ac_objext"
  11045. # Old archive suffix (normally "a").
  11046. libext="$libext"
  11047. # Shared library suffix (normally ".so").
  11048. shrext_cmds='$shrext_cmds'
  11049. # Executable file suffix (normally "").
  11050. exeext="$exeext"
  11051. # Additional compiler flags for building library objects.
  11052. pic_flag=$lt_lt_prog_compiler_pic_CXX
  11053. pic_mode=$pic_mode
  11054. # What is the maximum length of a command?
  11055. max_cmd_len=$lt_cv_sys_max_cmd_len
  11056. # Does compiler simultaneously support -c and -o options?
  11057. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  11058. # Must we lock files when doing compilation?
  11059. need_locks=$lt_need_locks
  11060. # Do we need the lib prefix for modules?
  11061. need_lib_prefix=$need_lib_prefix
  11062. # Do we need a version for libraries?
  11063. need_version=$need_version
  11064. # Whether dlopen is supported.
  11065. dlopen_support=$enable_dlopen
  11066. # Whether dlopen of programs is supported.
  11067. dlopen_self=$enable_dlopen_self
  11068. # Whether dlopen of statically linked programs is supported.
  11069. dlopen_self_static=$enable_dlopen_self_static
  11070. # Compiler flag to prevent dynamic linking.
  11071. link_static_flag=$lt_lt_prog_compiler_static_CXX
  11072. # Compiler flag to turn off builtin functions.
  11073. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  11074. # Compiler flag to allow reflexive dlopens.
  11075. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  11076. # Compiler flag to generate shared objects directly from archives.
  11077. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  11078. # Compiler flag to generate thread-safe objects.
  11079. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  11080. # Library versioning type.
  11081. version_type=$version_type
  11082. # Format of library name prefix.
  11083. libname_spec=$lt_libname_spec
  11084. # List of archive names. First name is the real one, the rest are links.
  11085. # The last name is the one that the linker finds with -lNAME.
  11086. library_names_spec=$lt_library_names_spec
  11087. # The coded name of the library, if different from the real name.
  11088. soname_spec=$lt_soname_spec
  11089. # Commands used to build and install an old-style archive.
  11090. RANLIB=$lt_RANLIB
  11091. old_archive_cmds=$lt_old_archive_cmds_CXX
  11092. old_postinstall_cmds=$lt_old_postinstall_cmds
  11093. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11094. # Create an old-style archive from a shared archive.
  11095. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  11096. # Create a temporary old-style archive to link instead of a shared archive.
  11097. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  11098. # Commands used to build and install a shared archive.
  11099. archive_cmds=$lt_archive_cmds_CXX
  11100. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  11101. postinstall_cmds=$lt_postinstall_cmds
  11102. postuninstall_cmds=$lt_postuninstall_cmds
  11103. # Commands used to build a loadable module (assumed same as above if empty)
  11104. module_cmds=$lt_module_cmds_CXX
  11105. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  11106. # Commands to strip libraries.
  11107. old_striplib=$lt_old_striplib
  11108. striplib=$lt_striplib
  11109. # Dependencies to place before the objects being linked to create a
  11110. # shared library.
  11111. predep_objects=$lt_predep_objects_CXX
  11112. # Dependencies to place after the objects being linked to create a
  11113. # shared library.
  11114. postdep_objects=$lt_postdep_objects_CXX
  11115. # Dependencies to place before the objects being linked to create a
  11116. # shared library.
  11117. predeps=$lt_predeps_CXX
  11118. # Dependencies to place after the objects being linked to create a
  11119. # shared library.
  11120. postdeps=$lt_postdeps_CXX
  11121. # The directories searched by this compiler when creating a shared
  11122. # library
  11123. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  11124. # The library search path used internally by the compiler when linking
  11125. # a shared library.
  11126. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  11127. # Method to check whether dependent libraries are shared objects.
  11128. deplibs_check_method=$lt_deplibs_check_method
  11129. # Command to use when deplibs_check_method == file_magic.
  11130. file_magic_cmd=$lt_file_magic_cmd
  11131. # Flag that allows shared libraries with undefined symbols to be built.
  11132. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  11133. # Flag that forces no undefined symbols.
  11134. no_undefined_flag=$lt_no_undefined_flag_CXX
  11135. # Commands used to finish a libtool library installation in a directory.
  11136. finish_cmds=$lt_finish_cmds
  11137. # Same as above, but a single script fragment to be evaled but not shown.
  11138. finish_eval=$lt_finish_eval
  11139. # Take the output of nm and produce a listing of raw symbols and C names.
  11140. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11141. # Transform the output of nm in a proper C declaration
  11142. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11143. # Transform the output of nm in a C name address pair
  11144. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11145. # This is the shared library runtime path variable.
  11146. runpath_var=$runpath_var
  11147. # This is the shared library path variable.
  11148. shlibpath_var=$shlibpath_var
  11149. # Is shlibpath searched before the hard-coded library search path?
  11150. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11151. # How to hardcode a shared library path into an executable.
  11152. hardcode_action=$hardcode_action_CXX
  11153. # Whether we should hardcode library paths into libraries.
  11154. hardcode_into_libs=$hardcode_into_libs
  11155. # Flag to hardcode \$libdir into a binary during linking.
  11156. # This must work even if \$libdir does not exist.
  11157. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  11158. # If ld is used when linking, flag to hardcode \$libdir into
  11159. # a binary during linking. This must work even if \$libdir does
  11160. # not exist.
  11161. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  11162. # Whether we need a single -rpath flag with a separated argument.
  11163. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  11164. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11165. # resulting binary.
  11166. hardcode_direct=$hardcode_direct_CXX
  11167. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11168. # resulting binary.
  11169. hardcode_minus_L=$hardcode_minus_L_CXX
  11170. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11171. # the resulting binary.
  11172. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  11173. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11174. # and all subsequent libraries and executables linked against it.
  11175. hardcode_automatic=$hardcode_automatic_CXX
  11176. # Variables whose values should be saved in libtool wrapper scripts and
  11177. # restored at relink time.
  11178. variables_saved_for_relink="$variables_saved_for_relink"
  11179. # Whether libtool must link a program against all its dependency libraries.
  11180. link_all_deplibs=$link_all_deplibs_CXX
  11181. # Compile-time system search path for libraries
  11182. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11183. # Run-time system search path for libraries
  11184. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11185. # Fix the shell variable \$srcfile for the compiler.
  11186. fix_srcfile_path=$lt_fix_srcfile_path
  11187. # Set to yes if exported symbols are required.
  11188. always_export_symbols=$always_export_symbols_CXX
  11189. # The commands to list exported symbols.
  11190. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  11191. # The commands to extract the exported symbol list from a shared archive.
  11192. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11193. # Symbols that should not be listed in the preloaded symbols.
  11194. exclude_expsyms=$lt_exclude_expsyms_CXX
  11195. # Symbols that must always be exported.
  11196. include_expsyms=$lt_include_expsyms_CXX
  11197. # ### END LIBTOOL TAG CONFIG: $tagname
  11198. __EOF__
  11199. else
  11200. # If there is no Makefile yet, we rely on a make rule to execute
  11201. # `config.status --recheck' to rerun these tests and create the
  11202. # libtool script then.
  11203. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11204. if test -f "$ltmain_in"; then
  11205. test -f Makefile && make "$ltmain"
  11206. fi
  11207. fi
  11208. ac_ext=c
  11209. ac_cpp='$CPP $CPPFLAGS'
  11210. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11211. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11212. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11213. CC=$lt_save_CC
  11214. LDCXX=$LD
  11215. LD=$lt_save_LD
  11216. GCC=$lt_save_GCC
  11217. with_gnu_ldcxx=$with_gnu_ld
  11218. with_gnu_ld=$lt_save_with_gnu_ld
  11219. lt_cv_path_LDCXX=$lt_cv_path_LD
  11220. lt_cv_path_LD=$lt_save_path_LD
  11221. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  11222. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  11223. else
  11224. tagname=""
  11225. fi
  11226. ;;
  11227. *)
  11228. as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
  11229. ;;
  11230. esac
  11231. # Append the new tag name to the list of available tags.
  11232. if test -n "$tagname" ; then
  11233. available_tags="$available_tags $tagname"
  11234. fi
  11235. fi
  11236. done
  11237. IFS="$lt_save_ifs"
  11238. # Now substitute the updated list of available tags.
  11239. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  11240. mv "${ofile}T" "$ofile"
  11241. chmod +x "$ofile"
  11242. else
  11243. rm -f "${ofile}T"
  11244. as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
  11245. fi
  11246. fi
  11247. # This can be used to rebuild libtool when needed
  11248. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  11249. # Always use our own libtool.
  11250. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  11251. # Prevent multiple expansion
  11252. all_targets='$(PHP_MODULES) $(PHP_ZEND_EX)'
  11253. install_targets="install-modules install-headers"
  11254. phplibdir="`pwd`/modules"
  11255. CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H"
  11256. CFLAGS_CLEAN='$(CFLAGS)'
  11257. CXXFLAGS_CLEAN='$(CXXFLAGS)'
  11258. test "$prefix" = "NONE" && prefix="/usr/local"
  11259. test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
  11260. PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MODULES"
  11261. PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_ZEND_EX"
  11262. PHP_VAR_SUBST="$PHP_VAR_SUBST all_targets"
  11263. PHP_VAR_SUBST="$PHP_VAR_SUBST install_targets"
  11264. PHP_VAR_SUBST="$PHP_VAR_SUBST prefix"
  11265. PHP_VAR_SUBST="$PHP_VAR_SUBST exec_prefix"
  11266. PHP_VAR_SUBST="$PHP_VAR_SUBST libdir"
  11267. PHP_VAR_SUBST="$PHP_VAR_SUBST prefix"
  11268. PHP_VAR_SUBST="$PHP_VAR_SUBST phplibdir"
  11269. PHP_VAR_SUBST="$PHP_VAR_SUBST phpincludedir"
  11270. PHP_VAR_SUBST="$PHP_VAR_SUBST CC"
  11271. PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS"
  11272. PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS_CLEAN"
  11273. PHP_VAR_SUBST="$PHP_VAR_SUBST CPP"
  11274. PHP_VAR_SUBST="$PHP_VAR_SUBST CPPFLAGS"
  11275. PHP_VAR_SUBST="$PHP_VAR_SUBST CXX"
  11276. PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS"
  11277. PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS_CLEAN"
  11278. PHP_VAR_SUBST="$PHP_VAR_SUBST EXTENSION_DIR"
  11279. PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE"
  11280. PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS"
  11281. PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LIBS"
  11282. PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDES"
  11283. PHP_VAR_SUBST="$PHP_VAR_SUBST LFLAGS"
  11284. PHP_VAR_SUBST="$PHP_VAR_SUBST LDFLAGS"
  11285. PHP_VAR_SUBST="$PHP_VAR_SUBST SHARED_LIBTOOL"
  11286. PHP_VAR_SUBST="$PHP_VAR_SUBST LIBTOOL"
  11287. PHP_VAR_SUBST="$PHP_VAR_SUBST SHELL"
  11288. PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_HEADERS"
  11289. $php_shtool mkdir -p $BUILD_DIR
  11290. cat >Makefile <<EOF
  11291. srcdir = $abs_srcdir
  11292. builddir = $abs_builddir
  11293. top_srcdir = $abs_srcdir
  11294. top_builddir = $abs_builddir
  11295. EOF
  11296. for i in $PHP_VAR_SUBST; do
  11297. eval echo "$i = \$$i" >> Makefile
  11298. done
  11299. cat $abs_srcdir/Makefile.global Makefile.fragments Makefile.objects >> Makefile
  11300. test -d modules || $php_shtool mkdir modules
  11301. touch .deps
  11302. ac_config_headers="$ac_config_headers config.h"
  11303. cat >confcache <<\_ACEOF
  11304. # This file is a shell script that caches the results of configure
  11305. # tests run on this system so they can be shared between configure
  11306. # scripts and configure runs, see configure's option --config-cache.
  11307. # It is not useful on other systems. If it contains results you don't
  11308. # want to keep, you may remove or edit it.
  11309. #
  11310. # config.status only pays attention to the cache file if you give it
  11311. # the --recheck option to rerun configure.
  11312. #
  11313. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11314. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11315. # following values.
  11316. _ACEOF
  11317. # The following way of writing the cache mishandles newlines in values,
  11318. # but we know of no workaround that is simple, portable, and efficient.
  11319. # So, we kill variables containing newlines.
  11320. # Ultrix sh set writes to stderr and can't be redirected directly,
  11321. # and sets the high bit in the cache file unless we assign to the vars.
  11322. (
  11323. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11324. eval ac_val=\$$ac_var
  11325. case $ac_val in #(
  11326. *${as_nl}*)
  11327. case $ac_var in #(
  11328. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11329. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11330. esac
  11331. case $ac_var in #(
  11332. _ | IFS | as_nl) ;; #(
  11333. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11334. *) { eval $ac_var=; unset $ac_var;} ;;
  11335. esac ;;
  11336. esac
  11337. done
  11338. (set) 2>&1 |
  11339. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11340. *${as_nl}ac_space=\ *)
  11341. # `set' does not quote correctly, so add quotes: double-quote
  11342. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11343. sed -n \
  11344. "s/'/'\\\\''/g;
  11345. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11346. ;; #(
  11347. *)
  11348. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11349. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11350. ;;
  11351. esac |
  11352. sort
  11353. ) |
  11354. sed '
  11355. /^ac_cv_env_/b end
  11356. t clear
  11357. :clear
  11358. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11359. t end
  11360. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11361. :end' >>confcache
  11362. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11363. if test -w "$cache_file"; then
  11364. if test "x$cache_file" != "x/dev/null"; then
  11365. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11366. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11367. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11368. cat confcache >"$cache_file"
  11369. else
  11370. case $cache_file in #(
  11371. */* | ?:*)
  11372. mv -f confcache "$cache_file"$$ &&
  11373. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11374. *)
  11375. mv -f confcache "$cache_file" ;;
  11376. esac
  11377. fi
  11378. fi
  11379. else
  11380. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11381. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11382. fi
  11383. fi
  11384. rm -f confcache
  11385. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11386. # Let make expand exec_prefix.
  11387. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11388. DEFS=-DHAVE_CONFIG_H
  11389. ac_libobjs=
  11390. ac_ltlibobjs=
  11391. U=
  11392. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11393. # 1. Remove the extension, and $U if already installed.
  11394. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11395. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11396. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11397. # will be set to the directory where LIBOBJS objects are built.
  11398. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11399. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11400. done
  11401. LIBOBJS=$ac_libobjs
  11402. LTLIBOBJS=$ac_ltlibobjs
  11403. : "${CONFIG_STATUS=./config.status}"
  11404. ac_write_fail=0
  11405. ac_clean_files_save=$ac_clean_files
  11406. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11407. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11408. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11409. as_write_fail=0
  11410. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11411. #! $SHELL
  11412. # Generated by $as_me.
  11413. # Run this file to recreate the current configuration.
  11414. # Compiler output produced by configure, useful for debugging
  11415. # configure, is in config.log if it exists.
  11416. debug=false
  11417. ac_cs_recheck=false
  11418. ac_cs_silent=false
  11419. SHELL=\${CONFIG_SHELL-$SHELL}
  11420. export SHELL
  11421. _ASEOF
  11422. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11423. ## -------------------- ##
  11424. ## M4sh Initialization. ##
  11425. ## -------------------- ##
  11426. # Be more Bourne compatible
  11427. DUALCASE=1; export DUALCASE # for MKS sh
  11428. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11429. emulate sh
  11430. NULLCMD=:
  11431. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11432. # is contrary to our usage. Disable this feature.
  11433. alias -g '${1+"$@"}'='"$@"'
  11434. setopt NO_GLOB_SUBST
  11435. else
  11436. case `(set -o) 2>/dev/null` in #(
  11437. *posix*) :
  11438. set -o posix ;; #(
  11439. *) :
  11440. ;;
  11441. esac
  11442. fi
  11443. as_nl='
  11444. '
  11445. export as_nl
  11446. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11447. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11448. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11449. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11450. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11451. # but without wasting forks for bash or zsh.
  11452. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11453. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11454. as_echo='print -r --'
  11455. as_echo_n='print -rn --'
  11456. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11457. as_echo='printf %s\n'
  11458. as_echo_n='printf %s'
  11459. else
  11460. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11461. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11462. as_echo_n='/usr/ucb/echo -n'
  11463. else
  11464. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11465. as_echo_n_body='eval
  11466. arg=$1;
  11467. case $arg in #(
  11468. *"$as_nl"*)
  11469. expr "X$arg" : "X\\(.*\\)$as_nl";
  11470. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11471. esac;
  11472. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11473. '
  11474. export as_echo_n_body
  11475. as_echo_n='sh -c $as_echo_n_body as_echo'
  11476. fi
  11477. export as_echo_body
  11478. as_echo='sh -c $as_echo_body as_echo'
  11479. fi
  11480. # The user is always right.
  11481. if test "${PATH_SEPARATOR+set}" != set; then
  11482. PATH_SEPARATOR=:
  11483. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11484. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11485. PATH_SEPARATOR=';'
  11486. }
  11487. fi
  11488. # IFS
  11489. # We need space, tab and new line, in precisely that order. Quoting is
  11490. # there to prevent editors from complaining about space-tab.
  11491. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11492. # splitting by setting IFS to empty value.)
  11493. IFS=" "" $as_nl"
  11494. # Find who we are. Look in the path if we contain no directory separator.
  11495. as_myself=
  11496. case $0 in #((
  11497. *[\\/]* ) as_myself=$0 ;;
  11498. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11499. for as_dir in $PATH
  11500. do
  11501. IFS=$as_save_IFS
  11502. test -z "$as_dir" && as_dir=.
  11503. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11504. done
  11505. IFS=$as_save_IFS
  11506. ;;
  11507. esac
  11508. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11509. # in which case we are not to be found in the path.
  11510. if test "x$as_myself" = x; then
  11511. as_myself=$0
  11512. fi
  11513. if test ! -f "$as_myself"; then
  11514. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11515. exit 1
  11516. fi
  11517. # Unset variables that we do not need and which cause bugs (e.g. in
  11518. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11519. # suppresses any "Segmentation fault" message there. '((' could
  11520. # trigger a bug in pdksh 5.2.14.
  11521. for as_var in BASH_ENV ENV MAIL MAILPATH
  11522. do eval test x\${$as_var+set} = xset \
  11523. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11524. done
  11525. PS1='$ '
  11526. PS2='> '
  11527. PS4='+ '
  11528. # NLS nuisances.
  11529. LC_ALL=C
  11530. export LC_ALL
  11531. LANGUAGE=C
  11532. export LANGUAGE
  11533. # CDPATH.
  11534. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11535. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11536. # ----------------------------------------
  11537. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11538. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11539. # script with STATUS, using 1 if that was 0.
  11540. as_fn_error ()
  11541. {
  11542. as_status=$1; test $as_status -eq 0 && as_status=1
  11543. if test "$4"; then
  11544. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11545. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11546. fi
  11547. $as_echo "$as_me: error: $2" >&2
  11548. as_fn_exit $as_status
  11549. } # as_fn_error
  11550. # as_fn_set_status STATUS
  11551. # -----------------------
  11552. # Set $? to STATUS, without forking.
  11553. as_fn_set_status ()
  11554. {
  11555. return $1
  11556. } # as_fn_set_status
  11557. # as_fn_exit STATUS
  11558. # -----------------
  11559. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11560. as_fn_exit ()
  11561. {
  11562. set +e
  11563. as_fn_set_status $1
  11564. exit $1
  11565. } # as_fn_exit
  11566. # as_fn_unset VAR
  11567. # ---------------
  11568. # Portably unset VAR.
  11569. as_fn_unset ()
  11570. {
  11571. { eval $1=; unset $1;}
  11572. }
  11573. as_unset=as_fn_unset
  11574. # as_fn_append VAR VALUE
  11575. # ----------------------
  11576. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11577. # advantage of any shell optimizations that allow amortized linear growth over
  11578. # repeated appends, instead of the typical quadratic growth present in naive
  11579. # implementations.
  11580. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11581. eval 'as_fn_append ()
  11582. {
  11583. eval $1+=\$2
  11584. }'
  11585. else
  11586. as_fn_append ()
  11587. {
  11588. eval $1=\$$1\$2
  11589. }
  11590. fi # as_fn_append
  11591. # as_fn_arith ARG...
  11592. # ------------------
  11593. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11594. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11595. # must be portable across $(()) and expr.
  11596. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11597. eval 'as_fn_arith ()
  11598. {
  11599. as_val=$(( $* ))
  11600. }'
  11601. else
  11602. as_fn_arith ()
  11603. {
  11604. as_val=`expr "$@" || test $? -eq 1`
  11605. }
  11606. fi # as_fn_arith
  11607. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11608. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11609. as_expr=expr
  11610. else
  11611. as_expr=false
  11612. fi
  11613. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11614. as_basename=basename
  11615. else
  11616. as_basename=false
  11617. fi
  11618. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11619. as_dirname=dirname
  11620. else
  11621. as_dirname=false
  11622. fi
  11623. as_me=`$as_basename -- "$0" ||
  11624. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11625. X"$0" : 'X\(//\)$' \| \
  11626. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11627. $as_echo X/"$0" |
  11628. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11629. s//\1/
  11630. q
  11631. }
  11632. /^X\/\(\/\/\)$/{
  11633. s//\1/
  11634. q
  11635. }
  11636. /^X\/\(\/\).*/{
  11637. s//\1/
  11638. q
  11639. }
  11640. s/.*/./; q'`
  11641. # Avoid depending upon Character Ranges.
  11642. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11643. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11644. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11645. as_cr_digits='0123456789'
  11646. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11647. ECHO_C= ECHO_N= ECHO_T=
  11648. case `echo -n x` in #(((((
  11649. -n*)
  11650. case `echo 'xy\c'` in
  11651. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11652. xy) ECHO_C='\c';;
  11653. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11654. ECHO_T=' ';;
  11655. esac;;
  11656. *)
  11657. ECHO_N='-n';;
  11658. esac
  11659. rm -f conf$$ conf$$.exe conf$$.file
  11660. if test -d conf$$.dir; then
  11661. rm -f conf$$.dir/conf$$.file
  11662. else
  11663. rm -f conf$$.dir
  11664. mkdir conf$$.dir 2>/dev/null
  11665. fi
  11666. if (echo >conf$$.file) 2>/dev/null; then
  11667. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11668. as_ln_s='ln -s'
  11669. # ... but there are two gotchas:
  11670. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11671. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11672. # In both cases, we have to default to `cp -pR'.
  11673. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11674. as_ln_s='cp -pR'
  11675. elif ln conf$$.file conf$$ 2>/dev/null; then
  11676. as_ln_s=ln
  11677. else
  11678. as_ln_s='cp -pR'
  11679. fi
  11680. else
  11681. as_ln_s='cp -pR'
  11682. fi
  11683. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11684. rmdir conf$$.dir 2>/dev/null
  11685. # as_fn_mkdir_p
  11686. # -------------
  11687. # Create "$as_dir" as a directory, including parents if necessary.
  11688. as_fn_mkdir_p ()
  11689. {
  11690. case $as_dir in #(
  11691. -*) as_dir=./$as_dir;;
  11692. esac
  11693. test -d "$as_dir" || eval $as_mkdir_p || {
  11694. as_dirs=
  11695. while :; do
  11696. case $as_dir in #(
  11697. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11698. *) as_qdir=$as_dir;;
  11699. esac
  11700. as_dirs="'$as_qdir' $as_dirs"
  11701. as_dir=`$as_dirname -- "$as_dir" ||
  11702. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11703. X"$as_dir" : 'X\(//\)[^/]' \| \
  11704. X"$as_dir" : 'X\(//\)$' \| \
  11705. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11706. $as_echo X"$as_dir" |
  11707. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11708. s//\1/
  11709. q
  11710. }
  11711. /^X\(\/\/\)[^/].*/{
  11712. s//\1/
  11713. q
  11714. }
  11715. /^X\(\/\/\)$/{
  11716. s//\1/
  11717. q
  11718. }
  11719. /^X\(\/\).*/{
  11720. s//\1/
  11721. q
  11722. }
  11723. s/.*/./; q'`
  11724. test -d "$as_dir" && break
  11725. done
  11726. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11727. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11728. } # as_fn_mkdir_p
  11729. if mkdir -p . 2>/dev/null; then
  11730. as_mkdir_p='mkdir -p "$as_dir"'
  11731. else
  11732. test -d ./-p && rmdir ./-p
  11733. as_mkdir_p=false
  11734. fi
  11735. # as_fn_executable_p FILE
  11736. # -----------------------
  11737. # Test if FILE is an executable regular file.
  11738. as_fn_executable_p ()
  11739. {
  11740. test -f "$1" && test -x "$1"
  11741. } # as_fn_executable_p
  11742. as_test_x='test -x'
  11743. as_executable_p=as_fn_executable_p
  11744. # Sed expression to map a string onto a valid CPP name.
  11745. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11746. # Sed expression to map a string onto a valid variable name.
  11747. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11748. exec 6>&1
  11749. ## ----------------------------------- ##
  11750. ## Main body of $CONFIG_STATUS script. ##
  11751. ## ----------------------------------- ##
  11752. _ASEOF
  11753. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11754. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11755. # Save the log message, to keep $0 and so on meaningful, and to
  11756. # report actual input values of CONFIG_FILES etc. instead of their
  11757. # values after options handling.
  11758. ac_log="
  11759. This file was extended by $as_me, which was
  11760. generated by GNU Autoconf 2.69. Invocation command line was
  11761. CONFIG_FILES = $CONFIG_FILES
  11762. CONFIG_HEADERS = $CONFIG_HEADERS
  11763. CONFIG_LINKS = $CONFIG_LINKS
  11764. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11765. $ $0 $@
  11766. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11767. "
  11768. _ACEOF
  11769. case $ac_config_headers in *"
  11770. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11771. esac
  11772. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11773. # Files that config.status was made for.
  11774. config_headers="$ac_config_headers"
  11775. _ACEOF
  11776. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11777. ac_cs_usage="\
  11778. \`$as_me' instantiates files and other configuration actions
  11779. from templates according to the current configuration. Unless the files
  11780. and actions are specified as TAGs, all are instantiated by default.
  11781. Usage: $0 [OPTION]... [TAG]...
  11782. -h, --help print this help, then exit
  11783. -V, --version print version number and configuration settings, then exit
  11784. --config print configuration, then exit
  11785. -q, --quiet, --silent
  11786. do not print progress messages
  11787. -d, --debug don't remove temporary files
  11788. --recheck update $as_me by reconfiguring in the same conditions
  11789. --header=FILE[:TEMPLATE]
  11790. instantiate the configuration header FILE
  11791. Configuration headers:
  11792. $config_headers
  11793. Report bugs to the package provider."
  11794. _ACEOF
  11795. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11796. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11797. ac_cs_version="\\
  11798. config.status
  11799. configured by $0, generated by GNU Autoconf 2.69,
  11800. with options \\"\$ac_cs_config\\"
  11801. Copyright (C) 2012 Free Software Foundation, Inc.
  11802. This config.status script is free software; the Free Software Foundation
  11803. gives unlimited permission to copy, distribute and modify it."
  11804. ac_pwd='$ac_pwd'
  11805. srcdir='$srcdir'
  11806. test -n "\$AWK" || AWK=awk
  11807. _ACEOF
  11808. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11809. # The default lists apply if the user does not specify any file.
  11810. ac_need_defaults=:
  11811. while test $# != 0
  11812. do
  11813. case $1 in
  11814. --*=?*)
  11815. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11816. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11817. ac_shift=:
  11818. ;;
  11819. --*=)
  11820. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11821. ac_optarg=
  11822. ac_shift=:
  11823. ;;
  11824. *)
  11825. ac_option=$1
  11826. ac_optarg=$2
  11827. ac_shift=shift
  11828. ;;
  11829. esac
  11830. case $ac_option in
  11831. # Handling of the options.
  11832. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11833. ac_cs_recheck=: ;;
  11834. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11835. $as_echo "$ac_cs_version"; exit ;;
  11836. --config | --confi | --conf | --con | --co | --c )
  11837. $as_echo "$ac_cs_config"; exit ;;
  11838. --debug | --debu | --deb | --de | --d | -d )
  11839. debug=: ;;
  11840. --header | --heade | --head | --hea )
  11841. $ac_shift
  11842. case $ac_optarg in
  11843. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11844. esac
  11845. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11846. ac_need_defaults=false;;
  11847. --he | --h)
  11848. # Conflict between --help and --header
  11849. as_fn_error $? "ambiguous option: \`$1'
  11850. Try \`$0 --help' for more information.";;
  11851. --help | --hel | -h )
  11852. $as_echo "$ac_cs_usage"; exit ;;
  11853. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11854. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11855. ac_cs_silent=: ;;
  11856. # This is an error.
  11857. -*) as_fn_error $? "unrecognized option: \`$1'
  11858. Try \`$0 --help' for more information." ;;
  11859. *) as_fn_append ac_config_targets " $1"
  11860. ac_need_defaults=false ;;
  11861. esac
  11862. shift
  11863. done
  11864. ac_configure_extra_args=
  11865. if $ac_cs_silent; then
  11866. exec 6>/dev/null
  11867. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11868. fi
  11869. _ACEOF
  11870. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11871. if \$ac_cs_recheck; then
  11872. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11873. shift
  11874. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11875. CONFIG_SHELL='$SHELL'
  11876. export CONFIG_SHELL
  11877. exec "\$@"
  11878. fi
  11879. _ACEOF
  11880. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11881. exec 5>>config.log
  11882. {
  11883. echo
  11884. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11885. ## Running $as_me. ##
  11886. _ASBOX
  11887. $as_echo "$ac_log"
  11888. } >&5
  11889. _ACEOF
  11890. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11891. _ACEOF
  11892. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11893. # Handling of arguments.
  11894. for ac_config_target in $ac_config_targets
  11895. do
  11896. case $ac_config_target in
  11897. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11898. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11899. esac
  11900. done
  11901. # If the user did not use the arguments to specify the items to instantiate,
  11902. # then the envvar interface is used. Set only those that are not.
  11903. # We use the long form for the default assignment because of an extremely
  11904. # bizarre bug on SunOS 4.1.3.
  11905. if $ac_need_defaults; then
  11906. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11907. fi
  11908. # Have a temporary directory for convenience. Make it in the build tree
  11909. # simply because there is no reason against having it here, and in addition,
  11910. # creating and moving files from /tmp can sometimes cause problems.
  11911. # Hook for its removal unless debugging.
  11912. # Note that there is a small window in which the directory will not be cleaned:
  11913. # after its creation but before its name has been assigned to `$tmp'.
  11914. $debug ||
  11915. {
  11916. tmp= ac_tmp=
  11917. trap 'exit_status=$?
  11918. : "${ac_tmp:=$tmp}"
  11919. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11920. ' 0
  11921. trap 'as_fn_exit 1' 1 2 13 15
  11922. }
  11923. # Create a (secure) tmp directory for tmp files.
  11924. {
  11925. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11926. test -d "$tmp"
  11927. } ||
  11928. {
  11929. tmp=./conf$$-$RANDOM
  11930. (umask 077 && mkdir "$tmp")
  11931. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11932. ac_tmp=$tmp
  11933. # Set up the scripts for CONFIG_HEADERS section.
  11934. # No need to generate them if there are no CONFIG_HEADERS.
  11935. # This happens for instance with `./config.status Makefile'.
  11936. if test -n "$CONFIG_HEADERS"; then
  11937. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11938. BEGIN {
  11939. _ACEOF
  11940. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11941. # here-document in config.status, that substitutes the proper values into
  11942. # config.h.in to produce config.h.
  11943. # Create a delimiter string that does not exist in confdefs.h, to ease
  11944. # handling of long lines.
  11945. ac_delim='%!_!# '
  11946. for ac_last_try in false false :; do
  11947. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11948. if test -z "$ac_tt"; then
  11949. break
  11950. elif $ac_last_try; then
  11951. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11952. else
  11953. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11954. fi
  11955. done
  11956. # For the awk script, D is an array of macro values keyed by name,
  11957. # likewise P contains macro parameters if any. Preserve backslash
  11958. # newline sequences.
  11959. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11960. sed -n '
  11961. s/.\{148\}/&'"$ac_delim"'/g
  11962. t rset
  11963. :rset
  11964. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11965. t def
  11966. d
  11967. :def
  11968. s/\\$//
  11969. t bsnl
  11970. s/["\\]/\\&/g
  11971. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11972. D["\1"]=" \3"/p
  11973. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11974. d
  11975. :bsnl
  11976. s/["\\]/\\&/g
  11977. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11978. D["\1"]=" \3\\\\\\n"\\/p
  11979. t cont
  11980. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11981. t cont
  11982. d
  11983. :cont
  11984. n
  11985. s/.\{148\}/&'"$ac_delim"'/g
  11986. t clear
  11987. :clear
  11988. s/\\$//
  11989. t bsnlc
  11990. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11991. d
  11992. :bsnlc
  11993. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11994. b cont
  11995. ' <confdefs.h | sed '
  11996. s/'"$ac_delim"'/"\\\
  11997. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11998. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11999. for (key in D) D_is_set[key] = 1
  12000. FS = ""
  12001. }
  12002. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12003. line = \$ 0
  12004. split(line, arg, " ")
  12005. if (arg[1] == "#") {
  12006. defundef = arg[2]
  12007. mac1 = arg[3]
  12008. } else {
  12009. defundef = substr(arg[1], 2)
  12010. mac1 = arg[2]
  12011. }
  12012. split(mac1, mac2, "(") #)
  12013. macro = mac2[1]
  12014. prefix = substr(line, 1, index(line, defundef) - 1)
  12015. if (D_is_set[macro]) {
  12016. # Preserve the white space surrounding the "#".
  12017. print prefix "define", macro P[macro] D[macro]
  12018. next
  12019. } else {
  12020. # Replace #undef with comments. This is necessary, for example,
  12021. # in the case of _POSIX_SOURCE, which is predefined and required
  12022. # on some systems where configure will not decide to define it.
  12023. if (defundef == "undef") {
  12024. print "/*", prefix defundef, macro, "*/"
  12025. next
  12026. }
  12027. }
  12028. }
  12029. { print }
  12030. _ACAWK
  12031. _ACEOF
  12032. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12033. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12034. fi # test -n "$CONFIG_HEADERS"
  12035. eval set X " :H $CONFIG_HEADERS "
  12036. shift
  12037. for ac_tag
  12038. do
  12039. case $ac_tag in
  12040. :[FHLC]) ac_mode=$ac_tag; continue;;
  12041. esac
  12042. case $ac_mode$ac_tag in
  12043. :[FHL]*:*);;
  12044. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12045. :[FH]-) ac_tag=-:-;;
  12046. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12047. esac
  12048. ac_save_IFS=$IFS
  12049. IFS=:
  12050. set x $ac_tag
  12051. IFS=$ac_save_IFS
  12052. shift
  12053. ac_file=$1
  12054. shift
  12055. case $ac_mode in
  12056. :L) ac_source=$1;;
  12057. :[FH])
  12058. ac_file_inputs=
  12059. for ac_f
  12060. do
  12061. case $ac_f in
  12062. -) ac_f="$ac_tmp/stdin";;
  12063. *) # Look for the file first in the build tree, then in the source tree
  12064. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12065. # because $ac_f cannot contain `:'.
  12066. test -f "$ac_f" ||
  12067. case $ac_f in
  12068. [\\/$]*) false;;
  12069. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12070. esac ||
  12071. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12072. esac
  12073. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12074. as_fn_append ac_file_inputs " '$ac_f'"
  12075. done
  12076. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12077. # use $as_me), people would be surprised to read:
  12078. # /* config.h. Generated by config.status. */
  12079. configure_input='Generated from '`
  12080. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12081. `' by configure.'
  12082. if test x"$ac_file" != x-; then
  12083. configure_input="$ac_file. $configure_input"
  12084. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12085. $as_echo "$as_me: creating $ac_file" >&6;}
  12086. fi
  12087. # Neutralize special characters interpreted by sed in replacement strings.
  12088. case $configure_input in #(
  12089. *\&* | *\|* | *\\* )
  12090. ac_sed_conf_input=`$as_echo "$configure_input" |
  12091. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12092. *) ac_sed_conf_input=$configure_input;;
  12093. esac
  12094. case $ac_tag in
  12095. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12096. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12097. esac
  12098. ;;
  12099. esac
  12100. ac_dir=`$as_dirname -- "$ac_file" ||
  12101. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12102. X"$ac_file" : 'X\(//\)[^/]' \| \
  12103. X"$ac_file" : 'X\(//\)$' \| \
  12104. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12105. $as_echo X"$ac_file" |
  12106. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12107. s//\1/
  12108. q
  12109. }
  12110. /^X\(\/\/\)[^/].*/{
  12111. s//\1/
  12112. q
  12113. }
  12114. /^X\(\/\/\)$/{
  12115. s//\1/
  12116. q
  12117. }
  12118. /^X\(\/\).*/{
  12119. s//\1/
  12120. q
  12121. }
  12122. s/.*/./; q'`
  12123. as_dir="$ac_dir"; as_fn_mkdir_p
  12124. ac_builddir=.
  12125. case "$ac_dir" in
  12126. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12127. *)
  12128. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12129. # A ".." for each directory in $ac_dir_suffix.
  12130. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12131. case $ac_top_builddir_sub in
  12132. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12133. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12134. esac ;;
  12135. esac
  12136. ac_abs_top_builddir=$ac_pwd
  12137. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12138. # for backward compatibility:
  12139. ac_top_builddir=$ac_top_build_prefix
  12140. case $srcdir in
  12141. .) # We are building in place.
  12142. ac_srcdir=.
  12143. ac_top_srcdir=$ac_top_builddir_sub
  12144. ac_abs_top_srcdir=$ac_pwd ;;
  12145. [\\/]* | ?:[\\/]* ) # Absolute name.
  12146. ac_srcdir=$srcdir$ac_dir_suffix;
  12147. ac_top_srcdir=$srcdir
  12148. ac_abs_top_srcdir=$srcdir ;;
  12149. *) # Relative name.
  12150. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12151. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12152. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12153. esac
  12154. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12155. case $ac_mode in
  12156. :H)
  12157. #
  12158. # CONFIG_HEADER
  12159. #
  12160. if test x"$ac_file" != x-; then
  12161. {
  12162. $as_echo "/* $configure_input */" \
  12163. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12164. } >"$ac_tmp/config.h" \
  12165. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12166. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12167. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12168. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12169. else
  12170. rm -f "$ac_file"
  12171. mv "$ac_tmp/config.h" "$ac_file" \
  12172. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12173. fi
  12174. else
  12175. $as_echo "/* $configure_input */" \
  12176. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12177. || as_fn_error $? "could not create -" "$LINENO" 5
  12178. fi
  12179. ;;
  12180. esac
  12181. done # for ac_tag
  12182. as_fn_exit 0
  12183. _ACEOF
  12184. ac_clean_files=$ac_clean_files_save
  12185. test $ac_write_fail = 0 ||
  12186. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12187. # configure is writing to config.log, and then calls config.status.
  12188. # config.status does its own redirection, appending to config.log.
  12189. # Unfortunately, on DOS this fails, as config.log is still kept open
  12190. # by configure, so config.status won't be able to write to it; its
  12191. # output is simply discarded. So we exec the FD to /dev/null,
  12192. # effectively closing config.log, so it can be properly (re)opened and
  12193. # appended to by config.status. When coming back to configure, we
  12194. # need to make the FD available again.
  12195. if test "$no_create" != yes; then
  12196. ac_cs_success=:
  12197. ac_config_status_args=
  12198. test "$silent" = yes &&
  12199. ac_config_status_args="$ac_config_status_args --quiet"
  12200. exec 5>/dev/null
  12201. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12202. exec 5>>config.log
  12203. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12204. # would make configure fail if this is the last instruction.
  12205. $ac_cs_success || as_fn_exit 1
  12206. fi
  12207. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12208. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12209. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12210. fi