gdb/gdbserver/config.status - gdb

Functions defined

Source code

  1. #! /bin/sh
  2. # Generated by configure.
  3. # Run this file to recreate the current configuration.
  4. # Compiler output produced by configure, useful for debugging
  5. # configure, is in config.log if it exists.

  6. debug=false
  7. ac_cs_recheck=false
  8. ac_cs_silent=false

  9. SHELL=${CONFIG_SHELL-/bin/sh}
  10. export SHELL
  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. case $0 in #((
  84.   *[\\/]* ) as_myself=$0 ;;
  85.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88.   IFS=$as_save_IFS
  89.   test -z "$as_dir" && as_dir=.
  90.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91.   done
  92. IFS=$as_save_IFS

  93.      ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98.   as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102.   exit 1
  103. fi

  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there.  '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '

  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE

  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH


  122. # as_fn_error ERROR [LINENO LOG_FD]
  123. # ---------------------------------
  124. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  125. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  126. # script with status $?, using 1 if that was 0.
  127. as_fn_error ()
  128. {
  129.   as_status=$?; test $as_status -eq 0 && as_status=1
  130.   if test "$3"; then
  131.     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  132.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  133.   fi
  134.   $as_echo "$as_me: error: $1" >&2
  135.   as_fn_exit $as_status
  136. } # as_fn_error


  137. # as_fn_set_status STATUS
  138. # -----------------------
  139. # Set $? to STATUS, without forking.
  140. as_fn_set_status ()
  141. {
  142.   return $1
  143. } # as_fn_set_status

  144. # as_fn_exit STATUS
  145. # -----------------
  146. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  147. as_fn_exit ()
  148. {
  149.   set +e
  150.   as_fn_set_status $1
  151.   exit $1
  152. } # as_fn_exit

  153. # as_fn_unset VAR
  154. # ---------------
  155. # Portably unset VAR.
  156. as_fn_unset ()
  157. {
  158.   { eval $1=; unset $1;}
  159. }
  160. as_unset=as_fn_unset
  161. # as_fn_append VAR VALUE
  162. # ----------------------
  163. # Append the text in VALUE to the end of the definition contained in VAR. Take
  164. # advantage of any shell optimizations that allow amortized linear growth over
  165. # repeated appends, instead of the typical quadratic growth present in naive
  166. # implementations.
  167. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  168.   eval 'as_fn_append ()
  169.   {
  170.     eval $1+=\$2
  171.   }'
  172. else
  173.   as_fn_append ()
  174.   {
  175.     eval $1=\$$1\$2
  176.   }
  177. fi # as_fn_append

  178. # as_fn_arith ARG...
  179. # ------------------
  180. # Perform arithmetic evaluation on the ARGs, and store the result in the
  181. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  182. # must be portable across $(()) and expr.
  183. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  184.   eval 'as_fn_arith ()
  185.   {
  186.     as_val=$(( $* ))
  187.   }'
  188. else
  189.   as_fn_arith ()
  190.   {
  191.     as_val=`expr "$@" || test $? -eq 1`
  192.   }
  193. fi # as_fn_arith


  194. if expr a : '\(a\)' >/dev/null 2>&1 &&
  195.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  196.   as_expr=expr
  197. else
  198.   as_expr=false
  199. fi

  200. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  201.   as_basename=basename
  202. else
  203.   as_basename=false
  204. fi

  205. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  206.   as_dirname=dirname
  207. else
  208.   as_dirname=false
  209. fi

  210. as_me=`$as_basename -- "$0" ||
  211. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  212.          X"$0" : 'X\(//\)$' \| \
  213.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  214. $as_echo X/"$0" |
  215.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  216.             s//\1/
  217.             q
  218.           }
  219.           /^X\/\(\/\/\)$/{
  220.             s//\1/
  221.             q
  222.           }
  223.           /^X\/\(\/\).*/{
  224.             s//\1/
  225.             q
  226.           }
  227.           s/.*/./; q'`

  228. # Avoid depending upon Character Ranges.
  229. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  230. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  231. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  232. as_cr_digits='0123456789'
  233. as_cr_alnum=$as_cr_Letters$as_cr_digits

  234. ECHO_C= ECHO_N= ECHO_T=
  235. case `echo -n x` in #(((((
  236. -n*)
  237.   case `echo 'xy\c'` in
  238.   *c*) ECHO_T='        ';;        # ECHO_T is single tab character.
  239.   xy)  ECHO_C='\c';;
  240.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  241.        ECHO_T='        ';;
  242.   esac;;
  243. *)
  244.   ECHO_N='-n';;
  245. esac

  246. rm -f conf$$ conf$$.exe conf$$.file
  247. if test -d conf$$.dir; then
  248.   rm -f conf$$.dir/conf$$.file
  249. else
  250.   rm -f conf$$.dir
  251.   mkdir conf$$.dir 2>/dev/null
  252. fi
  253. if (echo >conf$$.file) 2>/dev/null; then
  254.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  255.     as_ln_s='ln -s'
  256.     # ... but there are two gotchas:
  257.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  258.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  259.     # In both cases, we have to default to `cp -p'.
  260.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  261.       as_ln_s='cp -p'
  262.   elif ln conf$$.file conf$$ 2>/dev/null; then
  263.     as_ln_s=ln
  264.   else
  265.     as_ln_s='cp -p'
  266.   fi
  267. else
  268.   as_ln_s='cp -p'
  269. fi
  270. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  271. rmdir conf$$.dir 2>/dev/null


  272. # as_fn_mkdir_p
  273. # -------------
  274. # Create "$as_dir" as a directory, including parents if necessary.
  275. as_fn_mkdir_p ()
  276. {

  277.   case $as_dir in #(
  278.   -*) as_dir=./$as_dir;;
  279.   esac
  280.   test -d "$as_dir" || eval $as_mkdir_p || {
  281.     as_dirs=
  282.     while :; do
  283.       case $as_dir in #(
  284.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  285.       *) as_qdir=$as_dir;;
  286.       esac
  287.       as_dirs="'$as_qdir' $as_dirs"
  288.       as_dir=`$as_dirname -- "$as_dir" ||
  289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  290.          X"$as_dir" : 'X\(//\)[^/]' \| \
  291.          X"$as_dir" : 'X\(//\)$' \| \
  292.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  293. $as_echo X"$as_dir" |
  294.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  295.             s//\1/
  296.             q
  297.           }
  298.           /^X\(\/\/\)[^/].*/{
  299.             s//\1/
  300.             q
  301.           }
  302.           /^X\(\/\/\)$/{
  303.             s//\1/
  304.             q
  305.           }
  306.           /^X\(\/\).*/{
  307.             s//\1/
  308.             q
  309.           }
  310.           s/.*/./; q'`
  311.       test -d "$as_dir" && break
  312.     done
  313.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  314.   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"


  315. } # as_fn_mkdir_p
  316. if mkdir -p . 2>/dev/null; then
  317.   as_mkdir_p='mkdir -p "$as_dir"'
  318. else
  319.   test -d ./-p && rmdir ./-p
  320.   as_mkdir_p=false
  321. fi

  322. if test -x / >/dev/null 2>&1; then
  323.   as_test_x='test -x'
  324. else
  325.   if ls -dL / >/dev/null 2>&1; then
  326.     as_ls_L_option=L
  327.   else
  328.     as_ls_L_option=
  329.   fi
  330.   as_test_x='
  331.     eval sh -c '\''
  332.       if test -d "$1"; then
  333.         test -d "$1/.";
  334.       else
  335.         case $1 in #(
  336.         -*)set "./$1";;
  337.         esac;
  338.         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  339.         ???[sx]*):;;*)false;;esac;fi
  340.     '\'' sh
  341.   '
  342. fi
  343. as_executable_p=$as_test_x

  344. # Sed expression to map a string onto a valid CPP name.
  345. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

  346. # Sed expression to map a string onto a valid variable name.
  347. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


  348. exec 6>&1
  349. ## ----------------------------------- ##
  350. ## Main body of $CONFIG_STATUS script. ##
  351. ## ----------------------------------- ##
  352. # Save the log message, to keep $0 and so on meaningful, and to
  353. # report actual input values of CONFIG_FILES etc. instead of their
  354. # values after options handling.
  355. ac_log="
  356. This file was extended by $as_me, which was
  357. generated by GNU Autoconf 2.64.  Invocation command line was

  358.   CONFIG_FILES    = $CONFIG_FILES
  359.   CONFIG_HEADERS  = $CONFIG_HEADERS
  360.   CONFIG_LINKS    = $CONFIG_LINKS
  361.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  362.   $ $0 $@

  363. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  364. "

  365. # Files that config.status was made for.
  366. config_files=" Makefile"
  367. config_headers=" config.h:config.in"
  368. config_commands=" depdir default"

  369. ac_cs_usage="\
  370. \`$as_me' instantiates files and other configuration actions
  371. from templates according to the current configuration.  Unless the files
  372. and actions are specified as TAGs, all are instantiated by default.

  373. Usage: $0 [OPTION]... [TAG]...

  374.   -h, --help       print this help, then exit
  375.   -V, --version    print version number and configuration settings, then exit
  376.   -q, --quiet, --silent
  377.                    do not print progress messages
  378.   -d, --debug      don't remove temporary files
  379.       --recheck    update $as_me by reconfiguring in the same conditions
  380.       --file=FILE[:TEMPLATE]
  381.                    instantiate the configuration file FILE
  382.       --header=FILE[:TEMPLATE]
  383.                    instantiate the configuration header FILE

  384. Configuration files:
  385. $config_files

  386. Configuration headers:
  387. $config_headers

  388. Configuration commands:
  389. $config_commands

  390. Report bugs to the package provider."

  391. ac_cs_version="\
  392. config.status
  393. configured by ./configure, generated by GNU Autoconf 2.64,
  394.   with options \"'--disable-option-checking' '--prefix=/opt/binutils' '--with-gnu-as' '--with-gnu-ld' '--with-system-zlib' '--program-transform-name=s,y,y,' '--build=x86_64-unknown-linux-gnu' '--host=x86_64-unknown-linux-gnu' '--target=x86_64-unknown-linux-gnu' 'build_alias=x86_64-unknown-linux-gnu' 'host_alias=x86_64-unknown-linux-gnu' 'target_alias=x86_64-unknown-linux-gnu' 'CC=gcc' 'CFLAGS=-g -O2' 'LDFLAGS= ' 'MAKEINFO=makeinfo --split-size=5000000' 'YACC=bison -y' '--cache-file=.././config.cache' '--srcdir=.'\"

  395. Copyright (C) 2009 Free Software Foundation, Inc.
  396. This config.status script is free software; the Free Software Foundation
  397. gives unlimited permission to copy, distribute and modify it."

  398. ac_pwd='/home/agentzh/git/binutils-gdb/gdb/gdbserver'
  399. srcdir='.'
  400. INSTALL='/bin/install -c'
  401. test -n "$AWK" || AWK=awk
  402. # The default lists apply if the user does not specify any file.
  403. ac_need_defaults=:
  404. while test $# != 0
  405. do
  406.   case $1 in
  407.   --*=*)
  408.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  409.     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  410.     ac_shift=:
  411.     ;;
  412.   *)
  413.     ac_option=$1
  414.     ac_optarg=$2
  415.     ac_shift=shift
  416.     ;;
  417.   esac

  418.   case $ac_option in
  419.   # Handling of the options.
  420.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  421.     ac_cs_recheck=: ;;
  422.   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  423.     $as_echo "$ac_cs_version"; exit ;;
  424.   --debug | --debu | --deb | --de | --d | -d )
  425.     debug=: ;;
  426.   --file | --fil | --fi | --f )
  427.     $ac_shift
  428.     case $ac_optarg in
  429.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  430.     esac
  431.     as_fn_append CONFIG_FILES " '$ac_optarg'"
  432.     ac_need_defaults=false;;
  433.   --header | --heade | --head | --hea )
  434.     $ac_shift
  435.     case $ac_optarg in
  436.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  437.     esac
  438.     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  439.     ac_need_defaults=false;;
  440.   --he | --h)
  441.     # Conflict between --help and --header
  442.     as_fn_error "ambiguous option: \`$1'
  443. Try \`$0 --help' for more information.";;
  444.   --help | --hel | -h )
  445.     $as_echo "$ac_cs_usage"; exit ;;
  446.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  447.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  448.     ac_cs_silent=: ;;

  449.   # This is an error.
  450.   -*) as_fn_error "unrecognized option: \`$1'
  451. Try \`$0 --help' for more information." ;;

  452.   *) as_fn_append ac_config_targets " $1"
  453.      ac_need_defaults=false ;;

  454.   esac
  455.   shift
  456. done

  457. ac_configure_extra_args=

  458. if $ac_cs_silent; then
  459.   exec 6>/dev/null
  460.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  461. fi

  462. if $ac_cs_recheck; then
  463.   set X '/bin/sh' './configure'  '--disable-option-checking' '--prefix=/opt/binutils' '--with-gnu-as' '--with-gnu-ld' '--with-system-zlib' '--program-transform-name=s,y,y,' '--build=x86_64-unknown-linux-gnu' '--host=x86_64-unknown-linux-gnu' '--target=x86_64-unknown-linux-gnu' 'build_alias=x86_64-unknown-linux-gnu' 'host_alias=x86_64-unknown-linux-gnu' 'target_alias=x86_64-unknown-linux-gnu' 'CC=gcc' 'CFLAGS=-g -O2' 'LDFLAGS= ' 'MAKEINFO=makeinfo --split-size=5000000' 'YACC=bison -y' '--cache-file=.././config.cache' '--srcdir=.' $ac_configure_extra_args --no-create --no-recursion
  464.   shift
  465.   $as_echo "running CONFIG_SHELL=/bin/sh $*" >&6
  466.   CONFIG_SHELL='/bin/sh'
  467.   export CONFIG_SHELL
  468.   exec "$@"
  469. fi

  470. exec 5>>config.log
  471. {
  472.   echo
  473.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  474. ## Running $as_me. ##
  475. _ASBOX
  476.   $as_echo "$ac_log"
  477. } >&5

  478. #
  479. # INIT-COMMANDS
  480. #
  481. ac_aux_dir=./../.. DEPDIR=.deps


  482. # Handling of arguments.
  483. for ac_config_target in $ac_config_targets
  484. do
  485.   case $ac_config_target in
  486.     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  487.     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
  488.     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  489.     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;

  490.   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  491.   esac
  492. done


  493. # If the user did not use the arguments to specify the items to instantiate,
  494. # then the envvar interface is used.  Set only those that are not.
  495. # We use the long form for the default assignment because of an extremely
  496. # bizarre bug on SunOS 4.1.3.
  497. if $ac_need_defaults; then
  498.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  499.   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  500.   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  501. fi

  502. # Have a temporary directory for convenience.  Make it in the build tree
  503. # simply because there is no reason against having it here, and in addition,
  504. # creating and moving files from /tmp can sometimes cause problems.
  505. # Hook for its removal unless debugging.
  506. # Note that there is a small window in which the directory will not be cleaned:
  507. # after its creation but before its name has been assigned to `$tmp'.
  508. $debug ||
  509. {
  510.   tmp=
  511.   trap 'exit_status=$?
  512.   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  513. ' 0
  514.   trap 'as_fn_exit 1' 1 2 13 15
  515. }
  516. # Create a (secure) tmp directory for tmp files.

  517. {
  518.   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  519.   test -n "$tmp" && test -d "$tmp"
  520. }  ||
  521. {
  522.   tmp=./conf$$-$RANDOM
  523.   (umask 077 && mkdir "$tmp")
  524. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5

  525. # Set up the scripts for CONFIG_FILES section.
  526. # No need to generate them if there are no CONFIG_FILES.
  527. # This happens for instance with `./config.status config.h'.
  528. if test -n "$CONFIG_FILES"; then


  529. ac_cr=`echo X | tr X '\015'`
  530. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  531. # But we know of no other shell where ac_cr would be empty at this
  532. # point, so we can use a bashism as a fallback.
  533. if test "x$ac_cr" = x; then
  534.   eval ac_cr=\$\'\\r\'
  535. fi
  536. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  537. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  538.   ac_cs_awk_cr='\r'
  539. else
  540.   ac_cs_awk_cr=$ac_cr
  541. fi

  542. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  543. cat >>"$tmp/subs1.awk" <<\_ACAWK &&
  544. S["LTLIBOBJS"]=""
  545. S["LIBOBJS"]=""
  546. S["GNULIB_STDINT_H"]=""
  547. S["extra_libraries"]=" libinproctrace.so"
  548. S["IPA_DEPFILES"]="amd64-linux-ipa.o linux-amd64-ipa.o"
  549. S["srv_xmlfiles"]=" $(XML_DIR)/i386/i386-linux.xml $(XML_DIR)/i386/i386-avx-linux.xml $(XML_DIR)/i386/i386-avx512-linux.xml $(XML_DIR)/i386/i386-mmx-linux.xml $(XML_DI"\
  550. "R)/i386/32bit-linux.xml $(XML_DIR)/i386/i386-mpx-linux.xml $(XML_DIR)/i386/32bit-core.xml $(XML_DIR)/i386/32bit-sse.xml $(XML_DIR)/i386/32bit-avx.xm"\
  551. "l $(XML_DIR)/i386/32bit-avx512.xml $(XML_DIR)/i386/32bit-mpx.xml $(XML_DIR)/i386/amd64-linux.xml $(XML_DIR)/i386/amd64-avx-linux.xml $(XML_DIR)/i386"\
  552. "/amd64-avx512-linux.xml $(XML_DIR)/i386/64bit-linux.xml $(XML_DIR)/i386/amd64-mpx-linux.xml $(XML_DIR)/i386/x32-linux.xml $(XML_DIR)/i386/x32-avx-li"\
  553. "nux.xml $(XML_DIR)/i386/x32-avx512-linux.xml $(XML_DIR)/i386/64bit-core.xml $(XML_DIR)/i386/64bit-sse.xml $(XML_DIR)/i386/64bit-avx.xml $(XML_DIR)/i"\
  554. "386/64bit-avx512.xml $(XML_DIR)/i386/x32-core.xml $(XML_DIR)/i386/64bit-mpx.xml"
  555. S["srv_xmlbuiltin"]="xml-builtin.o"
  556. S["GDBSERVER_LIBS"]="-ldl"
  557. S["GDBSERVER_DEPFILES"]="amd64-linux.o amd64-avx-linux.o amd64-avx512-linux.o amd64-mpx-linux.o x32-linux.o x32-avx-linux.o x32-avx512-linux.o i386-linux.o i386-avx-linux.o "\
  558. "i386-avx512-linux.o i386-mpx-linux.o i386-mmx-linux.o linux-low.o linux-osdata.o linux-procfs.o linux-ptrace.o linux-waitpid.o linux-x86-low.o x86-l"\
  559. "ow.o x86-dregs.o i387-fp.o linux-btrace.o hostio-errno.o thread-db.o proc-service.o"
  560. S["RDYNAMIC"]="-Wl,--dynamic-list=$(srcdir)/proc-service.list"
  561. S["REPORT_BUGS_TEXI"]="@uref{http://www.gnu.org/software/gdb/bugs/}"
  562. S["REPORT_BUGS_TO"]="<http://www.gnu.org/software/gdb/bugs/>"
  563. S["PKGVERSION"]="(GDB) "
  564. S["WERROR_CFLAGS"]="-Werror"
  565. S["WARN_CFLAGS"]=" -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-char-subscripts -Wempty-body"
  566. S["ustinc"]=""
  567. S["ustlibs"]=""
  568. S["SET_MAKE"]=""
  569. S["GMAKE_FALSE"]="#"
  570. S["GMAKE_TRUE"]=""
  571. S["MAKE"]="make"
  572. S["CCDEPMODE"]="depmode=gcc3"
  573. S["DEPDIR"]=".deps"
  574. S["am__leading_dot"]="."
  575. S["host_noncanonical"]="x86_64-unknown-linux-gnu"
  576. S["target_noncanonical"]="x86_64-unknown-linux-gnu"
  577. S["ALLOCA"]=""
  578. S["RANLIB"]="ranlib"
  579. S["AR"]="ar"
  580. S["INSTALL_DATA"]="/bin/install -c -m 644"
  581. S["INSTALL_SCRIPT"]="/bin/install -c"
  582. S["INSTALL_PROGRAM"]="/bin/install -c"
  583. S["target_os"]="linux-gnu"
  584. S["target_vendor"]="unknown"
  585. S["target_cpu"]="x86_64"
  586. S["target"]="x86_64-unknown-linux-gnu"
  587. S["host_os"]="linux-gnu"
  588. S["host_vendor"]="unknown"
  589. S["host_cpu"]="x86_64"
  590. S["host"]="x86_64-unknown-linux-gnu"
  591. S["build_os"]="linux-gnu"
  592. S["build_vendor"]="unknown"
  593. S["build_cpu"]="x86_64"
  594. S["build"]="x86_64-unknown-linux-gnu"
  595. S["EGREP"]="/bin/grep -E"
  596. S["GREP"]="/bin/grep"
  597. S["CPP"]="gcc -E"
  598. S["OBJEXT"]="o"
  599. S["EXEEXT"]=""
  600. S["ac_ct_CC"]=""
  601. S["CPPFLAGS"]=""
  602. S["LDFLAGS"]=" "
  603. S["CFLAGS"]="-g -O2"
  604. S["CC"]="gcc"
  605. S["MAINT"]="#"
  606. S["MAINTAINER_MODE_FALSE"]=""
  607. S["MAINTAINER_MODE_TRUE"]="#"
  608. S["target_alias"]="x86_64-unknown-linux-gnu"
  609. S["host_alias"]="x86_64-unknown-linux-gnu"
  610. S["build_alias"]="x86_64-unknown-linux-gnu"
  611. S["LIBS"]="-lmcheck "
  612. S["ECHO_T"]=""
  613. S["ECHO_N"]="-n"
  614. S["ECHO_C"]=""
  615. S["DEFS"]="-DHAVE_CONFIG_H"
  616. S["mandir"]="${datarootdir}/man"
  617. S["localedir"]="${datarootdir}/locale"
  618. S["libdir"]="${exec_prefix}/lib"
  619. S["psdir"]="${docdir}"
  620. S["pdfdir"]="${docdir}"
  621. S["dvidir"]="${docdir}"
  622. S["htmldir"]="${docdir}"
  623. S["infodir"]="${datarootdir}/info"
  624. S["docdir"]="${datarootdir}/doc/${PACKAGE}"
  625. S["oldincludedir"]="/usr/include"
  626. S["includedir"]="${prefix}/include"
  627. S["localstatedir"]="${prefix}/var"
  628. S["sharedstatedir"]="${prefix}/com"
  629. S["sysconfdir"]="${prefix}/etc"
  630. S["datadir"]="${datarootdir}"
  631. S["datarootdir"]="${prefix}/share"
  632. S["libexecdir"]="${exec_prefix}/libexec"
  633. S["sbindir"]="${exec_prefix}/sbin"
  634. S["bindir"]="${exec_prefix}/bin"
  635. S["program_transform_name"]="s,y,y,"
  636. S["prefix"]="/opt/binutils"
  637. S["exec_prefix"]="${prefix}"
  638. S["PACKAGE_URL"]=""
  639. S["PACKAGE_BUGREPORT"]=""
  640. S["PACKAGE_STRING"]=""
  641. S["PACKAGE_VERSION"]=""
  642. S["PACKAGE_TARNAME"]=""
  643. S["PACKAGE_NAME"]=""
  644. S["PATH_SEPARATOR"]=":"
  645. S["SHELL"]="/bin/sh"
  646. _ACAWK
  647. cat >>"$tmp/subs1.awk" <<_ACAWK &&
  648.   for (key in S) S_is_set[key] = 1
  649.   FS = ""

  650. }
  651. {
  652.   line = $ 0
  653.   nfields = split(line, field, "@")
  654.   substed = 0
  655.   len = length(field[1])
  656.   for (i = 2; i < nfields; i++) {
  657.     key = field[i]
  658.     keylen = length(key)
  659.     if (S_is_set[key]) {
  660.       value = S[key]
  661.       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  662.       len += length(value) + length(field[++i])
  663.       substed = 1
  664.     } else
  665.       len += 1 + keylen
  666.   }

  667.   print line
  668. }

  669. _ACAWK
  670. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  671.   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  672. else
  673.   cat
  674. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  675.   || as_fn_error "could not setup config files machinery" "$LINENO" 5
  676. fi # test -n "$CONFIG_FILES"

  677. # Set up the scripts for CONFIG_HEADERS section.
  678. # No need to generate them if there are no CONFIG_HEADERS.
  679. # This happens for instance with `./config.status Makefile'.
  680. if test -n "$CONFIG_HEADERS"; then
  681. cat >"$tmp/defines.awk" <<\_ACAWK ||
  682. BEGIN {
  683. D["PACKAGE_NAME"]=" \"\""
  684. D["PACKAGE_TARNAME"]=" \"\""
  685. D["PACKAGE_VERSION"]=" \"\""
  686. D["PACKAGE_STRING"]=" \"\""
  687. D["PACKAGE_BUGREPORT"]=" \"\""
  688. D["PACKAGE_URL"]=" \"\""
  689. D["STDC_HEADERS"]=" 1"
  690. D["HAVE_SYS_TYPES_H"]=" 1"
  691. D["HAVE_SYS_STAT_H"]=" 1"
  692. D["HAVE_STDLIB_H"]=" 1"
  693. D["HAVE_STRING_H"]=" 1"
  694. D["HAVE_MEMORY_H"]=" 1"
  695. D["HAVE_STRINGS_H"]=" 1"
  696. D["HAVE_INTTYPES_H"]=" 1"
  697. D["HAVE_STDINT_H"]=" 1"
  698. D["HAVE_UNISTD_H"]=" 1"
  699. D["__EXTENSIONS__"]=" 1"
  700. D["_ALL_SOURCE"]=" 1"
  701. D["_GNU_SOURCE"]=" 1"
  702. D["_POSIX_PTHREAD_SEMANTICS"]=" 1"
  703. D["_TANDEM_SOURCE"]=" 1"
  704. D["STDC_HEADERS"]=" 1"
  705. D["HAVE_ALLOCA_H"]=" 1"
  706. D["HAVE_ALLOCA"]=" 1"
  707. D["HAVE_LIBMCHECK"]=" 1"
  708. D["HAVE_SGTTY_H"]=" 1"
  709. D["HAVE_TERMIO_H"]=" 1"
  710. D["HAVE_TERMIOS_H"]=" 1"
  711. D["HAVE_SYS_REG_H"]=" 1"
  712. D["HAVE_STRING_H"]=" 1"
  713. D["HAVE_SYS_PROCFS_H"]=" 1"
  714. D["HAVE_LINUX_ELF_H"]=" 1"
  715. D["HAVE_FCNTL_H"]=" 1"
  716. D["HAVE_SIGNAL_H"]=" 1"
  717. D["HAVE_SYS_FILE_H"]=" 1"
  718. D["HAVE_MALLOC_H"]=" 1"
  719. D["HAVE_SYS_IOCTL_H"]=" 1"
  720. D["HAVE_NETINET_IN_H"]=" 1"
  721. D["HAVE_SYS_SOCKET_H"]=" 1"
  722. D["HAVE_NETDB_H"]=" 1"
  723. D["HAVE_NETINET_TCP_H"]=" 1"
  724. D["HAVE_ARPA_INET_H"]=" 1"
  725. D["HAVE_PREAD"]=" 1"
  726. D["HAVE_PWRITE"]=" 1"
  727. D["HAVE_PREAD64"]=" 1"
  728. D["HAVE_READLINK"]=" 1"
  729. D["STDC_HEADERS"]=" 1"
  730. D["HAVE_ALLOCA_H"]=" 1"
  731. D["HAVE_ALLOCA"]=" 1"
  732. D["HAVE_LANGINFO_CODESET"]=" 1"
  733. D["HAVE_LINUX_PERF_EVENT_H"]=" 1"
  734. D["HAVE_LOCALE_H"]=" 1"
  735. D["HAVE_MEMORY_H"]=" 1"
  736. D["HAVE_SIGNAL_H"]=" 1"
  737. D["HAVE_SYS_RESOURCE_H"]=" 1"
  738. D["HAVE_SYS_SOCKET_H"]=" 1"
  739. D["HAVE_SYS_SYSCALL_H"]=" 1"
  740. D["HAVE_SYS_UN_H"]=" 1"
  741. D["HAVE_SYS_WAIT_H"]=" 1"
  742. D["HAVE_THREAD_DB_H"]=" 1"
  743. D["HAVE_WAIT_H"]=" 1"
  744. D["HAVE_GETRLIMIT"]=" 1"
  745. D["HAVE_PIPE"]=" 1"
  746. D["HAVE_PIPE2"]=" 1"
  747. D["HAVE_SOCKETPAIR"]=" 1"
  748. D["HAVE_DECL_STRERROR"]=" 1"
  749. D["HAVE_DECL_STRSTR"]=" 1"
  750. D["HAVE_SIGSETJMP"]=" 1"
  751. D["HAVE_DLADDR"]=" 1"
  752. D["HAVE_DECL_STRERROR"]=" 1"
  753. D["HAVE_DECL_PERROR"]=" 1"
  754. D["HAVE_DECL_VASPRINTF"]=" 1"
  755. D["HAVE_DECL_VSNPRINTF"]=" 1"
  756. D["HAVE_SOCKLEN_T"]=" 1"
  757. D["HAVE_ELF32_AUXV_T"]=" 1"
  758. D["HAVE_ELF64_AUXV_T"]=" 1"
  759. D["PKGVERSION"]=" \"(GDB) \""
  760. D["REPORT_BUGS_TO"]=" \"<http://www.gnu.org/software/gdb/bugs/>\""
  761. D["HAVE_LINUX_USRREGS"]=" 1"
  762. D["HAVE_LINUX_REGSETS"]=" 1"
  763. D["HAVE_PTRACE_GETREGS"]=" 1"
  764. D["HAVE_PTRACE_GETFPXREGS"]=" 1"
  765. D["HAVE_LINUX_BTRACE"]=" 1"
  766. D["HAVE_LWPID_T"]=" 1"
  767. D["HAVE_PSADDR_T"]=" 1"
  768. D["HAVE_PRGREGSET_T"]=" 1"
  769. D["HAVE_ELF_FPREGSET_T"]=" 1"
  770. D["HAVE_LIBDL"]=" 1"
  771. D["USE_THREAD_DB"]=" 1"
  772. D["HAVE_TD_VERSION"]=" 1"
  773. D["USE_XML"]=" 1"
  774. D["HAVE_SYNC_BUILTINS"]=" 1"
  775. D["HAVE_DECL_ADDR_NO_RANDOMIZE"]=" 1"
  776. D["HAVE_PERSONALITY"]=" 1"
  777.   for (key in D) D_is_set[key] = 1
  778.   FS = ""
  779. }
  780. /^[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ {
  781.   line = $ 0
  782.   split(line, arg, " ")
  783.   if (arg[1] == "#") {
  784.     defundef = arg[2]
  785.     mac1 = arg[3]
  786.   } else {
  787.     defundef = substr(arg[1], 2)
  788.     mac1 = arg[2]
  789.   }
  790.   split(mac1, mac2, "(") #)
  791.   macro = mac2[1]
  792.   prefix = substr(line, 1, index(line, defundef) - 1)
  793.   if (D_is_set[macro]) {
  794.     # Preserve the white space surrounding the "#".
  795.     print prefix "define", macro P[macro] D[macro]
  796.     next
  797.   } else {
  798.     # Replace #undef with comments.  This is necessary, for example,
  799.     # in the case of _POSIX_SOURCE, which is predefined and required
  800.     # on some systems where configure will not decide to define it.
  801.     if (defundef == "undef") {
  802.       print "/*", prefix defundef, macro, "*/"
  803.       next
  804.     }
  805.   }
  806. }
  807. { print }
  808. _ACAWK
  809.   as_fn_error "could not setup config headers machinery" "$LINENO" 5
  810. fi # test -n "$CONFIG_HEADERS"


  811. eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
  812. shift
  813. for ac_tag
  814. do
  815.   case $ac_tag in
  816.   :[FHLC]) ac_mode=$ac_tag; continue;;
  817.   esac
  818.   case $ac_mode$ac_tag in
  819.   :[FHL]*:*);;
  820.   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  821.   :[FH]-) ac_tag=-:-;;
  822.   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  823.   esac
  824.   ac_save_IFS=$IFS
  825.   IFS=:
  826.   set x $ac_tag
  827.   IFS=$ac_save_IFS
  828.   shift
  829.   ac_file=$1
  830.   shift

  831.   case $ac_mode in
  832.   :L) ac_source=$1;;
  833.   :[FH])
  834.     ac_file_inputs=
  835.     for ac_f
  836.     do
  837.       case $ac_f in
  838.       -) ac_f="$tmp/stdin";;
  839.       *) # Look for the file first in the build tree, then in the source tree
  840.          # (if the path is not absolute).  The absolute path cannot be DOS-style,
  841.          # because $ac_f cannot contain `:'.
  842.          test -f "$ac_f" ||
  843.            case $ac_f in
  844.            [\\/$]*) false;;
  845.            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  846.            esac ||
  847.            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  848.       esac
  849.       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  850.       as_fn_append ac_file_inputs " '$ac_f'"
  851.     done

  852.     # Let's still pretend it is `configure' which instantiates (i.e., don't
  853.     # use $as_me), people would be surprised to read:
  854.     #    /* config.h.  Generated by config.status.  */
  855.     configure_input='Generated from '`
  856.           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  857.         `' by configure.'
  858.     if test x"$ac_file" != x-; then
  859.       configure_input="$ac_file$configure_input"
  860.       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  861. $as_echo "$as_me: creating $ac_file" >&6;}
  862.     fi
  863.     # Neutralize special characters interpreted by sed in replacement strings.
  864.     case $configure_input in #(
  865.     *\&* | *\|* | *\\* )
  866.        ac_sed_conf_input=`$as_echo "$configure_input" |
  867.        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  868.     *) ac_sed_conf_input=$configure_input;;
  869.     esac

  870.     case $ac_tag in
  871.     *:-:* | *:-) cat >"$tmp/stdin" \
  872.       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  873.     esac
  874.     ;;
  875.   esac

  876.   ac_dir=`$as_dirname -- "$ac_file" ||
  877. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  878.          X"$ac_file" : 'X\(//\)[^/]' \| \
  879.          X"$ac_file" : 'X\(//\)$' \| \
  880.          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  881. $as_echo X"$ac_file" |
  882.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  883.             s//\1/
  884.             q
  885.           }
  886.           /^X\(\/\/\)[^/].*/{
  887.             s//\1/
  888.             q
  889.           }
  890.           /^X\(\/\/\)$/{
  891.             s//\1/
  892.             q
  893.           }
  894.           /^X\(\/\).*/{
  895.             s//\1/
  896.             q
  897.           }
  898.           s/.*/./; q'`
  899.   as_dir="$ac_dir"; as_fn_mkdir_p
  900.   ac_builddir=.

  901. case "$ac_dir" in
  902. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  903. *)
  904.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  905.   # A ".." for each directory in $ac_dir_suffix.
  906.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  907.   case $ac_top_builddir_sub in
  908.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  909.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  910.   esac ;;
  911. esac
  912. ac_abs_top_builddir=$ac_pwd
  913. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  914. # for backward compatibility:
  915. ac_top_builddir=$ac_top_build_prefix

  916. case $srcdir in
  917.   .)  # We are building in place.
  918.     ac_srcdir=.
  919.     ac_top_srcdir=$ac_top_builddir_sub
  920.     ac_abs_top_srcdir=$ac_pwd ;;
  921.   [\\/]* | ?:[\\/]* )  # Absolute name.
  922.     ac_srcdir=$srcdir$ac_dir_suffix;
  923.     ac_top_srcdir=$srcdir
  924.     ac_abs_top_srcdir=$srcdir ;;
  925.   *) # Relative name.
  926.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  927.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  928.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  929. esac
  930. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  931.   case $ac_mode in
  932.   :F)
  933.   #
  934.   # CONFIG_FILE
  935.   #

  936.   case $INSTALL in
  937.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  938.   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  939.   esac
  940. # If the template does not know about datarootdir, expand it.
  941. # FIXME: This hack should be removed a few years after 2.60.
  942. ac_datarootdir_hack=; ac_datarootdir_seen=
  943. ac_sed_dataroot='
  944. /datarootdir/ {
  945.   p
  946.   q
  947. }
  948. /@datadir@/p
  949. /@docdir@/p
  950. /@infodir@/p
  951. /@localedir@/p
  952. /@mandir@/p'
  953. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  954. *datarootdir*) ac_datarootdir_seen=yes;;
  955. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  956.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  957. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  958.   ac_datarootdir_hack='
  959.   s&@datadir@&${datarootdir}&g
  960.   s&@docdir@&${datarootdir}/doc/${PACKAGE}&g
  961.   s&@infodir@&${datarootdir}/info&g
  962.   s&@localedir@&${datarootdir}/locale&g
  963.   s&@mandir@&${datarootdir}/man&g
  964.   s&\${datarootdir}&${prefix}/share&g' ;;
  965. esac
  966. ac_sed_extra="/^[         ]*VPATH[         ]*=/{
  967. s/:*\$(srcdir):*/:/
  968. s/:*\${srcdir}:*/:/
  969. s/:*@srcdir@:*/:/
  970. s/^\([^=]*=[         ]*\):*/\1/
  971. s/:*$//
  972. s/^[^=]*=[         ]*$//
  973. }

  974. :t
  975. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  976. s|@configure_input@|$ac_sed_conf_input|;t t
  977. s&@top_builddir@&$ac_top_builddir_sub&;t t
  978. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  979. s&@srcdir@&$ac_srcdir&;t t
  980. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  981. s&@top_srcdir@&$ac_top_srcdir&;t t
  982. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  983. s&@builddir@&$ac_builddir&;t t
  984. s&@abs_builddir@&$ac_abs_builddir&;t t
  985. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  986. s&@INSTALL@&$ac_INSTALL&;t t
  987. $ac_datarootdir_hack
  988. "
  989. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  990.   || as_fn_error "could not create $ac_file" "$LINENO" 5

  991. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  992.   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  993.   { ac_out=`sed -n '/^[         ]*datarootdir[         ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  994.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  995. which seems to be undefined.  Please make sure it is defined." >&5
  996. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  997. which seems to be undefined.  Please make sure it is defined." >&2;}

  998.   rm -f "$tmp/stdin"
  999.   case $ac_file in
  1000.   -) cat "$tmp/out" && rm -f "$tmp/out";;
  1001.   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  1002.   esac \
  1003.   || as_fn_error "could not create $ac_file" "$LINENO" 5
  1004. ;;
  1005.   :H)
  1006.   #
  1007.   # CONFIG_HEADER
  1008.   #
  1009.   if test x"$ac_file" != x-; then
  1010.     {
  1011.       $as_echo "/* $configure_input  */" \
  1012.       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  1013.     } >"$tmp/config.h" \
  1014.       || as_fn_error "could not create $ac_file" "$LINENO" 5
  1015.     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  1016.       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  1017. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  1018.     else
  1019.       rm -f "$ac_file"
  1020.       mv "$tmp/config.h" "$ac_file" \
  1021.         || as_fn_error "could not create $ac_file" "$LINENO" 5
  1022.     fi
  1023.   else
  1024.     $as_echo "/* $configure_input  */" \
  1025.       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  1026.       || as_fn_error "could not create -" "$LINENO" 5
  1027.   fi
  1028. ;;

  1029.   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  1030. $as_echo "$as_me: executing $ac_file commands" >&6;}
  1031. ;;
  1032.   esac


  1033.   case $ac_file$ac_mode in
  1034.     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
  1035.     "default":C) case x$CONFIG_HEADERS in
  1036. xconfig.h:config.in)
  1037. echo > stamp-h ;;
  1038. esac
  1039. ;;

  1040.   esac
  1041. done # for ac_tag


  1042. as_fn_exit 0