configure 105 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for riscv-tests 1.0.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
  185. if (eval "$as_required") 2>/dev/null; then :
  186. as_have_required=yes
  187. else
  188. as_have_required=no
  189. fi
  190. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  191. else
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. as_found=false
  194. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  195. do
  196. IFS=$as_save_IFS
  197. test -z "$as_dir" && as_dir=.
  198. as_found=:
  199. case $as_dir in #(
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. # Try only shells that exist, to save several forks.
  203. as_shell=$as_dir/$as_base
  204. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  205. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  206. CONFIG_SHELL=$as_shell as_have_required=yes
  207. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  208. break 2
  209. fi
  210. fi
  211. done;;
  212. esac
  213. as_found=false
  214. done
  215. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  216. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  217. CONFIG_SHELL=$SHELL as_have_required=yes
  218. fi; }
  219. IFS=$as_save_IFS
  220. if test "x$CONFIG_SHELL" != x; then :
  221. export CONFIG_SHELL
  222. # We cannot yet assume a decent shell, so we have to provide a
  223. # neutralization value for shells without unset; and this also
  224. # works around shells that cannot unset nonexistent variables.
  225. # Preserve -v and -x to the replacement shell.
  226. BASH_ENV=/dev/null
  227. ENV=/dev/null
  228. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  229. case $- in # ((((
  230. *v*x* | *x*v* ) as_opts=-vx ;;
  231. *v* ) as_opts=-v ;;
  232. *x* ) as_opts=-x ;;
  233. * ) as_opts= ;;
  234. esac
  235. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  236. # Admittedly, this is quite paranoid, since all the known shells bail
  237. # out after a failed `exec'.
  238. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  239. exit 255
  240. fi
  241. if test x$as_have_required = xno; then :
  242. $as_echo "$0: This script requires a shell more modern than all"
  243. $as_echo "$0: the shells that I found on your system."
  244. if test x${ZSH_VERSION+set} = xset ; then
  245. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  246. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  247. else
  248. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  249. $0: including any error possibly output before this
  250. $0: message. Then install a modern shell, or manually run
  251. $0: the script under such a shell if you do 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_mkdir_p
  290. # -------------
  291. # Create "$as_dir" as a directory, including parents if necessary.
  292. as_fn_mkdir_p ()
  293. {
  294. case $as_dir in #(
  295. -*) as_dir=./$as_dir;;
  296. esac
  297. test -d "$as_dir" || eval $as_mkdir_p || {
  298. as_dirs=
  299. while :; do
  300. case $as_dir in #(
  301. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  302. *) as_qdir=$as_dir;;
  303. esac
  304. as_dirs="'$as_qdir' $as_dirs"
  305. as_dir=`$as_dirname -- "$as_dir" ||
  306. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  307. X"$as_dir" : 'X\(//\)[^/]' \| \
  308. X"$as_dir" : 'X\(//\)$' \| \
  309. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  310. $as_echo X"$as_dir" |
  311. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  312. s//\1/
  313. q
  314. }
  315. /^X\(\/\/\)[^/].*/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\).*/{
  324. s//\1/
  325. q
  326. }
  327. s/.*/./; q'`
  328. test -d "$as_dir" && break
  329. done
  330. test -z "$as_dirs" || eval "mkdir $as_dirs"
  331. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  332. } # as_fn_mkdir_p
  333. # as_fn_executable_p FILE
  334. # -----------------------
  335. # Test if FILE is an executable regular file.
  336. as_fn_executable_p ()
  337. {
  338. test -f "$1" && test -x "$1"
  339. } # as_fn_executable_p
  340. # as_fn_append VAR VALUE
  341. # ----------------------
  342. # Append the text in VALUE to the end of the definition contained in VAR. Take
  343. # advantage of any shell optimizations that allow amortized linear growth over
  344. # repeated appends, instead of the typical quadratic growth present in naive
  345. # implementations.
  346. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  347. eval 'as_fn_append ()
  348. {
  349. eval $1+=\$2
  350. }'
  351. else
  352. as_fn_append ()
  353. {
  354. eval $1=\$$1\$2
  355. }
  356. fi # as_fn_append
  357. # as_fn_arith ARG...
  358. # ------------------
  359. # Perform arithmetic evaluation on the ARGs, and store the result in the
  360. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  361. # must be portable across $(()) and expr.
  362. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  363. eval 'as_fn_arith ()
  364. {
  365. as_val=$(( $* ))
  366. }'
  367. else
  368. as_fn_arith ()
  369. {
  370. as_val=`expr "$@" || test $? -eq 1`
  371. }
  372. fi # as_fn_arith
  373. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  374. # ----------------------------------------
  375. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  376. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  377. # script with STATUS, using 1 if that was 0.
  378. as_fn_error ()
  379. {
  380. as_status=$1; test $as_status -eq 0 && as_status=1
  381. if test "$4"; then
  382. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  383. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  384. fi
  385. $as_echo "$as_me: error: $2" >&2
  386. as_fn_exit $as_status
  387. } # as_fn_error
  388. if expr a : '\(a\)' >/dev/null 2>&1 &&
  389. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  390. as_expr=expr
  391. else
  392. as_expr=false
  393. fi
  394. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  395. as_basename=basename
  396. else
  397. as_basename=false
  398. fi
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. as_me=`$as_basename -- "$0" ||
  405. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  406. X"$0" : 'X\(//\)$' \| \
  407. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  408. $as_echo X/"$0" |
  409. sed '/^.*\/\([^/][^/]*\)\/*$/{
  410. s//\1/
  411. q
  412. }
  413. /^X\/\(\/\/\)$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\).*/{
  418. s//\1/
  419. q
  420. }
  421. s/.*/./; q'`
  422. # Avoid depending upon Character Ranges.
  423. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  424. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  425. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  426. as_cr_digits='0123456789'
  427. as_cr_alnum=$as_cr_Letters$as_cr_digits
  428. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  429. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  430. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  431. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  432. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  433. sed -n '
  434. p
  435. /[$]LINENO/=
  436. ' <$as_myself |
  437. sed '
  438. s/[$]LINENO.*/&-/
  439. t lineno
  440. b
  441. :lineno
  442. N
  443. :loop
  444. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  445. t loop
  446. s/-\n.*//
  447. ' >$as_me.lineno &&
  448. chmod +x "$as_me.lineno" ||
  449. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  450. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  451. # already done that, so ensure we don't try to do so again and fall
  452. # in an infinite loop. This has already happened in practice.
  453. _as_can_reexec=no; export _as_can_reexec
  454. # Don't try to exec as it changes $[0], causing all sort of problems
  455. # (the dirname of $[0] is not the place where we might find the
  456. # original and so on. Autoconf is especially sensitive to this).
  457. . "./$as_me.lineno"
  458. # Exit status is that of the last command.
  459. exit
  460. }
  461. ECHO_C= ECHO_N= ECHO_T=
  462. case `echo -n x` in #(((((
  463. -n*)
  464. case `echo 'xy\c'` in
  465. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  466. xy) ECHO_C='\c';;
  467. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  468. ECHO_T=' ';;
  469. esac;;
  470. *)
  471. ECHO_N='-n';;
  472. esac
  473. rm -f conf$$ conf$$.exe conf$$.file
  474. if test -d conf$$.dir; then
  475. rm -f conf$$.dir/conf$$.file
  476. else
  477. rm -f conf$$.dir
  478. mkdir conf$$.dir 2>/dev/null
  479. fi
  480. if (echo >conf$$.file) 2>/dev/null; then
  481. if ln -s conf$$.file conf$$ 2>/dev/null; then
  482. as_ln_s='ln -s'
  483. # ... but there are two gotchas:
  484. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  485. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  486. # In both cases, we have to default to `cp -pR'.
  487. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  488. as_ln_s='cp -pR'
  489. elif ln conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s=ln
  491. else
  492. as_ln_s='cp -pR'
  493. fi
  494. else
  495. as_ln_s='cp -pR'
  496. fi
  497. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  498. rmdir conf$$.dir 2>/dev/null
  499. if mkdir -p . 2>/dev/null; then
  500. as_mkdir_p='mkdir -p "$as_dir"'
  501. else
  502. test -d ./-p && rmdir ./-p
  503. as_mkdir_p=false
  504. fi
  505. as_test_x='test -x'
  506. as_executable_p=as_fn_executable_p
  507. # Sed expression to map a string onto a valid CPP name.
  508. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  509. # Sed expression to map a string onto a valid variable name.
  510. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  511. test -n "$DJDIR" || exec 7<&0 </dev/null
  512. exec 6>&1
  513. # Name of the host.
  514. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  515. # so uname gets run too.
  516. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  517. #
  518. # Initializations.
  519. #
  520. ac_default_prefix=/usr/local
  521. ac_clean_files=
  522. ac_config_libobj_dir=.
  523. LIBOBJS=
  524. cross_compiling=no
  525. subdirs=
  526. MFLAGS=
  527. MAKEFLAGS=
  528. # Identity of this package.
  529. PACKAGE_NAME='riscv-tests'
  530. PACKAGE_TARNAME='riscv-tests'
  531. PACKAGE_VERSION='1.0'
  532. PACKAGE_STRING='riscv-tests 1.0'
  533. PACKAGE_BUGREPORT=''
  534. PACKAGE_URL=''
  535. ac_subst_vars='LTLIBOBJS
  536. LIBOBJS
  537. XLEN
  538. OBJEXT
  539. EXEEXT
  540. ac_ct_CC
  541. CPPFLAGS
  542. LDFLAGS
  543. CFLAGS
  544. CC
  545. target_alias
  546. host_alias
  547. build_alias
  548. LIBS
  549. ECHO_T
  550. ECHO_N
  551. ECHO_C
  552. DEFS
  553. mandir
  554. localedir
  555. libdir
  556. psdir
  557. pdfdir
  558. dvidir
  559. htmldir
  560. infodir
  561. docdir
  562. oldincludedir
  563. includedir
  564. localstatedir
  565. sharedstatedir
  566. sysconfdir
  567. datadir
  568. datarootdir
  569. libexecdir
  570. sbindir
  571. bindir
  572. program_transform_name
  573. prefix
  574. exec_prefix
  575. PACKAGE_URL
  576. PACKAGE_BUGREPORT
  577. PACKAGE_STRING
  578. PACKAGE_VERSION
  579. PACKAGE_TARNAME
  580. PACKAGE_NAME
  581. PATH_SEPARATOR
  582. SHELL'
  583. ac_subst_files=''
  584. ac_user_opts='
  585. enable_option_checking
  586. with_xlen
  587. '
  588. ac_precious_vars='build_alias
  589. host_alias
  590. target_alias
  591. CC
  592. CFLAGS
  593. LDFLAGS
  594. LIBS
  595. CPPFLAGS'
  596. # Initialize some variables set by options.
  597. ac_init_help=
  598. ac_init_version=false
  599. ac_unrecognized_opts=
  600. ac_unrecognized_sep=
  601. # The variables have the same names as the options, with
  602. # dashes changed to underlines.
  603. cache_file=/dev/null
  604. exec_prefix=NONE
  605. no_create=
  606. no_recursion=
  607. prefix=NONE
  608. program_prefix=NONE
  609. program_suffix=NONE
  610. program_transform_name=s,x,x,
  611. silent=
  612. site=
  613. srcdir=
  614. verbose=
  615. x_includes=NONE
  616. x_libraries=NONE
  617. # Installation directory options.
  618. # These are left unexpanded so users can "make install exec_prefix=/foo"
  619. # and all the variables that are supposed to be based on exec_prefix
  620. # by default will actually change.
  621. # Use braces instead of parens because sh, perl, etc. also accept them.
  622. # (The list follows the same order as the GNU Coding Standards.)
  623. bindir='${exec_prefix}/bin'
  624. sbindir='${exec_prefix}/sbin'
  625. libexecdir='${exec_prefix}/libexec'
  626. datarootdir='${prefix}/share'
  627. datadir='${datarootdir}'
  628. sysconfdir='${prefix}/etc'
  629. sharedstatedir='${prefix}/com'
  630. localstatedir='${prefix}/var'
  631. includedir='${prefix}/include'
  632. oldincludedir='/usr/include'
  633. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  634. infodir='${datarootdir}/info'
  635. htmldir='${docdir}'
  636. dvidir='${docdir}'
  637. pdfdir='${docdir}'
  638. psdir='${docdir}'
  639. libdir='${exec_prefix}/lib'
  640. localedir='${datarootdir}/locale'
  641. mandir='${datarootdir}/man'
  642. ac_prev=
  643. ac_dashdash=
  644. for ac_option
  645. do
  646. # If the previous option needs an argument, assign it.
  647. if test -n "$ac_prev"; then
  648. eval $ac_prev=\$ac_option
  649. ac_prev=
  650. continue
  651. fi
  652. case $ac_option in
  653. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  654. *=) ac_optarg= ;;
  655. *) ac_optarg=yes ;;
  656. esac
  657. # Accept the important Cygnus configure options, so we can diagnose typos.
  658. case $ac_dashdash$ac_option in
  659. --)
  660. ac_dashdash=yes ;;
  661. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  662. ac_prev=bindir ;;
  663. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  664. bindir=$ac_optarg ;;
  665. -build | --build | --buil | --bui | --bu)
  666. ac_prev=build_alias ;;
  667. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  668. build_alias=$ac_optarg ;;
  669. -cache-file | --cache-file | --cache-fil | --cache-fi \
  670. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  671. ac_prev=cache_file ;;
  672. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  673. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  674. cache_file=$ac_optarg ;;
  675. --config-cache | -C)
  676. cache_file=config.cache ;;
  677. -datadir | --datadir | --datadi | --datad)
  678. ac_prev=datadir ;;
  679. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  680. datadir=$ac_optarg ;;
  681. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  682. | --dataroo | --dataro | --datar)
  683. ac_prev=datarootdir ;;
  684. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  685. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  686. datarootdir=$ac_optarg ;;
  687. -disable-* | --disable-*)
  688. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  689. # Reject names that are not valid shell variable names.
  690. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  691. as_fn_error $? "invalid feature name: $ac_useropt"
  692. ac_useropt_orig=$ac_useropt
  693. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  694. case $ac_user_opts in
  695. *"
  696. "enable_$ac_useropt"
  697. "*) ;;
  698. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  699. ac_unrecognized_sep=', ';;
  700. esac
  701. eval enable_$ac_useropt=no ;;
  702. -docdir | --docdir | --docdi | --doc | --do)
  703. ac_prev=docdir ;;
  704. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  705. docdir=$ac_optarg ;;
  706. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  707. ac_prev=dvidir ;;
  708. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  709. dvidir=$ac_optarg ;;
  710. -enable-* | --enable-*)
  711. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  712. # Reject names that are not valid shell variable names.
  713. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  714. as_fn_error $? "invalid feature name: $ac_useropt"
  715. ac_useropt_orig=$ac_useropt
  716. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  717. case $ac_user_opts in
  718. *"
  719. "enable_$ac_useropt"
  720. "*) ;;
  721. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  722. ac_unrecognized_sep=', ';;
  723. esac
  724. eval enable_$ac_useropt=\$ac_optarg ;;
  725. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  726. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  727. | --exec | --exe | --ex)
  728. ac_prev=exec_prefix ;;
  729. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  730. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  731. | --exec=* | --exe=* | --ex=*)
  732. exec_prefix=$ac_optarg ;;
  733. -gas | --gas | --ga | --g)
  734. # Obsolete; use --with-gas.
  735. with_gas=yes ;;
  736. -help | --help | --hel | --he | -h)
  737. ac_init_help=long ;;
  738. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  739. ac_init_help=recursive ;;
  740. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  741. ac_init_help=short ;;
  742. -host | --host | --hos | --ho)
  743. ac_prev=host_alias ;;
  744. -host=* | --host=* | --hos=* | --ho=*)
  745. host_alias=$ac_optarg ;;
  746. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  747. ac_prev=htmldir ;;
  748. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  749. | --ht=*)
  750. htmldir=$ac_optarg ;;
  751. -includedir | --includedir | --includedi | --included | --include \
  752. | --includ | --inclu | --incl | --inc)
  753. ac_prev=includedir ;;
  754. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  755. | --includ=* | --inclu=* | --incl=* | --inc=*)
  756. includedir=$ac_optarg ;;
  757. -infodir | --infodir | --infodi | --infod | --info | --inf)
  758. ac_prev=infodir ;;
  759. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  760. infodir=$ac_optarg ;;
  761. -libdir | --libdir | --libdi | --libd)
  762. ac_prev=libdir ;;
  763. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  764. libdir=$ac_optarg ;;
  765. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  766. | --libexe | --libex | --libe)
  767. ac_prev=libexecdir ;;
  768. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  769. | --libexe=* | --libex=* | --libe=*)
  770. libexecdir=$ac_optarg ;;
  771. -localedir | --localedir | --localedi | --localed | --locale)
  772. ac_prev=localedir ;;
  773. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  774. localedir=$ac_optarg ;;
  775. -localstatedir | --localstatedir | --localstatedi | --localstated \
  776. | --localstate | --localstat | --localsta | --localst | --locals)
  777. ac_prev=localstatedir ;;
  778. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  779. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  780. localstatedir=$ac_optarg ;;
  781. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  782. ac_prev=mandir ;;
  783. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  784. mandir=$ac_optarg ;;
  785. -nfp | --nfp | --nf)
  786. # Obsolete; use --without-fp.
  787. with_fp=no ;;
  788. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  789. | --no-cr | --no-c | -n)
  790. no_create=yes ;;
  791. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  792. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  793. no_recursion=yes ;;
  794. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  795. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  796. | --oldin | --oldi | --old | --ol | --o)
  797. ac_prev=oldincludedir ;;
  798. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  799. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  800. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  801. oldincludedir=$ac_optarg ;;
  802. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  803. ac_prev=prefix ;;
  804. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  805. prefix=$ac_optarg ;;
  806. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  807. | --program-pre | --program-pr | --program-p)
  808. ac_prev=program_prefix ;;
  809. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  810. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  811. program_prefix=$ac_optarg ;;
  812. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  813. | --program-suf | --program-su | --program-s)
  814. ac_prev=program_suffix ;;
  815. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  816. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  817. program_suffix=$ac_optarg ;;
  818. -program-transform-name | --program-transform-name \
  819. | --program-transform-nam | --program-transform-na \
  820. | --program-transform-n | --program-transform- \
  821. | --program-transform | --program-transfor \
  822. | --program-transfo | --program-transf \
  823. | --program-trans | --program-tran \
  824. | --progr-tra | --program-tr | --program-t)
  825. ac_prev=program_transform_name ;;
  826. -program-transform-name=* | --program-transform-name=* \
  827. | --program-transform-nam=* | --program-transform-na=* \
  828. | --program-transform-n=* | --program-transform-=* \
  829. | --program-transform=* | --program-transfor=* \
  830. | --program-transfo=* | --program-transf=* \
  831. | --program-trans=* | --program-tran=* \
  832. | --progr-tra=* | --program-tr=* | --program-t=*)
  833. program_transform_name=$ac_optarg ;;
  834. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  835. ac_prev=pdfdir ;;
  836. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  837. pdfdir=$ac_optarg ;;
  838. -psdir | --psdir | --psdi | --psd | --ps)
  839. ac_prev=psdir ;;
  840. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  841. psdir=$ac_optarg ;;
  842. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  843. | -silent | --silent | --silen | --sile | --sil)
  844. silent=yes ;;
  845. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  846. ac_prev=sbindir ;;
  847. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  848. | --sbi=* | --sb=*)
  849. sbindir=$ac_optarg ;;
  850. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  851. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  852. | --sharedst | --shareds | --shared | --share | --shar \
  853. | --sha | --sh)
  854. ac_prev=sharedstatedir ;;
  855. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  856. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  857. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  858. | --sha=* | --sh=*)
  859. sharedstatedir=$ac_optarg ;;
  860. -site | --site | --sit)
  861. ac_prev=site ;;
  862. -site=* | --site=* | --sit=*)
  863. site=$ac_optarg ;;
  864. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  865. ac_prev=srcdir ;;
  866. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  867. srcdir=$ac_optarg ;;
  868. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  869. | --syscon | --sysco | --sysc | --sys | --sy)
  870. ac_prev=sysconfdir ;;
  871. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  872. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  873. sysconfdir=$ac_optarg ;;
  874. -target | --target | --targe | --targ | --tar | --ta | --t)
  875. ac_prev=target_alias ;;
  876. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  877. target_alias=$ac_optarg ;;
  878. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  879. verbose=yes ;;
  880. -version | --version | --versio | --versi | --vers | -V)
  881. ac_init_version=: ;;
  882. -with-* | --with-*)
  883. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  884. # Reject names that are not valid shell variable names.
  885. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  886. as_fn_error $? "invalid package name: $ac_useropt"
  887. ac_useropt_orig=$ac_useropt
  888. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  889. case $ac_user_opts in
  890. *"
  891. "with_$ac_useropt"
  892. "*) ;;
  893. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  894. ac_unrecognized_sep=', ';;
  895. esac
  896. eval with_$ac_useropt=\$ac_optarg ;;
  897. -without-* | --without-*)
  898. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  899. # Reject names that are not valid shell variable names.
  900. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  901. as_fn_error $? "invalid package name: $ac_useropt"
  902. ac_useropt_orig=$ac_useropt
  903. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  904. case $ac_user_opts in
  905. *"
  906. "with_$ac_useropt"
  907. "*) ;;
  908. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  909. ac_unrecognized_sep=', ';;
  910. esac
  911. eval with_$ac_useropt=no ;;
  912. --x)
  913. # Obsolete; use --with-x.
  914. with_x=yes ;;
  915. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  916. | --x-incl | --x-inc | --x-in | --x-i)
  917. ac_prev=x_includes ;;
  918. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  919. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  920. x_includes=$ac_optarg ;;
  921. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  922. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  923. ac_prev=x_libraries ;;
  924. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  925. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  926. x_libraries=$ac_optarg ;;
  927. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  928. Try \`$0 --help' for more information"
  929. ;;
  930. *=*)
  931. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  932. # Reject names that are not valid shell variable names.
  933. case $ac_envvar in #(
  934. '' | [0-9]* | *[!_$as_cr_alnum]* )
  935. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  936. esac
  937. eval $ac_envvar=\$ac_optarg
  938. export $ac_envvar ;;
  939. *)
  940. # FIXME: should be removed in autoconf 3.0.
  941. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  942. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  943. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  944. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  945. ;;
  946. esac
  947. done
  948. if test -n "$ac_prev"; then
  949. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  950. as_fn_error $? "missing argument to $ac_option"
  951. fi
  952. if test -n "$ac_unrecognized_opts"; then
  953. case $enable_option_checking in
  954. no) ;;
  955. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  956. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  957. esac
  958. fi
  959. # Check all directory arguments for consistency.
  960. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  961. datadir sysconfdir sharedstatedir localstatedir includedir \
  962. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  963. libdir localedir mandir
  964. do
  965. eval ac_val=\$$ac_var
  966. # Remove trailing slashes.
  967. case $ac_val in
  968. */ )
  969. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  970. eval $ac_var=\$ac_val;;
  971. esac
  972. # Be sure to have absolute directory names.
  973. case $ac_val in
  974. [\\/$]* | ?:[\\/]* ) continue;;
  975. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  976. esac
  977. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  978. done
  979. # There might be people who depend on the old broken behavior: `$host'
  980. # used to hold the argument of --host etc.
  981. # FIXME: To remove some day.
  982. build=$build_alias
  983. host=$host_alias
  984. target=$target_alias
  985. # FIXME: To remove some day.
  986. if test "x$host_alias" != x; then
  987. if test "x$build_alias" = x; then
  988. cross_compiling=maybe
  989. elif test "x$build_alias" != "x$host_alias"; then
  990. cross_compiling=yes
  991. fi
  992. fi
  993. ac_tool_prefix=
  994. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  995. test "$silent" = yes && exec 6>/dev/null
  996. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  997. ac_ls_di=`ls -di .` &&
  998. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  999. as_fn_error $? "working directory cannot be determined"
  1000. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1001. as_fn_error $? "pwd does not report name of working directory"
  1002. # Find the source files, if location was not specified.
  1003. if test -z "$srcdir"; then
  1004. ac_srcdir_defaulted=yes
  1005. # Try the directory containing this script, then the parent directory.
  1006. ac_confdir=`$as_dirname -- "$as_myself" ||
  1007. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1008. X"$as_myself" : 'X\(//\)[^/]' \| \
  1009. X"$as_myself" : 'X\(//\)$' \| \
  1010. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1011. $as_echo X"$as_myself" |
  1012. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1013. s//\1/
  1014. q
  1015. }
  1016. /^X\(\/\/\)[^/].*/{
  1017. s//\1/
  1018. q
  1019. }
  1020. /^X\(\/\/\)$/{
  1021. s//\1/
  1022. q
  1023. }
  1024. /^X\(\/\).*/{
  1025. s//\1/
  1026. q
  1027. }
  1028. s/.*/./; q'`
  1029. srcdir=$ac_confdir
  1030. if test ! -r "$srcdir/$ac_unique_file"; then
  1031. srcdir=..
  1032. fi
  1033. else
  1034. ac_srcdir_defaulted=no
  1035. fi
  1036. if test ! -r "$srcdir/$ac_unique_file"; then
  1037. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1038. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1039. fi
  1040. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1041. ac_abs_confdir=`(
  1042. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1043. pwd)`
  1044. # When building in place, set srcdir=.
  1045. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1046. srcdir=.
  1047. fi
  1048. # Remove unnecessary trailing slashes from srcdir.
  1049. # Double slashes in file names in object file debugging info
  1050. # mess up M-x gdb in Emacs.
  1051. case $srcdir in
  1052. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1053. esac
  1054. for ac_var in $ac_precious_vars; do
  1055. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1056. eval ac_env_${ac_var}_value=\$${ac_var}
  1057. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1058. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1059. done
  1060. #
  1061. # Report the --help message.
  1062. #
  1063. if test "$ac_init_help" = "long"; then
  1064. # Omit some internal or obsolete options to make the list less imposing.
  1065. # This message is too long to be a string in the A/UX 3.1 sh.
  1066. cat <<_ACEOF
  1067. \`configure' configures riscv-tests 1.0 to adapt to many kinds of systems.
  1068. Usage: $0 [OPTION]... [VAR=VALUE]...
  1069. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1070. VAR=VALUE. See below for descriptions of some of the useful variables.
  1071. Defaults for the options are specified in brackets.
  1072. Configuration:
  1073. -h, --help display this help and exit
  1074. --help=short display options specific to this package
  1075. --help=recursive display the short help of all the included packages
  1076. -V, --version display version information and exit
  1077. -q, --quiet, --silent do not print \`checking ...' messages
  1078. --cache-file=FILE cache test results in FILE [disabled]
  1079. -C, --config-cache alias for \`--cache-file=config.cache'
  1080. -n, --no-create do not create output files
  1081. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1082. Installation directories:
  1083. --prefix=PREFIX install architecture-independent files in PREFIX
  1084. [$ac_default_prefix]
  1085. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1086. [PREFIX]
  1087. By default, \`make install' will install all the files in
  1088. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1089. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1090. for instance \`--prefix=\$HOME'.
  1091. For better control, use the options below.
  1092. Fine tuning of the installation directories:
  1093. --bindir=DIR user executables [EPREFIX/bin]
  1094. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1095. --libexecdir=DIR program executables [EPREFIX/libexec]
  1096. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1097. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1098. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1099. --libdir=DIR object code libraries [EPREFIX/lib]
  1100. --includedir=DIR C header files [PREFIX/include]
  1101. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1102. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1103. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1104. --infodir=DIR info documentation [DATAROOTDIR/info]
  1105. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1106. --mandir=DIR man documentation [DATAROOTDIR/man]
  1107. --docdir=DIR documentation root [DATAROOTDIR/doc/riscv-tests]
  1108. --htmldir=DIR html documentation [DOCDIR]
  1109. --dvidir=DIR dvi documentation [DOCDIR]
  1110. --pdfdir=DIR pdf documentation [DOCDIR]
  1111. --psdir=DIR ps documentation [DOCDIR]
  1112. _ACEOF
  1113. cat <<\_ACEOF
  1114. _ACEOF
  1115. fi
  1116. if test -n "$ac_init_help"; then
  1117. case $ac_init_help in
  1118. short | recursive ) echo "Configuration of riscv-tests 1.0:";;
  1119. esac
  1120. cat <<\_ACEOF
  1121. Optional Packages:
  1122. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1123. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1124. --with-xlen=XLEN Set XLEN, the X-register bit width (default is 64)
  1125. Some influential environment variables:
  1126. CC C compiler command
  1127. CFLAGS C compiler flags
  1128. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1129. nonstandard directory <lib dir>
  1130. LIBS libraries to pass to the linker, e.g. -l<library>
  1131. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1132. you have headers in a nonstandard directory <include dir>
  1133. Use these variables to override the choices made by `configure' or to help
  1134. it to find libraries and programs with nonstandard names/locations.
  1135. Report bugs to the package provider.
  1136. _ACEOF
  1137. ac_status=$?
  1138. fi
  1139. if test "$ac_init_help" = "recursive"; then
  1140. # If there are subdirs, report their specific --help.
  1141. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1142. test -d "$ac_dir" ||
  1143. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1144. continue
  1145. ac_builddir=.
  1146. case "$ac_dir" in
  1147. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1148. *)
  1149. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1150. # A ".." for each directory in $ac_dir_suffix.
  1151. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1152. case $ac_top_builddir_sub in
  1153. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1154. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1155. esac ;;
  1156. esac
  1157. ac_abs_top_builddir=$ac_pwd
  1158. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1159. # for backward compatibility:
  1160. ac_top_builddir=$ac_top_build_prefix
  1161. case $srcdir in
  1162. .) # We are building in place.
  1163. ac_srcdir=.
  1164. ac_top_srcdir=$ac_top_builddir_sub
  1165. ac_abs_top_srcdir=$ac_pwd ;;
  1166. [\\/]* | ?:[\\/]* ) # Absolute name.
  1167. ac_srcdir=$srcdir$ac_dir_suffix;
  1168. ac_top_srcdir=$srcdir
  1169. ac_abs_top_srcdir=$srcdir ;;
  1170. *) # Relative name.
  1171. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1172. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1173. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1174. esac
  1175. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1176. cd "$ac_dir" || { ac_status=$?; continue; }
  1177. # Check for guested configure.
  1178. if test -f "$ac_srcdir/configure.gnu"; then
  1179. echo &&
  1180. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1181. elif test -f "$ac_srcdir/configure"; then
  1182. echo &&
  1183. $SHELL "$ac_srcdir/configure" --help=recursive
  1184. else
  1185. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1186. fi || ac_status=$?
  1187. cd "$ac_pwd" || { ac_status=$?; break; }
  1188. done
  1189. fi
  1190. test -n "$ac_init_help" && exit $ac_status
  1191. if $ac_init_version; then
  1192. cat <<\_ACEOF
  1193. riscv-tests configure 1.0
  1194. generated by GNU Autoconf 2.69
  1195. Copyright (C) 2012 Free Software Foundation, Inc.
  1196. This configure script is free software; the Free Software Foundation
  1197. gives unlimited permission to copy, distribute and modify it.
  1198. _ACEOF
  1199. exit
  1200. fi
  1201. ## ------------------------ ##
  1202. ## Autoconf initialization. ##
  1203. ## ------------------------ ##
  1204. # ac_fn_c_try_compile LINENO
  1205. # --------------------------
  1206. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1207. ac_fn_c_try_compile ()
  1208. {
  1209. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1210. rm -f conftest.$ac_objext
  1211. if { { ac_try="$ac_compile"
  1212. case "(($ac_try" in
  1213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1214. *) ac_try_echo=$ac_try;;
  1215. esac
  1216. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1217. $as_echo "$ac_try_echo"; } >&5
  1218. (eval "$ac_compile") 2>conftest.err
  1219. ac_status=$?
  1220. if test -s conftest.err; then
  1221. grep -v '^ *+' conftest.err >conftest.er1
  1222. cat conftest.er1 >&5
  1223. mv -f conftest.er1 conftest.err
  1224. fi
  1225. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1226. test $ac_status = 0; } && {
  1227. test -z "$ac_c_werror_flag" ||
  1228. test ! -s conftest.err
  1229. } && test -s conftest.$ac_objext; then :
  1230. ac_retval=0
  1231. else
  1232. $as_echo "$as_me: failed program was:" >&5
  1233. sed 's/^/| /' conftest.$ac_ext >&5
  1234. ac_retval=1
  1235. fi
  1236. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1237. as_fn_set_status $ac_retval
  1238. } # ac_fn_c_try_compile
  1239. cat >config.log <<_ACEOF
  1240. This file contains any messages produced by compilers while
  1241. running configure, to aid debugging if configure makes a mistake.
  1242. It was created by riscv-tests $as_me 1.0, which was
  1243. generated by GNU Autoconf 2.69. Invocation command line was
  1244. $ $0 $@
  1245. _ACEOF
  1246. exec 5>>config.log
  1247. {
  1248. cat <<_ASUNAME
  1249. ## --------- ##
  1250. ## Platform. ##
  1251. ## --------- ##
  1252. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1253. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1254. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1255. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1256. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1257. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1258. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1259. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1260. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1261. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1262. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1263. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1264. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1265. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1266. _ASUNAME
  1267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1268. for as_dir in $PATH
  1269. do
  1270. IFS=$as_save_IFS
  1271. test -z "$as_dir" && as_dir=.
  1272. $as_echo "PATH: $as_dir"
  1273. done
  1274. IFS=$as_save_IFS
  1275. } >&5
  1276. cat >&5 <<_ACEOF
  1277. ## ----------- ##
  1278. ## Core tests. ##
  1279. ## ----------- ##
  1280. _ACEOF
  1281. # Keep a trace of the command line.
  1282. # Strip out --no-create and --no-recursion so they do not pile up.
  1283. # Strip out --silent because we don't want to record it for future runs.
  1284. # Also quote any args containing shell meta-characters.
  1285. # Make two passes to allow for proper duplicate-argument suppression.
  1286. ac_configure_args=
  1287. ac_configure_args0=
  1288. ac_configure_args1=
  1289. ac_must_keep_next=false
  1290. for ac_pass in 1 2
  1291. do
  1292. for ac_arg
  1293. do
  1294. case $ac_arg in
  1295. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1296. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1297. | -silent | --silent | --silen | --sile | --sil)
  1298. continue ;;
  1299. *\'*)
  1300. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1301. esac
  1302. case $ac_pass in
  1303. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1304. 2)
  1305. as_fn_append ac_configure_args1 " '$ac_arg'"
  1306. if test $ac_must_keep_next = true; then
  1307. ac_must_keep_next=false # Got value, back to normal.
  1308. else
  1309. case $ac_arg in
  1310. *=* | --config-cache | -C | -disable-* | --disable-* \
  1311. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1312. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1313. | -with-* | --with-* | -without-* | --without-* | --x)
  1314. case "$ac_configure_args0 " in
  1315. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1316. esac
  1317. ;;
  1318. -* ) ac_must_keep_next=true ;;
  1319. esac
  1320. fi
  1321. as_fn_append ac_configure_args " '$ac_arg'"
  1322. ;;
  1323. esac
  1324. done
  1325. done
  1326. { ac_configure_args0=; unset ac_configure_args0;}
  1327. { ac_configure_args1=; unset ac_configure_args1;}
  1328. # When interrupted or exit'd, cleanup temporary files, and complete
  1329. # config.log. We remove comments because anyway the quotes in there
  1330. # would cause problems or look ugly.
  1331. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1332. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1333. trap 'exit_status=$?
  1334. # Save into config.log some information that might help in debugging.
  1335. {
  1336. echo
  1337. $as_echo "## ---------------- ##
  1338. ## Cache variables. ##
  1339. ## ---------------- ##"
  1340. echo
  1341. # The following way of writing the cache mishandles newlines in values,
  1342. (
  1343. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1344. eval ac_val=\$$ac_var
  1345. case $ac_val in #(
  1346. *${as_nl}*)
  1347. case $ac_var in #(
  1348. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1349. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1350. esac
  1351. case $ac_var in #(
  1352. _ | IFS | as_nl) ;; #(
  1353. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1354. *) { eval $ac_var=; unset $ac_var;} ;;
  1355. esac ;;
  1356. esac
  1357. done
  1358. (set) 2>&1 |
  1359. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1360. *${as_nl}ac_space=\ *)
  1361. sed -n \
  1362. "s/'\''/'\''\\\\'\'''\''/g;
  1363. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1364. ;; #(
  1365. *)
  1366. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1367. ;;
  1368. esac |
  1369. sort
  1370. )
  1371. echo
  1372. $as_echo "## ----------------- ##
  1373. ## Output variables. ##
  1374. ## ----------------- ##"
  1375. echo
  1376. for ac_var in $ac_subst_vars
  1377. do
  1378. eval ac_val=\$$ac_var
  1379. case $ac_val in
  1380. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1381. esac
  1382. $as_echo "$ac_var='\''$ac_val'\''"
  1383. done | sort
  1384. echo
  1385. if test -n "$ac_subst_files"; then
  1386. $as_echo "## ------------------- ##
  1387. ## File substitutions. ##
  1388. ## ------------------- ##"
  1389. echo
  1390. for ac_var in $ac_subst_files
  1391. do
  1392. eval ac_val=\$$ac_var
  1393. case $ac_val in
  1394. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1395. esac
  1396. $as_echo "$ac_var='\''$ac_val'\''"
  1397. done | sort
  1398. echo
  1399. fi
  1400. if test -s confdefs.h; then
  1401. $as_echo "## ----------- ##
  1402. ## confdefs.h. ##
  1403. ## ----------- ##"
  1404. echo
  1405. cat confdefs.h
  1406. echo
  1407. fi
  1408. test "$ac_signal" != 0 &&
  1409. $as_echo "$as_me: caught signal $ac_signal"
  1410. $as_echo "$as_me: exit $exit_status"
  1411. } >&5
  1412. rm -f core *.core core.conftest.* &&
  1413. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1414. exit $exit_status
  1415. ' 0
  1416. for ac_signal in 1 2 13 15; do
  1417. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1418. done
  1419. ac_signal=0
  1420. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1421. rm -f -r conftest* confdefs.h
  1422. $as_echo "/* confdefs.h */" > confdefs.h
  1423. # Predefined preprocessor variables.
  1424. cat >>confdefs.h <<_ACEOF
  1425. #define PACKAGE_NAME "$PACKAGE_NAME"
  1426. _ACEOF
  1427. cat >>confdefs.h <<_ACEOF
  1428. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1429. _ACEOF
  1430. cat >>confdefs.h <<_ACEOF
  1431. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1432. _ACEOF
  1433. cat >>confdefs.h <<_ACEOF
  1434. #define PACKAGE_STRING "$PACKAGE_STRING"
  1435. _ACEOF
  1436. cat >>confdefs.h <<_ACEOF
  1437. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1438. _ACEOF
  1439. cat >>confdefs.h <<_ACEOF
  1440. #define PACKAGE_URL "$PACKAGE_URL"
  1441. _ACEOF
  1442. # Let the site file select an alternate cache file if it wants to.
  1443. # Prefer an explicitly selected file to automatically selected ones.
  1444. ac_site_file1=NONE
  1445. ac_site_file2=NONE
  1446. if test -n "$CONFIG_SITE"; then
  1447. # We do not want a PATH search for config.site.
  1448. case $CONFIG_SITE in #((
  1449. -*) ac_site_file1=./$CONFIG_SITE;;
  1450. */*) ac_site_file1=$CONFIG_SITE;;
  1451. *) ac_site_file1=./$CONFIG_SITE;;
  1452. esac
  1453. elif test "x$prefix" != xNONE; then
  1454. ac_site_file1=$prefix/share/config.site
  1455. ac_site_file2=$prefix/etc/config.site
  1456. else
  1457. ac_site_file1=$ac_default_prefix/share/config.site
  1458. ac_site_file2=$ac_default_prefix/etc/config.site
  1459. fi
  1460. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1461. do
  1462. test "x$ac_site_file" = xNONE && continue
  1463. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1464. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1465. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1466. sed 's/^/| /' "$ac_site_file" >&5
  1467. . "$ac_site_file" \
  1468. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1469. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1470. as_fn_error $? "failed to load site script $ac_site_file
  1471. See \`config.log' for more details" "$LINENO" 5; }
  1472. fi
  1473. done
  1474. if test -r "$cache_file"; then
  1475. # Some versions of bash will fail to source /dev/null (special files
  1476. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1477. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1478. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1479. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1480. case $cache_file in
  1481. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1482. *) . "./$cache_file";;
  1483. esac
  1484. fi
  1485. else
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1487. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1488. >$cache_file
  1489. fi
  1490. # Check that the precious variables saved in the cache have kept the same
  1491. # value.
  1492. ac_cache_corrupted=false
  1493. for ac_var in $ac_precious_vars; do
  1494. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1495. eval ac_new_set=\$ac_env_${ac_var}_set
  1496. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1497. eval ac_new_val=\$ac_env_${ac_var}_value
  1498. case $ac_old_set,$ac_new_set in
  1499. set,)
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1501. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1502. ac_cache_corrupted=: ;;
  1503. ,set)
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1505. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1506. ac_cache_corrupted=: ;;
  1507. ,);;
  1508. *)
  1509. if test "x$ac_old_val" != "x$ac_new_val"; then
  1510. # differences in whitespace do not lead to failure.
  1511. ac_old_val_w=`echo x $ac_old_val`
  1512. ac_new_val_w=`echo x $ac_new_val`
  1513. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1515. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1516. ac_cache_corrupted=:
  1517. else
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1519. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1520. eval $ac_var=\$ac_old_val
  1521. fi
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1523. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1524. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1525. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1526. fi;;
  1527. esac
  1528. # Pass precious variables to config.status.
  1529. if test "$ac_new_set" = set; then
  1530. case $ac_new_val in
  1531. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1532. *) ac_arg=$ac_var=$ac_new_val ;;
  1533. esac
  1534. case " $ac_configure_args " in
  1535. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1536. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1537. esac
  1538. fi
  1539. done
  1540. if $ac_cache_corrupted; then
  1541. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1542. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1544. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1545. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1546. fi
  1547. ## -------------------- ##
  1548. ## Main body of script. ##
  1549. ## -------------------- ##
  1550. ac_ext=c
  1551. ac_cpp='$CPP $CPPFLAGS'
  1552. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1553. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1554. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1555. cross_compiling=yes
  1556. ac_ext=c
  1557. ac_cpp='$CPP $CPPFLAGS'
  1558. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1559. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1560. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1561. if test -n "$ac_tool_prefix"; then
  1562. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1563. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1565. $as_echo_n "checking for $ac_word... " >&6; }
  1566. if ${ac_cv_prog_CC+:} false; then :
  1567. $as_echo_n "(cached) " >&6
  1568. else
  1569. if test -n "$CC"; then
  1570. ac_cv_prog_CC="$CC" # Let the user override the test.
  1571. else
  1572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1573. for as_dir in $PATH
  1574. do
  1575. IFS=$as_save_IFS
  1576. test -z "$as_dir" && as_dir=.
  1577. for ac_exec_ext in '' $ac_executable_extensions; do
  1578. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1579. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1580. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1581. break 2
  1582. fi
  1583. done
  1584. done
  1585. IFS=$as_save_IFS
  1586. fi
  1587. fi
  1588. CC=$ac_cv_prog_CC
  1589. if test -n "$CC"; then
  1590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1591. $as_echo "$CC" >&6; }
  1592. else
  1593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1594. $as_echo "no" >&6; }
  1595. fi
  1596. fi
  1597. if test -z "$ac_cv_prog_CC"; then
  1598. ac_ct_CC=$CC
  1599. # Extract the first word of "gcc", so it can be a program name with args.
  1600. set dummy gcc; ac_word=$2
  1601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1602. $as_echo_n "checking for $ac_word... " >&6; }
  1603. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  1604. $as_echo_n "(cached) " >&6
  1605. else
  1606. if test -n "$ac_ct_CC"; then
  1607. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1608. else
  1609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1610. for as_dir in $PATH
  1611. do
  1612. IFS=$as_save_IFS
  1613. test -z "$as_dir" && as_dir=.
  1614. for ac_exec_ext in '' $ac_executable_extensions; do
  1615. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1616. ac_cv_prog_ac_ct_CC="gcc"
  1617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1618. break 2
  1619. fi
  1620. done
  1621. done
  1622. IFS=$as_save_IFS
  1623. fi
  1624. fi
  1625. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1626. if test -n "$ac_ct_CC"; then
  1627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  1628. $as_echo "$ac_ct_CC" >&6; }
  1629. else
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1631. $as_echo "no" >&6; }
  1632. fi
  1633. if test "x$ac_ct_CC" = x; then
  1634. CC=""
  1635. else
  1636. case $cross_compiling:$ac_tool_warned in
  1637. yes:)
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  1639. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1640. ac_tool_warned=yes ;;
  1641. esac
  1642. CC=$ac_ct_CC
  1643. fi
  1644. else
  1645. CC="$ac_cv_prog_CC"
  1646. fi
  1647. if test -z "$CC"; then
  1648. if test -n "$ac_tool_prefix"; then
  1649. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1650. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1652. $as_echo_n "checking for $ac_word... " >&6; }
  1653. if ${ac_cv_prog_CC+:} false; then :
  1654. $as_echo_n "(cached) " >&6
  1655. else
  1656. if test -n "$CC"; then
  1657. ac_cv_prog_CC="$CC" # Let the user override the test.
  1658. else
  1659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1660. for as_dir in $PATH
  1661. do
  1662. IFS=$as_save_IFS
  1663. test -z "$as_dir" && as_dir=.
  1664. for ac_exec_ext in '' $ac_executable_extensions; do
  1665. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1666. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1667. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1668. break 2
  1669. fi
  1670. done
  1671. done
  1672. IFS=$as_save_IFS
  1673. fi
  1674. fi
  1675. CC=$ac_cv_prog_CC
  1676. if test -n "$CC"; then
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1678. $as_echo "$CC" >&6; }
  1679. else
  1680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1681. $as_echo "no" >&6; }
  1682. fi
  1683. fi
  1684. fi
  1685. if test -z "$CC"; then
  1686. # Extract the first word of "cc", so it can be a program name with args.
  1687. set dummy cc; ac_word=$2
  1688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1689. $as_echo_n "checking for $ac_word... " >&6; }
  1690. if ${ac_cv_prog_CC+:} false; then :
  1691. $as_echo_n "(cached) " >&6
  1692. else
  1693. if test -n "$CC"; then
  1694. ac_cv_prog_CC="$CC" # Let the user override the test.
  1695. else
  1696. ac_prog_rejected=no
  1697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1698. for as_dir in $PATH
  1699. do
  1700. IFS=$as_save_IFS
  1701. test -z "$as_dir" && as_dir=.
  1702. for ac_exec_ext in '' $ac_executable_extensions; do
  1703. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1704. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1705. ac_prog_rejected=yes
  1706. continue
  1707. fi
  1708. ac_cv_prog_CC="cc"
  1709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1710. break 2
  1711. fi
  1712. done
  1713. done
  1714. IFS=$as_save_IFS
  1715. if test $ac_prog_rejected = yes; then
  1716. # We found a bogon in the path, so make sure we never use it.
  1717. set dummy $ac_cv_prog_CC
  1718. shift
  1719. if test $# != 0; then
  1720. # We chose a different compiler from the bogus one.
  1721. # However, it has the same basename, so the bogon will be chosen
  1722. # first if we set CC to just the basename; use the full file name.
  1723. shift
  1724. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1725. fi
  1726. fi
  1727. fi
  1728. fi
  1729. CC=$ac_cv_prog_CC
  1730. if test -n "$CC"; then
  1731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1732. $as_echo "$CC" >&6; }
  1733. else
  1734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1735. $as_echo "no" >&6; }
  1736. fi
  1737. fi
  1738. if test -z "$CC"; then
  1739. if test -n "$ac_tool_prefix"; then
  1740. for ac_prog in cl.exe
  1741. do
  1742. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1743. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1745. $as_echo_n "checking for $ac_word... " >&6; }
  1746. if ${ac_cv_prog_CC+:} false; then :
  1747. $as_echo_n "(cached) " >&6
  1748. else
  1749. if test -n "$CC"; then
  1750. ac_cv_prog_CC="$CC" # Let the user override the test.
  1751. else
  1752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1753. for as_dir in $PATH
  1754. do
  1755. IFS=$as_save_IFS
  1756. test -z "$as_dir" && as_dir=.
  1757. for ac_exec_ext in '' $ac_executable_extensions; do
  1758. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1759. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1760. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1761. break 2
  1762. fi
  1763. done
  1764. done
  1765. IFS=$as_save_IFS
  1766. fi
  1767. fi
  1768. CC=$ac_cv_prog_CC
  1769. if test -n "$CC"; then
  1770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  1771. $as_echo "$CC" >&6; }
  1772. else
  1773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1774. $as_echo "no" >&6; }
  1775. fi
  1776. test -n "$CC" && break
  1777. done
  1778. fi
  1779. if test -z "$CC"; then
  1780. ac_ct_CC=$CC
  1781. for ac_prog in cl.exe
  1782. do
  1783. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1784. set dummy $ac_prog; ac_word=$2
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1786. $as_echo_n "checking for $ac_word... " >&6; }
  1787. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  1788. $as_echo_n "(cached) " >&6
  1789. else
  1790. if test -n "$ac_ct_CC"; then
  1791. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1792. else
  1793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1794. for as_dir in $PATH
  1795. do
  1796. IFS=$as_save_IFS
  1797. test -z "$as_dir" && as_dir=.
  1798. for ac_exec_ext in '' $ac_executable_extensions; do
  1799. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1800. ac_cv_prog_ac_ct_CC="$ac_prog"
  1801. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  1802. break 2
  1803. fi
  1804. done
  1805. done
  1806. IFS=$as_save_IFS
  1807. fi
  1808. fi
  1809. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1810. if test -n "$ac_ct_CC"; then
  1811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  1812. $as_echo "$ac_ct_CC" >&6; }
  1813. else
  1814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1815. $as_echo "no" >&6; }
  1816. fi
  1817. test -n "$ac_ct_CC" && break
  1818. done
  1819. if test "x$ac_ct_CC" = x; then
  1820. CC=""
  1821. else
  1822. case $cross_compiling:$ac_tool_warned in
  1823. yes:)
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  1825. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1826. ac_tool_warned=yes ;;
  1827. esac
  1828. CC=$ac_ct_CC
  1829. fi
  1830. fi
  1831. fi
  1832. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1833. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1834. as_fn_error $? "no acceptable C compiler found in \$PATH
  1835. See \`config.log' for more details" "$LINENO" 5; }
  1836. # Provide some information about the compiler.
  1837. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  1838. set X $ac_compile
  1839. ac_compiler=$2
  1840. for ac_option in --version -v -V -qversion; do
  1841. { { ac_try="$ac_compiler $ac_option >&5"
  1842. case "(($ac_try" in
  1843. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1844. *) ac_try_echo=$ac_try;;
  1845. esac
  1846. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1847. $as_echo "$ac_try_echo"; } >&5
  1848. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  1849. ac_status=$?
  1850. if test -s conftest.err; then
  1851. sed '10a\
  1852. ... rest of stderr output deleted ...
  1853. 10q' conftest.err >conftest.er1
  1854. cat conftest.er1 >&5
  1855. fi
  1856. rm -f conftest.er1 conftest.err
  1857. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1858. test $ac_status = 0; }
  1859. done
  1860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1861. /* end confdefs.h. */
  1862. int
  1863. main ()
  1864. {
  1865. ;
  1866. return 0;
  1867. }
  1868. _ACEOF
  1869. ac_clean_files_save=$ac_clean_files
  1870. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  1871. # Try to create an executable without -o first, disregard a.out.
  1872. # It will help us diagnose broken compilers, and finding out an intuition
  1873. # of exeext.
  1874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  1875. $as_echo_n "checking whether the C compiler works... " >&6; }
  1876. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1877. # The possible output files:
  1878. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  1879. ac_rmfiles=
  1880. for ac_file in $ac_files
  1881. do
  1882. case $ac_file in
  1883. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1884. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1885. esac
  1886. done
  1887. rm -f $ac_rmfiles
  1888. if { { ac_try="$ac_link_default"
  1889. case "(($ac_try" in
  1890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1891. *) ac_try_echo=$ac_try;;
  1892. esac
  1893. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1894. $as_echo "$ac_try_echo"; } >&5
  1895. (eval "$ac_link_default") 2>&5
  1896. ac_status=$?
  1897. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1898. test $ac_status = 0; }; then :
  1899. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1900. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1901. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1902. # so that the user can short-circuit this test for compilers unknown to
  1903. # Autoconf.
  1904. for ac_file in $ac_files ''
  1905. do
  1906. test -f "$ac_file" || continue
  1907. case $ac_file in
  1908. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  1909. ;;
  1910. [ab].out )
  1911. # We found the default executable, but exeext='' is most
  1912. # certainly right.
  1913. break;;
  1914. *.* )
  1915. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1916. then :; else
  1917. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1918. fi
  1919. # We set ac_cv_exeext here because the later test for it is not
  1920. # safe: cross compilers may not add the suffix if given an `-o'
  1921. # argument, so we may need to know it at that point already.
  1922. # Even if this section looks crufty: it has the advantage of
  1923. # actually working.
  1924. break;;
  1925. * )
  1926. break;;
  1927. esac
  1928. done
  1929. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1930. else
  1931. ac_file=''
  1932. fi
  1933. if test -z "$ac_file"; then :
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  1935. $as_echo "no" >&6; }
  1936. $as_echo "$as_me: failed program was:" >&5
  1937. sed 's/^/| /' conftest.$ac_ext >&5
  1938. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1939. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1940. as_fn_error 77 "C compiler cannot create executables
  1941. See \`config.log' for more details" "$LINENO" 5; }
  1942. else
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  1944. $as_echo "yes" >&6; }
  1945. fi
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  1947. $as_echo_n "checking for C compiler default output file name... " >&6; }
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  1949. $as_echo "$ac_file" >&6; }
  1950. ac_exeext=$ac_cv_exeext
  1951. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  1952. ac_clean_files=$ac_clean_files_save
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  1954. $as_echo_n "checking for suffix of executables... " >&6; }
  1955. if { { ac_try="$ac_link"
  1956. case "(($ac_try" in
  1957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1958. *) ac_try_echo=$ac_try;;
  1959. esac
  1960. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1961. $as_echo "$ac_try_echo"; } >&5
  1962. (eval "$ac_link") 2>&5
  1963. ac_status=$?
  1964. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1965. test $ac_status = 0; }; then :
  1966. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1967. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1968. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1969. # `rm'.
  1970. for ac_file in conftest.exe conftest conftest.*; do
  1971. test -f "$ac_file" || continue
  1972. case $ac_file in
  1973. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1974. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1975. break;;
  1976. * ) break;;
  1977. esac
  1978. done
  1979. else
  1980. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1981. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1982. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  1983. See \`config.log' for more details" "$LINENO" 5; }
  1984. fi
  1985. rm -f conftest conftest$ac_cv_exeext
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  1987. $as_echo "$ac_cv_exeext" >&6; }
  1988. rm -f conftest.$ac_ext
  1989. EXEEXT=$ac_cv_exeext
  1990. ac_exeext=$EXEEXT
  1991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1992. /* end confdefs.h. */
  1993. #include <stdio.h>
  1994. int
  1995. main ()
  1996. {
  1997. FILE *f = fopen ("conftest.out", "w");
  1998. return ferror (f) || fclose (f) != 0;
  1999. ;
  2000. return 0;
  2001. }
  2002. _ACEOF
  2003. ac_clean_files="$ac_clean_files conftest.out"
  2004. # Check that the compiler produces executables we can run. If not, either
  2005. # the compiler is broken, or we cross compile.
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2007. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2008. if test "$cross_compiling" != yes; then
  2009. { { ac_try="$ac_link"
  2010. case "(($ac_try" in
  2011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2012. *) ac_try_echo=$ac_try;;
  2013. esac
  2014. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2015. $as_echo "$ac_try_echo"; } >&5
  2016. (eval "$ac_link") 2>&5
  2017. ac_status=$?
  2018. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2019. test $ac_status = 0; }
  2020. if { ac_try='./conftest$ac_cv_exeext'
  2021. { { case "(($ac_try" in
  2022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2023. *) ac_try_echo=$ac_try;;
  2024. esac
  2025. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2026. $as_echo "$ac_try_echo"; } >&5
  2027. (eval "$ac_try") 2>&5
  2028. ac_status=$?
  2029. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2030. test $ac_status = 0; }; }; then
  2031. cross_compiling=no
  2032. else
  2033. if test "$cross_compiling" = maybe; then
  2034. cross_compiling=yes
  2035. else
  2036. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2037. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2038. as_fn_error $? "cannot run C compiled programs.
  2039. If you meant to cross compile, use \`--host'.
  2040. See \`config.log' for more details" "$LINENO" 5; }
  2041. fi
  2042. fi
  2043. fi
  2044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2045. $as_echo "$cross_compiling" >&6; }
  2046. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2047. ac_clean_files=$ac_clean_files_save
  2048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2049. $as_echo_n "checking for suffix of object files... " >&6; }
  2050. if ${ac_cv_objext+:} false; then :
  2051. $as_echo_n "(cached) " >&6
  2052. else
  2053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2054. /* end confdefs.h. */
  2055. int
  2056. main ()
  2057. {
  2058. ;
  2059. return 0;
  2060. }
  2061. _ACEOF
  2062. rm -f conftest.o conftest.obj
  2063. if { { ac_try="$ac_compile"
  2064. case "(($ac_try" in
  2065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2066. *) ac_try_echo=$ac_try;;
  2067. esac
  2068. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2069. $as_echo "$ac_try_echo"; } >&5
  2070. (eval "$ac_compile") 2>&5
  2071. ac_status=$?
  2072. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2073. test $ac_status = 0; }; then :
  2074. for ac_file in conftest.o conftest.obj conftest.*; do
  2075. test -f "$ac_file" || continue;
  2076. case $ac_file in
  2077. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2078. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2079. break;;
  2080. esac
  2081. done
  2082. else
  2083. $as_echo "$as_me: failed program was:" >&5
  2084. sed 's/^/| /' conftest.$ac_ext >&5
  2085. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2086. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2087. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2088. See \`config.log' for more details" "$LINENO" 5; }
  2089. fi
  2090. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2091. fi
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2093. $as_echo "$ac_cv_objext" >&6; }
  2094. OBJEXT=$ac_cv_objext
  2095. ac_objext=$OBJEXT
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2097. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2098. if ${ac_cv_c_compiler_gnu+:} false; then :
  2099. $as_echo_n "(cached) " >&6
  2100. else
  2101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2102. /* end confdefs.h. */
  2103. int
  2104. main ()
  2105. {
  2106. #ifndef __GNUC__
  2107. choke me
  2108. #endif
  2109. ;
  2110. return 0;
  2111. }
  2112. _ACEOF
  2113. if ac_fn_c_try_compile "$LINENO"; then :
  2114. ac_compiler_gnu=yes
  2115. else
  2116. ac_compiler_gnu=no
  2117. fi
  2118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2119. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2120. fi
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2122. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2123. if test $ac_compiler_gnu = yes; then
  2124. GCC=yes
  2125. else
  2126. GCC=
  2127. fi
  2128. ac_test_CFLAGS=${CFLAGS+set}
  2129. ac_save_CFLAGS=$CFLAGS
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2131. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2132. if ${ac_cv_prog_cc_g+:} false; then :
  2133. $as_echo_n "(cached) " >&6
  2134. else
  2135. ac_save_c_werror_flag=$ac_c_werror_flag
  2136. ac_c_werror_flag=yes
  2137. ac_cv_prog_cc_g=no
  2138. CFLAGS="-g"
  2139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2140. /* end confdefs.h. */
  2141. int
  2142. main ()
  2143. {
  2144. ;
  2145. return 0;
  2146. }
  2147. _ACEOF
  2148. if ac_fn_c_try_compile "$LINENO"; then :
  2149. ac_cv_prog_cc_g=yes
  2150. else
  2151. CFLAGS=""
  2152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2153. /* end confdefs.h. */
  2154. int
  2155. main ()
  2156. {
  2157. ;
  2158. return 0;
  2159. }
  2160. _ACEOF
  2161. if ac_fn_c_try_compile "$LINENO"; then :
  2162. else
  2163. ac_c_werror_flag=$ac_save_c_werror_flag
  2164. CFLAGS="-g"
  2165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2166. /* end confdefs.h. */
  2167. int
  2168. main ()
  2169. {
  2170. ;
  2171. return 0;
  2172. }
  2173. _ACEOF
  2174. if ac_fn_c_try_compile "$LINENO"; then :
  2175. ac_cv_prog_cc_g=yes
  2176. fi
  2177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2178. fi
  2179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2180. fi
  2181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2182. ac_c_werror_flag=$ac_save_c_werror_flag
  2183. fi
  2184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2185. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2186. if test "$ac_test_CFLAGS" = set; then
  2187. CFLAGS=$ac_save_CFLAGS
  2188. elif test $ac_cv_prog_cc_g = yes; then
  2189. if test "$GCC" = yes; then
  2190. CFLAGS="-g -O2"
  2191. else
  2192. CFLAGS="-g"
  2193. fi
  2194. else
  2195. if test "$GCC" = yes; then
  2196. CFLAGS="-O2"
  2197. else
  2198. CFLAGS=
  2199. fi
  2200. fi
  2201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2202. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2203. if ${ac_cv_prog_cc_c89+:} false; then :
  2204. $as_echo_n "(cached) " >&6
  2205. else
  2206. ac_cv_prog_cc_c89=no
  2207. ac_save_CC=$CC
  2208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2209. /* end confdefs.h. */
  2210. #include <stdarg.h>
  2211. #include <stdio.h>
  2212. struct stat;
  2213. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2214. struct buf { int x; };
  2215. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2216. static char *e (p, i)
  2217. char **p;
  2218. int i;
  2219. {
  2220. return p[i];
  2221. }
  2222. static char *f (char * (*g) (char **, int), char **p, ...)
  2223. {
  2224. char *s;
  2225. va_list v;
  2226. va_start (v,p);
  2227. s = g (p, va_arg (v,int));
  2228. va_end (v);
  2229. return s;
  2230. }
  2231. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2232. function prototypes and stuff, but not '\xHH' hex character constants.
  2233. These don't provoke an error unfortunately, instead are silently treated
  2234. as 'x'. The following induces an error, until -std is added to get
  2235. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2236. array size at least. It's necessary to write '\x00'==0 to get something
  2237. that's true only with -std. */
  2238. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2239. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2240. inside strings and character constants. */
  2241. #define FOO(x) 'x'
  2242. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2243. int test (int i, double x);
  2244. struct s1 {int (*f) (int a);};
  2245. struct s2 {int (*f) (double a);};
  2246. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2247. int argc;
  2248. char **argv;
  2249. int
  2250. main ()
  2251. {
  2252. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2253. ;
  2254. return 0;
  2255. }
  2256. _ACEOF
  2257. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2258. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2259. do
  2260. CC="$ac_save_CC $ac_arg"
  2261. if ac_fn_c_try_compile "$LINENO"; then :
  2262. ac_cv_prog_cc_c89=$ac_arg
  2263. fi
  2264. rm -f core conftest.err conftest.$ac_objext
  2265. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2266. done
  2267. rm -f conftest.$ac_ext
  2268. CC=$ac_save_CC
  2269. fi
  2270. # AC_CACHE_VAL
  2271. case "x$ac_cv_prog_cc_c89" in
  2272. x)
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2274. $as_echo "none needed" >&6; } ;;
  2275. xno)
  2276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2277. $as_echo "unsupported" >&6; } ;;
  2278. *)
  2279. CC="$CC $ac_cv_prog_cc_c89"
  2280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2281. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2282. esac
  2283. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2284. fi
  2285. ac_ext=c
  2286. ac_cpp='$CPP $CPPFLAGS'
  2287. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2288. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2289. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2290. # Check whether --with-xlen was given.
  2291. if test "${with_xlen+set}" = set; then :
  2292. withval=$with_xlen; XLEN=$withval
  2293. else
  2294. XLEN=64
  2295. fi
  2296. ac_config_files="$ac_config_files Makefile"
  2297. cat >confcache <<\_ACEOF
  2298. # This file is a shell script that caches the results of configure
  2299. # tests run on this system so they can be shared between configure
  2300. # scripts and configure runs, see configure's option --config-cache.
  2301. # It is not useful on other systems. If it contains results you don't
  2302. # want to keep, you may remove or edit it.
  2303. #
  2304. # config.status only pays attention to the cache file if you give it
  2305. # the --recheck option to rerun configure.
  2306. #
  2307. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2308. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2309. # following values.
  2310. _ACEOF
  2311. # The following way of writing the cache mishandles newlines in values,
  2312. # but we know of no workaround that is simple, portable, and efficient.
  2313. # So, we kill variables containing newlines.
  2314. # Ultrix sh set writes to stderr and can't be redirected directly,
  2315. # and sets the high bit in the cache file unless we assign to the vars.
  2316. (
  2317. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  2318. eval ac_val=\$$ac_var
  2319. case $ac_val in #(
  2320. *${as_nl}*)
  2321. case $ac_var in #(
  2322. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2323. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2324. esac
  2325. case $ac_var in #(
  2326. _ | IFS | as_nl) ;; #(
  2327. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2328. *) { eval $ac_var=; unset $ac_var;} ;;
  2329. esac ;;
  2330. esac
  2331. done
  2332. (set) 2>&1 |
  2333. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  2334. *${as_nl}ac_space=\ *)
  2335. # `set' does not quote correctly, so add quotes: double-quote
  2336. # substitution turns \\\\ into \\, and sed turns \\ into \.
  2337. sed -n \
  2338. "s/'/'\\\\''/g;
  2339. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2340. ;; #(
  2341. *)
  2342. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2343. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2344. ;;
  2345. esac |
  2346. sort
  2347. ) |
  2348. sed '
  2349. /^ac_cv_env_/b end
  2350. t clear
  2351. :clear
  2352. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2353. t end
  2354. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2355. :end' >>confcache
  2356. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  2357. if test -w "$cache_file"; then
  2358. if test "x$cache_file" != "x/dev/null"; then
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  2360. $as_echo "$as_me: updating cache $cache_file" >&6;}
  2361. if test ! -f "$cache_file" || test -h "$cache_file"; then
  2362. cat confcache >"$cache_file"
  2363. else
  2364. case $cache_file in #(
  2365. */* | ?:*)
  2366. mv -f confcache "$cache_file"$$ &&
  2367. mv -f "$cache_file"$$ "$cache_file" ;; #(
  2368. *)
  2369. mv -f confcache "$cache_file" ;;
  2370. esac
  2371. fi
  2372. fi
  2373. else
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  2375. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  2376. fi
  2377. fi
  2378. rm -f confcache
  2379. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2380. # Let make expand exec_prefix.
  2381. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2382. # Transform confdefs.h into DEFS.
  2383. # Protect against shell expansion while executing Makefile rules.
  2384. # Protect against Makefile macro expansion.
  2385. #
  2386. # If the first sed substitution is executed (which looks for macros that
  2387. # take arguments), then branch to the quote section. Otherwise,
  2388. # look for a macro that doesn't take arguments.
  2389. ac_script='
  2390. :mline
  2391. /\\$/{
  2392. N
  2393. s,\\\n,,
  2394. b mline
  2395. }
  2396. t clear
  2397. :clear
  2398. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  2399. t quote
  2400. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  2401. t quote
  2402. b any
  2403. :quote
  2404. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  2405. s/\[/\\&/g
  2406. s/\]/\\&/g
  2407. s/\$/$$/g
  2408. H
  2409. :any
  2410. ${
  2411. g
  2412. s/^\n//
  2413. s/\n/ /g
  2414. p
  2415. }
  2416. '
  2417. DEFS=`sed -n "$ac_script" confdefs.h`
  2418. ac_libobjs=
  2419. ac_ltlibobjs=
  2420. U=
  2421. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  2422. # 1. Remove the extension, and $U if already installed.
  2423. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  2424. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  2425. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  2426. # will be set to the directory where LIBOBJS objects are built.
  2427. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  2428. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  2429. done
  2430. LIBOBJS=$ac_libobjs
  2431. LTLIBOBJS=$ac_ltlibobjs
  2432. : "${CONFIG_STATUS=./config.status}"
  2433. ac_write_fail=0
  2434. ac_clean_files_save=$ac_clean_files
  2435. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  2437. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  2438. as_write_fail=0
  2439. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  2440. #! $SHELL
  2441. # Generated by $as_me.
  2442. # Run this file to recreate the current configuration.
  2443. # Compiler output produced by configure, useful for debugging
  2444. # configure, is in config.log if it exists.
  2445. debug=false
  2446. ac_cs_recheck=false
  2447. ac_cs_silent=false
  2448. SHELL=\${CONFIG_SHELL-$SHELL}
  2449. export SHELL
  2450. _ASEOF
  2451. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  2452. ## -------------------- ##
  2453. ## M4sh Initialization. ##
  2454. ## -------------------- ##
  2455. # Be more Bourne compatible
  2456. DUALCASE=1; export DUALCASE # for MKS sh
  2457. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  2458. emulate sh
  2459. NULLCMD=:
  2460. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  2461. # is contrary to our usage. Disable this feature.
  2462. alias -g '${1+"$@"}'='"$@"'
  2463. setopt NO_GLOB_SUBST
  2464. else
  2465. case `(set -o) 2>/dev/null` in #(
  2466. *posix*) :
  2467. set -o posix ;; #(
  2468. *) :
  2469. ;;
  2470. esac
  2471. fi
  2472. as_nl='
  2473. '
  2474. export as_nl
  2475. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  2476. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2477. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  2478. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  2479. # Prefer a ksh shell builtin over an external printf program on Solaris,
  2480. # but without wasting forks for bash or zsh.
  2481. if test -z "$BASH_VERSION$ZSH_VERSION" \
  2482. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  2483. as_echo='print -r --'
  2484. as_echo_n='print -rn --'
  2485. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  2486. as_echo='printf %s\n'
  2487. as_echo_n='printf %s'
  2488. else
  2489. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  2490. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  2491. as_echo_n='/usr/ucb/echo -n'
  2492. else
  2493. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  2494. as_echo_n_body='eval
  2495. arg=$1;
  2496. case $arg in #(
  2497. *"$as_nl"*)
  2498. expr "X$arg" : "X\\(.*\\)$as_nl";
  2499. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  2500. esac;
  2501. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  2502. '
  2503. export as_echo_n_body
  2504. as_echo_n='sh -c $as_echo_n_body as_echo'
  2505. fi
  2506. export as_echo_body
  2507. as_echo='sh -c $as_echo_body as_echo'
  2508. fi
  2509. # The user is always right.
  2510. if test "${PATH_SEPARATOR+set}" != set; then
  2511. PATH_SEPARATOR=:
  2512. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  2513. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  2514. PATH_SEPARATOR=';'
  2515. }
  2516. fi
  2517. # IFS
  2518. # We need space, tab and new line, in precisely that order. Quoting is
  2519. # there to prevent editors from complaining about space-tab.
  2520. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  2521. # splitting by setting IFS to empty value.)
  2522. IFS=" "" $as_nl"
  2523. # Find who we are. Look in the path if we contain no directory separator.
  2524. as_myself=
  2525. case $0 in #((
  2526. *[\\/]* ) as_myself=$0 ;;
  2527. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2528. for as_dir in $PATH
  2529. do
  2530. IFS=$as_save_IFS
  2531. test -z "$as_dir" && as_dir=.
  2532. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  2533. done
  2534. IFS=$as_save_IFS
  2535. ;;
  2536. esac
  2537. # We did not find ourselves, most probably we were run as `sh COMMAND'
  2538. # in which case we are not to be found in the path.
  2539. if test "x$as_myself" = x; then
  2540. as_myself=$0
  2541. fi
  2542. if test ! -f "$as_myself"; then
  2543. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  2544. exit 1
  2545. fi
  2546. # Unset variables that we do not need and which cause bugs (e.g. in
  2547. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  2548. # suppresses any "Segmentation fault" message there. '((' could
  2549. # trigger a bug in pdksh 5.2.14.
  2550. for as_var in BASH_ENV ENV MAIL MAILPATH
  2551. do eval test x\${$as_var+set} = xset \
  2552. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  2553. done
  2554. PS1='$ '
  2555. PS2='> '
  2556. PS4='+ '
  2557. # NLS nuisances.
  2558. LC_ALL=C
  2559. export LC_ALL
  2560. LANGUAGE=C
  2561. export LANGUAGE
  2562. # CDPATH.
  2563. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  2564. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  2565. # ----------------------------------------
  2566. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  2567. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  2568. # script with STATUS, using 1 if that was 0.
  2569. as_fn_error ()
  2570. {
  2571. as_status=$1; test $as_status -eq 0 && as_status=1
  2572. if test "$4"; then
  2573. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2574. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  2575. fi
  2576. $as_echo "$as_me: error: $2" >&2
  2577. as_fn_exit $as_status
  2578. } # as_fn_error
  2579. # as_fn_set_status STATUS
  2580. # -----------------------
  2581. # Set $? to STATUS, without forking.
  2582. as_fn_set_status ()
  2583. {
  2584. return $1
  2585. } # as_fn_set_status
  2586. # as_fn_exit STATUS
  2587. # -----------------
  2588. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  2589. as_fn_exit ()
  2590. {
  2591. set +e
  2592. as_fn_set_status $1
  2593. exit $1
  2594. } # as_fn_exit
  2595. # as_fn_unset VAR
  2596. # ---------------
  2597. # Portably unset VAR.
  2598. as_fn_unset ()
  2599. {
  2600. { eval $1=; unset $1;}
  2601. }
  2602. as_unset=as_fn_unset
  2603. # as_fn_append VAR VALUE
  2604. # ----------------------
  2605. # Append the text in VALUE to the end of the definition contained in VAR. Take
  2606. # advantage of any shell optimizations that allow amortized linear growth over
  2607. # repeated appends, instead of the typical quadratic growth present in naive
  2608. # implementations.
  2609. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  2610. eval 'as_fn_append ()
  2611. {
  2612. eval $1+=\$2
  2613. }'
  2614. else
  2615. as_fn_append ()
  2616. {
  2617. eval $1=\$$1\$2
  2618. }
  2619. fi # as_fn_append
  2620. # as_fn_arith ARG...
  2621. # ------------------
  2622. # Perform arithmetic evaluation on the ARGs, and store the result in the
  2623. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  2624. # must be portable across $(()) and expr.
  2625. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  2626. eval 'as_fn_arith ()
  2627. {
  2628. as_val=$(( $* ))
  2629. }'
  2630. else
  2631. as_fn_arith ()
  2632. {
  2633. as_val=`expr "$@" || test $? -eq 1`
  2634. }
  2635. fi # as_fn_arith
  2636. if expr a : '\(a\)' >/dev/null 2>&1 &&
  2637. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  2638. as_expr=expr
  2639. else
  2640. as_expr=false
  2641. fi
  2642. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  2643. as_basename=basename
  2644. else
  2645. as_basename=false
  2646. fi
  2647. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  2648. as_dirname=dirname
  2649. else
  2650. as_dirname=false
  2651. fi
  2652. as_me=`$as_basename -- "$0" ||
  2653. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  2654. X"$0" : 'X\(//\)$' \| \
  2655. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  2656. $as_echo X/"$0" |
  2657. sed '/^.*\/\([^/][^/]*\)\/*$/{
  2658. s//\1/
  2659. q
  2660. }
  2661. /^X\/\(\/\/\)$/{
  2662. s//\1/
  2663. q
  2664. }
  2665. /^X\/\(\/\).*/{
  2666. s//\1/
  2667. q
  2668. }
  2669. s/.*/./; q'`
  2670. # Avoid depending upon Character Ranges.
  2671. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  2672. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  2673. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  2674. as_cr_digits='0123456789'
  2675. as_cr_alnum=$as_cr_Letters$as_cr_digits
  2676. ECHO_C= ECHO_N= ECHO_T=
  2677. case `echo -n x` in #(((((
  2678. -n*)
  2679. case `echo 'xy\c'` in
  2680. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  2681. xy) ECHO_C='\c';;
  2682. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  2683. ECHO_T=' ';;
  2684. esac;;
  2685. *)
  2686. ECHO_N='-n';;
  2687. esac
  2688. rm -f conf$$ conf$$.exe conf$$.file
  2689. if test -d conf$$.dir; then
  2690. rm -f conf$$.dir/conf$$.file
  2691. else
  2692. rm -f conf$$.dir
  2693. mkdir conf$$.dir 2>/dev/null
  2694. fi
  2695. if (echo >conf$$.file) 2>/dev/null; then
  2696. if ln -s conf$$.file conf$$ 2>/dev/null; then
  2697. as_ln_s='ln -s'
  2698. # ... but there are two gotchas:
  2699. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  2700. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  2701. # In both cases, we have to default to `cp -pR'.
  2702. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  2703. as_ln_s='cp -pR'
  2704. elif ln conf$$.file conf$$ 2>/dev/null; then
  2705. as_ln_s=ln
  2706. else
  2707. as_ln_s='cp -pR'
  2708. fi
  2709. else
  2710. as_ln_s='cp -pR'
  2711. fi
  2712. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  2713. rmdir conf$$.dir 2>/dev/null
  2714. # as_fn_mkdir_p
  2715. # -------------
  2716. # Create "$as_dir" as a directory, including parents if necessary.
  2717. as_fn_mkdir_p ()
  2718. {
  2719. case $as_dir in #(
  2720. -*) as_dir=./$as_dir;;
  2721. esac
  2722. test -d "$as_dir" || eval $as_mkdir_p || {
  2723. as_dirs=
  2724. while :; do
  2725. case $as_dir in #(
  2726. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  2727. *) as_qdir=$as_dir;;
  2728. esac
  2729. as_dirs="'$as_qdir' $as_dirs"
  2730. as_dir=`$as_dirname -- "$as_dir" ||
  2731. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2732. X"$as_dir" : 'X\(//\)[^/]' \| \
  2733. X"$as_dir" : 'X\(//\)$' \| \
  2734. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  2735. $as_echo X"$as_dir" |
  2736. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  2737. s//\1/
  2738. q
  2739. }
  2740. /^X\(\/\/\)[^/].*/{
  2741. s//\1/
  2742. q
  2743. }
  2744. /^X\(\/\/\)$/{
  2745. s//\1/
  2746. q
  2747. }
  2748. /^X\(\/\).*/{
  2749. s//\1/
  2750. q
  2751. }
  2752. s/.*/./; q'`
  2753. test -d "$as_dir" && break
  2754. done
  2755. test -z "$as_dirs" || eval "mkdir $as_dirs"
  2756. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  2757. } # as_fn_mkdir_p
  2758. if mkdir -p . 2>/dev/null; then
  2759. as_mkdir_p='mkdir -p "$as_dir"'
  2760. else
  2761. test -d ./-p && rmdir ./-p
  2762. as_mkdir_p=false
  2763. fi
  2764. # as_fn_executable_p FILE
  2765. # -----------------------
  2766. # Test if FILE is an executable regular file.
  2767. as_fn_executable_p ()
  2768. {
  2769. test -f "$1" && test -x "$1"
  2770. } # as_fn_executable_p
  2771. as_test_x='test -x'
  2772. as_executable_p=as_fn_executable_p
  2773. # Sed expression to map a string onto a valid CPP name.
  2774. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  2775. # Sed expression to map a string onto a valid variable name.
  2776. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  2777. exec 6>&1
  2778. ## ----------------------------------- ##
  2779. ## Main body of $CONFIG_STATUS script. ##
  2780. ## ----------------------------------- ##
  2781. _ASEOF
  2782. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  2783. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2784. # Save the log message, to keep $0 and so on meaningful, and to
  2785. # report actual input values of CONFIG_FILES etc. instead of their
  2786. # values after options handling.
  2787. ac_log="
  2788. This file was extended by riscv-tests $as_me 1.0, which was
  2789. generated by GNU Autoconf 2.69. Invocation command line was
  2790. CONFIG_FILES = $CONFIG_FILES
  2791. CONFIG_HEADERS = $CONFIG_HEADERS
  2792. CONFIG_LINKS = $CONFIG_LINKS
  2793. CONFIG_COMMANDS = $CONFIG_COMMANDS
  2794. $ $0 $@
  2795. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  2796. "
  2797. _ACEOF
  2798. case $ac_config_files in *"
  2799. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  2800. esac
  2801. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2802. # Files that config.status was made for.
  2803. config_files="$ac_config_files"
  2804. _ACEOF
  2805. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2806. ac_cs_usage="\
  2807. \`$as_me' instantiates files and other configuration actions
  2808. from templates according to the current configuration. Unless the files
  2809. and actions are specified as TAGs, all are instantiated by default.
  2810. Usage: $0 [OPTION]... [TAG]...
  2811. -h, --help print this help, then exit
  2812. -V, --version print version number and configuration settings, then exit
  2813. --config print configuration, then exit
  2814. -q, --quiet, --silent
  2815. do not print progress messages
  2816. -d, --debug don't remove temporary files
  2817. --recheck update $as_me by reconfiguring in the same conditions
  2818. --file=FILE[:TEMPLATE]
  2819. instantiate the configuration file FILE
  2820. Configuration files:
  2821. $config_files
  2822. Report bugs to the package provider."
  2823. _ACEOF
  2824. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2825. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  2826. ac_cs_version="\\
  2827. riscv-tests config.status 1.0
  2828. configured by $0, generated by GNU Autoconf 2.69,
  2829. with options \\"\$ac_cs_config\\"
  2830. Copyright (C) 2012 Free Software Foundation, Inc.
  2831. This config.status script is free software; the Free Software Foundation
  2832. gives unlimited permission to copy, distribute and modify it."
  2833. ac_pwd='$ac_pwd'
  2834. srcdir='$srcdir'
  2835. test -n "\$AWK" || AWK=awk
  2836. _ACEOF
  2837. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2838. # The default lists apply if the user does not specify any file.
  2839. ac_need_defaults=:
  2840. while test $# != 0
  2841. do
  2842. case $1 in
  2843. --*=?*)
  2844. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  2845. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  2846. ac_shift=:
  2847. ;;
  2848. --*=)
  2849. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  2850. ac_optarg=
  2851. ac_shift=:
  2852. ;;
  2853. *)
  2854. ac_option=$1
  2855. ac_optarg=$2
  2856. ac_shift=shift
  2857. ;;
  2858. esac
  2859. case $ac_option in
  2860. # Handling of the options.
  2861. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  2862. ac_cs_recheck=: ;;
  2863. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  2864. $as_echo "$ac_cs_version"; exit ;;
  2865. --config | --confi | --conf | --con | --co | --c )
  2866. $as_echo "$ac_cs_config"; exit ;;
  2867. --debug | --debu | --deb | --de | --d | -d )
  2868. debug=: ;;
  2869. --file | --fil | --fi | --f )
  2870. $ac_shift
  2871. case $ac_optarg in
  2872. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2873. '') as_fn_error $? "missing file argument" ;;
  2874. esac
  2875. as_fn_append CONFIG_FILES " '$ac_optarg'"
  2876. ac_need_defaults=false;;
  2877. --he | --h | --help | --hel | -h )
  2878. $as_echo "$ac_cs_usage"; exit ;;
  2879. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2880. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  2881. ac_cs_silent=: ;;
  2882. # This is an error.
  2883. -*) as_fn_error $? "unrecognized option: \`$1'
  2884. Try \`$0 --help' for more information." ;;
  2885. *) as_fn_append ac_config_targets " $1"
  2886. ac_need_defaults=false ;;
  2887. esac
  2888. shift
  2889. done
  2890. ac_configure_extra_args=
  2891. if $ac_cs_silent; then
  2892. exec 6>/dev/null
  2893. ac_configure_extra_args="$ac_configure_extra_args --silent"
  2894. fi
  2895. _ACEOF
  2896. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2897. if \$ac_cs_recheck; then
  2898. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  2899. shift
  2900. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  2901. CONFIG_SHELL='$SHELL'
  2902. export CONFIG_SHELL
  2903. exec "\$@"
  2904. fi
  2905. _ACEOF
  2906. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2907. exec 5>>config.log
  2908. {
  2909. echo
  2910. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  2911. ## Running $as_me. ##
  2912. _ASBOX
  2913. $as_echo "$ac_log"
  2914. } >&5
  2915. _ACEOF
  2916. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  2917. _ACEOF
  2918. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  2919. # Handling of arguments.
  2920. for ac_config_target in $ac_config_targets
  2921. do
  2922. case $ac_config_target in
  2923. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  2924. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  2925. esac
  2926. done
  2927. # If the user did not use the arguments to specify the items to instantiate,
  2928. # then the envvar interface is used. Set only those that are not.
  2929. # We use the long form for the default assignment because of an extremely
  2930. # bizarre bug on SunOS 4.1.3.
  2931. if $ac_need_defaults; then
  2932. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  2933. fi
  2934. # Have a temporary directory for convenience. Make it in the build tree
  2935. # simply because there is no reason against having it here, and in addition,
  2936. # creating and moving files from /tmp can sometimes cause problems.
  2937. # Hook for its removal unless debugging.
  2938. # Note that there is a small window in which the directory will not be cleaned:
  2939. # after its creation but before its name has been assigned to `$tmp'.
  2940. $debug ||
  2941. {
  2942. tmp= ac_tmp=
  2943. trap 'exit_status=$?
  2944. : "${ac_tmp:=$tmp}"
  2945. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  2946. ' 0
  2947. trap 'as_fn_exit 1' 1 2 13 15
  2948. }
  2949. # Create a (secure) tmp directory for tmp files.
  2950. {
  2951. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  2952. test -d "$tmp"
  2953. } ||
  2954. {
  2955. tmp=./conf$$-$RANDOM
  2956. (umask 077 && mkdir "$tmp")
  2957. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  2958. ac_tmp=$tmp
  2959. # Set up the scripts for CONFIG_FILES section.
  2960. # No need to generate them if there are no CONFIG_FILES.
  2961. # This happens for instance with `./config.status config.h'.
  2962. if test -n "$CONFIG_FILES"; then
  2963. ac_cr=`echo X | tr X '\015'`
  2964. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  2965. # But we know of no other shell where ac_cr would be empty at this
  2966. # point, so we can use a bashism as a fallback.
  2967. if test "x$ac_cr" = x; then
  2968. eval ac_cr=\$\'\\r\'
  2969. fi
  2970. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  2971. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  2972. ac_cs_awk_cr='\\r'
  2973. else
  2974. ac_cs_awk_cr=$ac_cr
  2975. fi
  2976. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  2977. _ACEOF
  2978. {
  2979. echo "cat >conf$$subs.awk <<_ACEOF" &&
  2980. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  2981. echo "_ACEOF"
  2982. } >conf$$subs.sh ||
  2983. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2984. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  2985. ac_delim='%!_!# '
  2986. for ac_last_try in false false false false false :; do
  2987. . ./conf$$subs.sh ||
  2988. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2989. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  2990. if test $ac_delim_n = $ac_delim_num; then
  2991. break
  2992. elif $ac_last_try; then
  2993. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  2994. else
  2995. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  2996. fi
  2997. done
  2998. rm -f conf$$subs.sh
  2999. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3000. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  3001. _ACEOF
  3002. sed -n '
  3003. h
  3004. s/^/S["/; s/!.*/"]=/
  3005. p
  3006. g
  3007. s/^[^!]*!//
  3008. :repl
  3009. t repl
  3010. s/'"$ac_delim"'$//
  3011. t delim
  3012. :nl
  3013. h
  3014. s/\(.\{148\}\)..*/\1/
  3015. t more1
  3016. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  3017. p
  3018. n
  3019. b repl
  3020. :more1
  3021. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  3022. p
  3023. g
  3024. s/.\{148\}//
  3025. t nl
  3026. :delim
  3027. h
  3028. s/\(.\{148\}\)..*/\1/
  3029. t more2
  3030. s/["\\]/\\&/g; s/^/"/; s/$/"/
  3031. p
  3032. b
  3033. :more2
  3034. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  3035. p
  3036. g
  3037. s/.\{148\}//
  3038. t delim
  3039. ' <conf$$subs.awk | sed '
  3040. /^[^""]/{
  3041. N
  3042. s/\n//
  3043. }
  3044. ' >>$CONFIG_STATUS || ac_write_fail=1
  3045. rm -f conf$$subs.awk
  3046. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3047. _ACAWK
  3048. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  3049. for (key in S) S_is_set[key] = 1
  3050. FS = ""
  3051. }
  3052. {
  3053. line = $ 0
  3054. nfields = split(line, field, "@")
  3055. substed = 0
  3056. len = length(field[1])
  3057. for (i = 2; i < nfields; i++) {
  3058. key = field[i]
  3059. keylen = length(key)
  3060. if (S_is_set[key]) {
  3061. value = S[key]
  3062. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  3063. len += length(value) + length(field[++i])
  3064. substed = 1
  3065. } else
  3066. len += 1 + keylen
  3067. }
  3068. print line
  3069. }
  3070. _ACAWK
  3071. _ACEOF
  3072. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3073. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  3074. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  3075. else
  3076. cat
  3077. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  3078. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  3079. _ACEOF
  3080. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  3081. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  3082. # trailing colons and then remove the whole line if VPATH becomes empty
  3083. # (actually we leave an empty line to preserve line numbers).
  3084. if test "x$srcdir" = x.; then
  3085. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  3086. h
  3087. s///
  3088. s/^/:/
  3089. s/[ ]*$/:/
  3090. s/:\$(srcdir):/:/g
  3091. s/:\${srcdir}:/:/g
  3092. s/:@srcdir@:/:/g
  3093. s/^:*//
  3094. s/:*$//
  3095. x
  3096. s/\(=[ ]*\).*/\1/
  3097. G
  3098. s/\n//
  3099. s/^[^=]*=[ ]*$//
  3100. }'
  3101. fi
  3102. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3103. fi # test -n "$CONFIG_FILES"
  3104. eval set X " :F $CONFIG_FILES "
  3105. shift
  3106. for ac_tag
  3107. do
  3108. case $ac_tag in
  3109. :[FHLC]) ac_mode=$ac_tag; continue;;
  3110. esac
  3111. case $ac_mode$ac_tag in
  3112. :[FHL]*:*);;
  3113. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  3114. :[FH]-) ac_tag=-:-;;
  3115. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  3116. esac
  3117. ac_save_IFS=$IFS
  3118. IFS=:
  3119. set x $ac_tag
  3120. IFS=$ac_save_IFS
  3121. shift
  3122. ac_file=$1
  3123. shift
  3124. case $ac_mode in
  3125. :L) ac_source=$1;;
  3126. :[FH])
  3127. ac_file_inputs=
  3128. for ac_f
  3129. do
  3130. case $ac_f in
  3131. -) ac_f="$ac_tmp/stdin";;
  3132. *) # Look for the file first in the build tree, then in the source tree
  3133. # (if the path is not absolute). The absolute path cannot be DOS-style,
  3134. # because $ac_f cannot contain `:'.
  3135. test -f "$ac_f" ||
  3136. case $ac_f in
  3137. [\\/$]*) false;;
  3138. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  3139. esac ||
  3140. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  3141. esac
  3142. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  3143. as_fn_append ac_file_inputs " '$ac_f'"
  3144. done
  3145. # Let's still pretend it is `configure' which instantiates (i.e., don't
  3146. # use $as_me), people would be surprised to read:
  3147. # /* config.h. Generated by config.status. */
  3148. configure_input='Generated from '`
  3149. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  3150. `' by configure.'
  3151. if test x"$ac_file" != x-; then
  3152. configure_input="$ac_file. $configure_input"
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  3154. $as_echo "$as_me: creating $ac_file" >&6;}
  3155. fi
  3156. # Neutralize special characters interpreted by sed in replacement strings.
  3157. case $configure_input in #(
  3158. *\&* | *\|* | *\\* )
  3159. ac_sed_conf_input=`$as_echo "$configure_input" |
  3160. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  3161. *) ac_sed_conf_input=$configure_input;;
  3162. esac
  3163. case $ac_tag in
  3164. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  3165. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  3166. esac
  3167. ;;
  3168. esac
  3169. ac_dir=`$as_dirname -- "$ac_file" ||
  3170. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3171. X"$ac_file" : 'X\(//\)[^/]' \| \
  3172. X"$ac_file" : 'X\(//\)$' \| \
  3173. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  3174. $as_echo X"$ac_file" |
  3175. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  3176. s//\1/
  3177. q
  3178. }
  3179. /^X\(\/\/\)[^/].*/{
  3180. s//\1/
  3181. q
  3182. }
  3183. /^X\(\/\/\)$/{
  3184. s//\1/
  3185. q
  3186. }
  3187. /^X\(\/\).*/{
  3188. s//\1/
  3189. q
  3190. }
  3191. s/.*/./; q'`
  3192. as_dir="$ac_dir"; as_fn_mkdir_p
  3193. ac_builddir=.
  3194. case "$ac_dir" in
  3195. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  3196. *)
  3197. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  3198. # A ".." for each directory in $ac_dir_suffix.
  3199. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  3200. case $ac_top_builddir_sub in
  3201. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  3202. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  3203. esac ;;
  3204. esac
  3205. ac_abs_top_builddir=$ac_pwd
  3206. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  3207. # for backward compatibility:
  3208. ac_top_builddir=$ac_top_build_prefix
  3209. case $srcdir in
  3210. .) # We are building in place.
  3211. ac_srcdir=.
  3212. ac_top_srcdir=$ac_top_builddir_sub
  3213. ac_abs_top_srcdir=$ac_pwd ;;
  3214. [\\/]* | ?:[\\/]* ) # Absolute name.
  3215. ac_srcdir=$srcdir$ac_dir_suffix;
  3216. ac_top_srcdir=$srcdir
  3217. ac_abs_top_srcdir=$srcdir ;;
  3218. *) # Relative name.
  3219. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  3220. ac_top_srcdir=$ac_top_build_prefix$srcdir
  3221. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  3222. esac
  3223. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  3224. case $ac_mode in
  3225. :F)
  3226. #
  3227. # CONFIG_FILE
  3228. #
  3229. _ACEOF
  3230. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3231. # If the template does not know about datarootdir, expand it.
  3232. # FIXME: This hack should be removed a few years after 2.60.
  3233. ac_datarootdir_hack=; ac_datarootdir_seen=
  3234. ac_sed_dataroot='
  3235. /datarootdir/ {
  3236. p
  3237. q
  3238. }
  3239. /@datadir@/p
  3240. /@docdir@/p
  3241. /@infodir@/p
  3242. /@localedir@/p
  3243. /@mandir@/p'
  3244. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  3245. *datarootdir*) ac_datarootdir_seen=yes;;
  3246. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  3248. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  3249. _ACEOF
  3250. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3251. ac_datarootdir_hack='
  3252. s&@datadir@&$datadir&g
  3253. s&@docdir@&$docdir&g
  3254. s&@infodir@&$infodir&g
  3255. s&@localedir@&$localedir&g
  3256. s&@mandir@&$mandir&g
  3257. s&\\\${datarootdir}&$datarootdir&g' ;;
  3258. esac
  3259. _ACEOF
  3260. # Neutralize VPATH when `$srcdir' = `.'.
  3261. # Shell code in configure.ac might set extrasub.
  3262. # FIXME: do we really want to maintain this feature?
  3263. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3264. ac_sed_extra="$ac_vpsub
  3265. $extrasub
  3266. _ACEOF
  3267. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3268. :t
  3269. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  3270. s|@configure_input@|$ac_sed_conf_input|;t t
  3271. s&@top_builddir@&$ac_top_builddir_sub&;t t
  3272. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  3273. s&@srcdir@&$ac_srcdir&;t t
  3274. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  3275. s&@top_srcdir@&$ac_top_srcdir&;t t
  3276. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  3277. s&@builddir@&$ac_builddir&;t t
  3278. s&@abs_builddir@&$ac_abs_builddir&;t t
  3279. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  3280. $ac_datarootdir_hack
  3281. "
  3282. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  3283. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  3284. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  3285. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  3286. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  3287. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  3289. which seems to be undefined. Please make sure it is defined" >&5
  3290. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  3291. which seems to be undefined. Please make sure it is defined" >&2;}
  3292. rm -f "$ac_tmp/stdin"
  3293. case $ac_file in
  3294. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  3295. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  3296. esac \
  3297. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  3298. ;;
  3299. esac
  3300. done # for ac_tag
  3301. as_fn_exit 0
  3302. _ACEOF
  3303. ac_clean_files=$ac_clean_files_save
  3304. test $ac_write_fail = 0 ||
  3305. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  3306. # configure is writing to config.log, and then calls config.status.
  3307. # config.status does its own redirection, appending to config.log.
  3308. # Unfortunately, on DOS this fails, as config.log is still kept open
  3309. # by configure, so config.status won't be able to write to it; its
  3310. # output is simply discarded. So we exec the FD to /dev/null,
  3311. # effectively closing config.log, so it can be properly (re)opened and
  3312. # appended to by config.status. When coming back to configure, we
  3313. # need to make the FD available again.
  3314. if test "$no_create" != yes; then
  3315. ac_cs_success=:
  3316. ac_config_status_args=
  3317. test "$silent" = yes &&
  3318. ac_config_status_args="$ac_config_status_args --quiet"
  3319. exec 5>/dev/null
  3320. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  3321. exec 5>>config.log
  3322. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  3323. # would make configure fail if this is the last instruction.
  3324. $ac_cs_success || as_fn_exit 1
  3325. fi
  3326. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  3328. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  3329. fi