configure 155 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for spearl 0.01.
  4. #
  5. # Report bugs to <root@intirain.cc>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. as_nop=:
  20. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  21. then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else $as_nop
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. # Reset variables that may have inherited troublesome values from
  37. # the environment.
  38. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  39. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  40. # side effect of setting IFS to empty, thus disabling word splitting.)
  41. # Quoting is to prevent editors from complaining about space-tab.
  42. as_nl='
  43. '
  44. export as_nl
  45. IFS=" "" $as_nl"
  46. PS1='$ '
  47. PS2='> '
  48. PS4='+ '
  49. # Ensure predictable behavior from utilities with locale-dependent output.
  50. LC_ALL=C
  51. export LC_ALL
  52. LANGUAGE=C
  53. export LANGUAGE
  54. # We cannot yet rely on "unset" to work, but we need these variables
  55. # to be unset--not just set to an empty or harmless value--now, to
  56. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  57. # also avoids known problems related to "unset" and subshell syntax
  58. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  59. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  60. do eval test \${$as_var+y} \
  61. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  62. done
  63. # Ensure that fds 0, 1, and 2 are open.
  64. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  65. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  66. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  67. # The user is always right.
  68. if ${PATH_SEPARATOR+false} :; then
  69. PATH_SEPARATOR=:
  70. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  71. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  72. PATH_SEPARATOR=';'
  73. }
  74. fi
  75. # Find who we are. Look in the path if we contain no directory separator.
  76. as_myself=
  77. case $0 in #((
  78. *[\\/]* ) as_myself=$0 ;;
  79. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  80. for as_dir in $PATH
  81. do
  82. IFS=$as_save_IFS
  83. case $as_dir in #(((
  84. '') as_dir=./ ;;
  85. */) ;;
  86. *) as_dir=$as_dir/ ;;
  87. esac
  88. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  89. done
  90. IFS=$as_save_IFS
  91. ;;
  92. esac
  93. # We did not find ourselves, most probably we were run as `sh COMMAND'
  94. # in which case we are not to be found in the path.
  95. if test "x$as_myself" = x; then
  96. as_myself=$0
  97. fi
  98. if test ! -f "$as_myself"; then
  99. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  100. exit 1
  101. fi
  102. # Use a proper internal environment variable to ensure we don't fall
  103. # into an infinite loop, continuously re-executing ourselves.
  104. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  105. _as_can_reexec=no; export _as_can_reexec;
  106. # We cannot yet assume a decent shell, so we have to provide a
  107. # neutralization value for shells without unset; and this also
  108. # works around shells that cannot unset nonexistent variables.
  109. # Preserve -v and -x to the replacement shell.
  110. BASH_ENV=/dev/null
  111. ENV=/dev/null
  112. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  113. case $- in # ((((
  114. *v*x* | *x*v* ) as_opts=-vx ;;
  115. *v* ) as_opts=-v ;;
  116. *x* ) as_opts=-x ;;
  117. * ) as_opts= ;;
  118. esac
  119. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  120. # Admittedly, this is quite paranoid, since all the known shells bail
  121. # out after a failed `exec'.
  122. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  123. exit 255
  124. fi
  125. # We don't want this to propagate to other subprocesses.
  126. { _as_can_reexec=; unset _as_can_reexec;}
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="as_nop=:
  129. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  130. then :
  131. emulate sh
  132. NULLCMD=:
  133. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  134. # is contrary to our usage. Disable this feature.
  135. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  136. setopt NO_GLOB_SUBST
  137. else \$as_nop
  138. case \`(set -o) 2>/dev/null\` in #(
  139. *posix*) :
  140. set -o posix ;; #(
  141. *) :
  142. ;;
  143. esac
  144. fi
  145. "
  146. as_required="as_fn_return () { (exit \$1); }
  147. as_fn_success () { as_fn_return 0; }
  148. as_fn_failure () { as_fn_return 1; }
  149. as_fn_ret_success () { return 0; }
  150. as_fn_ret_failure () { return 1; }
  151. exitcode=0
  152. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  153. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  154. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  155. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  156. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  157. then :
  158. else \$as_nop
  159. exitcode=1; echo positional parameters were not saved.
  160. fi
  161. test x\$exitcode = x0 || exit 1
  162. blah=\$(echo \$(echo blah))
  163. test x\"\$blah\" = xblah || exit 1
  164. test -x / || exit 1"
  165. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  166. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  167. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  168. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
  169. if (eval "$as_required") 2>/dev/null
  170. then :
  171. as_have_required=yes
  172. else $as_nop
  173. as_have_required=no
  174. fi
  175. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  176. then :
  177. else $as_nop
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. case $as_dir in #(((
  184. '') as_dir=./ ;;
  185. */) ;;
  186. *) as_dir=$as_dir/ ;;
  187. esac
  188. as_found=:
  189. case $as_dir in #(
  190. /*)
  191. for as_base in sh bash ksh sh5; do
  192. # Try only shells that exist, to save several forks.
  193. as_shell=$as_dir$as_base
  194. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  195. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  196. then :
  197. CONFIG_SHELL=$as_shell as_have_required=yes
  198. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  199. then :
  200. break 2
  201. fi
  202. fi
  203. done;;
  204. esac
  205. as_found=false
  206. done
  207. IFS=$as_save_IFS
  208. if $as_found
  209. then :
  210. else $as_nop
  211. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  212. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  213. then :
  214. CONFIG_SHELL=$SHELL as_have_required=yes
  215. fi
  216. fi
  217. if test "x$CONFIG_SHELL" != x
  218. then :
  219. export CONFIG_SHELL
  220. # We cannot yet assume a decent shell, so we have to provide a
  221. # neutralization value for shells without unset; and this also
  222. # works around shells that cannot unset nonexistent variables.
  223. # Preserve -v and -x to the replacement shell.
  224. BASH_ENV=/dev/null
  225. ENV=/dev/null
  226. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  227. case $- in # ((((
  228. *v*x* | *x*v* ) as_opts=-vx ;;
  229. *v* ) as_opts=-v ;;
  230. *x* ) as_opts=-x ;;
  231. * ) as_opts= ;;
  232. esac
  233. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  234. # Admittedly, this is quite paranoid, since all the known shells bail
  235. # out after a failed `exec'.
  236. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  237. exit 255
  238. fi
  239. if test x$as_have_required = xno
  240. then :
  241. printf "%s\n" "$0: This script requires a shell more modern than all"
  242. printf "%s\n" "$0: the shells that I found on your system."
  243. if test ${ZSH_VERSION+y} ; then
  244. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  245. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  246. else
  247. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and root@intirain.cc
  248. $0: about your system, including any error possibly output
  249. $0: before this message. Then install a modern shell, or
  250. $0: manually run the script under such a shell if you do
  251. $0: have one."
  252. fi
  253. exit 1
  254. fi
  255. fi
  256. fi
  257. SHELL=${CONFIG_SHELL-/bin/sh}
  258. export SHELL
  259. # Unset more variables known to interfere with behavior of common tools.
  260. CLICOLOR_FORCE= GREP_OPTIONS=
  261. unset CLICOLOR_FORCE GREP_OPTIONS
  262. ## --------------------- ##
  263. ## M4sh Shell Functions. ##
  264. ## --------------------- ##
  265. # as_fn_unset VAR
  266. # ---------------
  267. # Portably unset VAR.
  268. as_fn_unset ()
  269. {
  270. { eval $1=; unset $1;}
  271. }
  272. as_unset=as_fn_unset
  273. # as_fn_set_status STATUS
  274. # -----------------------
  275. # Set $? to STATUS, without forking.
  276. as_fn_set_status ()
  277. {
  278. return $1
  279. } # as_fn_set_status
  280. # as_fn_exit STATUS
  281. # -----------------
  282. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  283. as_fn_exit ()
  284. {
  285. set +e
  286. as_fn_set_status $1
  287. exit $1
  288. } # as_fn_exit
  289. # as_fn_nop
  290. # ---------
  291. # Do nothing but, unlike ":", preserve the value of $?.
  292. as_fn_nop ()
  293. {
  294. return $?
  295. }
  296. as_nop=as_fn_nop
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. printf "%s\n" X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  355. then :
  356. eval 'as_fn_append ()
  357. {
  358. eval $1+=\$2
  359. }'
  360. else $as_nop
  361. as_fn_append ()
  362. {
  363. eval $1=\$$1\$2
  364. }
  365. fi # as_fn_append
  366. # as_fn_arith ARG...
  367. # ------------------
  368. # Perform arithmetic evaluation on the ARGs, and store the result in the
  369. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  370. # must be portable across $(()) and expr.
  371. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  372. then :
  373. eval 'as_fn_arith ()
  374. {
  375. as_val=$(( $* ))
  376. }'
  377. else $as_nop
  378. as_fn_arith ()
  379. {
  380. as_val=`expr "$@" || test $? -eq 1`
  381. }
  382. fi # as_fn_arith
  383. # as_fn_nop
  384. # ---------
  385. # Do nothing but, unlike ":", preserve the value of $?.
  386. as_fn_nop ()
  387. {
  388. return $?
  389. }
  390. as_nop=as_fn_nop
  391. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  392. # ----------------------------------------
  393. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  394. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  395. # script with STATUS, using 1 if that was 0.
  396. as_fn_error ()
  397. {
  398. as_status=$1; test $as_status -eq 0 && as_status=1
  399. if test "$4"; then
  400. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  401. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  402. fi
  403. printf "%s\n" "$as_me: error: $2" >&2
  404. as_fn_exit $as_status
  405. } # as_fn_error
  406. if expr a : '\(a\)' >/dev/null 2>&1 &&
  407. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  408. as_expr=expr
  409. else
  410. as_expr=false
  411. fi
  412. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  413. as_basename=basename
  414. else
  415. as_basename=false
  416. fi
  417. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  418. as_dirname=dirname
  419. else
  420. as_dirname=false
  421. fi
  422. as_me=`$as_basename -- "$0" ||
  423. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  424. X"$0" : 'X\(//\)$' \| \
  425. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  426. printf "%s\n" X/"$0" |
  427. sed '/^.*\/\([^/][^/]*\)\/*$/{
  428. s//\1/
  429. q
  430. }
  431. /^X\/\(\/\/\)$/{
  432. s//\1/
  433. q
  434. }
  435. /^X\/\(\/\).*/{
  436. s//\1/
  437. q
  438. }
  439. s/.*/./; q'`
  440. # Avoid depending upon Character Ranges.
  441. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  442. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  443. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  444. as_cr_digits='0123456789'
  445. as_cr_alnum=$as_cr_Letters$as_cr_digits
  446. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  447. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  448. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  449. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  450. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  451. sed -n '
  452. p
  453. /[$]LINENO/=
  454. ' <$as_myself |
  455. sed '
  456. s/[$]LINENO.*/&-/
  457. t lineno
  458. b
  459. :lineno
  460. N
  461. :loop
  462. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  463. t loop
  464. s/-\n.*//
  465. ' >$as_me.lineno &&
  466. chmod +x "$as_me.lineno" ||
  467. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  468. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  469. # already done that, so ensure we don't try to do so again and fall
  470. # in an infinite loop. This has already happened in practice.
  471. _as_can_reexec=no; export _as_can_reexec
  472. # Don't try to exec as it changes $[0], causing all sort of problems
  473. # (the dirname of $[0] is not the place where we might find the
  474. # original and so on. Autoconf is especially sensitive to this).
  475. . "./$as_me.lineno"
  476. # Exit status is that of the last command.
  477. exit
  478. }
  479. # Determine whether it's possible to make 'echo' print without a newline.
  480. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  481. # for compatibility with existing Makefiles.
  482. ECHO_C= ECHO_N= ECHO_T=
  483. case `echo -n x` in #(((((
  484. -n*)
  485. case `echo 'xy\c'` in
  486. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  487. xy) ECHO_C='\c';;
  488. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  489. ECHO_T=' ';;
  490. esac;;
  491. *)
  492. ECHO_N='-n';;
  493. esac
  494. # For backward compatibility with old third-party macros, we provide
  495. # the shell variables $as_echo and $as_echo_n. New code should use
  496. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  497. as_echo='printf %s\n'
  498. as_echo_n='printf %s'
  499. rm -f conf$$ conf$$.exe conf$$.file
  500. if test -d conf$$.dir; then
  501. rm -f conf$$.dir/conf$$.file
  502. else
  503. rm -f conf$$.dir
  504. mkdir conf$$.dir 2>/dev/null
  505. fi
  506. if (echo >conf$$.file) 2>/dev/null; then
  507. if ln -s conf$$.file conf$$ 2>/dev/null; then
  508. as_ln_s='ln -s'
  509. # ... but there are two gotchas:
  510. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  511. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  512. # In both cases, we have to default to `cp -pR'.
  513. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  514. as_ln_s='cp -pR'
  515. elif ln conf$$.file conf$$ 2>/dev/null; then
  516. as_ln_s=ln
  517. else
  518. as_ln_s='cp -pR'
  519. fi
  520. else
  521. as_ln_s='cp -pR'
  522. fi
  523. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  524. rmdir conf$$.dir 2>/dev/null
  525. if mkdir -p . 2>/dev/null; then
  526. as_mkdir_p='mkdir -p "$as_dir"'
  527. else
  528. test -d ./-p && rmdir ./-p
  529. as_mkdir_p=false
  530. fi
  531. as_test_x='test -x'
  532. as_executable_p=as_fn_executable_p
  533. # Sed expression to map a string onto a valid CPP name.
  534. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  535. # Sed expression to map a string onto a valid variable name.
  536. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  537. test -n "$DJDIR" || exec 7<&0 </dev/null
  538. exec 6>&1
  539. # Name of the host.
  540. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  541. # so uname gets run too.
  542. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  543. #
  544. # Initializations.
  545. #
  546. ac_default_prefix=/usr/local
  547. ac_clean_files=
  548. ac_config_libobj_dir=.
  549. LIBOBJS=
  550. cross_compiling=no
  551. subdirs=
  552. MFLAGS=
  553. MAKEFLAGS=
  554. # Identity of this package.
  555. PACKAGE_NAME='spearl'
  556. PACKAGE_TARNAME='spearl'
  557. PACKAGE_VERSION='0.01'
  558. PACKAGE_STRING='spearl 0.01'
  559. PACKAGE_BUGREPORT='root@intirain.cc'
  560. PACKAGE_URL=''
  561. ac_subst_vars='am__EXEEXT_FALSE
  562. am__EXEEXT_TRUE
  563. LTLIBOBJS
  564. LIBOBJS
  565. am__fastdepCC_FALSE
  566. am__fastdepCC_TRUE
  567. CCDEPMODE
  568. am__nodep
  569. AMDEPBACKSLASH
  570. AMDEP_FALSE
  571. AMDEP_TRUE
  572. am__include
  573. DEPDIR
  574. OBJEXT
  575. EXEEXT
  576. ac_ct_CC
  577. CPPFLAGS
  578. LDFLAGS
  579. CFLAGS
  580. CC
  581. AM_BACKSLASH
  582. AM_DEFAULT_VERBOSITY
  583. AM_DEFAULT_V
  584. AM_V
  585. CSCOPE
  586. ETAGS
  587. CTAGS
  588. am__untar
  589. am__tar
  590. AMTAR
  591. am__leading_dot
  592. SET_MAKE
  593. AWK
  594. mkdir_p
  595. MKDIR_P
  596. INSTALL_STRIP_PROGRAM
  597. STRIP
  598. install_sh
  599. MAKEINFO
  600. AUTOHEADER
  601. AUTOMAKE
  602. AUTOCONF
  603. ACLOCAL
  604. VERSION
  605. PACKAGE
  606. CYGPATH_W
  607. am__isrc
  608. INSTALL_DATA
  609. INSTALL_SCRIPT
  610. INSTALL_PROGRAM
  611. target_alias
  612. host_alias
  613. build_alias
  614. LIBS
  615. ECHO_T
  616. ECHO_N
  617. ECHO_C
  618. DEFS
  619. mandir
  620. localedir
  621. libdir
  622. psdir
  623. pdfdir
  624. dvidir
  625. htmldir
  626. infodir
  627. docdir
  628. oldincludedir
  629. includedir
  630. runstatedir
  631. localstatedir
  632. sharedstatedir
  633. sysconfdir
  634. datadir
  635. datarootdir
  636. libexecdir
  637. sbindir
  638. bindir
  639. program_transform_name
  640. prefix
  641. exec_prefix
  642. PACKAGE_URL
  643. PACKAGE_BUGREPORT
  644. PACKAGE_STRING
  645. PACKAGE_VERSION
  646. PACKAGE_TARNAME
  647. PACKAGE_NAME
  648. PATH_SEPARATOR
  649. SHELL
  650. am__quote'
  651. ac_subst_files=''
  652. ac_user_opts='
  653. enable_option_checking
  654. enable_silent_rules
  655. enable_dependency_tracking
  656. '
  657. ac_precious_vars='build_alias
  658. host_alias
  659. target_alias
  660. CC
  661. CFLAGS
  662. LDFLAGS
  663. LIBS
  664. CPPFLAGS'
  665. # Initialize some variables set by options.
  666. ac_init_help=
  667. ac_init_version=false
  668. ac_unrecognized_opts=
  669. ac_unrecognized_sep=
  670. # The variables have the same names as the options, with
  671. # dashes changed to underlines.
  672. cache_file=/dev/null
  673. exec_prefix=NONE
  674. no_create=
  675. no_recursion=
  676. prefix=NONE
  677. program_prefix=NONE
  678. program_suffix=NONE
  679. program_transform_name=s,x,x,
  680. silent=
  681. site=
  682. srcdir=
  683. verbose=
  684. x_includes=NONE
  685. x_libraries=NONE
  686. # Installation directory options.
  687. # These are left unexpanded so users can "make install exec_prefix=/foo"
  688. # and all the variables that are supposed to be based on exec_prefix
  689. # by default will actually change.
  690. # Use braces instead of parens because sh, perl, etc. also accept them.
  691. # (The list follows the same order as the GNU Coding Standards.)
  692. bindir='${exec_prefix}/bin'
  693. sbindir='${exec_prefix}/sbin'
  694. libexecdir='${exec_prefix}/libexec'
  695. datarootdir='${prefix}/share'
  696. datadir='${datarootdir}'
  697. sysconfdir='${prefix}/etc'
  698. sharedstatedir='${prefix}/com'
  699. localstatedir='${prefix}/var'
  700. runstatedir='${localstatedir}/run'
  701. includedir='${prefix}/include'
  702. oldincludedir='/usr/include'
  703. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  704. infodir='${datarootdir}/info'
  705. htmldir='${docdir}'
  706. dvidir='${docdir}'
  707. pdfdir='${docdir}'
  708. psdir='${docdir}'
  709. libdir='${exec_prefix}/lib'
  710. localedir='${datarootdir}/locale'
  711. mandir='${datarootdir}/man'
  712. ac_prev=
  713. ac_dashdash=
  714. for ac_option
  715. do
  716. # If the previous option needs an argument, assign it.
  717. if test -n "$ac_prev"; then
  718. eval $ac_prev=\$ac_option
  719. ac_prev=
  720. continue
  721. fi
  722. case $ac_option in
  723. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  724. *=) ac_optarg= ;;
  725. *) ac_optarg=yes ;;
  726. esac
  727. case $ac_dashdash$ac_option in
  728. --)
  729. ac_dashdash=yes ;;
  730. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  731. ac_prev=bindir ;;
  732. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  733. bindir=$ac_optarg ;;
  734. -build | --build | --buil | --bui | --bu)
  735. ac_prev=build_alias ;;
  736. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  737. build_alias=$ac_optarg ;;
  738. -cache-file | --cache-file | --cache-fil | --cache-fi \
  739. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  740. ac_prev=cache_file ;;
  741. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  742. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  743. cache_file=$ac_optarg ;;
  744. --config-cache | -C)
  745. cache_file=config.cache ;;
  746. -datadir | --datadir | --datadi | --datad)
  747. ac_prev=datadir ;;
  748. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  749. datadir=$ac_optarg ;;
  750. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  751. | --dataroo | --dataro | --datar)
  752. ac_prev=datarootdir ;;
  753. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  754. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  755. datarootdir=$ac_optarg ;;
  756. -disable-* | --disable-*)
  757. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  758. # Reject names that are not valid shell variable names.
  759. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  760. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  761. ac_useropt_orig=$ac_useropt
  762. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  763. case $ac_user_opts in
  764. *"
  765. "enable_$ac_useropt"
  766. "*) ;;
  767. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  768. ac_unrecognized_sep=', ';;
  769. esac
  770. eval enable_$ac_useropt=no ;;
  771. -docdir | --docdir | --docdi | --doc | --do)
  772. ac_prev=docdir ;;
  773. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  774. docdir=$ac_optarg ;;
  775. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  776. ac_prev=dvidir ;;
  777. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  778. dvidir=$ac_optarg ;;
  779. -enable-* | --enable-*)
  780. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  781. # Reject names that are not valid shell variable names.
  782. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  783. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  784. ac_useropt_orig=$ac_useropt
  785. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  786. case $ac_user_opts in
  787. *"
  788. "enable_$ac_useropt"
  789. "*) ;;
  790. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  791. ac_unrecognized_sep=', ';;
  792. esac
  793. eval enable_$ac_useropt=\$ac_optarg ;;
  794. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  795. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  796. | --exec | --exe | --ex)
  797. ac_prev=exec_prefix ;;
  798. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  799. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  800. | --exec=* | --exe=* | --ex=*)
  801. exec_prefix=$ac_optarg ;;
  802. -gas | --gas | --ga | --g)
  803. # Obsolete; use --with-gas.
  804. with_gas=yes ;;
  805. -help | --help | --hel | --he | -h)
  806. ac_init_help=long ;;
  807. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  808. ac_init_help=recursive ;;
  809. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  810. ac_init_help=short ;;
  811. -host | --host | --hos | --ho)
  812. ac_prev=host_alias ;;
  813. -host=* | --host=* | --hos=* | --ho=*)
  814. host_alias=$ac_optarg ;;
  815. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  816. ac_prev=htmldir ;;
  817. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  818. | --ht=*)
  819. htmldir=$ac_optarg ;;
  820. -includedir | --includedir | --includedi | --included | --include \
  821. | --includ | --inclu | --incl | --inc)
  822. ac_prev=includedir ;;
  823. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  824. | --includ=* | --inclu=* | --incl=* | --inc=*)
  825. includedir=$ac_optarg ;;
  826. -infodir | --infodir | --infodi | --infod | --info | --inf)
  827. ac_prev=infodir ;;
  828. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  829. infodir=$ac_optarg ;;
  830. -libdir | --libdir | --libdi | --libd)
  831. ac_prev=libdir ;;
  832. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  833. libdir=$ac_optarg ;;
  834. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  835. | --libexe | --libex | --libe)
  836. ac_prev=libexecdir ;;
  837. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  838. | --libexe=* | --libex=* | --libe=*)
  839. libexecdir=$ac_optarg ;;
  840. -localedir | --localedir | --localedi | --localed | --locale)
  841. ac_prev=localedir ;;
  842. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  843. localedir=$ac_optarg ;;
  844. -localstatedir | --localstatedir | --localstatedi | --localstated \
  845. | --localstate | --localstat | --localsta | --localst | --locals)
  846. ac_prev=localstatedir ;;
  847. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  848. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  849. localstatedir=$ac_optarg ;;
  850. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  851. ac_prev=mandir ;;
  852. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  853. mandir=$ac_optarg ;;
  854. -nfp | --nfp | --nf)
  855. # Obsolete; use --without-fp.
  856. with_fp=no ;;
  857. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  858. | --no-cr | --no-c | -n)
  859. no_create=yes ;;
  860. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  861. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  862. no_recursion=yes ;;
  863. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  864. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  865. | --oldin | --oldi | --old | --ol | --o)
  866. ac_prev=oldincludedir ;;
  867. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  868. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  869. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  870. oldincludedir=$ac_optarg ;;
  871. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  872. ac_prev=prefix ;;
  873. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  874. prefix=$ac_optarg ;;
  875. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  876. | --program-pre | --program-pr | --program-p)
  877. ac_prev=program_prefix ;;
  878. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  879. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  880. program_prefix=$ac_optarg ;;
  881. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  882. | --program-suf | --program-su | --program-s)
  883. ac_prev=program_suffix ;;
  884. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  885. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  886. program_suffix=$ac_optarg ;;
  887. -program-transform-name | --program-transform-name \
  888. | --program-transform-nam | --program-transform-na \
  889. | --program-transform-n | --program-transform- \
  890. | --program-transform | --program-transfor \
  891. | --program-transfo | --program-transf \
  892. | --program-trans | --program-tran \
  893. | --progr-tra | --program-tr | --program-t)
  894. ac_prev=program_transform_name ;;
  895. -program-transform-name=* | --program-transform-name=* \
  896. | --program-transform-nam=* | --program-transform-na=* \
  897. | --program-transform-n=* | --program-transform-=* \
  898. | --program-transform=* | --program-transfor=* \
  899. | --program-transfo=* | --program-transf=* \
  900. | --program-trans=* | --program-tran=* \
  901. | --progr-tra=* | --program-tr=* | --program-t=*)
  902. program_transform_name=$ac_optarg ;;
  903. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  904. ac_prev=pdfdir ;;
  905. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  906. pdfdir=$ac_optarg ;;
  907. -psdir | --psdir | --psdi | --psd | --ps)
  908. ac_prev=psdir ;;
  909. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  910. psdir=$ac_optarg ;;
  911. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  912. | -silent | --silent | --silen | --sile | --sil)
  913. silent=yes ;;
  914. -runstatedir | --runstatedir | --runstatedi | --runstated \
  915. | --runstate | --runstat | --runsta | --runst | --runs \
  916. | --run | --ru | --r)
  917. ac_prev=runstatedir ;;
  918. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  919. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  920. | --run=* | --ru=* | --r=*)
  921. runstatedir=$ac_optarg ;;
  922. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  923. ac_prev=sbindir ;;
  924. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  925. | --sbi=* | --sb=*)
  926. sbindir=$ac_optarg ;;
  927. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  928. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  929. | --sharedst | --shareds | --shared | --share | --shar \
  930. | --sha | --sh)
  931. ac_prev=sharedstatedir ;;
  932. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  933. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  934. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  935. | --sha=* | --sh=*)
  936. sharedstatedir=$ac_optarg ;;
  937. -site | --site | --sit)
  938. ac_prev=site ;;
  939. -site=* | --site=* | --sit=*)
  940. site=$ac_optarg ;;
  941. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  942. ac_prev=srcdir ;;
  943. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  944. srcdir=$ac_optarg ;;
  945. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  946. | --syscon | --sysco | --sysc | --sys | --sy)
  947. ac_prev=sysconfdir ;;
  948. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  949. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  950. sysconfdir=$ac_optarg ;;
  951. -target | --target | --targe | --targ | --tar | --ta | --t)
  952. ac_prev=target_alias ;;
  953. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  954. target_alias=$ac_optarg ;;
  955. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  956. verbose=yes ;;
  957. -version | --version | --versio | --versi | --vers | -V)
  958. ac_init_version=: ;;
  959. -with-* | --with-*)
  960. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  961. # Reject names that are not valid shell variable names.
  962. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  963. as_fn_error $? "invalid package name: \`$ac_useropt'"
  964. ac_useropt_orig=$ac_useropt
  965. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  966. case $ac_user_opts in
  967. *"
  968. "with_$ac_useropt"
  969. "*) ;;
  970. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  971. ac_unrecognized_sep=', ';;
  972. esac
  973. eval with_$ac_useropt=\$ac_optarg ;;
  974. -without-* | --without-*)
  975. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  976. # Reject names that are not valid shell variable names.
  977. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  978. as_fn_error $? "invalid package name: \`$ac_useropt'"
  979. ac_useropt_orig=$ac_useropt
  980. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  981. case $ac_user_opts in
  982. *"
  983. "with_$ac_useropt"
  984. "*) ;;
  985. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  986. ac_unrecognized_sep=', ';;
  987. esac
  988. eval with_$ac_useropt=no ;;
  989. --x)
  990. # Obsolete; use --with-x.
  991. with_x=yes ;;
  992. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  993. | --x-incl | --x-inc | --x-in | --x-i)
  994. ac_prev=x_includes ;;
  995. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  996. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  997. x_includes=$ac_optarg ;;
  998. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  999. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1000. ac_prev=x_libraries ;;
  1001. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1002. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1003. x_libraries=$ac_optarg ;;
  1004. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1005. Try \`$0 --help' for more information"
  1006. ;;
  1007. *=*)
  1008. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1009. # Reject names that are not valid shell variable names.
  1010. case $ac_envvar in #(
  1011. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1012. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1013. esac
  1014. eval $ac_envvar=\$ac_optarg
  1015. export $ac_envvar ;;
  1016. *)
  1017. # FIXME: should be removed in autoconf 3.0.
  1018. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1019. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1020. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1021. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1022. ;;
  1023. esac
  1024. done
  1025. if test -n "$ac_prev"; then
  1026. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1027. as_fn_error $? "missing argument to $ac_option"
  1028. fi
  1029. if test -n "$ac_unrecognized_opts"; then
  1030. case $enable_option_checking in
  1031. no) ;;
  1032. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1033. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1034. esac
  1035. fi
  1036. # Check all directory arguments for consistency.
  1037. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1038. datadir sysconfdir sharedstatedir localstatedir includedir \
  1039. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1040. libdir localedir mandir runstatedir
  1041. do
  1042. eval ac_val=\$$ac_var
  1043. # Remove trailing slashes.
  1044. case $ac_val in
  1045. */ )
  1046. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1047. eval $ac_var=\$ac_val;;
  1048. esac
  1049. # Be sure to have absolute directory names.
  1050. case $ac_val in
  1051. [\\/$]* | ?:[\\/]* ) continue;;
  1052. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1053. esac
  1054. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1055. done
  1056. # There might be people who depend on the old broken behavior: `$host'
  1057. # used to hold the argument of --host etc.
  1058. # FIXME: To remove some day.
  1059. build=$build_alias
  1060. host=$host_alias
  1061. target=$target_alias
  1062. # FIXME: To remove some day.
  1063. if test "x$host_alias" != x; then
  1064. if test "x$build_alias" = x; then
  1065. cross_compiling=maybe
  1066. elif test "x$build_alias" != "x$host_alias"; then
  1067. cross_compiling=yes
  1068. fi
  1069. fi
  1070. ac_tool_prefix=
  1071. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1072. test "$silent" = yes && exec 6>/dev/null
  1073. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1074. ac_ls_di=`ls -di .` &&
  1075. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1076. as_fn_error $? "working directory cannot be determined"
  1077. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1078. as_fn_error $? "pwd does not report name of working directory"
  1079. # Find the source files, if location was not specified.
  1080. if test -z "$srcdir"; then
  1081. ac_srcdir_defaulted=yes
  1082. # Try the directory containing this script, then the parent directory.
  1083. ac_confdir=`$as_dirname -- "$as_myself" ||
  1084. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1085. X"$as_myself" : 'X\(//\)[^/]' \| \
  1086. X"$as_myself" : 'X\(//\)$' \| \
  1087. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1088. printf "%s\n" X"$as_myself" |
  1089. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1090. s//\1/
  1091. q
  1092. }
  1093. /^X\(\/\/\)[^/].*/{
  1094. s//\1/
  1095. q
  1096. }
  1097. /^X\(\/\/\)$/{
  1098. s//\1/
  1099. q
  1100. }
  1101. /^X\(\/\).*/{
  1102. s//\1/
  1103. q
  1104. }
  1105. s/.*/./; q'`
  1106. srcdir=$ac_confdir
  1107. if test ! -r "$srcdir/$ac_unique_file"; then
  1108. srcdir=..
  1109. fi
  1110. else
  1111. ac_srcdir_defaulted=no
  1112. fi
  1113. if test ! -r "$srcdir/$ac_unique_file"; then
  1114. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1115. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1116. fi
  1117. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1118. ac_abs_confdir=`(
  1119. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1120. pwd)`
  1121. # When building in place, set srcdir=.
  1122. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1123. srcdir=.
  1124. fi
  1125. # Remove unnecessary trailing slashes from srcdir.
  1126. # Double slashes in file names in object file debugging info
  1127. # mess up M-x gdb in Emacs.
  1128. case $srcdir in
  1129. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1130. esac
  1131. for ac_var in $ac_precious_vars; do
  1132. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1133. eval ac_env_${ac_var}_value=\$${ac_var}
  1134. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1135. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1136. done
  1137. #
  1138. # Report the --help message.
  1139. #
  1140. if test "$ac_init_help" = "long"; then
  1141. # Omit some internal or obsolete options to make the list less imposing.
  1142. # This message is too long to be a string in the A/UX 3.1 sh.
  1143. cat <<_ACEOF
  1144. \`configure' configures spearl 0.01 to adapt to many kinds of systems.
  1145. Usage: $0 [OPTION]... [VAR=VALUE]...
  1146. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1147. VAR=VALUE. See below for descriptions of some of the useful variables.
  1148. Defaults for the options are specified in brackets.
  1149. Configuration:
  1150. -h, --help display this help and exit
  1151. --help=short display options specific to this package
  1152. --help=recursive display the short help of all the included packages
  1153. -V, --version display version information and exit
  1154. -q, --quiet, --silent do not print \`checking ...' messages
  1155. --cache-file=FILE cache test results in FILE [disabled]
  1156. -C, --config-cache alias for \`--cache-file=config.cache'
  1157. -n, --no-create do not create output files
  1158. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1159. Installation directories:
  1160. --prefix=PREFIX install architecture-independent files in PREFIX
  1161. [$ac_default_prefix]
  1162. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1163. [PREFIX]
  1164. By default, \`make install' will install all the files in
  1165. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1166. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1167. for instance \`--prefix=\$HOME'.
  1168. For better control, use the options below.
  1169. Fine tuning of the installation directories:
  1170. --bindir=DIR user executables [EPREFIX/bin]
  1171. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1172. --libexecdir=DIR program executables [EPREFIX/libexec]
  1173. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1174. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1175. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1176. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1177. --libdir=DIR object code libraries [EPREFIX/lib]
  1178. --includedir=DIR C header files [PREFIX/include]
  1179. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1180. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1181. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1182. --infodir=DIR info documentation [DATAROOTDIR/info]
  1183. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1184. --mandir=DIR man documentation [DATAROOTDIR/man]
  1185. --docdir=DIR documentation root [DATAROOTDIR/doc/spearl]
  1186. --htmldir=DIR html documentation [DOCDIR]
  1187. --dvidir=DIR dvi documentation [DOCDIR]
  1188. --pdfdir=DIR pdf documentation [DOCDIR]
  1189. --psdir=DIR ps documentation [DOCDIR]
  1190. _ACEOF
  1191. cat <<\_ACEOF
  1192. Program names:
  1193. --program-prefix=PREFIX prepend PREFIX to installed program names
  1194. --program-suffix=SUFFIX append SUFFIX to installed program names
  1195. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1196. _ACEOF
  1197. fi
  1198. if test -n "$ac_init_help"; then
  1199. case $ac_init_help in
  1200. short | recursive ) echo "Configuration of spearl 0.01:";;
  1201. esac
  1202. cat <<\_ACEOF
  1203. Optional Features:
  1204. --disable-option-checking ignore unrecognized --enable/--with options
  1205. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1206. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1207. --enable-silent-rules less verbose build output (undo: "make V=1")
  1208. --disable-silent-rules verbose build output (undo: "make V=0")
  1209. --enable-dependency-tracking
  1210. do not reject slow dependency extractors
  1211. --disable-dependency-tracking
  1212. speeds up one-time build
  1213. Some influential environment variables:
  1214. CC C compiler command
  1215. CFLAGS C compiler flags
  1216. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1217. nonstandard directory <lib dir>
  1218. LIBS libraries to pass to the linker, e.g. -l<library>
  1219. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1220. you have headers in a nonstandard directory <include dir>
  1221. Use these variables to override the choices made by `configure' or to help
  1222. it to find libraries and programs with nonstandard names/locations.
  1223. Report bugs to <root@intirain.cc>.
  1224. _ACEOF
  1225. ac_status=$?
  1226. fi
  1227. if test "$ac_init_help" = "recursive"; then
  1228. # If there are subdirs, report their specific --help.
  1229. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1230. test -d "$ac_dir" ||
  1231. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1232. continue
  1233. ac_builddir=.
  1234. case "$ac_dir" in
  1235. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1236. *)
  1237. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  1238. # A ".." for each directory in $ac_dir_suffix.
  1239. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1240. case $ac_top_builddir_sub in
  1241. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1242. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1243. esac ;;
  1244. esac
  1245. ac_abs_top_builddir=$ac_pwd
  1246. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1247. # for backward compatibility:
  1248. ac_top_builddir=$ac_top_build_prefix
  1249. case $srcdir in
  1250. .) # We are building in place.
  1251. ac_srcdir=.
  1252. ac_top_srcdir=$ac_top_builddir_sub
  1253. ac_abs_top_srcdir=$ac_pwd ;;
  1254. [\\/]* | ?:[\\/]* ) # Absolute name.
  1255. ac_srcdir=$srcdir$ac_dir_suffix;
  1256. ac_top_srcdir=$srcdir
  1257. ac_abs_top_srcdir=$srcdir ;;
  1258. *) # Relative name.
  1259. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1260. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1261. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1262. esac
  1263. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1264. cd "$ac_dir" || { ac_status=$?; continue; }
  1265. # Check for configure.gnu first; this name is used for a wrapper for
  1266. # Metaconfig's "Configure" on case-insensitive file systems.
  1267. if test -f "$ac_srcdir/configure.gnu"; then
  1268. echo &&
  1269. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1270. elif test -f "$ac_srcdir/configure"; then
  1271. echo &&
  1272. $SHELL "$ac_srcdir/configure" --help=recursive
  1273. else
  1274. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1275. fi || ac_status=$?
  1276. cd "$ac_pwd" || { ac_status=$?; break; }
  1277. done
  1278. fi
  1279. test -n "$ac_init_help" && exit $ac_status
  1280. if $ac_init_version; then
  1281. cat <<\_ACEOF
  1282. spearl configure 0.01
  1283. generated by GNU Autoconf 2.71
  1284. Copyright (C) 2021 Free Software Foundation, Inc.
  1285. This configure script is free software; the Free Software Foundation
  1286. gives unlimited permission to copy, distribute and modify it.
  1287. _ACEOF
  1288. exit
  1289. fi
  1290. ## ------------------------ ##
  1291. ## Autoconf initialization. ##
  1292. ## ------------------------ ##
  1293. # ac_fn_c_try_compile LINENO
  1294. # --------------------------
  1295. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1296. ac_fn_c_try_compile ()
  1297. {
  1298. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1299. rm -f conftest.$ac_objext conftest.beam
  1300. if { { ac_try="$ac_compile"
  1301. case "(($ac_try" in
  1302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1303. *) ac_try_echo=$ac_try;;
  1304. esac
  1305. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1306. printf "%s\n" "$ac_try_echo"; } >&5
  1307. (eval "$ac_compile") 2>conftest.err
  1308. ac_status=$?
  1309. if test -s conftest.err; then
  1310. grep -v '^ *+' conftest.err >conftest.er1
  1311. cat conftest.er1 >&5
  1312. mv -f conftest.er1 conftest.err
  1313. fi
  1314. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1315. test $ac_status = 0; } && {
  1316. test -z "$ac_c_werror_flag" ||
  1317. test ! -s conftest.err
  1318. } && test -s conftest.$ac_objext
  1319. then :
  1320. ac_retval=0
  1321. else $as_nop
  1322. printf "%s\n" "$as_me: failed program was:" >&5
  1323. sed 's/^/| /' conftest.$ac_ext >&5
  1324. ac_retval=1
  1325. fi
  1326. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1327. as_fn_set_status $ac_retval
  1328. } # ac_fn_c_try_compile
  1329. ac_configure_args_raw=
  1330. for ac_arg
  1331. do
  1332. case $ac_arg in
  1333. *\'*)
  1334. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1335. esac
  1336. as_fn_append ac_configure_args_raw " '$ac_arg'"
  1337. done
  1338. case $ac_configure_args_raw in
  1339. *$as_nl*)
  1340. ac_safe_unquote= ;;
  1341. *)
  1342. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  1343. ac_unsafe_a="$ac_unsafe_z#~"
  1344. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  1345. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  1346. esac
  1347. cat >config.log <<_ACEOF
  1348. This file contains any messages produced by compilers while
  1349. running configure, to aid debugging if configure makes a mistake.
  1350. It was created by spearl $as_me 0.01, which was
  1351. generated by GNU Autoconf 2.71. Invocation command line was
  1352. $ $0$ac_configure_args_raw
  1353. _ACEOF
  1354. exec 5>>config.log
  1355. {
  1356. cat <<_ASUNAME
  1357. ## --------- ##
  1358. ## Platform. ##
  1359. ## --------- ##
  1360. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1361. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1362. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1363. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1364. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1365. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1366. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1367. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1368. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1369. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1370. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1371. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1372. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1373. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1374. _ASUNAME
  1375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1376. for as_dir in $PATH
  1377. do
  1378. IFS=$as_save_IFS
  1379. case $as_dir in #(((
  1380. '') as_dir=./ ;;
  1381. */) ;;
  1382. *) as_dir=$as_dir/ ;;
  1383. esac
  1384. printf "%s\n" "PATH: $as_dir"
  1385. done
  1386. IFS=$as_save_IFS
  1387. } >&5
  1388. cat >&5 <<_ACEOF
  1389. ## ----------- ##
  1390. ## Core tests. ##
  1391. ## ----------- ##
  1392. _ACEOF
  1393. # Keep a trace of the command line.
  1394. # Strip out --no-create and --no-recursion so they do not pile up.
  1395. # Strip out --silent because we don't want to record it for future runs.
  1396. # Also quote any args containing shell meta-characters.
  1397. # Make two passes to allow for proper duplicate-argument suppression.
  1398. ac_configure_args=
  1399. ac_configure_args0=
  1400. ac_configure_args1=
  1401. ac_must_keep_next=false
  1402. for ac_pass in 1 2
  1403. do
  1404. for ac_arg
  1405. do
  1406. case $ac_arg in
  1407. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1408. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1409. | -silent | --silent | --silen | --sile | --sil)
  1410. continue ;;
  1411. *\'*)
  1412. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1413. esac
  1414. case $ac_pass in
  1415. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1416. 2)
  1417. as_fn_append ac_configure_args1 " '$ac_arg'"
  1418. if test $ac_must_keep_next = true; then
  1419. ac_must_keep_next=false # Got value, back to normal.
  1420. else
  1421. case $ac_arg in
  1422. *=* | --config-cache | -C | -disable-* | --disable-* \
  1423. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1424. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1425. | -with-* | --with-* | -without-* | --without-* | --x)
  1426. case "$ac_configure_args0 " in
  1427. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1428. esac
  1429. ;;
  1430. -* ) ac_must_keep_next=true ;;
  1431. esac
  1432. fi
  1433. as_fn_append ac_configure_args " '$ac_arg'"
  1434. ;;
  1435. esac
  1436. done
  1437. done
  1438. { ac_configure_args0=; unset ac_configure_args0;}
  1439. { ac_configure_args1=; unset ac_configure_args1;}
  1440. # When interrupted or exit'd, cleanup temporary files, and complete
  1441. # config.log. We remove comments because anyway the quotes in there
  1442. # would cause problems or look ugly.
  1443. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1444. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1445. trap 'exit_status=$?
  1446. # Sanitize IFS.
  1447. IFS=" "" $as_nl"
  1448. # Save into config.log some information that might help in debugging.
  1449. {
  1450. echo
  1451. printf "%s\n" "## ---------------- ##
  1452. ## Cache variables. ##
  1453. ## ---------------- ##"
  1454. echo
  1455. # The following way of writing the cache mishandles newlines in values,
  1456. (
  1457. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1458. eval ac_val=\$$ac_var
  1459. case $ac_val in #(
  1460. *${as_nl}*)
  1461. case $ac_var in #(
  1462. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1463. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1464. esac
  1465. case $ac_var in #(
  1466. _ | IFS | as_nl) ;; #(
  1467. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1468. *) { eval $ac_var=; unset $ac_var;} ;;
  1469. esac ;;
  1470. esac
  1471. done
  1472. (set) 2>&1 |
  1473. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1474. *${as_nl}ac_space=\ *)
  1475. sed -n \
  1476. "s/'\''/'\''\\\\'\'''\''/g;
  1477. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1478. ;; #(
  1479. *)
  1480. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1481. ;;
  1482. esac |
  1483. sort
  1484. )
  1485. echo
  1486. printf "%s\n" "## ----------------- ##
  1487. ## Output variables. ##
  1488. ## ----------------- ##"
  1489. echo
  1490. for ac_var in $ac_subst_vars
  1491. do
  1492. eval ac_val=\$$ac_var
  1493. case $ac_val in
  1494. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1495. esac
  1496. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1497. done | sort
  1498. echo
  1499. if test -n "$ac_subst_files"; then
  1500. printf "%s\n" "## ------------------- ##
  1501. ## File substitutions. ##
  1502. ## ------------------- ##"
  1503. echo
  1504. for ac_var in $ac_subst_files
  1505. do
  1506. eval ac_val=\$$ac_var
  1507. case $ac_val in
  1508. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1509. esac
  1510. printf "%s\n" "$ac_var='\''$ac_val'\''"
  1511. done | sort
  1512. echo
  1513. fi
  1514. if test -s confdefs.h; then
  1515. printf "%s\n" "## ----------- ##
  1516. ## confdefs.h. ##
  1517. ## ----------- ##"
  1518. echo
  1519. cat confdefs.h
  1520. echo
  1521. fi
  1522. test "$ac_signal" != 0 &&
  1523. printf "%s\n" "$as_me: caught signal $ac_signal"
  1524. printf "%s\n" "$as_me: exit $exit_status"
  1525. } >&5
  1526. rm -f core *.core core.conftest.* &&
  1527. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1528. exit $exit_status
  1529. ' 0
  1530. for ac_signal in 1 2 13 15; do
  1531. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1532. done
  1533. ac_signal=0
  1534. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1535. rm -f -r conftest* confdefs.h
  1536. printf "%s\n" "/* confdefs.h */" > confdefs.h
  1537. # Predefined preprocessor variables.
  1538. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  1539. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  1540. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  1541. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  1542. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  1543. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  1544. # Let the site file select an alternate cache file if it wants to.
  1545. # Prefer an explicitly selected file to automatically selected ones.
  1546. if test -n "$CONFIG_SITE"; then
  1547. ac_site_files="$CONFIG_SITE"
  1548. elif test "x$prefix" != xNONE; then
  1549. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  1550. else
  1551. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1552. fi
  1553. for ac_site_file in $ac_site_files
  1554. do
  1555. case $ac_site_file in #(
  1556. */*) :
  1557. ;; #(
  1558. *) :
  1559. ac_site_file=./$ac_site_file ;;
  1560. esac
  1561. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  1562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1563. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  1564. sed 's/^/| /' "$ac_site_file" >&5
  1565. . "$ac_site_file" \
  1566. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1567. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  1568. as_fn_error $? "failed to load site script $ac_site_file
  1569. See \`config.log' for more details" "$LINENO" 5; }
  1570. fi
  1571. done
  1572. if test -r "$cache_file"; then
  1573. # Some versions of bash will fail to source /dev/null (special files
  1574. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1575. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1576. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1577. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  1578. case $cache_file in
  1579. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1580. *) . "./$cache_file";;
  1581. esac
  1582. fi
  1583. else
  1584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1585. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  1586. >$cache_file
  1587. fi
  1588. # Test code for whether the C compiler supports C89 (global declarations)
  1589. ac_c_conftest_c89_globals='
  1590. /* Does the compiler advertise C89 conformance?
  1591. Do not test the value of __STDC__, because some compilers set it to 0
  1592. while being otherwise adequately conformant. */
  1593. #if !defined __STDC__
  1594. # error "Compiler does not advertise C89 conformance"
  1595. #endif
  1596. #include <stddef.h>
  1597. #include <stdarg.h>
  1598. struct stat;
  1599. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  1600. struct buf { int x; };
  1601. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  1602. static char *e (p, i)
  1603. char **p;
  1604. int i;
  1605. {
  1606. return p[i];
  1607. }
  1608. static char *f (char * (*g) (char **, int), char **p, ...)
  1609. {
  1610. char *s;
  1611. va_list v;
  1612. va_start (v,p);
  1613. s = g (p, va_arg (v,int));
  1614. va_end (v);
  1615. return s;
  1616. }
  1617. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1618. function prototypes and stuff, but not \xHH hex character constants.
  1619. These do not provoke an error unfortunately, instead are silently treated
  1620. as an "x". The following induces an error, until -std is added to get
  1621. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  1622. array size at least. It is necessary to write \x00 == 0 to get something
  1623. that is true only with -std. */
  1624. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  1625. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  1626. inside strings and character constants. */
  1627. #define FOO(x) '\''x'\''
  1628. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  1629. int test (int i, double x);
  1630. struct s1 {int (*f) (int a);};
  1631. struct s2 {int (*f) (double a);};
  1632. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  1633. int, int);'
  1634. # Test code for whether the C compiler supports C89 (body of main).
  1635. ac_c_conftest_c89_main='
  1636. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  1637. '
  1638. # Test code for whether the C compiler supports C99 (global declarations)
  1639. ac_c_conftest_c99_globals='
  1640. // Does the compiler advertise C99 conformance?
  1641. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  1642. # error "Compiler does not advertise C99 conformance"
  1643. #endif
  1644. #include <stdbool.h>
  1645. extern int puts (const char *);
  1646. extern int printf (const char *, ...);
  1647. extern int dprintf (int, const char *, ...);
  1648. extern void *malloc (size_t);
  1649. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  1650. // dprintf is used instead of fprintf to avoid needing to declare
  1651. // FILE and stderr.
  1652. #define debug(...) dprintf (2, __VA_ARGS__)
  1653. #define showlist(...) puts (#__VA_ARGS__)
  1654. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  1655. static void
  1656. test_varargs_macros (void)
  1657. {
  1658. int x = 1234;
  1659. int y = 5678;
  1660. debug ("Flag");
  1661. debug ("X = %d\n", x);
  1662. showlist (The first, second, and third items.);
  1663. report (x>y, "x is %d but y is %d", x, y);
  1664. }
  1665. // Check long long types.
  1666. #define BIG64 18446744073709551615ull
  1667. #define BIG32 4294967295ul
  1668. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  1669. #if !BIG_OK
  1670. #error "your preprocessor is broken"
  1671. #endif
  1672. #if BIG_OK
  1673. #else
  1674. #error "your preprocessor is broken"
  1675. #endif
  1676. static long long int bignum = -9223372036854775807LL;
  1677. static unsigned long long int ubignum = BIG64;
  1678. struct incomplete_array
  1679. {
  1680. int datasize;
  1681. double data[];
  1682. };
  1683. struct named_init {
  1684. int number;
  1685. const wchar_t *name;
  1686. double average;
  1687. };
  1688. typedef const char *ccp;
  1689. static inline int
  1690. test_restrict (ccp restrict text)
  1691. {
  1692. // See if C++-style comments work.
  1693. // Iterate through items via the restricted pointer.
  1694. // Also check for declarations in for loops.
  1695. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  1696. continue;
  1697. return 0;
  1698. }
  1699. // Check varargs and va_copy.
  1700. static bool
  1701. test_varargs (const char *format, ...)
  1702. {
  1703. va_list args;
  1704. va_start (args, format);
  1705. va_list args_copy;
  1706. va_copy (args_copy, args);
  1707. const char *str = "";
  1708. int number = 0;
  1709. float fnumber = 0;
  1710. while (*format)
  1711. {
  1712. switch (*format++)
  1713. {
  1714. case '\''s'\'': // string
  1715. str = va_arg (args_copy, const char *);
  1716. break;
  1717. case '\''d'\'': // int
  1718. number = va_arg (args_copy, int);
  1719. break;
  1720. case '\''f'\'': // float
  1721. fnumber = va_arg (args_copy, double);
  1722. break;
  1723. default:
  1724. break;
  1725. }
  1726. }
  1727. va_end (args_copy);
  1728. va_end (args);
  1729. return *str && number && fnumber;
  1730. }
  1731. '
  1732. # Test code for whether the C compiler supports C99 (body of main).
  1733. ac_c_conftest_c99_main='
  1734. // Check bool.
  1735. _Bool success = false;
  1736. success |= (argc != 0);
  1737. // Check restrict.
  1738. if (test_restrict ("String literal") == 0)
  1739. success = true;
  1740. char *restrict newvar = "Another string";
  1741. // Check varargs.
  1742. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  1743. test_varargs_macros ();
  1744. // Check flexible array members.
  1745. struct incomplete_array *ia =
  1746. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  1747. ia->datasize = 10;
  1748. for (int i = 0; i < ia->datasize; ++i)
  1749. ia->data[i] = i * 1.234;
  1750. // Check named initializers.
  1751. struct named_init ni = {
  1752. .number = 34,
  1753. .name = L"Test wide string",
  1754. .average = 543.34343,
  1755. };
  1756. ni.number = 58;
  1757. int dynamic_array[ni.number];
  1758. dynamic_array[0] = argv[0][0];
  1759. dynamic_array[ni.number - 1] = 543;
  1760. // work around unused variable warnings
  1761. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  1762. || dynamic_array[ni.number - 1] != 543);
  1763. '
  1764. # Test code for whether the C compiler supports C11 (global declarations)
  1765. ac_c_conftest_c11_globals='
  1766. // Does the compiler advertise C11 conformance?
  1767. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  1768. # error "Compiler does not advertise C11 conformance"
  1769. #endif
  1770. // Check _Alignas.
  1771. char _Alignas (double) aligned_as_double;
  1772. char _Alignas (0) no_special_alignment;
  1773. extern char aligned_as_int;
  1774. char _Alignas (0) _Alignas (int) aligned_as_int;
  1775. // Check _Alignof.
  1776. enum
  1777. {
  1778. int_alignment = _Alignof (int),
  1779. int_array_alignment = _Alignof (int[100]),
  1780. char_alignment = _Alignof (char)
  1781. };
  1782. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  1783. // Check _Noreturn.
  1784. int _Noreturn does_not_return (void) { for (;;) continue; }
  1785. // Check _Static_assert.
  1786. struct test_static_assert
  1787. {
  1788. int x;
  1789. _Static_assert (sizeof (int) <= sizeof (long int),
  1790. "_Static_assert does not work in struct");
  1791. long int y;
  1792. };
  1793. // Check UTF-8 literals.
  1794. #define u8 syntax error!
  1795. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  1796. // Check duplicate typedefs.
  1797. typedef long *long_ptr;
  1798. typedef long int *long_ptr;
  1799. typedef long_ptr long_ptr;
  1800. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  1801. struct anonymous
  1802. {
  1803. union {
  1804. struct { int i; int j; };
  1805. struct { int k; long int l; } w;
  1806. };
  1807. int m;
  1808. } v1;
  1809. '
  1810. # Test code for whether the C compiler supports C11 (body of main).
  1811. ac_c_conftest_c11_main='
  1812. _Static_assert ((offsetof (struct anonymous, i)
  1813. == offsetof (struct anonymous, w.k)),
  1814. "Anonymous union alignment botch");
  1815. v1.i = 2;
  1816. v1.w.k = 5;
  1817. ok |= v1.i != 5;
  1818. '
  1819. # Test code for whether the C compiler supports C11 (complete).
  1820. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  1821. ${ac_c_conftest_c99_globals}
  1822. ${ac_c_conftest_c11_globals}
  1823. int
  1824. main (int argc, char **argv)
  1825. {
  1826. int ok = 0;
  1827. ${ac_c_conftest_c89_main}
  1828. ${ac_c_conftest_c99_main}
  1829. ${ac_c_conftest_c11_main}
  1830. return ok;
  1831. }
  1832. "
  1833. # Test code for whether the C compiler supports C99 (complete).
  1834. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  1835. ${ac_c_conftest_c99_globals}
  1836. int
  1837. main (int argc, char **argv)
  1838. {
  1839. int ok = 0;
  1840. ${ac_c_conftest_c89_main}
  1841. ${ac_c_conftest_c99_main}
  1842. return ok;
  1843. }
  1844. "
  1845. # Test code for whether the C compiler supports C89 (complete).
  1846. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  1847. int
  1848. main (int argc, char **argv)
  1849. {
  1850. int ok = 0;
  1851. ${ac_c_conftest_c89_main}
  1852. return ok;
  1853. }
  1854. "
  1855. # Auxiliary files required by this configure script.
  1856. ac_aux_files="compile missing install-sh"
  1857. # Locations in which to look for auxiliary files.
  1858. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  1859. # Search for a directory containing all of the required auxiliary files,
  1860. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  1861. # If we don't find one directory that contains all the files we need,
  1862. # we report the set of missing files from the *first* directory in
  1863. # $ac_aux_dir_candidates and give up.
  1864. ac_missing_aux_files=""
  1865. ac_first_candidate=:
  1866. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  1867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1868. as_found=false
  1869. for as_dir in $ac_aux_dir_candidates
  1870. do
  1871. IFS=$as_save_IFS
  1872. case $as_dir in #(((
  1873. '') as_dir=./ ;;
  1874. */) ;;
  1875. *) as_dir=$as_dir/ ;;
  1876. esac
  1877. as_found=:
  1878. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  1879. ac_aux_dir_found=yes
  1880. ac_install_sh=
  1881. for ac_aux in $ac_aux_files
  1882. do
  1883. # As a special case, if "install-sh" is required, that requirement
  1884. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  1885. # and $ac_install_sh is set appropriately for whichever one is found.
  1886. if test x"$ac_aux" = x"install-sh"
  1887. then
  1888. if test -f "${as_dir}install-sh"; then
  1889. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  1890. ac_install_sh="${as_dir}install-sh -c"
  1891. elif test -f "${as_dir}install.sh"; then
  1892. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  1893. ac_install_sh="${as_dir}install.sh -c"
  1894. elif test -f "${as_dir}shtool"; then
  1895. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  1896. ac_install_sh="${as_dir}shtool install -c"
  1897. else
  1898. ac_aux_dir_found=no
  1899. if $ac_first_candidate; then
  1900. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  1901. else
  1902. break
  1903. fi
  1904. fi
  1905. else
  1906. if test -f "${as_dir}${ac_aux}"; then
  1907. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  1908. else
  1909. ac_aux_dir_found=no
  1910. if $ac_first_candidate; then
  1911. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  1912. else
  1913. break
  1914. fi
  1915. fi
  1916. fi
  1917. done
  1918. if test "$ac_aux_dir_found" = yes; then
  1919. ac_aux_dir="$as_dir"
  1920. break
  1921. fi
  1922. ac_first_candidate=false
  1923. as_found=false
  1924. done
  1925. IFS=$as_save_IFS
  1926. if $as_found
  1927. then :
  1928. else $as_nop
  1929. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  1930. fi
  1931. # These three variables are undocumented and unsupported,
  1932. # and are intended to be withdrawn in a future Autoconf release.
  1933. # They can cause serious problems if a builder's source tree is in a directory
  1934. # whose full name contains unusual characters.
  1935. if test -f "${ac_aux_dir}config.guess"; then
  1936. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  1937. fi
  1938. if test -f "${ac_aux_dir}config.sub"; then
  1939. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  1940. fi
  1941. if test -f "$ac_aux_dir/configure"; then
  1942. ac_configure="$SHELL ${ac_aux_dir}configure"
  1943. fi
  1944. # Check that the precious variables saved in the cache have kept the same
  1945. # value.
  1946. ac_cache_corrupted=false
  1947. for ac_var in $ac_precious_vars; do
  1948. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1949. eval ac_new_set=\$ac_env_${ac_var}_set
  1950. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1951. eval ac_new_val=\$ac_env_${ac_var}_value
  1952. case $ac_old_set,$ac_new_set in
  1953. set,)
  1954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1955. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1956. ac_cache_corrupted=: ;;
  1957. ,set)
  1958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1959. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1960. ac_cache_corrupted=: ;;
  1961. ,);;
  1962. *)
  1963. if test "x$ac_old_val" != "x$ac_new_val"; then
  1964. # differences in whitespace do not lead to failure.
  1965. ac_old_val_w=`echo x $ac_old_val`
  1966. ac_new_val_w=`echo x $ac_new_val`
  1967. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1969. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1970. ac_cache_corrupted=:
  1971. else
  1972. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1973. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1974. eval $ac_var=\$ac_old_val
  1975. fi
  1976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1977. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  1978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1979. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  1980. fi;;
  1981. esac
  1982. # Pass precious variables to config.status.
  1983. if test "$ac_new_set" = set; then
  1984. case $ac_new_val in
  1985. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1986. *) ac_arg=$ac_var=$ac_new_val ;;
  1987. esac
  1988. case " $ac_configure_args " in
  1989. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1990. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1991. esac
  1992. fi
  1993. done
  1994. if $ac_cache_corrupted; then
  1995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1996. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  1997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1998. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  1999. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  2000. and start over" "$LINENO" 5
  2001. fi
  2002. ## -------------------- ##
  2003. ## Main body of script. ##
  2004. ## -------------------- ##
  2005. ac_ext=c
  2006. ac_cpp='$CPP $CPPFLAGS'
  2007. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2008. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2009. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2010. am__api_version='1.16'
  2011. # Find a good install program. We prefer a C program (faster),
  2012. # so one script is as good as another. But avoid the broken or
  2013. # incompatible versions:
  2014. # SysV /etc/install, /usr/sbin/install
  2015. # SunOS /usr/etc/install
  2016. # IRIX /sbin/install
  2017. # AIX /bin/install
  2018. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2019. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2020. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2021. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2022. # OS/2's system install, which has a completely different semantic
  2023. # ./install, which can be erroneously created by make from ./install.sh.
  2024. # Reject install programs that cannot install multiple files.
  2025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2026. printf %s "checking for a BSD-compatible install... " >&6; }
  2027. if test -z "$INSTALL"; then
  2028. if test ${ac_cv_path_install+y}
  2029. then :
  2030. printf %s "(cached) " >&6
  2031. else $as_nop
  2032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2033. for as_dir in $PATH
  2034. do
  2035. IFS=$as_save_IFS
  2036. case $as_dir in #(((
  2037. '') as_dir=./ ;;
  2038. */) ;;
  2039. *) as_dir=$as_dir/ ;;
  2040. esac
  2041. # Account for fact that we put trailing slashes in our PATH walk.
  2042. case $as_dir in #((
  2043. ./ | /[cC]/* | \
  2044. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2045. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2046. /usr/ucb/* ) ;;
  2047. *)
  2048. # OSF1 and SCO ODT 3.0 have their own names for install.
  2049. # Don't use installbsd from OSF since it installs stuff as root
  2050. # by default.
  2051. for ac_prog in ginstall scoinst install; do
  2052. for ac_exec_ext in '' $ac_executable_extensions; do
  2053. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  2054. if test $ac_prog = install &&
  2055. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2056. # AIX install. It has an incompatible calling convention.
  2057. :
  2058. elif test $ac_prog = install &&
  2059. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2060. # program-specific install script used by HP pwplus--don't use.
  2061. :
  2062. else
  2063. rm -rf conftest.one conftest.two conftest.dir
  2064. echo one > conftest.one
  2065. echo two > conftest.two
  2066. mkdir conftest.dir
  2067. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  2068. test -s conftest.one && test -s conftest.two &&
  2069. test -s conftest.dir/conftest.one &&
  2070. test -s conftest.dir/conftest.two
  2071. then
  2072. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  2073. break 3
  2074. fi
  2075. fi
  2076. fi
  2077. done
  2078. done
  2079. ;;
  2080. esac
  2081. done
  2082. IFS=$as_save_IFS
  2083. rm -rf conftest.one conftest.two conftest.dir
  2084. fi
  2085. if test ${ac_cv_path_install+y}; then
  2086. INSTALL=$ac_cv_path_install
  2087. else
  2088. # As a last resort, use the slow shell script. Don't cache a
  2089. # value for INSTALL within a source directory, because that will
  2090. # break other packages using the cache if that directory is
  2091. # removed, or if the value is a relative name.
  2092. INSTALL=$ac_install_sh
  2093. fi
  2094. fi
  2095. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2096. printf "%s\n" "$INSTALL" >&6; }
  2097. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2098. # It thinks the first close brace ends the variable substitution.
  2099. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2100. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2101. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2102. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2103. printf %s "checking whether build environment is sane... " >&6; }
  2104. # Reject unsafe characters in $srcdir or the absolute working directory
  2105. # name. Accept space and tab only in the latter.
  2106. am_lf='
  2107. '
  2108. case `pwd` in
  2109. *[\\\"\#\$\&\'\`$am_lf]*)
  2110. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2111. esac
  2112. case $srcdir in
  2113. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2114. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2115. esac
  2116. # Do 'set' in a subshell so we don't clobber the current shell's
  2117. # arguments. Must try -L first in case configure is actually a
  2118. # symlink; some systems play weird games with the mod time of symlinks
  2119. # (eg FreeBSD returns the mod time of the symlink's containing
  2120. # directory).
  2121. if (
  2122. am_has_slept=no
  2123. for am_try in 1 2; do
  2124. echo "timestamp, slept: $am_has_slept" > conftest.file
  2125. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2126. if test "$*" = "X"; then
  2127. # -L didn't work.
  2128. set X `ls -t "$srcdir/configure" conftest.file`
  2129. fi
  2130. if test "$*" != "X $srcdir/configure conftest.file" \
  2131. && test "$*" != "X conftest.file $srcdir/configure"; then
  2132. # If neither matched, then we have a broken ls. This can happen
  2133. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2134. # broken ls alias from the environment. This has actually
  2135. # happened. Such a system could not be considered "sane".
  2136. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2137. alias in your environment" "$LINENO" 5
  2138. fi
  2139. if test "$2" = conftest.file || test $am_try -eq 2; then
  2140. break
  2141. fi
  2142. # Just in case.
  2143. sleep 1
  2144. am_has_slept=yes
  2145. done
  2146. test "$2" = conftest.file
  2147. )
  2148. then
  2149. # Ok.
  2150. :
  2151. else
  2152. as_fn_error $? "newly created file is older than distributed files!
  2153. Check your system clock" "$LINENO" 5
  2154. fi
  2155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2156. printf "%s\n" "yes" >&6; }
  2157. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2158. # generated files are strictly newer.
  2159. am_sleep_pid=
  2160. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2161. ( sleep 1 ) &
  2162. am_sleep_pid=$!
  2163. fi
  2164. rm -f conftest.file
  2165. test "$program_prefix" != NONE &&
  2166. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2167. # Use a double $ so make ignores it.
  2168. test "$program_suffix" != NONE &&
  2169. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2170. # Double any \ or $.
  2171. # By default was `s,x,x', remove it if useless.
  2172. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2173. program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
  2174. # Expand $ac_aux_dir to an absolute path.
  2175. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2176. if test x"${MISSING+set}" != xset; then
  2177. MISSING="\${SHELL} '$am_aux_dir/missing'"
  2178. fi
  2179. # Use eval to expand $SHELL
  2180. if eval "$MISSING --is-lightweight"; then
  2181. am_missing_run="$MISSING "
  2182. else
  2183. am_missing_run=
  2184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2185. printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2186. fi
  2187. if test x"${install_sh+set}" != xset; then
  2188. case $am_aux_dir in
  2189. *\ * | *\ *)
  2190. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2191. *)
  2192. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2193. esac
  2194. fi
  2195. # Installed binaries are usually stripped using 'strip' when the user
  2196. # run "make install-strip". However 'strip' might not be the right
  2197. # tool to use in cross-compilation environments, therefore Automake
  2198. # will honor the 'STRIP' environment variable to overrule this program.
  2199. if test "$cross_compiling" != no; then
  2200. if test -n "$ac_tool_prefix"; then
  2201. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2202. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2204. printf %s "checking for $ac_word... " >&6; }
  2205. if test ${ac_cv_prog_STRIP+y}
  2206. then :
  2207. printf %s "(cached) " >&6
  2208. else $as_nop
  2209. if test -n "$STRIP"; then
  2210. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2211. else
  2212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2213. for as_dir in $PATH
  2214. do
  2215. IFS=$as_save_IFS
  2216. case $as_dir in #(((
  2217. '') as_dir=./ ;;
  2218. */) ;;
  2219. *) as_dir=$as_dir/ ;;
  2220. esac
  2221. for ac_exec_ext in '' $ac_executable_extensions; do
  2222. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2223. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2224. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2225. break 2
  2226. fi
  2227. done
  2228. done
  2229. IFS=$as_save_IFS
  2230. fi
  2231. fi
  2232. STRIP=$ac_cv_prog_STRIP
  2233. if test -n "$STRIP"; then
  2234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2235. printf "%s\n" "$STRIP" >&6; }
  2236. else
  2237. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2238. printf "%s\n" "no" >&6; }
  2239. fi
  2240. fi
  2241. if test -z "$ac_cv_prog_STRIP"; then
  2242. ac_ct_STRIP=$STRIP
  2243. # Extract the first word of "strip", so it can be a program name with args.
  2244. set dummy strip; ac_word=$2
  2245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2246. printf %s "checking for $ac_word... " >&6; }
  2247. if test ${ac_cv_prog_ac_ct_STRIP+y}
  2248. then :
  2249. printf %s "(cached) " >&6
  2250. else $as_nop
  2251. if test -n "$ac_ct_STRIP"; then
  2252. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2253. else
  2254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2255. for as_dir in $PATH
  2256. do
  2257. IFS=$as_save_IFS
  2258. case $as_dir in #(((
  2259. '') as_dir=./ ;;
  2260. */) ;;
  2261. *) as_dir=$as_dir/ ;;
  2262. esac
  2263. for ac_exec_ext in '' $ac_executable_extensions; do
  2264. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2265. ac_cv_prog_ac_ct_STRIP="strip"
  2266. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2267. break 2
  2268. fi
  2269. done
  2270. done
  2271. IFS=$as_save_IFS
  2272. fi
  2273. fi
  2274. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2275. if test -n "$ac_ct_STRIP"; then
  2276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2277. printf "%s\n" "$ac_ct_STRIP" >&6; }
  2278. else
  2279. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2280. printf "%s\n" "no" >&6; }
  2281. fi
  2282. if test "x$ac_ct_STRIP" = x; then
  2283. STRIP=":"
  2284. else
  2285. case $cross_compiling:$ac_tool_warned in
  2286. yes:)
  2287. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2288. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2289. ac_tool_warned=yes ;;
  2290. esac
  2291. STRIP=$ac_ct_STRIP
  2292. fi
  2293. else
  2294. STRIP="$ac_cv_prog_STRIP"
  2295. fi
  2296. fi
  2297. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
  2299. printf %s "checking for a race-free mkdir -p... " >&6; }
  2300. if test -z "$MKDIR_P"; then
  2301. if test ${ac_cv_path_mkdir+y}
  2302. then :
  2303. printf %s "(cached) " >&6
  2304. else $as_nop
  2305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2306. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2307. do
  2308. IFS=$as_save_IFS
  2309. case $as_dir in #(((
  2310. '') as_dir=./ ;;
  2311. */) ;;
  2312. *) as_dir=$as_dir/ ;;
  2313. esac
  2314. for ac_prog in mkdir gmkdir; do
  2315. for ac_exec_ext in '' $ac_executable_extensions; do
  2316. as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
  2317. case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2318. 'mkdir ('*'coreutils) '* | \
  2319. 'BusyBox '* | \
  2320. 'mkdir (fileutils) '4.1*)
  2321. ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
  2322. break 3;;
  2323. esac
  2324. done
  2325. done
  2326. done
  2327. IFS=$as_save_IFS
  2328. fi
  2329. test -d ./--version && rmdir ./--version
  2330. if test ${ac_cv_path_mkdir+y}; then
  2331. MKDIR_P="$ac_cv_path_mkdir -p"
  2332. else
  2333. # As a last resort, use the slow shell script. Don't cache a
  2334. # value for MKDIR_P within a source directory, because that will
  2335. # break other packages using the cache if that directory is
  2336. # removed, or if the value is a relative name.
  2337. MKDIR_P="$ac_install_sh -d"
  2338. fi
  2339. fi
  2340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2341. printf "%s\n" "$MKDIR_P" >&6; }
  2342. for ac_prog in gawk mawk nawk awk
  2343. do
  2344. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2345. set dummy $ac_prog; ac_word=$2
  2346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2347. printf %s "checking for $ac_word... " >&6; }
  2348. if test ${ac_cv_prog_AWK+y}
  2349. then :
  2350. printf %s "(cached) " >&6
  2351. else $as_nop
  2352. if test -n "$AWK"; then
  2353. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2354. else
  2355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2356. for as_dir in $PATH
  2357. do
  2358. IFS=$as_save_IFS
  2359. case $as_dir in #(((
  2360. '') as_dir=./ ;;
  2361. */) ;;
  2362. *) as_dir=$as_dir/ ;;
  2363. esac
  2364. for ac_exec_ext in '' $ac_executable_extensions; do
  2365. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2366. ac_cv_prog_AWK="$ac_prog"
  2367. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2368. break 2
  2369. fi
  2370. done
  2371. done
  2372. IFS=$as_save_IFS
  2373. fi
  2374. fi
  2375. AWK=$ac_cv_prog_AWK
  2376. if test -n "$AWK"; then
  2377. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2378. printf "%s\n" "$AWK" >&6; }
  2379. else
  2380. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2381. printf "%s\n" "no" >&6; }
  2382. fi
  2383. test -n "$AWK" && break
  2384. done
  2385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2386. printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2387. set x ${MAKE-make}
  2388. ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2389. if eval test \${ac_cv_prog_make_${ac_make}_set+y}
  2390. then :
  2391. printf %s "(cached) " >&6
  2392. else $as_nop
  2393. cat >conftest.make <<\_ACEOF
  2394. SHELL = /bin/sh
  2395. all:
  2396. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2397. _ACEOF
  2398. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2399. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2400. *@@@%%%=?*=@@@%%%*)
  2401. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2402. *)
  2403. eval ac_cv_prog_make_${ac_make}_set=no;;
  2404. esac
  2405. rm -f conftest.make
  2406. fi
  2407. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2408. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2409. printf "%s\n" "yes" >&6; }
  2410. SET_MAKE=
  2411. else
  2412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2413. printf "%s\n" "no" >&6; }
  2414. SET_MAKE="MAKE=${MAKE-make}"
  2415. fi
  2416. rm -rf .tst 2>/dev/null
  2417. mkdir .tst 2>/dev/null
  2418. if test -d .tst; then
  2419. am__leading_dot=.
  2420. else
  2421. am__leading_dot=_
  2422. fi
  2423. rmdir .tst 2>/dev/null
  2424. # Check whether --enable-silent-rules was given.
  2425. if test ${enable_silent_rules+y}
  2426. then :
  2427. enableval=$enable_silent_rules;
  2428. fi
  2429. case $enable_silent_rules in # (((
  2430. yes) AM_DEFAULT_VERBOSITY=0;;
  2431. no) AM_DEFAULT_VERBOSITY=1;;
  2432. *) AM_DEFAULT_VERBOSITY=1;;
  2433. esac
  2434. am_make=${MAKE-make}
  2435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2436. printf %s "checking whether $am_make supports nested variables... " >&6; }
  2437. if test ${am_cv_make_support_nested_variables+y}
  2438. then :
  2439. printf %s "(cached) " >&6
  2440. else $as_nop
  2441. if printf "%s\n" 'TRUE=$(BAR$(V))
  2442. BAR0=false
  2443. BAR1=true
  2444. V=1
  2445. am__doit:
  2446. @$(TRUE)
  2447. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2448. am_cv_make_support_nested_variables=yes
  2449. else
  2450. am_cv_make_support_nested_variables=no
  2451. fi
  2452. fi
  2453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2454. printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
  2455. if test $am_cv_make_support_nested_variables = yes; then
  2456. AM_V='$(V)'
  2457. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2458. else
  2459. AM_V=$AM_DEFAULT_VERBOSITY
  2460. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2461. fi
  2462. AM_BACKSLASH='\'
  2463. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2464. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2465. # is not polluted with repeated "-I."
  2466. am__isrc=' -I$(srcdir)'
  2467. # test to see if srcdir already configured
  2468. if test -f $srcdir/config.status; then
  2469. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2470. fi
  2471. fi
  2472. # test whether we have cygpath
  2473. if test -z "$CYGPATH_W"; then
  2474. if (cygpath --version) >/dev/null 2>/dev/null; then
  2475. CYGPATH_W='cygpath -w'
  2476. else
  2477. CYGPATH_W=echo
  2478. fi
  2479. fi
  2480. # Define the identity of the package.
  2481. PACKAGE='spearl'
  2482. VERSION='0.01'
  2483. printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
  2484. printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
  2485. # Some tools Automake needs.
  2486. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2487. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2488. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2489. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2490. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2491. # For better backward compatibility. To be removed once Automake 1.9.x
  2492. # dies out for good. For more background, see:
  2493. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2494. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2495. mkdir_p='$(MKDIR_P)'
  2496. # We need awk for the "check" target (and possibly the TAP driver). The
  2497. # system "awk" is bad on some platforms.
  2498. # Always define AMTAR for backward compatibility. Yes, it's still used
  2499. # in the wild :-( We should find a proper way to deprecate it ...
  2500. AMTAR='$${TAR-tar}'
  2501. # We'll loop over all known methods to create a tar archive until one works.
  2502. _am_tools='gnutar pax cpio none'
  2503. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2504. # Variables for tags utilities; see am/tags.am
  2505. if test -z "$CTAGS"; then
  2506. CTAGS=ctags
  2507. fi
  2508. if test -z "$ETAGS"; then
  2509. ETAGS=etags
  2510. fi
  2511. if test -z "$CSCOPE"; then
  2512. CSCOPE=cscope
  2513. fi
  2514. # POSIX will say in a future version that running "rm -f" with no argument
  2515. # is OK; and we want to be able to make that assumption in our Makefile
  2516. # recipes. So use an aggressive probe to check that the usage we want is
  2517. # actually supported "in the wild" to an acceptable degree.
  2518. # See automake bug#10828.
  2519. # To make any issue more visible, cause the running configure to be aborted
  2520. # by default if the 'rm' program in use doesn't match our expectations; the
  2521. # user can still override this though.
  2522. if rm -f && rm -fr && rm -rf; then : OK; else
  2523. cat >&2 <<'END'
  2524. Oops!
  2525. Your 'rm' program seems unable to run without file operands specified
  2526. on the command line, even when the '-f' option is present. This is contrary
  2527. to the behaviour of most rm programs out there, and not conforming with
  2528. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2529. Please tell bug-automake@gnu.org about your system, including the value
  2530. of your $PATH and any error possibly output before this message. This
  2531. can help us improve future automake versions.
  2532. END
  2533. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2534. echo 'Configuration will proceed anyway, since you have set the' >&2
  2535. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2536. echo >&2
  2537. else
  2538. cat >&2 <<'END'
  2539. Aborting the configuration process, to ensure you take notice of the issue.
  2540. You can download and install GNU coreutils to get an 'rm' implementation
  2541. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2542. If you want to complete the configuration process using your problematic
  2543. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2544. to "yes", and re-run configure.
  2545. END
  2546. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2547. fi
  2548. fi
  2549. ac_config_files="$ac_config_files Makefile"
  2550. CFLAGS="-Iinclude -Wall -Wextra -Werror"
  2551. ac_ext=c
  2552. ac_cpp='$CPP $CPPFLAGS'
  2553. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2554. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2555. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2556. if test -n "$ac_tool_prefix"; then
  2557. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2558. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2560. printf %s "checking for $ac_word... " >&6; }
  2561. if test ${ac_cv_prog_CC+y}
  2562. then :
  2563. printf %s "(cached) " >&6
  2564. else $as_nop
  2565. if test -n "$CC"; then
  2566. ac_cv_prog_CC="$CC" # Let the user override the test.
  2567. else
  2568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2569. for as_dir in $PATH
  2570. do
  2571. IFS=$as_save_IFS
  2572. case $as_dir in #(((
  2573. '') as_dir=./ ;;
  2574. */) ;;
  2575. *) as_dir=$as_dir/ ;;
  2576. esac
  2577. for ac_exec_ext in '' $ac_executable_extensions; do
  2578. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2579. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2580. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2581. break 2
  2582. fi
  2583. done
  2584. done
  2585. IFS=$as_save_IFS
  2586. fi
  2587. fi
  2588. CC=$ac_cv_prog_CC
  2589. if test -n "$CC"; then
  2590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2591. printf "%s\n" "$CC" >&6; }
  2592. else
  2593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2594. printf "%s\n" "no" >&6; }
  2595. fi
  2596. fi
  2597. if test -z "$ac_cv_prog_CC"; then
  2598. ac_ct_CC=$CC
  2599. # Extract the first word of "gcc", so it can be a program name with args.
  2600. set dummy gcc; ac_word=$2
  2601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2602. printf %s "checking for $ac_word... " >&6; }
  2603. if test ${ac_cv_prog_ac_ct_CC+y}
  2604. then :
  2605. printf %s "(cached) " >&6
  2606. else $as_nop
  2607. if test -n "$ac_ct_CC"; then
  2608. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2609. else
  2610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2611. for as_dir in $PATH
  2612. do
  2613. IFS=$as_save_IFS
  2614. case $as_dir in #(((
  2615. '') as_dir=./ ;;
  2616. */) ;;
  2617. *) as_dir=$as_dir/ ;;
  2618. esac
  2619. for ac_exec_ext in '' $ac_executable_extensions; do
  2620. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2621. ac_cv_prog_ac_ct_CC="gcc"
  2622. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2623. break 2
  2624. fi
  2625. done
  2626. done
  2627. IFS=$as_save_IFS
  2628. fi
  2629. fi
  2630. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2631. if test -n "$ac_ct_CC"; then
  2632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2633. printf "%s\n" "$ac_ct_CC" >&6; }
  2634. else
  2635. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2636. printf "%s\n" "no" >&6; }
  2637. fi
  2638. if test "x$ac_ct_CC" = x; then
  2639. CC=""
  2640. else
  2641. case $cross_compiling:$ac_tool_warned in
  2642. yes:)
  2643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2644. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2645. ac_tool_warned=yes ;;
  2646. esac
  2647. CC=$ac_ct_CC
  2648. fi
  2649. else
  2650. CC="$ac_cv_prog_CC"
  2651. fi
  2652. if test -z "$CC"; then
  2653. if test -n "$ac_tool_prefix"; then
  2654. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2655. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2657. printf %s "checking for $ac_word... " >&6; }
  2658. if test ${ac_cv_prog_CC+y}
  2659. then :
  2660. printf %s "(cached) " >&6
  2661. else $as_nop
  2662. if test -n "$CC"; then
  2663. ac_cv_prog_CC="$CC" # Let the user override the test.
  2664. else
  2665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2666. for as_dir in $PATH
  2667. do
  2668. IFS=$as_save_IFS
  2669. case $as_dir in #(((
  2670. '') as_dir=./ ;;
  2671. */) ;;
  2672. *) as_dir=$as_dir/ ;;
  2673. esac
  2674. for ac_exec_ext in '' $ac_executable_extensions; do
  2675. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2676. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2677. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2678. break 2
  2679. fi
  2680. done
  2681. done
  2682. IFS=$as_save_IFS
  2683. fi
  2684. fi
  2685. CC=$ac_cv_prog_CC
  2686. if test -n "$CC"; then
  2687. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2688. printf "%s\n" "$CC" >&6; }
  2689. else
  2690. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2691. printf "%s\n" "no" >&6; }
  2692. fi
  2693. fi
  2694. fi
  2695. if test -z "$CC"; then
  2696. # Extract the first word of "cc", so it can be a program name with args.
  2697. set dummy cc; ac_word=$2
  2698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2699. printf %s "checking for $ac_word... " >&6; }
  2700. if test ${ac_cv_prog_CC+y}
  2701. then :
  2702. printf %s "(cached) " >&6
  2703. else $as_nop
  2704. if test -n "$CC"; then
  2705. ac_cv_prog_CC="$CC" # Let the user override the test.
  2706. else
  2707. ac_prog_rejected=no
  2708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2709. for as_dir in $PATH
  2710. do
  2711. IFS=$as_save_IFS
  2712. case $as_dir in #(((
  2713. '') as_dir=./ ;;
  2714. */) ;;
  2715. *) as_dir=$as_dir/ ;;
  2716. esac
  2717. for ac_exec_ext in '' $ac_executable_extensions; do
  2718. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2719. if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2720. ac_prog_rejected=yes
  2721. continue
  2722. fi
  2723. ac_cv_prog_CC="cc"
  2724. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2725. break 2
  2726. fi
  2727. done
  2728. done
  2729. IFS=$as_save_IFS
  2730. if test $ac_prog_rejected = yes; then
  2731. # We found a bogon in the path, so make sure we never use it.
  2732. set dummy $ac_cv_prog_CC
  2733. shift
  2734. if test $# != 0; then
  2735. # We chose a different compiler from the bogus one.
  2736. # However, it has the same basename, so the bogon will be chosen
  2737. # first if we set CC to just the basename; use the full file name.
  2738. shift
  2739. ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
  2740. fi
  2741. fi
  2742. fi
  2743. fi
  2744. CC=$ac_cv_prog_CC
  2745. if test -n "$CC"; then
  2746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2747. printf "%s\n" "$CC" >&6; }
  2748. else
  2749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2750. printf "%s\n" "no" >&6; }
  2751. fi
  2752. fi
  2753. if test -z "$CC"; then
  2754. if test -n "$ac_tool_prefix"; then
  2755. for ac_prog in cl.exe
  2756. do
  2757. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2758. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2760. printf %s "checking for $ac_word... " >&6; }
  2761. if test ${ac_cv_prog_CC+y}
  2762. then :
  2763. printf %s "(cached) " >&6
  2764. else $as_nop
  2765. if test -n "$CC"; then
  2766. ac_cv_prog_CC="$CC" # Let the user override the test.
  2767. else
  2768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2769. for as_dir in $PATH
  2770. do
  2771. IFS=$as_save_IFS
  2772. case $as_dir in #(((
  2773. '') as_dir=./ ;;
  2774. */) ;;
  2775. *) as_dir=$as_dir/ ;;
  2776. esac
  2777. for ac_exec_ext in '' $ac_executable_extensions; do
  2778. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2779. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2780. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2781. break 2
  2782. fi
  2783. done
  2784. done
  2785. IFS=$as_save_IFS
  2786. fi
  2787. fi
  2788. CC=$ac_cv_prog_CC
  2789. if test -n "$CC"; then
  2790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2791. printf "%s\n" "$CC" >&6; }
  2792. else
  2793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2794. printf "%s\n" "no" >&6; }
  2795. fi
  2796. test -n "$CC" && break
  2797. done
  2798. fi
  2799. if test -z "$CC"; then
  2800. ac_ct_CC=$CC
  2801. for ac_prog in cl.exe
  2802. do
  2803. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2804. set dummy $ac_prog; ac_word=$2
  2805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2806. printf %s "checking for $ac_word... " >&6; }
  2807. if test ${ac_cv_prog_ac_ct_CC+y}
  2808. then :
  2809. printf %s "(cached) " >&6
  2810. else $as_nop
  2811. if test -n "$ac_ct_CC"; then
  2812. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2813. else
  2814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2815. for as_dir in $PATH
  2816. do
  2817. IFS=$as_save_IFS
  2818. case $as_dir in #(((
  2819. '') as_dir=./ ;;
  2820. */) ;;
  2821. *) as_dir=$as_dir/ ;;
  2822. esac
  2823. for ac_exec_ext in '' $ac_executable_extensions; do
  2824. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2825. ac_cv_prog_ac_ct_CC="$ac_prog"
  2826. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2827. break 2
  2828. fi
  2829. done
  2830. done
  2831. IFS=$as_save_IFS
  2832. fi
  2833. fi
  2834. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2835. if test -n "$ac_ct_CC"; then
  2836. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2837. printf "%s\n" "$ac_ct_CC" >&6; }
  2838. else
  2839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2840. printf "%s\n" "no" >&6; }
  2841. fi
  2842. test -n "$ac_ct_CC" && break
  2843. done
  2844. if test "x$ac_ct_CC" = x; then
  2845. CC=""
  2846. else
  2847. case $cross_compiling:$ac_tool_warned in
  2848. yes:)
  2849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2850. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2851. ac_tool_warned=yes ;;
  2852. esac
  2853. CC=$ac_ct_CC
  2854. fi
  2855. fi
  2856. fi
  2857. if test -z "$CC"; then
  2858. if test -n "$ac_tool_prefix"; then
  2859. # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
  2860. set dummy ${ac_tool_prefix}clang; ac_word=$2
  2861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2862. printf %s "checking for $ac_word... " >&6; }
  2863. if test ${ac_cv_prog_CC+y}
  2864. then :
  2865. printf %s "(cached) " >&6
  2866. else $as_nop
  2867. if test -n "$CC"; then
  2868. ac_cv_prog_CC="$CC" # Let the user override the test.
  2869. else
  2870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2871. for as_dir in $PATH
  2872. do
  2873. IFS=$as_save_IFS
  2874. case $as_dir in #(((
  2875. '') as_dir=./ ;;
  2876. */) ;;
  2877. *) as_dir=$as_dir/ ;;
  2878. esac
  2879. for ac_exec_ext in '' $ac_executable_extensions; do
  2880. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2881. ac_cv_prog_CC="${ac_tool_prefix}clang"
  2882. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2883. break 2
  2884. fi
  2885. done
  2886. done
  2887. IFS=$as_save_IFS
  2888. fi
  2889. fi
  2890. CC=$ac_cv_prog_CC
  2891. if test -n "$CC"; then
  2892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2893. printf "%s\n" "$CC" >&6; }
  2894. else
  2895. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2896. printf "%s\n" "no" >&6; }
  2897. fi
  2898. fi
  2899. if test -z "$ac_cv_prog_CC"; then
  2900. ac_ct_CC=$CC
  2901. # Extract the first word of "clang", so it can be a program name with args.
  2902. set dummy clang; ac_word=$2
  2903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2904. printf %s "checking for $ac_word... " >&6; }
  2905. if test ${ac_cv_prog_ac_ct_CC+y}
  2906. then :
  2907. printf %s "(cached) " >&6
  2908. else $as_nop
  2909. if test -n "$ac_ct_CC"; then
  2910. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2911. else
  2912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2913. for as_dir in $PATH
  2914. do
  2915. IFS=$as_save_IFS
  2916. case $as_dir in #(((
  2917. '') as_dir=./ ;;
  2918. */) ;;
  2919. *) as_dir=$as_dir/ ;;
  2920. esac
  2921. for ac_exec_ext in '' $ac_executable_extensions; do
  2922. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  2923. ac_cv_prog_ac_ct_CC="clang"
  2924. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  2925. break 2
  2926. fi
  2927. done
  2928. done
  2929. IFS=$as_save_IFS
  2930. fi
  2931. fi
  2932. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2933. if test -n "$ac_ct_CC"; then
  2934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2935. printf "%s\n" "$ac_ct_CC" >&6; }
  2936. else
  2937. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2938. printf "%s\n" "no" >&6; }
  2939. fi
  2940. if test "x$ac_ct_CC" = x; then
  2941. CC=""
  2942. else
  2943. case $cross_compiling:$ac_tool_warned in
  2944. yes:)
  2945. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2946. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2947. ac_tool_warned=yes ;;
  2948. esac
  2949. CC=$ac_ct_CC
  2950. fi
  2951. else
  2952. CC="$ac_cv_prog_CC"
  2953. fi
  2954. fi
  2955. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2956. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  2957. as_fn_error $? "no acceptable C compiler found in \$PATH
  2958. See \`config.log' for more details" "$LINENO" 5; }
  2959. # Provide some information about the compiler.
  2960. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2961. set X $ac_compile
  2962. ac_compiler=$2
  2963. for ac_option in --version -v -V -qversion -version; do
  2964. { { ac_try="$ac_compiler $ac_option >&5"
  2965. case "(($ac_try" in
  2966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2967. *) ac_try_echo=$ac_try;;
  2968. esac
  2969. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2970. printf "%s\n" "$ac_try_echo"; } >&5
  2971. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2972. ac_status=$?
  2973. if test -s conftest.err; then
  2974. sed '10a\
  2975. ... rest of stderr output deleted ...
  2976. 10q' conftest.err >conftest.er1
  2977. cat conftest.er1 >&5
  2978. fi
  2979. rm -f conftest.er1 conftest.err
  2980. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2981. test $ac_status = 0; }
  2982. done
  2983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2984. /* end confdefs.h. */
  2985. int
  2986. main (void)
  2987. {
  2988. ;
  2989. return 0;
  2990. }
  2991. _ACEOF
  2992. ac_clean_files_save=$ac_clean_files
  2993. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2994. # Try to create an executable without -o first, disregard a.out.
  2995. # It will help us diagnose broken compilers, and finding out an intuition
  2996. # of exeext.
  2997. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2998. printf %s "checking whether the C compiler works... " >&6; }
  2999. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3000. # The possible output files:
  3001. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3002. ac_rmfiles=
  3003. for ac_file in $ac_files
  3004. do
  3005. case $ac_file in
  3006. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3007. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3008. esac
  3009. done
  3010. rm -f $ac_rmfiles
  3011. if { { ac_try="$ac_link_default"
  3012. case "(($ac_try" in
  3013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3014. *) ac_try_echo=$ac_try;;
  3015. esac
  3016. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3017. printf "%s\n" "$ac_try_echo"; } >&5
  3018. (eval "$ac_link_default") 2>&5
  3019. ac_status=$?
  3020. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3021. test $ac_status = 0; }
  3022. then :
  3023. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3024. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3025. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3026. # so that the user can short-circuit this test for compilers unknown to
  3027. # Autoconf.
  3028. for ac_file in $ac_files ''
  3029. do
  3030. test -f "$ac_file" || continue
  3031. case $ac_file in
  3032. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3033. ;;
  3034. [ab].out )
  3035. # We found the default executable, but exeext='' is most
  3036. # certainly right.
  3037. break;;
  3038. *.* )
  3039. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  3040. then :; else
  3041. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3042. fi
  3043. # We set ac_cv_exeext here because the later test for it is not
  3044. # safe: cross compilers may not add the suffix if given an `-o'
  3045. # argument, so we may need to know it at that point already.
  3046. # Even if this section looks crufty: it has the advantage of
  3047. # actually working.
  3048. break;;
  3049. * )
  3050. break;;
  3051. esac
  3052. done
  3053. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3054. else $as_nop
  3055. ac_file=''
  3056. fi
  3057. if test -z "$ac_file"
  3058. then :
  3059. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3060. printf "%s\n" "no" >&6; }
  3061. printf "%s\n" "$as_me: failed program was:" >&5
  3062. sed 's/^/| /' conftest.$ac_ext >&5
  3063. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3064. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3065. as_fn_error 77 "C compiler cannot create executables
  3066. See \`config.log' for more details" "$LINENO" 5; }
  3067. else $as_nop
  3068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3069. printf "%s\n" "yes" >&6; }
  3070. fi
  3071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3072. printf %s "checking for C compiler default output file name... " >&6; }
  3073. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3074. printf "%s\n" "$ac_file" >&6; }
  3075. ac_exeext=$ac_cv_exeext
  3076. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3077. ac_clean_files=$ac_clean_files_save
  3078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3079. printf %s "checking for suffix of executables... " >&6; }
  3080. if { { ac_try="$ac_link"
  3081. case "(($ac_try" in
  3082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3083. *) ac_try_echo=$ac_try;;
  3084. esac
  3085. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3086. printf "%s\n" "$ac_try_echo"; } >&5
  3087. (eval "$ac_link") 2>&5
  3088. ac_status=$?
  3089. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3090. test $ac_status = 0; }
  3091. then :
  3092. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3093. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3094. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3095. # `rm'.
  3096. for ac_file in conftest.exe conftest conftest.*; do
  3097. test -f "$ac_file" || continue
  3098. case $ac_file in
  3099. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3100. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3101. break;;
  3102. * ) break;;
  3103. esac
  3104. done
  3105. else $as_nop
  3106. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3107. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3108. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3109. See \`config.log' for more details" "$LINENO" 5; }
  3110. fi
  3111. rm -f conftest conftest$ac_cv_exeext
  3112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3113. printf "%s\n" "$ac_cv_exeext" >&6; }
  3114. rm -f conftest.$ac_ext
  3115. EXEEXT=$ac_cv_exeext
  3116. ac_exeext=$EXEEXT
  3117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3118. /* end confdefs.h. */
  3119. #include <stdio.h>
  3120. int
  3121. main (void)
  3122. {
  3123. FILE *f = fopen ("conftest.out", "w");
  3124. return ferror (f) || fclose (f) != 0;
  3125. ;
  3126. return 0;
  3127. }
  3128. _ACEOF
  3129. ac_clean_files="$ac_clean_files conftest.out"
  3130. # Check that the compiler produces executables we can run. If not, either
  3131. # the compiler is broken, or we cross compile.
  3132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3133. printf %s "checking whether we are cross compiling... " >&6; }
  3134. if test "$cross_compiling" != yes; then
  3135. { { ac_try="$ac_link"
  3136. case "(($ac_try" in
  3137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3138. *) ac_try_echo=$ac_try;;
  3139. esac
  3140. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3141. printf "%s\n" "$ac_try_echo"; } >&5
  3142. (eval "$ac_link") 2>&5
  3143. ac_status=$?
  3144. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3145. test $ac_status = 0; }
  3146. if { ac_try='./conftest$ac_cv_exeext'
  3147. { { case "(($ac_try" in
  3148. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3149. *) ac_try_echo=$ac_try;;
  3150. esac
  3151. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3152. printf "%s\n" "$ac_try_echo"; } >&5
  3153. (eval "$ac_try") 2>&5
  3154. ac_status=$?
  3155. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3156. test $ac_status = 0; }; }; then
  3157. cross_compiling=no
  3158. else
  3159. if test "$cross_compiling" = maybe; then
  3160. cross_compiling=yes
  3161. else
  3162. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3163. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3164. as_fn_error 77 "cannot run C compiled programs.
  3165. If you meant to cross compile, use \`--host'.
  3166. See \`config.log' for more details" "$LINENO" 5; }
  3167. fi
  3168. fi
  3169. fi
  3170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3171. printf "%s\n" "$cross_compiling" >&6; }
  3172. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3173. ac_clean_files=$ac_clean_files_save
  3174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3175. printf %s "checking for suffix of object files... " >&6; }
  3176. if test ${ac_cv_objext+y}
  3177. then :
  3178. printf %s "(cached) " >&6
  3179. else $as_nop
  3180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3181. /* end confdefs.h. */
  3182. int
  3183. main (void)
  3184. {
  3185. ;
  3186. return 0;
  3187. }
  3188. _ACEOF
  3189. rm -f conftest.o conftest.obj
  3190. if { { ac_try="$ac_compile"
  3191. case "(($ac_try" in
  3192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3193. *) ac_try_echo=$ac_try;;
  3194. esac
  3195. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3196. printf "%s\n" "$ac_try_echo"; } >&5
  3197. (eval "$ac_compile") 2>&5
  3198. ac_status=$?
  3199. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3200. test $ac_status = 0; }
  3201. then :
  3202. for ac_file in conftest.o conftest.obj conftest.*; do
  3203. test -f "$ac_file" || continue;
  3204. case $ac_file in
  3205. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3206. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3207. break;;
  3208. esac
  3209. done
  3210. else $as_nop
  3211. printf "%s\n" "$as_me: failed program was:" >&5
  3212. sed 's/^/| /' conftest.$ac_ext >&5
  3213. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3214. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3215. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3216. See \`config.log' for more details" "$LINENO" 5; }
  3217. fi
  3218. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3219. fi
  3220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3221. printf "%s\n" "$ac_cv_objext" >&6; }
  3222. OBJEXT=$ac_cv_objext
  3223. ac_objext=$OBJEXT
  3224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  3225. printf %s "checking whether the compiler supports GNU C... " >&6; }
  3226. if test ${ac_cv_c_compiler_gnu+y}
  3227. then :
  3228. printf %s "(cached) " >&6
  3229. else $as_nop
  3230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3231. /* end confdefs.h. */
  3232. int
  3233. main (void)
  3234. {
  3235. #ifndef __GNUC__
  3236. choke me
  3237. #endif
  3238. ;
  3239. return 0;
  3240. }
  3241. _ACEOF
  3242. if ac_fn_c_try_compile "$LINENO"
  3243. then :
  3244. ac_compiler_gnu=yes
  3245. else $as_nop
  3246. ac_compiler_gnu=no
  3247. fi
  3248. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3249. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3250. fi
  3251. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3252. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  3253. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3254. if test $ac_compiler_gnu = yes; then
  3255. GCC=yes
  3256. else
  3257. GCC=
  3258. fi
  3259. ac_test_CFLAGS=${CFLAGS+y}
  3260. ac_save_CFLAGS=$CFLAGS
  3261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3262. printf %s "checking whether $CC accepts -g... " >&6; }
  3263. if test ${ac_cv_prog_cc_g+y}
  3264. then :
  3265. printf %s "(cached) " >&6
  3266. else $as_nop
  3267. ac_save_c_werror_flag=$ac_c_werror_flag
  3268. ac_c_werror_flag=yes
  3269. ac_cv_prog_cc_g=no
  3270. CFLAGS="-g"
  3271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3272. /* end confdefs.h. */
  3273. int
  3274. main (void)
  3275. {
  3276. ;
  3277. return 0;
  3278. }
  3279. _ACEOF
  3280. if ac_fn_c_try_compile "$LINENO"
  3281. then :
  3282. ac_cv_prog_cc_g=yes
  3283. else $as_nop
  3284. CFLAGS=""
  3285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3286. /* end confdefs.h. */
  3287. int
  3288. main (void)
  3289. {
  3290. ;
  3291. return 0;
  3292. }
  3293. _ACEOF
  3294. if ac_fn_c_try_compile "$LINENO"
  3295. then :
  3296. else $as_nop
  3297. ac_c_werror_flag=$ac_save_c_werror_flag
  3298. CFLAGS="-g"
  3299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3300. /* end confdefs.h. */
  3301. int
  3302. main (void)
  3303. {
  3304. ;
  3305. return 0;
  3306. }
  3307. _ACEOF
  3308. if ac_fn_c_try_compile "$LINENO"
  3309. then :
  3310. ac_cv_prog_cc_g=yes
  3311. fi
  3312. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3313. fi
  3314. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3315. fi
  3316. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  3317. ac_c_werror_flag=$ac_save_c_werror_flag
  3318. fi
  3319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3320. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  3321. if test $ac_test_CFLAGS; then
  3322. CFLAGS=$ac_save_CFLAGS
  3323. elif test $ac_cv_prog_cc_g = yes; then
  3324. if test "$GCC" = yes; then
  3325. CFLAGS="-g -O2"
  3326. else
  3327. CFLAGS="-g"
  3328. fi
  3329. else
  3330. if test "$GCC" = yes; then
  3331. CFLAGS="-O2"
  3332. else
  3333. CFLAGS=
  3334. fi
  3335. fi
  3336. ac_prog_cc_stdc=no
  3337. if test x$ac_prog_cc_stdc = xno
  3338. then :
  3339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  3340. printf %s "checking for $CC option to enable C11 features... " >&6; }
  3341. if test ${ac_cv_prog_cc_c11+y}
  3342. then :
  3343. printf %s "(cached) " >&6
  3344. else $as_nop
  3345. ac_cv_prog_cc_c11=no
  3346. ac_save_CC=$CC
  3347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3348. /* end confdefs.h. */
  3349. $ac_c_conftest_c11_program
  3350. _ACEOF
  3351. for ac_arg in '' -std=gnu11
  3352. do
  3353. CC="$ac_save_CC $ac_arg"
  3354. if ac_fn_c_try_compile "$LINENO"
  3355. then :
  3356. ac_cv_prog_cc_c11=$ac_arg
  3357. fi
  3358. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3359. test "x$ac_cv_prog_cc_c11" != "xno" && break
  3360. done
  3361. rm -f conftest.$ac_ext
  3362. CC=$ac_save_CC
  3363. fi
  3364. if test "x$ac_cv_prog_cc_c11" = xno
  3365. then :
  3366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3367. printf "%s\n" "unsupported" >&6; }
  3368. else $as_nop
  3369. if test "x$ac_cv_prog_cc_c11" = x
  3370. then :
  3371. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3372. printf "%s\n" "none needed" >&6; }
  3373. else $as_nop
  3374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  3375. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  3376. CC="$CC $ac_cv_prog_cc_c11"
  3377. fi
  3378. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  3379. ac_prog_cc_stdc=c11
  3380. fi
  3381. fi
  3382. if test x$ac_prog_cc_stdc = xno
  3383. then :
  3384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  3385. printf %s "checking for $CC option to enable C99 features... " >&6; }
  3386. if test ${ac_cv_prog_cc_c99+y}
  3387. then :
  3388. printf %s "(cached) " >&6
  3389. else $as_nop
  3390. ac_cv_prog_cc_c99=no
  3391. ac_save_CC=$CC
  3392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3393. /* end confdefs.h. */
  3394. $ac_c_conftest_c99_program
  3395. _ACEOF
  3396. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  3397. do
  3398. CC="$ac_save_CC $ac_arg"
  3399. if ac_fn_c_try_compile "$LINENO"
  3400. then :
  3401. ac_cv_prog_cc_c99=$ac_arg
  3402. fi
  3403. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3404. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3405. done
  3406. rm -f conftest.$ac_ext
  3407. CC=$ac_save_CC
  3408. fi
  3409. if test "x$ac_cv_prog_cc_c99" = xno
  3410. then :
  3411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3412. printf "%s\n" "unsupported" >&6; }
  3413. else $as_nop
  3414. if test "x$ac_cv_prog_cc_c99" = x
  3415. then :
  3416. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3417. printf "%s\n" "none needed" >&6; }
  3418. else $as_nop
  3419. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3420. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  3421. CC="$CC $ac_cv_prog_cc_c99"
  3422. fi
  3423. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3424. ac_prog_cc_stdc=c99
  3425. fi
  3426. fi
  3427. if test x$ac_prog_cc_stdc = xno
  3428. then :
  3429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  3430. printf %s "checking for $CC option to enable C89 features... " >&6; }
  3431. if test ${ac_cv_prog_cc_c89+y}
  3432. then :
  3433. printf %s "(cached) " >&6
  3434. else $as_nop
  3435. ac_cv_prog_cc_c89=no
  3436. ac_save_CC=$CC
  3437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3438. /* end confdefs.h. */
  3439. $ac_c_conftest_c89_program
  3440. _ACEOF
  3441. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3442. do
  3443. CC="$ac_save_CC $ac_arg"
  3444. if ac_fn_c_try_compile "$LINENO"
  3445. then :
  3446. ac_cv_prog_cc_c89=$ac_arg
  3447. fi
  3448. rm -f core conftest.err conftest.$ac_objext conftest.beam
  3449. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3450. done
  3451. rm -f conftest.$ac_ext
  3452. CC=$ac_save_CC
  3453. fi
  3454. if test "x$ac_cv_prog_cc_c89" = xno
  3455. then :
  3456. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3457. printf "%s\n" "unsupported" >&6; }
  3458. else $as_nop
  3459. if test "x$ac_cv_prog_cc_c89" = x
  3460. then :
  3461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3462. printf "%s\n" "none needed" >&6; }
  3463. else $as_nop
  3464. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3465. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  3466. CC="$CC $ac_cv_prog_cc_c89"
  3467. fi
  3468. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  3469. ac_prog_cc_stdc=c89
  3470. fi
  3471. fi
  3472. ac_ext=c
  3473. ac_cpp='$CPP $CPPFLAGS'
  3474. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3475. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3476. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3477. ac_ext=c
  3478. ac_cpp='$CPP $CPPFLAGS'
  3479. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3480. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3481. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3483. printf %s "checking whether $CC understands -c and -o together... " >&6; }
  3484. if test ${am_cv_prog_cc_c_o+y}
  3485. then :
  3486. printf %s "(cached) " >&6
  3487. else $as_nop
  3488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3489. /* end confdefs.h. */
  3490. int
  3491. main (void)
  3492. {
  3493. ;
  3494. return 0;
  3495. }
  3496. _ACEOF
  3497. # Make sure it works both with $CC and with simple cc.
  3498. # Following AC_PROG_CC_C_O, we do the test twice because some
  3499. # compilers refuse to overwrite an existing .o file with -o,
  3500. # though they will create one.
  3501. am_cv_prog_cc_c_o=yes
  3502. for am_i in 1 2; do
  3503. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3504. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3505. ac_status=$?
  3506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3507. (exit $ac_status); } \
  3508. && test -f conftest2.$ac_objext; then
  3509. : OK
  3510. else
  3511. am_cv_prog_cc_c_o=no
  3512. break
  3513. fi
  3514. done
  3515. rm -f core conftest*
  3516. unset am_i
  3517. fi
  3518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3519. printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
  3520. if test "$am_cv_prog_cc_c_o" != yes; then
  3521. # Losing compiler, so override with the script.
  3522. # FIXME: It is wrong to rewrite CC.
  3523. # But if we don't then we get into trouble of one sort or another.
  3524. # A longer-term fix would be to have automake use am__CC in this case,
  3525. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3526. CC="$am_aux_dir/compile $CC"
  3527. fi
  3528. ac_ext=c
  3529. ac_cpp='$CPP $CPPFLAGS'
  3530. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3531. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3532. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3533. DEPDIR="${am__leading_dot}deps"
  3534. ac_config_commands="$ac_config_commands depfiles"
  3535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3536. printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3537. cat > confinc.mk << 'END'
  3538. am__doit:
  3539. @echo this is the am__doit target >confinc.out
  3540. .PHONY: am__doit
  3541. END
  3542. am__include="#"
  3543. am__quote=
  3544. # BSD make does it like this.
  3545. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3546. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3547. echo 'include confinc.mk # ignored' > confmf.GNU
  3548. _am_result=no
  3549. for s in GNU BSD; do
  3550. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3551. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3552. ac_status=$?
  3553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3554. (exit $ac_status); }
  3555. case $?:`cat confinc.out 2>/dev/null` in #(
  3556. '0:this is the am__doit target') :
  3557. case $s in #(
  3558. BSD) :
  3559. am__include='.include' am__quote='"' ;; #(
  3560. *) :
  3561. am__include='include' am__quote='' ;;
  3562. esac ;; #(
  3563. *) :
  3564. ;;
  3565. esac
  3566. if test "$am__include" != "#"; then
  3567. _am_result="yes ($s style)"
  3568. break
  3569. fi
  3570. done
  3571. rm -f confinc.* confmf.*
  3572. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3573. printf "%s\n" "${_am_result}" >&6; }
  3574. # Check whether --enable-dependency-tracking was given.
  3575. if test ${enable_dependency_tracking+y}
  3576. then :
  3577. enableval=$enable_dependency_tracking;
  3578. fi
  3579. if test "x$enable_dependency_tracking" != xno; then
  3580. am_depcomp="$ac_aux_dir/depcomp"
  3581. AMDEPBACKSLASH='\'
  3582. am__nodep='_no'
  3583. fi
  3584. if test "x$enable_dependency_tracking" != xno; then
  3585. AMDEP_TRUE=
  3586. AMDEP_FALSE='#'
  3587. else
  3588. AMDEP_TRUE='#'
  3589. AMDEP_FALSE=
  3590. fi
  3591. depcc="$CC" am_compiler_list=
  3592. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3593. printf %s "checking dependency style of $depcc... " >&6; }
  3594. if test ${am_cv_CC_dependencies_compiler_type+y}
  3595. then :
  3596. printf %s "(cached) " >&6
  3597. else $as_nop
  3598. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3599. # We make a subdir and do the tests there. Otherwise we can end up
  3600. # making bogus files that we don't know about and never remove. For
  3601. # instance it was reported that on HP-UX the gcc test will end up
  3602. # making a dummy file named 'D' -- because '-MD' means "put the output
  3603. # in D".
  3604. rm -rf conftest.dir
  3605. mkdir conftest.dir
  3606. # Copy depcomp to subdir because otherwise we won't find it if we're
  3607. # using a relative directory.
  3608. cp "$am_depcomp" conftest.dir
  3609. cd conftest.dir
  3610. # We will build objects and dependencies in a subdirectory because
  3611. # it helps to detect inapplicable dependency modes. For instance
  3612. # both Tru64's cc and ICC support -MD to output dependencies as a
  3613. # side effect of compilation, but ICC will put the dependencies in
  3614. # the current directory while Tru64 will put them in the object
  3615. # directory.
  3616. mkdir sub
  3617. am_cv_CC_dependencies_compiler_type=none
  3618. if test "$am_compiler_list" = ""; then
  3619. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3620. fi
  3621. am__universal=false
  3622. case " $depcc " in #(
  3623. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3624. esac
  3625. for depmode in $am_compiler_list; do
  3626. # Setup a source with many dependencies, because some compilers
  3627. # like to wrap large dependency lists on column 80 (with \), and
  3628. # we should not choose a depcomp mode which is confused by this.
  3629. #
  3630. # We need to recreate these files for each test, as the compiler may
  3631. # overwrite some of them when testing with obscure command lines.
  3632. # This happens at least with the AIX C compiler.
  3633. : > sub/conftest.c
  3634. for i in 1 2 3 4 5 6; do
  3635. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3636. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3637. # Solaris 10 /bin/sh.
  3638. echo '/* dummy */' > sub/conftst$i.h
  3639. done
  3640. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3641. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3642. # mode. It turns out that the SunPro C++ compiler does not properly
  3643. # handle '-M -o', and we need to detect this. Also, some Intel
  3644. # versions had trouble with output in subdirs.
  3645. am__obj=sub/conftest.${OBJEXT-o}
  3646. am__minus_obj="-o $am__obj"
  3647. case $depmode in
  3648. gcc)
  3649. # This depmode causes a compiler race in universal mode.
  3650. test "$am__universal" = false || continue
  3651. ;;
  3652. nosideeffect)
  3653. # After this tag, mechanisms are not by side-effect, so they'll
  3654. # only be used when explicitly requested.
  3655. if test "x$enable_dependency_tracking" = xyes; then
  3656. continue
  3657. else
  3658. break
  3659. fi
  3660. ;;
  3661. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3662. # This compiler won't grok '-c -o', but also, the minuso test has
  3663. # not run yet. These depmodes are late enough in the game, and
  3664. # so weak that their functioning should not be impacted.
  3665. am__obj=conftest.${OBJEXT-o}
  3666. am__minus_obj=
  3667. ;;
  3668. none) break ;;
  3669. esac
  3670. if depmode=$depmode \
  3671. source=sub/conftest.c object=$am__obj \
  3672. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3673. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3674. >/dev/null 2>conftest.err &&
  3675. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3676. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3677. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3678. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3679. # icc doesn't choke on unknown options, it will just issue warnings
  3680. # or remarks (even with -Werror). So we grep stderr for any message
  3681. # that says an option was ignored or not supported.
  3682. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3683. # icc: Command line warning: ignoring option '-M'; no argument required
  3684. # The diagnosis changed in icc 8.0:
  3685. # icc: Command line remark: option '-MP' not supported
  3686. if (grep 'ignoring option' conftest.err ||
  3687. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3688. am_cv_CC_dependencies_compiler_type=$depmode
  3689. break
  3690. fi
  3691. fi
  3692. done
  3693. cd ..
  3694. rm -rf conftest.dir
  3695. else
  3696. am_cv_CC_dependencies_compiler_type=none
  3697. fi
  3698. fi
  3699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3700. printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
  3701. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3702. if
  3703. test "x$enable_dependency_tracking" != xno \
  3704. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3705. am__fastdepCC_TRUE=
  3706. am__fastdepCC_FALSE='#'
  3707. else
  3708. am__fastdepCC_TRUE='#'
  3709. am__fastdepCC_FALSE=
  3710. fi
  3711. cat >confcache <<\_ACEOF
  3712. # This file is a shell script that caches the results of configure
  3713. # tests run on this system so they can be shared between configure
  3714. # scripts and configure runs, see configure's option --config-cache.
  3715. # It is not useful on other systems. If it contains results you don't
  3716. # want to keep, you may remove or edit it.
  3717. #
  3718. # config.status only pays attention to the cache file if you give it
  3719. # the --recheck option to rerun configure.
  3720. #
  3721. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3722. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3723. # following values.
  3724. _ACEOF
  3725. # The following way of writing the cache mishandles newlines in values,
  3726. # but we know of no workaround that is simple, portable, and efficient.
  3727. # So, we kill variables containing newlines.
  3728. # Ultrix sh set writes to stderr and can't be redirected directly,
  3729. # and sets the high bit in the cache file unless we assign to the vars.
  3730. (
  3731. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3732. eval ac_val=\$$ac_var
  3733. case $ac_val in #(
  3734. *${as_nl}*)
  3735. case $ac_var in #(
  3736. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3737. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3738. esac
  3739. case $ac_var in #(
  3740. _ | IFS | as_nl) ;; #(
  3741. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3742. *) { eval $ac_var=; unset $ac_var;} ;;
  3743. esac ;;
  3744. esac
  3745. done
  3746. (set) 2>&1 |
  3747. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3748. *${as_nl}ac_space=\ *)
  3749. # `set' does not quote correctly, so add quotes: double-quote
  3750. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3751. sed -n \
  3752. "s/'/'\\\\''/g;
  3753. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3754. ;; #(
  3755. *)
  3756. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3757. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3758. ;;
  3759. esac |
  3760. sort
  3761. ) |
  3762. sed '
  3763. /^ac_cv_env_/b end
  3764. t clear
  3765. :clear
  3766. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  3767. t end
  3768. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3769. :end' >>confcache
  3770. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3771. if test -w "$cache_file"; then
  3772. if test "x$cache_file" != "x/dev/null"; then
  3773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3774. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  3775. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3776. cat confcache >"$cache_file"
  3777. else
  3778. case $cache_file in #(
  3779. */* | ?:*)
  3780. mv -f confcache "$cache_file"$$ &&
  3781. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3782. *)
  3783. mv -f confcache "$cache_file" ;;
  3784. esac
  3785. fi
  3786. fi
  3787. else
  3788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3789. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  3790. fi
  3791. fi
  3792. rm -f confcache
  3793. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3794. # Let make expand exec_prefix.
  3795. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3796. # Transform confdefs.h into DEFS.
  3797. # Protect against shell expansion while executing Makefile rules.
  3798. # Protect against Makefile macro expansion.
  3799. #
  3800. # If the first sed substitution is executed (which looks for macros that
  3801. # take arguments), then branch to the quote section. Otherwise,
  3802. # look for a macro that doesn't take arguments.
  3803. ac_script='
  3804. :mline
  3805. /\\$/{
  3806. N
  3807. s,\\\n,,
  3808. b mline
  3809. }
  3810. t clear
  3811. :clear
  3812. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  3813. t quote
  3814. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  3815. t quote
  3816. b any
  3817. :quote
  3818. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  3819. s/\[/\\&/g
  3820. s/\]/\\&/g
  3821. s/\$/$$/g
  3822. H
  3823. :any
  3824. ${
  3825. g
  3826. s/^\n//
  3827. s/\n/ /g
  3828. p
  3829. }
  3830. '
  3831. DEFS=`sed -n "$ac_script" confdefs.h`
  3832. ac_libobjs=
  3833. ac_ltlibobjs=
  3834. U=
  3835. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  3836. # 1. Remove the extension, and $U if already installed.
  3837. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  3838. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  3839. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  3840. # will be set to the directory where LIBOBJS objects are built.
  3841. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  3842. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  3843. done
  3844. LIBOBJS=$ac_libobjs
  3845. LTLIBOBJS=$ac_ltlibobjs
  3846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  3847. printf %s "checking that generated files are newer than configure... " >&6; }
  3848. if test -n "$am_sleep_pid"; then
  3849. # Hide warnings about reused PIDs.
  3850. wait $am_sleep_pid 2>/dev/null
  3851. fi
  3852. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
  3853. printf "%s\n" "done" >&6; }
  3854. if test -n "$EXEEXT"; then
  3855. am__EXEEXT_TRUE=
  3856. am__EXEEXT_FALSE='#'
  3857. else
  3858. am__EXEEXT_TRUE='#'
  3859. am__EXEEXT_FALSE=
  3860. fi
  3861. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  3862. as_fn_error $? "conditional \"AMDEP\" was never defined.
  3863. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  3864. fi
  3865. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  3866. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  3867. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  3868. fi
  3869. : "${CONFIG_STATUS=./config.status}"
  3870. ac_write_fail=0
  3871. ac_clean_files_save=$ac_clean_files
  3872. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  3873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  3874. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  3875. as_write_fail=0
  3876. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  3877. #! $SHELL
  3878. # Generated by $as_me.
  3879. # Run this file to recreate the current configuration.
  3880. # Compiler output produced by configure, useful for debugging
  3881. # configure, is in config.log if it exists.
  3882. debug=false
  3883. ac_cs_recheck=false
  3884. ac_cs_silent=false
  3885. SHELL=\${CONFIG_SHELL-$SHELL}
  3886. export SHELL
  3887. _ASEOF
  3888. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  3889. ## -------------------- ##
  3890. ## M4sh Initialization. ##
  3891. ## -------------------- ##
  3892. # Be more Bourne compatible
  3893. DUALCASE=1; export DUALCASE # for MKS sh
  3894. as_nop=:
  3895. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  3896. then :
  3897. emulate sh
  3898. NULLCMD=:
  3899. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  3900. # is contrary to our usage. Disable this feature.
  3901. alias -g '${1+"$@"}'='"$@"'
  3902. setopt NO_GLOB_SUBST
  3903. else $as_nop
  3904. case `(set -o) 2>/dev/null` in #(
  3905. *posix*) :
  3906. set -o posix ;; #(
  3907. *) :
  3908. ;;
  3909. esac
  3910. fi
  3911. # Reset variables that may have inherited troublesome values from
  3912. # the environment.
  3913. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  3914. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  3915. # side effect of setting IFS to empty, thus disabling word splitting.)
  3916. # Quoting is to prevent editors from complaining about space-tab.
  3917. as_nl='
  3918. '
  3919. export as_nl
  3920. IFS=" "" $as_nl"
  3921. PS1='$ '
  3922. PS2='> '
  3923. PS4='+ '
  3924. # Ensure predictable behavior from utilities with locale-dependent output.
  3925. LC_ALL=C
  3926. export LC_ALL
  3927. LANGUAGE=C
  3928. export LANGUAGE
  3929. # We cannot yet rely on "unset" to work, but we need these variables
  3930. # to be unset--not just set to an empty or harmless value--now, to
  3931. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  3932. # also avoids known problems related to "unset" and subshell syntax
  3933. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  3934. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  3935. do eval test \${$as_var+y} \
  3936. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  3937. done
  3938. # Ensure that fds 0, 1, and 2 are open.
  3939. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  3940. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  3941. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  3942. # The user is always right.
  3943. if ${PATH_SEPARATOR+false} :; then
  3944. PATH_SEPARATOR=:
  3945. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  3946. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  3947. PATH_SEPARATOR=';'
  3948. }
  3949. fi
  3950. # Find who we are. Look in the path if we contain no directory separator.
  3951. as_myself=
  3952. case $0 in #((
  3953. *[\\/]* ) as_myself=$0 ;;
  3954. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3955. for as_dir in $PATH
  3956. do
  3957. IFS=$as_save_IFS
  3958. case $as_dir in #(((
  3959. '') as_dir=./ ;;
  3960. */) ;;
  3961. *) as_dir=$as_dir/ ;;
  3962. esac
  3963. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  3964. done
  3965. IFS=$as_save_IFS
  3966. ;;
  3967. esac
  3968. # We did not find ourselves, most probably we were run as `sh COMMAND'
  3969. # in which case we are not to be found in the path.
  3970. if test "x$as_myself" = x; then
  3971. as_myself=$0
  3972. fi
  3973. if test ! -f "$as_myself"; then
  3974. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  3975. exit 1
  3976. fi
  3977. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  3978. # ----------------------------------------
  3979. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  3980. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  3981. # script with STATUS, using 1 if that was 0.
  3982. as_fn_error ()
  3983. {
  3984. as_status=$1; test $as_status -eq 0 && as_status=1
  3985. if test "$4"; then
  3986. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  3987. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  3988. fi
  3989. printf "%s\n" "$as_me: error: $2" >&2
  3990. as_fn_exit $as_status
  3991. } # as_fn_error
  3992. # as_fn_set_status STATUS
  3993. # -----------------------
  3994. # Set $? to STATUS, without forking.
  3995. as_fn_set_status ()
  3996. {
  3997. return $1
  3998. } # as_fn_set_status
  3999. # as_fn_exit STATUS
  4000. # -----------------
  4001. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  4002. as_fn_exit ()
  4003. {
  4004. set +e
  4005. as_fn_set_status $1
  4006. exit $1
  4007. } # as_fn_exit
  4008. # as_fn_unset VAR
  4009. # ---------------
  4010. # Portably unset VAR.
  4011. as_fn_unset ()
  4012. {
  4013. { eval $1=; unset $1;}
  4014. }
  4015. as_unset=as_fn_unset
  4016. # as_fn_append VAR VALUE
  4017. # ----------------------
  4018. # Append the text in VALUE to the end of the definition contained in VAR. Take
  4019. # advantage of any shell optimizations that allow amortized linear growth over
  4020. # repeated appends, instead of the typical quadratic growth present in naive
  4021. # implementations.
  4022. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  4023. then :
  4024. eval 'as_fn_append ()
  4025. {
  4026. eval $1+=\$2
  4027. }'
  4028. else $as_nop
  4029. as_fn_append ()
  4030. {
  4031. eval $1=\$$1\$2
  4032. }
  4033. fi # as_fn_append
  4034. # as_fn_arith ARG...
  4035. # ------------------
  4036. # Perform arithmetic evaluation on the ARGs, and store the result in the
  4037. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  4038. # must be portable across $(()) and expr.
  4039. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  4040. then :
  4041. eval 'as_fn_arith ()
  4042. {
  4043. as_val=$(( $* ))
  4044. }'
  4045. else $as_nop
  4046. as_fn_arith ()
  4047. {
  4048. as_val=`expr "$@" || test $? -eq 1`
  4049. }
  4050. fi # as_fn_arith
  4051. if expr a : '\(a\)' >/dev/null 2>&1 &&
  4052. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  4053. as_expr=expr
  4054. else
  4055. as_expr=false
  4056. fi
  4057. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  4058. as_basename=basename
  4059. else
  4060. as_basename=false
  4061. fi
  4062. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  4063. as_dirname=dirname
  4064. else
  4065. as_dirname=false
  4066. fi
  4067. as_me=`$as_basename -- "$0" ||
  4068. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  4069. X"$0" : 'X\(//\)$' \| \
  4070. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  4071. printf "%s\n" X/"$0" |
  4072. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4073. s//\1/
  4074. q
  4075. }
  4076. /^X\/\(\/\/\)$/{
  4077. s//\1/
  4078. q
  4079. }
  4080. /^X\/\(\/\).*/{
  4081. s//\1/
  4082. q
  4083. }
  4084. s/.*/./; q'`
  4085. # Avoid depending upon Character Ranges.
  4086. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  4087. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  4088. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  4089. as_cr_digits='0123456789'
  4090. as_cr_alnum=$as_cr_Letters$as_cr_digits
  4091. # Determine whether it's possible to make 'echo' print without a newline.
  4092. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  4093. # for compatibility with existing Makefiles.
  4094. ECHO_C= ECHO_N= ECHO_T=
  4095. case `echo -n x` in #(((((
  4096. -n*)
  4097. case `echo 'xy\c'` in
  4098. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  4099. xy) ECHO_C='\c';;
  4100. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  4101. ECHO_T=' ';;
  4102. esac;;
  4103. *)
  4104. ECHO_N='-n';;
  4105. esac
  4106. # For backward compatibility with old third-party macros, we provide
  4107. # the shell variables $as_echo and $as_echo_n. New code should use
  4108. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  4109. as_echo='printf %s\n'
  4110. as_echo_n='printf %s'
  4111. rm -f conf$$ conf$$.exe conf$$.file
  4112. if test -d conf$$.dir; then
  4113. rm -f conf$$.dir/conf$$.file
  4114. else
  4115. rm -f conf$$.dir
  4116. mkdir conf$$.dir 2>/dev/null
  4117. fi
  4118. if (echo >conf$$.file) 2>/dev/null; then
  4119. if ln -s conf$$.file conf$$ 2>/dev/null; then
  4120. as_ln_s='ln -s'
  4121. # ... but there are two gotchas:
  4122. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  4123. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  4124. # In both cases, we have to default to `cp -pR'.
  4125. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  4126. as_ln_s='cp -pR'
  4127. elif ln conf$$.file conf$$ 2>/dev/null; then
  4128. as_ln_s=ln
  4129. else
  4130. as_ln_s='cp -pR'
  4131. fi
  4132. else
  4133. as_ln_s='cp -pR'
  4134. fi
  4135. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  4136. rmdir conf$$.dir 2>/dev/null
  4137. # as_fn_mkdir_p
  4138. # -------------
  4139. # Create "$as_dir" as a directory, including parents if necessary.
  4140. as_fn_mkdir_p ()
  4141. {
  4142. case $as_dir in #(
  4143. -*) as_dir=./$as_dir;;
  4144. esac
  4145. test -d "$as_dir" || eval $as_mkdir_p || {
  4146. as_dirs=
  4147. while :; do
  4148. case $as_dir in #(
  4149. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  4150. *) as_qdir=$as_dir;;
  4151. esac
  4152. as_dirs="'$as_qdir' $as_dirs"
  4153. as_dir=`$as_dirname -- "$as_dir" ||
  4154. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4155. X"$as_dir" : 'X\(//\)[^/]' \| \
  4156. X"$as_dir" : 'X\(//\)$' \| \
  4157. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  4158. printf "%s\n" X"$as_dir" |
  4159. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4160. s//\1/
  4161. q
  4162. }
  4163. /^X\(\/\/\)[^/].*/{
  4164. s//\1/
  4165. q
  4166. }
  4167. /^X\(\/\/\)$/{
  4168. s//\1/
  4169. q
  4170. }
  4171. /^X\(\/\).*/{
  4172. s//\1/
  4173. q
  4174. }
  4175. s/.*/./; q'`
  4176. test -d "$as_dir" && break
  4177. done
  4178. test -z "$as_dirs" || eval "mkdir $as_dirs"
  4179. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  4180. } # as_fn_mkdir_p
  4181. if mkdir -p . 2>/dev/null; then
  4182. as_mkdir_p='mkdir -p "$as_dir"'
  4183. else
  4184. test -d ./-p && rmdir ./-p
  4185. as_mkdir_p=false
  4186. fi
  4187. # as_fn_executable_p FILE
  4188. # -----------------------
  4189. # Test if FILE is an executable regular file.
  4190. as_fn_executable_p ()
  4191. {
  4192. test -f "$1" && test -x "$1"
  4193. } # as_fn_executable_p
  4194. as_test_x='test -x'
  4195. as_executable_p=as_fn_executable_p
  4196. # Sed expression to map a string onto a valid CPP name.
  4197. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  4198. # Sed expression to map a string onto a valid variable name.
  4199. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  4200. exec 6>&1
  4201. ## ----------------------------------- ##
  4202. ## Main body of $CONFIG_STATUS script. ##
  4203. ## ----------------------------------- ##
  4204. _ASEOF
  4205. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  4206. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4207. # Save the log message, to keep $0 and so on meaningful, and to
  4208. # report actual input values of CONFIG_FILES etc. instead of their
  4209. # values after options handling.
  4210. ac_log="
  4211. This file was extended by spearl $as_me 0.01, which was
  4212. generated by GNU Autoconf 2.71. Invocation command line was
  4213. CONFIG_FILES = $CONFIG_FILES
  4214. CONFIG_HEADERS = $CONFIG_HEADERS
  4215. CONFIG_LINKS = $CONFIG_LINKS
  4216. CONFIG_COMMANDS = $CONFIG_COMMANDS
  4217. $ $0 $@
  4218. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  4219. "
  4220. _ACEOF
  4221. case $ac_config_files in *"
  4222. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  4223. esac
  4224. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4225. # Files that config.status was made for.
  4226. config_files="$ac_config_files"
  4227. config_commands="$ac_config_commands"
  4228. _ACEOF
  4229. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4230. ac_cs_usage="\
  4231. \`$as_me' instantiates files and other configuration actions
  4232. from templates according to the current configuration. Unless the files
  4233. and actions are specified as TAGs, all are instantiated by default.
  4234. Usage: $0 [OPTION]... [TAG]...
  4235. -h, --help print this help, then exit
  4236. -V, --version print version number and configuration settings, then exit
  4237. --config print configuration, then exit
  4238. -q, --quiet, --silent
  4239. do not print progress messages
  4240. -d, --debug don't remove temporary files
  4241. --recheck update $as_me by reconfiguring in the same conditions
  4242. --file=FILE[:TEMPLATE]
  4243. instantiate the configuration file FILE
  4244. Configuration files:
  4245. $config_files
  4246. Configuration commands:
  4247. $config_commands
  4248. Report bugs to <root@intirain.cc>."
  4249. _ACEOF
  4250. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  4251. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  4252. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4253. ac_cs_config='$ac_cs_config_escaped'
  4254. ac_cs_version="\\
  4255. spearl config.status 0.01
  4256. configured by $0, generated by GNU Autoconf 2.71,
  4257. with options \\"\$ac_cs_config\\"
  4258. Copyright (C) 2021 Free Software Foundation, Inc.
  4259. This config.status script is free software; the Free Software Foundation
  4260. gives unlimited permission to copy, distribute and modify it."
  4261. ac_pwd='$ac_pwd'
  4262. srcdir='$srcdir'
  4263. INSTALL='$INSTALL'
  4264. MKDIR_P='$MKDIR_P'
  4265. AWK='$AWK'
  4266. test -n "\$AWK" || AWK=awk
  4267. _ACEOF
  4268. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4269. # The default lists apply if the user does not specify any file.
  4270. ac_need_defaults=:
  4271. while test $# != 0
  4272. do
  4273. case $1 in
  4274. --*=?*)
  4275. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4276. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  4277. ac_shift=:
  4278. ;;
  4279. --*=)
  4280. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  4281. ac_optarg=
  4282. ac_shift=:
  4283. ;;
  4284. *)
  4285. ac_option=$1
  4286. ac_optarg=$2
  4287. ac_shift=shift
  4288. ;;
  4289. esac
  4290. case $ac_option in
  4291. # Handling of the options.
  4292. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  4293. ac_cs_recheck=: ;;
  4294. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  4295. printf "%s\n" "$ac_cs_version"; exit ;;
  4296. --config | --confi | --conf | --con | --co | --c )
  4297. printf "%s\n" "$ac_cs_config"; exit ;;
  4298. --debug | --debu | --deb | --de | --d | -d )
  4299. debug=: ;;
  4300. --file | --fil | --fi | --f )
  4301. $ac_shift
  4302. case $ac_optarg in
  4303. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4304. '') as_fn_error $? "missing file argument" ;;
  4305. esac
  4306. as_fn_append CONFIG_FILES " '$ac_optarg'"
  4307. ac_need_defaults=false;;
  4308. --he | --h | --help | --hel | -h )
  4309. printf "%s\n" "$ac_cs_usage"; exit ;;
  4310. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4311. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  4312. ac_cs_silent=: ;;
  4313. # This is an error.
  4314. -*) as_fn_error $? "unrecognized option: \`$1'
  4315. Try \`$0 --help' for more information." ;;
  4316. *) as_fn_append ac_config_targets " $1"
  4317. ac_need_defaults=false ;;
  4318. esac
  4319. shift
  4320. done
  4321. ac_configure_extra_args=
  4322. if $ac_cs_silent; then
  4323. exec 6>/dev/null
  4324. ac_configure_extra_args="$ac_configure_extra_args --silent"
  4325. fi
  4326. _ACEOF
  4327. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4328. if \$ac_cs_recheck; then
  4329. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  4330. shift
  4331. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  4332. CONFIG_SHELL='$SHELL'
  4333. export CONFIG_SHELL
  4334. exec "\$@"
  4335. fi
  4336. _ACEOF
  4337. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4338. exec 5>>config.log
  4339. {
  4340. echo
  4341. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  4342. ## Running $as_me. ##
  4343. _ASBOX
  4344. printf "%s\n" "$ac_log"
  4345. } >&5
  4346. _ACEOF
  4347. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4348. #
  4349. # INIT-COMMANDS
  4350. #
  4351. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  4352. _ACEOF
  4353. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4354. # Handling of arguments.
  4355. for ac_config_target in $ac_config_targets
  4356. do
  4357. case $ac_config_target in
  4358. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  4359. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  4360. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  4361. esac
  4362. done
  4363. # If the user did not use the arguments to specify the items to instantiate,
  4364. # then the envvar interface is used. Set only those that are not.
  4365. # We use the long form for the default assignment because of an extremely
  4366. # bizarre bug on SunOS 4.1.3.
  4367. if $ac_need_defaults; then
  4368. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  4369. test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
  4370. fi
  4371. # Have a temporary directory for convenience. Make it in the build tree
  4372. # simply because there is no reason against having it here, and in addition,
  4373. # creating and moving files from /tmp can sometimes cause problems.
  4374. # Hook for its removal unless debugging.
  4375. # Note that there is a small window in which the directory will not be cleaned:
  4376. # after its creation but before its name has been assigned to `$tmp'.
  4377. $debug ||
  4378. {
  4379. tmp= ac_tmp=
  4380. trap 'exit_status=$?
  4381. : "${ac_tmp:=$tmp}"
  4382. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  4383. ' 0
  4384. trap 'as_fn_exit 1' 1 2 13 15
  4385. }
  4386. # Create a (secure) tmp directory for tmp files.
  4387. {
  4388. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  4389. test -d "$tmp"
  4390. } ||
  4391. {
  4392. tmp=./conf$$-$RANDOM
  4393. (umask 077 && mkdir "$tmp")
  4394. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  4395. ac_tmp=$tmp
  4396. # Set up the scripts for CONFIG_FILES section.
  4397. # No need to generate them if there are no CONFIG_FILES.
  4398. # This happens for instance with `./config.status config.h'.
  4399. if test -n "$CONFIG_FILES"; then
  4400. ac_cr=`echo X | tr X '\015'`
  4401. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  4402. # But we know of no other shell where ac_cr would be empty at this
  4403. # point, so we can use a bashism as a fallback.
  4404. if test "x$ac_cr" = x; then
  4405. eval ac_cr=\$\'\\r\'
  4406. fi
  4407. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  4408. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  4409. ac_cs_awk_cr='\\r'
  4410. else
  4411. ac_cs_awk_cr=$ac_cr
  4412. fi
  4413. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  4414. _ACEOF
  4415. {
  4416. echo "cat >conf$$subs.awk <<_ACEOF" &&
  4417. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  4418. echo "_ACEOF"
  4419. } >conf$$subs.sh ||
  4420. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4421. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  4422. ac_delim='%!_!# '
  4423. for ac_last_try in false false false false false :; do
  4424. . ./conf$$subs.sh ||
  4425. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4426. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  4427. if test $ac_delim_n = $ac_delim_num; then
  4428. break
  4429. elif $ac_last_try; then
  4430. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  4431. else
  4432. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  4433. fi
  4434. done
  4435. rm -f conf$$subs.sh
  4436. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4437. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  4438. _ACEOF
  4439. sed -n '
  4440. h
  4441. s/^/S["/; s/!.*/"]=/
  4442. p
  4443. g
  4444. s/^[^!]*!//
  4445. :repl
  4446. t repl
  4447. s/'"$ac_delim"'$//
  4448. t delim
  4449. :nl
  4450. h
  4451. s/\(.\{148\}\)..*/\1/
  4452. t more1
  4453. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  4454. p
  4455. n
  4456. b repl
  4457. :more1
  4458. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4459. p
  4460. g
  4461. s/.\{148\}//
  4462. t nl
  4463. :delim
  4464. h
  4465. s/\(.\{148\}\)..*/\1/
  4466. t more2
  4467. s/["\\]/\\&/g; s/^/"/; s/$/"/
  4468. p
  4469. b
  4470. :more2
  4471. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  4472. p
  4473. g
  4474. s/.\{148\}//
  4475. t delim
  4476. ' <conf$$subs.awk | sed '
  4477. /^[^""]/{
  4478. N
  4479. s/\n//
  4480. }
  4481. ' >>$CONFIG_STATUS || ac_write_fail=1
  4482. rm -f conf$$subs.awk
  4483. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4484. _ACAWK
  4485. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  4486. for (key in S) S_is_set[key] = 1
  4487. FS = ""
  4488. }
  4489. {
  4490. line = $ 0
  4491. nfields = split(line, field, "@")
  4492. substed = 0
  4493. len = length(field[1])
  4494. for (i = 2; i < nfields; i++) {
  4495. key = field[i]
  4496. keylen = length(key)
  4497. if (S_is_set[key]) {
  4498. value = S[key]
  4499. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  4500. len += length(value) + length(field[++i])
  4501. substed = 1
  4502. } else
  4503. len += 1 + keylen
  4504. }
  4505. print line
  4506. }
  4507. _ACAWK
  4508. _ACEOF
  4509. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4510. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  4511. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  4512. else
  4513. cat
  4514. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  4515. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  4516. _ACEOF
  4517. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  4518. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  4519. # trailing colons and then remove the whole line if VPATH becomes empty
  4520. # (actually we leave an empty line to preserve line numbers).
  4521. if test "x$srcdir" = x.; then
  4522. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  4523. h
  4524. s///
  4525. s/^/:/
  4526. s/[ ]*$/:/
  4527. s/:\$(srcdir):/:/g
  4528. s/:\${srcdir}:/:/g
  4529. s/:@srcdir@:/:/g
  4530. s/^:*//
  4531. s/:*$//
  4532. x
  4533. s/\(=[ ]*\).*/\1/
  4534. G
  4535. s/\n//
  4536. s/^[^=]*=[ ]*$//
  4537. }'
  4538. fi
  4539. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4540. fi # test -n "$CONFIG_FILES"
  4541. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  4542. shift
  4543. for ac_tag
  4544. do
  4545. case $ac_tag in
  4546. :[FHLC]) ac_mode=$ac_tag; continue;;
  4547. esac
  4548. case $ac_mode$ac_tag in
  4549. :[FHL]*:*);;
  4550. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  4551. :[FH]-) ac_tag=-:-;;
  4552. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  4553. esac
  4554. ac_save_IFS=$IFS
  4555. IFS=:
  4556. set x $ac_tag
  4557. IFS=$ac_save_IFS
  4558. shift
  4559. ac_file=$1
  4560. shift
  4561. case $ac_mode in
  4562. :L) ac_source=$1;;
  4563. :[FH])
  4564. ac_file_inputs=
  4565. for ac_f
  4566. do
  4567. case $ac_f in
  4568. -) ac_f="$ac_tmp/stdin";;
  4569. *) # Look for the file first in the build tree, then in the source tree
  4570. # (if the path is not absolute). The absolute path cannot be DOS-style,
  4571. # because $ac_f cannot contain `:'.
  4572. test -f "$ac_f" ||
  4573. case $ac_f in
  4574. [\\/$]*) false;;
  4575. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  4576. esac ||
  4577. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  4578. esac
  4579. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  4580. as_fn_append ac_file_inputs " '$ac_f'"
  4581. done
  4582. # Let's still pretend it is `configure' which instantiates (i.e., don't
  4583. # use $as_me), people would be surprised to read:
  4584. # /* config.h. Generated by config.status. */
  4585. configure_input='Generated from '`
  4586. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  4587. `' by configure.'
  4588. if test x"$ac_file" != x-; then
  4589. configure_input="$ac_file. $configure_input"
  4590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  4591. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  4592. fi
  4593. # Neutralize special characters interpreted by sed in replacement strings.
  4594. case $configure_input in #(
  4595. *\&* | *\|* | *\\* )
  4596. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  4597. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  4598. *) ac_sed_conf_input=$configure_input;;
  4599. esac
  4600. case $ac_tag in
  4601. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  4602. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  4603. esac
  4604. ;;
  4605. esac
  4606. ac_dir=`$as_dirname -- "$ac_file" ||
  4607. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4608. X"$ac_file" : 'X\(//\)[^/]' \| \
  4609. X"$ac_file" : 'X\(//\)$' \| \
  4610. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  4611. printf "%s\n" X"$ac_file" |
  4612. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4613. s//\1/
  4614. q
  4615. }
  4616. /^X\(\/\/\)[^/].*/{
  4617. s//\1/
  4618. q
  4619. }
  4620. /^X\(\/\/\)$/{
  4621. s//\1/
  4622. q
  4623. }
  4624. /^X\(\/\).*/{
  4625. s//\1/
  4626. q
  4627. }
  4628. s/.*/./; q'`
  4629. as_dir="$ac_dir"; as_fn_mkdir_p
  4630. ac_builddir=.
  4631. case "$ac_dir" in
  4632. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4633. *)
  4634. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  4635. # A ".." for each directory in $ac_dir_suffix.
  4636. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  4637. case $ac_top_builddir_sub in
  4638. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  4639. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  4640. esac ;;
  4641. esac
  4642. ac_abs_top_builddir=$ac_pwd
  4643. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  4644. # for backward compatibility:
  4645. ac_top_builddir=$ac_top_build_prefix
  4646. case $srcdir in
  4647. .) # We are building in place.
  4648. ac_srcdir=.
  4649. ac_top_srcdir=$ac_top_builddir_sub
  4650. ac_abs_top_srcdir=$ac_pwd ;;
  4651. [\\/]* | ?:[\\/]* ) # Absolute name.
  4652. ac_srcdir=$srcdir$ac_dir_suffix;
  4653. ac_top_srcdir=$srcdir
  4654. ac_abs_top_srcdir=$srcdir ;;
  4655. *) # Relative name.
  4656. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  4657. ac_top_srcdir=$ac_top_build_prefix$srcdir
  4658. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  4659. esac
  4660. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  4661. case $ac_mode in
  4662. :F)
  4663. #
  4664. # CONFIG_FILE
  4665. #
  4666. case $INSTALL in
  4667. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  4668. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  4669. esac
  4670. ac_MKDIR_P=$MKDIR_P
  4671. case $MKDIR_P in
  4672. [\\/$]* | ?:[\\/]* ) ;;
  4673. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  4674. esac
  4675. _ACEOF
  4676. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4677. # If the template does not know about datarootdir, expand it.
  4678. # FIXME: This hack should be removed a few years after 2.60.
  4679. ac_datarootdir_hack=; ac_datarootdir_seen=
  4680. ac_sed_dataroot='
  4681. /datarootdir/ {
  4682. p
  4683. q
  4684. }
  4685. /@datadir@/p
  4686. /@docdir@/p
  4687. /@infodir@/p
  4688. /@localedir@/p
  4689. /@mandir@/p'
  4690. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  4691. *datarootdir*) ac_datarootdir_seen=yes;;
  4692. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  4693. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  4694. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  4695. _ACEOF
  4696. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4697. ac_datarootdir_hack='
  4698. s&@datadir@&$datadir&g
  4699. s&@docdir@&$docdir&g
  4700. s&@infodir@&$infodir&g
  4701. s&@localedir@&$localedir&g
  4702. s&@mandir@&$mandir&g
  4703. s&\\\${datarootdir}&$datarootdir&g' ;;
  4704. esac
  4705. _ACEOF
  4706. # Neutralize VPATH when `$srcdir' = `.'.
  4707. # Shell code in configure.ac might set extrasub.
  4708. # FIXME: do we really want to maintain this feature?
  4709. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  4710. ac_sed_extra="$ac_vpsub
  4711. $extrasub
  4712. _ACEOF
  4713. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  4714. :t
  4715. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  4716. s|@configure_input@|$ac_sed_conf_input|;t t
  4717. s&@top_builddir@&$ac_top_builddir_sub&;t t
  4718. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  4719. s&@srcdir@&$ac_srcdir&;t t
  4720. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  4721. s&@top_srcdir@&$ac_top_srcdir&;t t
  4722. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  4723. s&@builddir@&$ac_builddir&;t t
  4724. s&@abs_builddir@&$ac_abs_builddir&;t t
  4725. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  4726. s&@INSTALL@&$ac_INSTALL&;t t
  4727. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  4728. $ac_datarootdir_hack
  4729. "
  4730. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  4731. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4732. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  4733. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  4734. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  4735. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  4736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4737. which seems to be undefined. Please make sure it is defined" >&5
  4738. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  4739. which seems to be undefined. Please make sure it is defined" >&2;}
  4740. rm -f "$ac_tmp/stdin"
  4741. case $ac_file in
  4742. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  4743. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  4744. esac \
  4745. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  4746. ;;
  4747. :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  4748. printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
  4749. ;;
  4750. esac
  4751. case $ac_file$ac_mode in
  4752. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  4753. # Older Autoconf quotes --file arguments for eval, but not when files
  4754. # are listed without --file. Let's play safe and only enable the eval
  4755. # if we detect the quoting.
  4756. # TODO: see whether this extra hack can be removed once we start
  4757. # requiring Autoconf 2.70 or later.
  4758. case $CONFIG_FILES in #(
  4759. *\'*) :
  4760. eval set x "$CONFIG_FILES" ;; #(
  4761. *) :
  4762. set x $CONFIG_FILES ;; #(
  4763. *) :
  4764. ;;
  4765. esac
  4766. shift
  4767. # Used to flag and report bootstrapping failures.
  4768. am_rc=0
  4769. for am_mf
  4770. do
  4771. # Strip MF so we end up with the name of the file.
  4772. am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
  4773. # Check whether this is an Automake generated Makefile which includes
  4774. # dependency-tracking related rules and includes.
  4775. # Grep'ing the whole file directly is not great: AIX grep has a line
  4776. # limit of 2048, but all sed's we know have understand at least 4000.
  4777. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  4778. || continue
  4779. am_dirpart=`$as_dirname -- "$am_mf" ||
  4780. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4781. X"$am_mf" : 'X\(//\)[^/]' \| \
  4782. X"$am_mf" : 'X\(//\)$' \| \
  4783. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  4784. printf "%s\n" X"$am_mf" |
  4785. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  4786. s//\1/
  4787. q
  4788. }
  4789. /^X\(\/\/\)[^/].*/{
  4790. s//\1/
  4791. q
  4792. }
  4793. /^X\(\/\/\)$/{
  4794. s//\1/
  4795. q
  4796. }
  4797. /^X\(\/\).*/{
  4798. s//\1/
  4799. q
  4800. }
  4801. s/.*/./; q'`
  4802. am_filepart=`$as_basename -- "$am_mf" ||
  4803. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  4804. X"$am_mf" : 'X\(//\)$' \| \
  4805. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  4806. printf "%s\n" X/"$am_mf" |
  4807. sed '/^.*\/\([^/][^/]*\)\/*$/{
  4808. s//\1/
  4809. q
  4810. }
  4811. /^X\/\(\/\/\)$/{
  4812. s//\1/
  4813. q
  4814. }
  4815. /^X\/\(\/\).*/{
  4816. s//\1/
  4817. q
  4818. }
  4819. s/.*/./; q'`
  4820. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  4821. && sed -e '/# am--include-marker/d' "$am_filepart" \
  4822. | $MAKE -f - am--depfiles" >&5
  4823. (cd "$am_dirpart" \
  4824. && sed -e '/# am--include-marker/d' "$am_filepart" \
  4825. | $MAKE -f - am--depfiles) >&5 2>&5
  4826. ac_status=$?
  4827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4828. (exit $ac_status); } || am_rc=$?
  4829. done
  4830. if test $am_rc -ne 0; then
  4831. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4832. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4833. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  4834. for automatic dependency tracking. If GNU make was not used, consider
  4835. re-running the configure script with MAKE=\"gmake\" (or whatever is
  4836. necessary). You can also try re-running configure with the
  4837. '--disable-dependency-tracking' option to at least be able to build
  4838. the package (albeit without support for automatic dependency tracking).
  4839. See \`config.log' for more details" "$LINENO" 5; }
  4840. fi
  4841. { am_dirpart=; unset am_dirpart;}
  4842. { am_filepart=; unset am_filepart;}
  4843. { am_mf=; unset am_mf;}
  4844. { am_rc=; unset am_rc;}
  4845. rm -f conftest-deps.mk
  4846. }
  4847. ;;
  4848. esac
  4849. done # for ac_tag
  4850. as_fn_exit 0
  4851. _ACEOF
  4852. ac_clean_files=$ac_clean_files_save
  4853. test $ac_write_fail = 0 ||
  4854. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  4855. # configure is writing to config.log, and then calls config.status.
  4856. # config.status does its own redirection, appending to config.log.
  4857. # Unfortunately, on DOS this fails, as config.log is still kept open
  4858. # by configure, so config.status won't be able to write to it; its
  4859. # output is simply discarded. So we exec the FD to /dev/null,
  4860. # effectively closing config.log, so it can be properly (re)opened and
  4861. # appended to by config.status. When coming back to configure, we
  4862. # need to make the FD available again.
  4863. if test "$no_create" != yes; then
  4864. ac_cs_success=:
  4865. ac_config_status_args=
  4866. test "$silent" = yes &&
  4867. ac_config_status_args="$ac_config_status_args --quiet"
  4868. exec 5>/dev/null
  4869. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  4870. exec 5>>config.log
  4871. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  4872. # would make configure fail if this is the last instruction.
  4873. $ac_cs_success || as_fn_exit 1
  4874. fi
  4875. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  4876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  4877. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  4878. fi