Subversion Repositories Kolibri OS

Rev

Rev 4358 | Blame | Last modification | View Log | RSS feed

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for Mesa 9.2.5.
  4. #
  5. # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16.  
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20.   emulate sh
  21.   NULLCMD=:
  22.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23.   # is contrary to our usage.  Disable this feature.
  24.   alias -g '${1+"$@"}'='"$@"'
  25.   setopt NO_GLOB_SUBST
  26. else
  27.   case `(set -o) 2>/dev/null` in #(
  28.   *posix*) :
  29.     set -o posix ;; #(
  30.   *) :
  31.      ;;
  32. esac
  33. fi
  34.  
  35.  
  36. as_nl='
  37. '
  38. export as_nl
  39. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43. # Prefer a ksh shell builtin over an external printf program on Solaris,
  44. # but without wasting forks for bash or zsh.
  45. if test -z "$BASH_VERSION$ZSH_VERSION" \
  46.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47.   as_echo='print -r --'
  48.   as_echo_n='print -rn --'
  49. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50.   as_echo='printf %s\n'
  51.   as_echo_n='printf %s'
  52. else
  53.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55.     as_echo_n='/usr/ucb/echo -n'
  56.   else
  57.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58.     as_echo_n_body='eval
  59.       arg=$1;
  60.       case $arg in #(
  61.       *"$as_nl"*)
  62.         expr "X$arg" : "X\\(.*\\)$as_nl";
  63.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64.       esac;
  65.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66.     '
  67.     export as_echo_n_body
  68.     as_echo_n='sh -c $as_echo_n_body as_echo'
  69.   fi
  70.   export as_echo_body
  71.   as_echo='sh -c $as_echo_body as_echo'
  72. fi
  73.  
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76.   PATH_SEPARATOR=:
  77.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  78.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  79.       PATH_SEPARATOR=';'
  80.   }
  81. fi
  82.  
  83.  
  84. # IFS
  85. # We need space, tab and new line, in precisely that order.  Quoting is
  86. # there to prevent editors from complaining about space-tab.
  87. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  88. # splitting by setting IFS to empty value.)
  89. IFS=" ""        $as_nl"
  90.  
  91. # Find who we are.  Look in the path if we contain no directory separator.
  92. as_myself=
  93. case $0 in #((
  94.   *[\\/]* ) as_myself=$0 ;;
  95.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98.   IFS=$as_save_IFS
  99.   test -z "$as_dir" && as_dir=.
  100.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101.   done
  102. IFS=$as_save_IFS
  103.  
  104.      ;;
  105. esac
  106. # We did not find ourselves, most probably we were run as `sh COMMAND'
  107. # in which case we are not to be found in the path.
  108. if test "x$as_myself" = x; then
  109.   as_myself=$0
  110. fi
  111. if test ! -f "$as_myself"; then
  112.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  113.   exit 1
  114. fi
  115.  
  116. # Unset variables that we do not need and which cause bugs (e.g. in
  117. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  118. # suppresses any "Segmentation fault" message there.  '((' could
  119. # trigger a bug in pdksh 5.2.14.
  120. for as_var in BASH_ENV ENV MAIL MAILPATH
  121. do eval test x\${$as_var+set} = xset \
  122.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  123. done
  124. PS1='$ '
  125. PS2='> '
  126. PS4='+ '
  127.  
  128. # NLS nuisances.
  129. LC_ALL=C
  130. export LC_ALL
  131. LANGUAGE=C
  132. export LANGUAGE
  133.  
  134. # CDPATH.
  135. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  136.  
  137. # Use a proper internal environment variable to ensure we don't fall
  138.   # into an infinite loop, continuously re-executing ourselves.
  139.   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  140.     _as_can_reexec=no; export _as_can_reexec;
  141.     # We cannot yet assume a decent shell, so we have to provide a
  142. # neutralization value for shells without unset; and this also
  143. # works around shells that cannot unset nonexistent variables.
  144. # Preserve -v and -x to the replacement shell.
  145. BASH_ENV=/dev/null
  146. ENV=/dev/null
  147. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  148. case $- in # ((((
  149.   *v*x* | *x*v* ) as_opts=-vx ;;
  150.   *v* ) as_opts=-v ;;
  151.   *x* ) as_opts=-x ;;
  152.   * ) as_opts= ;;
  153. esac
  154. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  155. # Admittedly, this is quite paranoid, since all the known shells bail
  156. # out after a failed `exec'.
  157. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  158. as_fn_exit 255
  159.   fi
  160.   # We don't want this to propagate to other subprocesses.
  161.           { _as_can_reexec=; unset _as_can_reexec;}
  162. if test "x$CONFIG_SHELL" = x; then
  163.   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  164.   emulate sh
  165.   NULLCMD=:
  166.   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  167.   # is contrary to our usage.  Disable this feature.
  168.   alias -g '\${1+\"\$@\"}'='\"\$@\"'
  169.   setopt NO_GLOB_SUBST
  170. else
  171.   case \`(set -o) 2>/dev/null\` in #(
  172.   *posix*) :
  173.     set -o posix ;; #(
  174.   *) :
  175.      ;;
  176. esac
  177. fi
  178. "
  179.   as_required="as_fn_return () { (exit \$1); }
  180. as_fn_success () { as_fn_return 0; }
  181. as_fn_failure () { as_fn_return 1; }
  182. as_fn_ret_success () { return 0; }
  183. as_fn_ret_failure () { return 1; }
  184.  
  185. exitcode=0
  186. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  187. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  188. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  189. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  190. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  191.  
  192. else
  193.   exitcode=1; echo positional parameters were not saved.
  194. fi
  195. test x\$exitcode = x0 || exit 1
  196. test -x / || exit 1"
  197.   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  198.   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  199.   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  200.   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  201. test \$(( 1 + 1 )) = 2 || exit 1
  202.  
  203.   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  204.     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  205.     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  206.     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  207.     PATH=/empty FPATH=/empty; export PATH FPATH
  208.     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  209.       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  210.   if (eval "$as_required") 2>/dev/null; then :
  211.   as_have_required=yes
  212. else
  213.   as_have_required=no
  214. fi
  215.   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  216.  
  217. else
  218.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  219. as_found=false
  220. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  221. do
  222.   IFS=$as_save_IFS
  223.   test -z "$as_dir" && as_dir=.
  224.   as_found=:
  225.   case $as_dir in #(
  226.          /*)
  227.            for as_base in sh bash ksh sh5; do
  228.              # Try only shells that exist, to save several forks.
  229.              as_shell=$as_dir/$as_base
  230.              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  231.                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  232.   CONFIG_SHELL=$as_shell as_have_required=yes
  233.                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  234.   break 2
  235. fi
  236. fi
  237.            done;;
  238.        esac
  239.   as_found=false
  240. done
  241. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  242.               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  243.   CONFIG_SHELL=$SHELL as_have_required=yes
  244. fi; }
  245. IFS=$as_save_IFS
  246.  
  247.  
  248.       if test "x$CONFIG_SHELL" != x; then :
  249.   export CONFIG_SHELL
  250.              # We cannot yet assume a decent shell, so we have to provide a
  251. # neutralization value for shells without unset; and this also
  252. # works around shells that cannot unset nonexistent variables.
  253. # Preserve -v and -x to the replacement shell.
  254. BASH_ENV=/dev/null
  255. ENV=/dev/null
  256. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  257. case $- in # ((((
  258.   *v*x* | *x*v* ) as_opts=-vx ;;
  259.   *v* ) as_opts=-v ;;
  260.   *x* ) as_opts=-x ;;
  261.   * ) as_opts= ;;
  262. esac
  263. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  264. # Admittedly, this is quite paranoid, since all the known shells bail
  265. # out after a failed `exec'.
  266. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  267. exit 255
  268. fi
  269.  
  270.     if test x$as_have_required = xno; then :
  271.   $as_echo "$0: This script requires a shell more modern than all"
  272.   $as_echo "$0: the shells that I found on your system."
  273.   if test x${ZSH_VERSION+set} = xset ; then
  274.     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  275.     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  276.   else
  277.     $as_echo "$0: Please tell bug-autoconf@gnu.org and
  278. $0: https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa
  279. $0: about your system, including any error possibly output
  280. $0: before this message. Then install a modern shell, or
  281. $0: manually run the script under such a shell if you do
  282. $0: have one."
  283.   fi
  284.   exit 1
  285. fi
  286. fi
  287. fi
  288. SHELL=${CONFIG_SHELL-/bin/sh}
  289. export SHELL
  290. # Unset more variables known to interfere with behavior of common tools.
  291. CLICOLOR_FORCE= GREP_OPTIONS=
  292. unset CLICOLOR_FORCE GREP_OPTIONS
  293.  
  294. ## --------------------- ##
  295. ## M4sh Shell Functions. ##
  296. ## --------------------- ##
  297. # as_fn_unset VAR
  298. # ---------------
  299. # Portably unset VAR.
  300. as_fn_unset ()
  301. {
  302.   { eval $1=; unset $1;}
  303. }
  304. as_unset=as_fn_unset
  305.  
  306. # as_fn_set_status STATUS
  307. # -----------------------
  308. # Set $? to STATUS, without forking.
  309. as_fn_set_status ()
  310. {
  311.   return $1
  312. } # as_fn_set_status
  313.  
  314. # as_fn_exit STATUS
  315. # -----------------
  316. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  317. as_fn_exit ()
  318. {
  319.   set +e
  320.   as_fn_set_status $1
  321.   exit $1
  322. } # as_fn_exit
  323.  
  324. # as_fn_mkdir_p
  325. # -------------
  326. # Create "$as_dir" as a directory, including parents if necessary.
  327. as_fn_mkdir_p ()
  328. {
  329.  
  330.   case $as_dir in #(
  331.   -*) as_dir=./$as_dir;;
  332.   esac
  333.   test -d "$as_dir" || eval $as_mkdir_p || {
  334.     as_dirs=
  335.     while :; do
  336.       case $as_dir in #(
  337.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  338.       *) as_qdir=$as_dir;;
  339.       esac
  340.       as_dirs="'$as_qdir' $as_dirs"
  341.       as_dir=`$as_dirname -- "$as_dir" ||
  342. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  343.          X"$as_dir" : 'X\(//\)[^/]' \| \
  344.          X"$as_dir" : 'X\(//\)$' \| \
  345.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  346. $as_echo X"$as_dir" |
  347.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  348.             s//\1/
  349.             q
  350.           }
  351.           /^X\(\/\/\)[^/].*/{
  352.             s//\1/
  353.             q
  354.           }
  355.           /^X\(\/\/\)$/{
  356.             s//\1/
  357.             q
  358.           }
  359.           /^X\(\/\).*/{
  360.             s//\1/
  361.             q
  362.           }
  363.           s/.*/./; q'`
  364.       test -d "$as_dir" && break
  365.     done
  366.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  367.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  368.  
  369.  
  370. } # as_fn_mkdir_p
  371.  
  372. # as_fn_executable_p FILE
  373. # -----------------------
  374. # Test if FILE is an executable regular file.
  375. as_fn_executable_p ()
  376. {
  377.   test -f "$1" && test -x "$1"
  378. } # as_fn_executable_p
  379. # as_fn_append VAR VALUE
  380. # ----------------------
  381. # Append the text in VALUE to the end of the definition contained in VAR. Take
  382. # advantage of any shell optimizations that allow amortized linear growth over
  383. # repeated appends, instead of the typical quadratic growth present in naive
  384. # implementations.
  385. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  386.   eval 'as_fn_append ()
  387.   {
  388.     eval $1+=\$2
  389.   }'
  390. else
  391.   as_fn_append ()
  392.   {
  393.     eval $1=\$$1\$2
  394.   }
  395. fi # as_fn_append
  396.  
  397. # as_fn_arith ARG...
  398. # ------------------
  399. # Perform arithmetic evaluation on the ARGs, and store the result in the
  400. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  401. # must be portable across $(()) and expr.
  402. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  403.   eval 'as_fn_arith ()
  404.   {
  405.     as_val=$(( $* ))
  406.   }'
  407. else
  408.   as_fn_arith ()
  409.   {
  410.     as_val=`expr "$@" || test $? -eq 1`
  411.   }
  412. fi # as_fn_arith
  413.  
  414.  
  415. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  416. # ----------------------------------------
  417. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  418. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  419. # script with STATUS, using 1 if that was 0.
  420. as_fn_error ()
  421. {
  422.   as_status=$1; test $as_status -eq 0 && as_status=1
  423.   if test "$4"; then
  424.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  425.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  426.   fi
  427.   $as_echo "$as_me: error: $2" >&2
  428.   as_fn_exit $as_status
  429. } # as_fn_error
  430.  
  431. if expr a : '\(a\)' >/dev/null 2>&1 &&
  432.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  433.   as_expr=expr
  434. else
  435.   as_expr=false
  436. fi
  437.  
  438. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  439.   as_basename=basename
  440. else
  441.   as_basename=false
  442. fi
  443.  
  444. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  445.   as_dirname=dirname
  446. else
  447.   as_dirname=false
  448. fi
  449.  
  450. as_me=`$as_basename -- "$0" ||
  451. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  452.          X"$0" : 'X\(//\)$' \| \
  453.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  454. $as_echo X/"$0" |
  455.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  456.             s//\1/
  457.             q
  458.           }
  459.           /^X\/\(\/\/\)$/{
  460.             s//\1/
  461.             q
  462.           }
  463.           /^X\/\(\/\).*/{
  464.             s//\1/
  465.             q
  466.           }
  467.           s/.*/./; q'`
  468.  
  469. # Avoid depending upon Character Ranges.
  470. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  471. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  472. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  473. as_cr_digits='0123456789'
  474. as_cr_alnum=$as_cr_Letters$as_cr_digits
  475.  
  476.  
  477.   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  478.   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  479.   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  480.   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  481.   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  482.   sed -n '
  483.     p
  484.     /[$]LINENO/=
  485.   ' <$as_myself |
  486.     sed '
  487.       s/[$]LINENO.*/&-/
  488.       t lineno
  489.       b
  490.       :lineno
  491.       N
  492.       :loop
  493.       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  494.       t loop
  495.       s/-\n.*//
  496.     ' >$as_me.lineno &&
  497.   chmod +x "$as_me.lineno" ||
  498.     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  499.  
  500.   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  501.   # already done that, so ensure we don't try to do so again and fall
  502.   # in an infinite loop.  This has already happened in practice.
  503.   _as_can_reexec=no; export _as_can_reexec
  504.   # Don't try to exec as it changes $[0], causing all sort of problems
  505.   # (the dirname of $[0] is not the place where we might find the
  506.   # original and so on.  Autoconf is especially sensitive to this).
  507.   . "./$as_me.lineno"
  508.   # Exit status is that of the last command.
  509.   exit
  510. }
  511.  
  512. ECHO_C= ECHO_N= ECHO_T=
  513. case `echo -n x` in #(((((
  514. -n*)
  515.   case `echo 'xy\c'` in
  516.   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
  517.   xy)  ECHO_C='\c';;
  518.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  519.        ECHO_T=' ';;
  520.   esac;;
  521. *)
  522.   ECHO_N='-n';;
  523. esac
  524.  
  525. rm -f conf$$ conf$$.exe conf$$.file
  526. if test -d conf$$.dir; then
  527.   rm -f conf$$.dir/conf$$.file
  528. else
  529.   rm -f conf$$.dir
  530.   mkdir conf$$.dir 2>/dev/null
  531. fi
  532. if (echo >conf$$.file) 2>/dev/null; then
  533.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  534.     as_ln_s='ln -s'
  535.     # ... but there are two gotchas:
  536.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  537.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  538.     # In both cases, we have to default to `cp -pR'.
  539.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  540.       as_ln_s='cp -pR'
  541.   elif ln conf$$.file conf$$ 2>/dev/null; then
  542.     as_ln_s=ln
  543.   else
  544.     as_ln_s='cp -pR'
  545.   fi
  546. else
  547.   as_ln_s='cp -pR'
  548. fi
  549. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  550. rmdir conf$$.dir 2>/dev/null
  551.  
  552. if mkdir -p . 2>/dev/null; then
  553.   as_mkdir_p='mkdir -p "$as_dir"'
  554. else
  555.   test -d ./-p && rmdir ./-p
  556.   as_mkdir_p=false
  557. fi
  558.  
  559. as_test_x='test -x'
  560. as_executable_p=as_fn_executable_p
  561.  
  562. # Sed expression to map a string onto a valid CPP name.
  563. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  564.  
  565. # Sed expression to map a string onto a valid variable name.
  566. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  567.  
  568. SHELL=${CONFIG_SHELL-/bin/sh}
  569.  
  570.  
  571. test -n "$DJDIR" || exec 7<&0 </dev/null
  572. exec 6>&1
  573.  
  574. # Name of the host.
  575. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  576. # so uname gets run too.
  577. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  578.  
  579. #
  580. # Initializations.
  581. #
  582. ac_default_prefix=/usr/local
  583. ac_clean_files=
  584. ac_config_libobj_dir=.
  585. LIBOBJS=
  586. cross_compiling=no
  587. subdirs=
  588. MFLAGS=
  589. MAKEFLAGS=
  590.  
  591. # Identity of this package.
  592. PACKAGE_NAME='Mesa'
  593. PACKAGE_TARNAME='mesa'
  594. PACKAGE_VERSION='9.2.5'
  595. PACKAGE_STRING='Mesa 9.2.5'
  596. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa'
  597. PACKAGE_URL=''
  598.  
  599. # Factoring default headers for most tests.
  600. ac_includes_default="\
  601. #include <stdio.h>
  602. #ifdef HAVE_SYS_TYPES_H
  603. # include <sys/types.h>
  604. #endif
  605. #ifdef HAVE_SYS_STAT_H
  606. # include <sys/stat.h>
  607. #endif
  608. #ifdef STDC_HEADERS
  609. # include <stdlib.h>
  610. # include <stddef.h>
  611. #else
  612. # ifdef HAVE_STDLIB_H
  613. #  include <stdlib.h>
  614. # endif
  615. #endif
  616. #ifdef HAVE_STRING_H
  617. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  618. #  include <memory.h>
  619. # endif
  620. # include <string.h>
  621. #endif
  622. #ifdef HAVE_STRINGS_H
  623. # include <strings.h>
  624. #endif
  625. #ifdef HAVE_INTTYPES_H
  626. # include <inttypes.h>
  627. #endif
  628. #ifdef HAVE_STDINT_H
  629. # include <stdint.h>
  630. #endif
  631. #ifdef HAVE_UNISTD_H
  632. # include <unistd.h>
  633. #endif"
  634.  
  635. ac_subst_vars='am__EXEEXT_FALSE
  636. am__EXEEXT_TRUE
  637. LTLIBOBJS
  638. LIBOBJS
  639. XA_VERSION
  640. XA_TINY
  641. XA_MINOR
  642. XA_MAJOR
  643. XVMC_MINOR
  644. XVMC_MAJOR
  645. VDPAU_MINOR
  646. VDPAU_MAJOR
  647. CROSS_COMPILING_FALSE
  648. CROSS_COMPILING_TRUE
  649. HAVE_SPARC_ASM_FALSE
  650. HAVE_SPARC_ASM_TRUE
  651. HAVE_X86_64_ASM_FALSE
  652. HAVE_X86_64_ASM_TRUE
  653. HAVE_X86_ASM_FALSE
  654. HAVE_X86_ASM_TRUE
  655. HAVE_GALLIUM_OSMESA_FALSE
  656. HAVE_GALLIUM_OSMESA_TRUE
  657. HAVE_OSMESA_FALSE
  658. HAVE_OSMESA_TRUE
  659. HAVE_X11_DRIVER_FALSE
  660. HAVE_X11_DRIVER_TRUE
  661. NEED_LIBPROGRAM_FALSE
  662. NEED_LIBPROGRAM_TRUE
  663. ELF_LIB
  664. LLVM_NEEDS_FNORTTI_FALSE
  665. LLVM_NEEDS_FNORTTI_TRUE
  666. HAVE_MESA_LLVM_FALSE
  667. HAVE_MESA_LLVM_TRUE
  668. HAVE_GALLIUM_COMPUTE_FALSE
  669. HAVE_GALLIUM_COMPUTE_TRUE
  670. HAVE_DRM_LOADER_GALLIUM_FALSE
  671. HAVE_DRM_LOADER_GALLIUM_TRUE
  672. HAVE_LOADER_GALLIUM_FALSE
  673. HAVE_LOADER_GALLIUM_TRUE
  674. USE_R600_LLVM_COMPILER_FALSE
  675. USE_R600_LLVM_COMPILER_TRUE
  676. R600_NEED_RADEON_GALLIUM_FALSE
  677. R600_NEED_RADEON_GALLIUM_TRUE
  678. NEED_RADEON_LLVM_FALSE
  679. NEED_RADEON_LLVM_TRUE
  680. NEED_WINSYS_XLIB_FALSE
  681. NEED_WINSYS_XLIB_TRUE
  682. NEED_WINSYS_WRAPPER_FALSE
  683. NEED_WINSYS_WRAPPER_TRUE
  684. NEED_RADEON_DRM_WINSYS_FALSE
  685. NEED_RADEON_DRM_WINSYS_TRUE
  686. HAVE_COMMON_DRI_FALSE
  687. HAVE_COMMON_DRI_TRUE
  688. HAVE_SWRAST_DRI_FALSE
  689. HAVE_SWRAST_DRI_TRUE
  690. HAVE_RADEON_DRI_FALSE
  691. HAVE_RADEON_DRI_TRUE
  692. HAVE_R200_DRI_FALSE
  693. HAVE_R200_DRI_TRUE
  694. HAVE_NOUVEAU_DRI_FALSE
  695. HAVE_NOUVEAU_DRI_TRUE
  696. HAVE_I965_DRI_FALSE
  697. HAVE_I965_DRI_TRUE
  698. HAVE_I915_DRI_FALSE
  699. HAVE_I915_DRI_TRUE
  700. GALLIUM_PIPE_LOADER_LIBS
  701. GALLIUM_PIPE_LOADER_DEFINES
  702. GALLIUM_PIPE_LOADER_XCB_LIBS
  703. GALLIUM_PIPE_LOADER_XCB_CFLAGS
  704. NEED_GALLIUM_LLVMPIPE_DRIVER_FALSE
  705. NEED_GALLIUM_LLVMPIPE_DRIVER_TRUE
  706. NEED_GALLIUM_SOFTPIPE_DRIVER_FALSE
  707. NEED_GALLIUM_SOFTPIPE_DRIVER_TRUE
  708. HAVE_GALLIUM_LLVMPIPE_FALSE
  709. HAVE_GALLIUM_LLVMPIPE_TRUE
  710. HAVE_GALLIUM_SOFTPIPE_FALSE
  711. HAVE_GALLIUM_SOFTPIPE_TRUE
  712. HAVE_GALLIUM_FREEDRENO_FALSE
  713. HAVE_GALLIUM_FREEDRENO_TRUE
  714. HAVE_GALLIUM_NOUVEAU_FALSE
  715. HAVE_GALLIUM_NOUVEAU_TRUE
  716. HAVE_GALLIUM_RADEONSI_FALSE
  717. HAVE_GALLIUM_RADEONSI_TRUE
  718. HAVE_GALLIUM_R600_FALSE
  719. HAVE_GALLIUM_R600_TRUE
  720. HAVE_GALLIUM_R300_FALSE
  721. HAVE_GALLIUM_R300_TRUE
  722. HAVE_GALLIUM_ILO_FALSE
  723. HAVE_GALLIUM_ILO_TRUE
  724. HAVE_GALLIUM_I915_FALSE
  725. HAVE_GALLIUM_I915_TRUE
  726. HAVE_GALLIUM_SVGA_FALSE
  727. HAVE_GALLIUM_SVGA_TRUE
  728. FREEDRENO_LIBS
  729. FREEDRENO_CFLAGS
  730. NEED_NONNULL_WINSYS_FALSE
  731. NEED_NONNULL_WINSYS_TRUE
  732. OPENCL_LIB_INSTALL_DIR
  733. VDPAU_LIB_INSTALL_DIR
  734. NEED_GALLIUM_LOADER_FALSE
  735. NEED_GALLIUM_LOADER_TRUE
  736. HAVE_GALLIUM_TESTS_FALSE
  737. HAVE_GALLIUM_TESTS_TRUE
  738. XVMC_LIB_INSTALL_DIR
  739. LLVM_CONFIG
  740. XORG_DRIVER_INSTALL_DIR
  741. EGL_DRIVER_INSTALL_DIR
  742. EGL_CFLAGS
  743. EGL_PLATFORMS
  744. EGL_NATIVE_PLATFORM
  745. HAVE_EGL_DRIVER_GLX_FALSE
  746. HAVE_EGL_DRIVER_GLX_TRUE
  747. HAVE_EGL_DRIVER_DRI2_FALSE
  748. HAVE_EGL_DRIVER_DRI2_TRUE
  749. HAVE_EGL_PLATFORM_NULL_FALSE
  750. HAVE_EGL_PLATFORM_NULL_TRUE
  751. HAVE_EGL_PLATFORM_FBDEV_FALSE
  752. HAVE_EGL_PLATFORM_FBDEV_TRUE
  753. HAVE_EGL_PLATFORM_DRM_FALSE
  754. HAVE_EGL_PLATFORM_DRM_TRUE
  755. HAVE_EGL_PLATFORM_WAYLAND_FALSE
  756. HAVE_EGL_PLATFORM_WAYLAND_TRUE
  757. HAVE_EGL_PLATFORM_X11_FALSE
  758. HAVE_EGL_PLATFORM_X11_TRUE
  759. XCB_DRI2_LIBS
  760. XCB_DRI2_CFLAGS
  761. WAYLAND_SCANNER
  762. WAYLAND_LIBS
  763. WAYLAND_CFLAGS
  764. EGL_CLIENT_APIS
  765. VG_LIB_DEPS
  766. CLANG_RESOURCE_DIR
  767. LLVM_VERSION
  768. LLVM_INCLUDEDIR
  769. LLVM_LDFLAGS
  770. LLVM_LIBS
  771. LLVM_LIBDIR
  772. LLVM_CXXFLAGS
  773. LLVM_CPPFLAGS
  774. LLVM_CFLAGS
  775. LLVM_BINDIR
  776. HAVE_GALLIUM_FALSE
  777. HAVE_GALLIUM_TRUE
  778. HAVE_CLOVER_FALSE
  779. HAVE_CLOVER_TRUE
  780. LIBCLC_LIBEXECDIR
  781. LIBCLC_INCLUDEDIR
  782. HAVE_ST_VDPAU_FALSE
  783. HAVE_ST_VDPAU_TRUE
  784. VDPAU_LIBS
  785. VDPAU_CFLAGS
  786. HAVE_ST_XVMC_FALSE
  787. HAVE_ST_XVMC_TRUE
  788. XVMC_LIBS
  789. XVMC_CFLAGS
  790. HAVE_OPENVG_FALSE
  791. HAVE_OPENVG_TRUE
  792. VG_PC_LIB_PRIV
  793. HAVE_ST_XA_FALSE
  794. HAVE_ST_XA_TRUE
  795. HAVE_ST_XORG_FALSE
  796. HAVE_ST_XORG_TRUE
  797. XEXT_LIBS
  798. XEXT_CFLAGS
  799. LIBKMS_XORG_LIBS
  800. LIBKMS_XORG_CFLAGS
  801. LIBDRM_XORG_LIBS
  802. LIBDRM_XORG_CFLAGS
  803. XORG_LIBS
  804. XORG_CFLAGS
  805. HAVE_GALLIUM_GBM_FALSE
  806. HAVE_GALLIUM_GBM_TRUE
  807. HAVE_GALLIUM_EGL_FALSE
  808. HAVE_GALLIUM_EGL_TRUE
  809. EGL_LIB_DEPS
  810. HAVE_EGL_FALSE
  811. HAVE_EGL_TRUE
  812. GBM_PC_LIB_PRIV
  813. GBM_PC_REQ_PRIV
  814. HAVE_GBM_FALSE
  815. HAVE_GBM_TRUE
  816. LIBUDEV_LIBS
  817. LIBUDEV_CFLAGS
  818. OSMESA_PC_LIB_PRIV
  819. OSMESA_PC_REQ
  820. OSMESA_MESA_DEPS
  821. OSMESA_LIB_DEPS
  822. RADEON_LIBS
  823. RADEON_CFLAGS
  824. NOUVEAU_LIBS
  825. NOUVEAU_CFLAGS
  826. INTEL_LIBS
  827. INTEL_CFLAGS
  828. GALLIUM_DRI_LIB_DEPS
  829. DRI_LIB_DEPS
  830. EXPAT_INCLUDES
  831. NEED_LIBDRICORE_FALSE
  832. NEED_LIBDRICORE_TRUE
  833. DRI_DRIVER_SEARCH_DIR
  834. DRI_DRIVER_INSTALL_DIR
  835. GLX_TLS
  836. HAVE_XF86VIDMODE
  837. GLESv2_PC_LIB_PRIV
  838. GLESv2_LIB_DEPS
  839. GLESv1_CM_PC_LIB_PRIV
  840. GLESv1_CM_LIB_DEPS
  841. DRI_PC_REQ_PRIV
  842. GL_PC_CFLAGS
  843. GL_PC_LIB_PRIV
  844. GL_PC_REQ_PRIV
  845. GL_LIB_DEPS
  846. X11_INCLUDES
  847. HAVE_XF86VIDMODE_FALSE
  848. HAVE_XF86VIDMODE_TRUE
  849. DRIGL_LIBS
  850. DRIGL_CFLAGS
  851. XF86VIDMODE_LIBS
  852. XF86VIDMODE_CFLAGS
  853. DRI2PROTO_LIBS
  854. DRI2PROTO_CFLAGS
  855. GLPROTO_LIBS
  856. GLPROTO_CFLAGS
  857. XLIBGL_LIBS
  858. XLIBGL_CFLAGS
  859. LIBDRM_LIBS
  860. LIBDRM_CFLAGS
  861. MESA_LLVM
  862. HAVE_SHARED_GLAPI_FALSE
  863. HAVE_SHARED_GLAPI_TRUE
  864. NEED_LIBMESA_FALSE
  865. NEED_LIBMESA_TRUE
  866. HAVE_DRI_FALSE
  867. HAVE_DRI_TRUE
  868. HAVE_DRI_GLX_FALSE
  869. HAVE_DRI_GLX_TRUE
  870. NEED_OPENGL_COMMON_FALSE
  871. NEED_OPENGL_COMMON_TRUE
  872. HAVE_OPENGL_ES2_FALSE
  873. HAVE_OPENGL_ES2_TRUE
  874. HAVE_OPENGL_ES1_FALSE
  875. HAVE_OPENGL_ES1_TRUE
  876. HAVE_OPENGL_FALSE
  877. HAVE_OPENGL_TRUE
  878. SELINUX_LIBS
  879. PTHREAD_CFLAGS
  880. PTHREAD_LIBS
  881. PTHREAD_CC
  882. ax_pthread_config
  883. CLOCK_LIB
  884. DLOPEN_LIBS
  885. GLAPI_LIB_GLOB
  886. VG_LIB_GLOB
  887. GLESv2_LIB_GLOB
  888. GLESv1_CM_LIB_GLOB
  889. EGL_LIB_GLOB
  890. GL_LIB_GLOB
  891. GLAPI_LIB_NAME
  892. VG_LIB_NAME
  893. GLESv2_LIB_NAME
  894. GLESv1_CM_LIB_NAME
  895. EGL_LIB_NAME
  896. OSMESA_LIB_NAME
  897. GL_LIB_NAME
  898. OSMESA_LIB
  899. GL_LIB
  900. BUILD_SHARED_FALSE
  901. BUILD_SHARED_TRUE
  902. VISIBILITY_CXXFLAGS
  903. VISIBILITY_CFLAGS
  904. DEFINES
  905. DEFINES_FOR_BUILD
  906. LIB_DIR
  907. PKG_CONFIG_LIBDIR
  908. PKG_CONFIG_PATH
  909. PKG_CONFIG
  910. GEN_ASM_OFFSETS_FALSE
  911. GEN_ASM_OFFSETS_TRUE
  912. POSIX_SHELL
  913. INDENT_FLAGS
  914. INDENT
  915. PERL
  916. LEXLIB
  917. LEX_OUTPUT_ROOT
  918. LEX
  919. YFLAGS
  920. YACC
  921. OTOOL64
  922. OTOOL
  923. LIPO
  924. NMEDIT
  925. DSYMUTIL
  926. MANIFEST_TOOL
  927. RANLIB
  928. DLLTOOL
  929. OBJDUMP
  930. LN_S
  931. NM
  932. ac_ct_DUMPBIN
  933. DUMPBIN
  934. LD
  935. FGREP
  936. EGREP
  937. GREP
  938. LIBTOOL
  939. SED
  940. PYTHON2
  941. MAKE
  942. am__fastdepCCAS_FALSE
  943. am__fastdepCCAS_TRUE
  944. CCASDEPMODE
  945. CCASFLAGS
  946. CCAS
  947. CXXCPPFLAGS_FOR_BUILD
  948. CXXFLAGS_FOR_BUILD
  949. CXXCPP_FOR_BUILD
  950. ac_ct_CXX_FOR_BUILD
  951. CXX_FOR_BUILD
  952. CXXCPP
  953. am__fastdepCXX_FALSE
  954. am__fastdepCXX_TRUE
  955. CXXDEPMODE
  956. ac_ct_CXX
  957. CXXFLAGS
  958. CXX
  959. LDFLAGS_FOR_BUILD
  960. CPPFLAGS_FOR_BUILD
  961. CFLAGS_FOR_BUILD
  962. BUILD_OBJEXT
  963. BUILD_EXEEXT
  964. CPP_FOR_BUILD
  965. ac_ct_CC_FOR_BUILD
  966. CC_FOR_BUILD
  967. CPP
  968. OSMESA_VERSION
  969. am__fastdepCC_FALSE
  970. am__fastdepCC_TRUE
  971. CCDEPMODE
  972. am__nodep
  973. AMDEPBACKSLASH
  974. AMDEP_FALSE
  975. AMDEP_TRUE
  976. am__quote
  977. am__include
  978. DEPDIR
  979. OBJEXT
  980. EXEEXT
  981. ac_ct_CC
  982. CPPFLAGS
  983. LDFLAGS
  984. CFLAGS
  985. CC
  986. ac_ct_AR
  987. AR
  988. AM_BACKSLASH
  989. AM_DEFAULT_VERBOSITY
  990. AM_DEFAULT_V
  991. AM_V
  992. am__untar
  993. am__tar
  994. AMTAR
  995. am__leading_dot
  996. SET_MAKE
  997. AWK
  998. mkdir_p
  999. MKDIR_P
  1000. INSTALL_STRIP_PROGRAM
  1001. STRIP
  1002. install_sh
  1003. MAKEINFO
  1004. AUTOHEADER
  1005. AUTOMAKE
  1006. AUTOCONF
  1007. ACLOCAL
  1008. VERSION
  1009. PACKAGE
  1010. CYGPATH_W
  1011. am__isrc
  1012. INSTALL_DATA
  1013. INSTALL_SCRIPT
  1014. INSTALL_PROGRAM
  1015. target_os
  1016. target_vendor
  1017. target_cpu
  1018. target
  1019. host_os
  1020. host_vendor
  1021. host_cpu
  1022. host
  1023. build_os
  1024. build_vendor
  1025. build_cpu
  1026. build
  1027. target_alias
  1028. host_alias
  1029. build_alias
  1030. LIBS
  1031. ECHO_T
  1032. ECHO_N
  1033. ECHO_C
  1034. DEFS
  1035. mandir
  1036. localedir
  1037. libdir
  1038. psdir
  1039. pdfdir
  1040. dvidir
  1041. htmldir
  1042. infodir
  1043. docdir
  1044. oldincludedir
  1045. includedir
  1046. localstatedir
  1047. sharedstatedir
  1048. sysconfdir
  1049. datadir
  1050. datarootdir
  1051. libexecdir
  1052. sbindir
  1053. bindir
  1054. program_transform_name
  1055. prefix
  1056. exec_prefix
  1057. PACKAGE_URL
  1058. PACKAGE_BUGREPORT
  1059. PACKAGE_STRING
  1060. PACKAGE_VERSION
  1061. PACKAGE_TARNAME
  1062. PACKAGE_NAME
  1063. PATH_SEPARATOR
  1064. SHELL'
  1065. ac_subst_files=''
  1066. ac_user_opts='
  1067. enable_option_checking
  1068. enable_silent_rules
  1069. enable_dependency_tracking
  1070. enable_static
  1071. enable_shared
  1072. with_pic
  1073. enable_fast_install
  1074. with_gnu_ld
  1075. with_sysroot
  1076. enable_libtool_lock
  1077. enable_32_bit
  1078. enable_64_bit
  1079. enable_debug
  1080. with_gl_lib_name
  1081. with_osmesa_lib_name
  1082. enable_mangling
  1083. enable_texture_float
  1084. enable_asm
  1085. enable_selinux
  1086. enable_opengl
  1087. enable_gles1
  1088. enable_gles2
  1089. enable_openvg
  1090. enable_dri
  1091. enable_glx
  1092. enable_osmesa
  1093. enable_gallium_osmesa
  1094. enable_egl
  1095. enable_xorg
  1096. enable_xa
  1097. enable_gbm
  1098. enable_xvmc
  1099. enable_vdpau
  1100. enable_opencl
  1101. enable_xlib_glx
  1102. enable_gallium_egl
  1103. enable_gallium_gbm
  1104. enable_r600_llvm_compiler
  1105. enable_gallium_tests
  1106. with_gallium_drivers
  1107. enable_shared_glapi
  1108. enable_driglx_direct
  1109. enable_glx_tls
  1110. with_dri_driverdir
  1111. with_dri_searchpath
  1112. with_dri_drivers
  1113. with_expat
  1114. with_osmesa_bits
  1115. with_libclc_path
  1116. with_clang_libdir
  1117. with_egl_platforms
  1118. with_egl_driver_dir
  1119. with_xorg_driver_dir
  1120. with_max_width
  1121. with_max_height
  1122. enable_gallium_llvm
  1123. with_llvm_shared_libs
  1124. with_llvm_prefix
  1125. with_xvmc_libdir
  1126. with_vdpau_libdir
  1127. with_opencl_libdir
  1128. '
  1129.       ac_precious_vars='build_alias
  1130. host_alias
  1131. target_alias
  1132. CC
  1133. CFLAGS
  1134. LDFLAGS
  1135. LIBS
  1136. CPPFLAGS
  1137. CPP
  1138. CXX
  1139. CXXFLAGS
  1140. CCC
  1141. CXXCPP
  1142. CCAS
  1143. CCASFLAGS
  1144. YACC
  1145. YFLAGS
  1146. PKG_CONFIG
  1147. PKG_CONFIG_PATH
  1148. PKG_CONFIG_LIBDIR
  1149. LIBDRM_CFLAGS
  1150. LIBDRM_LIBS
  1151. XLIBGL_CFLAGS
  1152. XLIBGL_LIBS
  1153. GLPROTO_CFLAGS
  1154. GLPROTO_LIBS
  1155. DRI2PROTO_CFLAGS
  1156. DRI2PROTO_LIBS
  1157. XF86VIDMODE_CFLAGS
  1158. XF86VIDMODE_LIBS
  1159. DRIGL_CFLAGS
  1160. DRIGL_LIBS
  1161. INTEL_CFLAGS
  1162. INTEL_LIBS
  1163. NOUVEAU_CFLAGS
  1164. NOUVEAU_LIBS
  1165. RADEON_CFLAGS
  1166. RADEON_LIBS
  1167. LIBUDEV_CFLAGS
  1168. LIBUDEV_LIBS
  1169. XORG_CFLAGS
  1170. XORG_LIBS
  1171. LIBDRM_XORG_CFLAGS
  1172. LIBDRM_XORG_LIBS
  1173. LIBKMS_XORG_CFLAGS
  1174. LIBKMS_XORG_LIBS
  1175. XEXT_CFLAGS
  1176. XEXT_LIBS
  1177. XVMC_CFLAGS
  1178. XVMC_LIBS
  1179. VDPAU_CFLAGS
  1180. VDPAU_LIBS
  1181. WAYLAND_CFLAGS
  1182. WAYLAND_LIBS
  1183. XCB_DRI2_CFLAGS
  1184. XCB_DRI2_LIBS
  1185. FREEDRENO_CFLAGS
  1186. FREEDRENO_LIBS
  1187. GALLIUM_PIPE_LOADER_XCB_CFLAGS
  1188. GALLIUM_PIPE_LOADER_XCB_LIBS'
  1189.  
  1190.  
  1191. # Initialize some variables set by options.
  1192. ac_init_help=
  1193. ac_init_version=false
  1194. ac_unrecognized_opts=
  1195. ac_unrecognized_sep=
  1196. # The variables have the same names as the options, with
  1197. # dashes changed to underlines.
  1198. cache_file=/dev/null
  1199. exec_prefix=NONE
  1200. no_create=
  1201. no_recursion=
  1202. prefix=NONE
  1203. program_prefix=NONE
  1204. program_suffix=NONE
  1205. program_transform_name=s,x,x,
  1206. silent=
  1207. site=
  1208. srcdir=
  1209. verbose=
  1210. x_includes=NONE
  1211. x_libraries=NONE
  1212.  
  1213. # Installation directory options.
  1214. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1215. # and all the variables that are supposed to be based on exec_prefix
  1216. # by default will actually change.
  1217. # Use braces instead of parens because sh, perl, etc. also accept them.
  1218. # (The list follows the same order as the GNU Coding Standards.)
  1219. bindir='${exec_prefix}/bin'
  1220. sbindir='${exec_prefix}/sbin'
  1221. libexecdir='${exec_prefix}/libexec'
  1222. datarootdir='${prefix}/share'
  1223. datadir='${datarootdir}'
  1224. sysconfdir='${prefix}/etc'
  1225. sharedstatedir='${prefix}/com'
  1226. localstatedir='${prefix}/var'
  1227. includedir='${prefix}/include'
  1228. oldincludedir='/usr/include'
  1229. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1230. infodir='${datarootdir}/info'
  1231. htmldir='${docdir}'
  1232. dvidir='${docdir}'
  1233. pdfdir='${docdir}'
  1234. psdir='${docdir}'
  1235. libdir='${exec_prefix}/lib'
  1236. localedir='${datarootdir}/locale'
  1237. mandir='${datarootdir}/man'
  1238.  
  1239. ac_prev=
  1240. ac_dashdash=
  1241. for ac_option
  1242. do
  1243.   # If the previous option needs an argument, assign it.
  1244.   if test -n "$ac_prev"; then
  1245.     eval $ac_prev=\$ac_option
  1246.     ac_prev=
  1247.     continue
  1248.   fi
  1249.  
  1250.   case $ac_option in
  1251.   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1252.   *=)   ac_optarg= ;;
  1253.   *)    ac_optarg=yes ;;
  1254.   esac
  1255.  
  1256.   # Accept the important Cygnus configure options, so we can diagnose typos.
  1257.  
  1258.   case $ac_dashdash$ac_option in
  1259.   --)
  1260.     ac_dashdash=yes ;;
  1261.  
  1262.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1263.     ac_prev=bindir ;;
  1264.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1265.     bindir=$ac_optarg ;;
  1266.  
  1267.   -build | --build | --buil | --bui | --bu)
  1268.     ac_prev=build_alias ;;
  1269.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1270.     build_alias=$ac_optarg ;;
  1271.  
  1272.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  1273.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1274.     ac_prev=cache_file ;;
  1275.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1276.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1277.     cache_file=$ac_optarg ;;
  1278.  
  1279.   --config-cache | -C)
  1280.     cache_file=config.cache ;;
  1281.  
  1282.   -datadir | --datadir | --datadi | --datad)
  1283.     ac_prev=datadir ;;
  1284.   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1285.     datadir=$ac_optarg ;;
  1286.  
  1287.   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1288.   | --dataroo | --dataro | --datar)
  1289.     ac_prev=datarootdir ;;
  1290.   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1291.   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1292.     datarootdir=$ac_optarg ;;
  1293.  
  1294.   -disable-* | --disable-*)
  1295.     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1296.     # Reject names that are not valid shell variable names.
  1297.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1298.       as_fn_error $? "invalid feature name: $ac_useropt"
  1299.     ac_useropt_orig=$ac_useropt
  1300.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1301.     case $ac_user_opts in
  1302.       *"
  1303. "enable_$ac_useropt"
  1304. "*) ;;
  1305.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1306.          ac_unrecognized_sep=', ';;
  1307.     esac
  1308.     eval enable_$ac_useropt=no ;;
  1309.  
  1310.   -docdir | --docdir | --docdi | --doc | --do)
  1311.     ac_prev=docdir ;;
  1312.   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1313.     docdir=$ac_optarg ;;
  1314.  
  1315.   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1316.     ac_prev=dvidir ;;
  1317.   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1318.     dvidir=$ac_optarg ;;
  1319.  
  1320.   -enable-* | --enable-*)
  1321.     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1322.     # Reject names that are not valid shell variable names.
  1323.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1324.       as_fn_error $? "invalid feature name: $ac_useropt"
  1325.     ac_useropt_orig=$ac_useropt
  1326.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1327.     case $ac_user_opts in
  1328.       *"
  1329. "enable_$ac_useropt"
  1330. "*) ;;
  1331.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1332.          ac_unrecognized_sep=', ';;
  1333.     esac
  1334.     eval enable_$ac_useropt=\$ac_optarg ;;
  1335.  
  1336.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1337.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1338.   | --exec | --exe | --ex)
  1339.     ac_prev=exec_prefix ;;
  1340.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1341.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1342.   | --exec=* | --exe=* | --ex=*)
  1343.     exec_prefix=$ac_optarg ;;
  1344.  
  1345.   -gas | --gas | --ga | --g)
  1346.     # Obsolete; use --with-gas.
  1347.     with_gas=yes ;;
  1348.  
  1349.   -help | --help | --hel | --he | -h)
  1350.     ac_init_help=long ;;
  1351.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1352.     ac_init_help=recursive ;;
  1353.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1354.     ac_init_help=short ;;
  1355.  
  1356.   -host | --host | --hos | --ho)
  1357.     ac_prev=host_alias ;;
  1358.   -host=* | --host=* | --hos=* | --ho=*)
  1359.     host_alias=$ac_optarg ;;
  1360.  
  1361.   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1362.     ac_prev=htmldir ;;
  1363.   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1364.   | --ht=*)
  1365.     htmldir=$ac_optarg ;;
  1366.  
  1367.   -includedir | --includedir | --includedi | --included | --include \
  1368.   | --includ | --inclu | --incl | --inc)
  1369.     ac_prev=includedir ;;
  1370.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1371.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1372.     includedir=$ac_optarg ;;
  1373.  
  1374.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1375.     ac_prev=infodir ;;
  1376.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1377.     infodir=$ac_optarg ;;
  1378.  
  1379.   -libdir | --libdir | --libdi | --libd)
  1380.     ac_prev=libdir ;;
  1381.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1382.     libdir=$ac_optarg ;;
  1383.  
  1384.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1385.   | --libexe | --libex | --libe)
  1386.     ac_prev=libexecdir ;;
  1387.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1388.   | --libexe=* | --libex=* | --libe=*)
  1389.     libexecdir=$ac_optarg ;;
  1390.  
  1391.   -localedir | --localedir | --localedi | --localed | --locale)
  1392.     ac_prev=localedir ;;
  1393.   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1394.     localedir=$ac_optarg ;;
  1395.  
  1396.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1397.   | --localstate | --localstat | --localsta | --localst | --locals)
  1398.     ac_prev=localstatedir ;;
  1399.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1400.   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1401.     localstatedir=$ac_optarg ;;
  1402.  
  1403.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1404.     ac_prev=mandir ;;
  1405.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1406.     mandir=$ac_optarg ;;
  1407.  
  1408.   -nfp | --nfp | --nf)
  1409.     # Obsolete; use --without-fp.
  1410.     with_fp=no ;;
  1411.  
  1412.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1413.   | --no-cr | --no-c | -n)
  1414.     no_create=yes ;;
  1415.  
  1416.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1417.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1418.     no_recursion=yes ;;
  1419.  
  1420.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1421.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1422.   | --oldin | --oldi | --old | --ol | --o)
  1423.     ac_prev=oldincludedir ;;
  1424.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1425.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1426.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1427.     oldincludedir=$ac_optarg ;;
  1428.  
  1429.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1430.     ac_prev=prefix ;;
  1431.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1432.     prefix=$ac_optarg ;;
  1433.  
  1434.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1435.   | --program-pre | --program-pr | --program-p)
  1436.     ac_prev=program_prefix ;;
  1437.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1438.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1439.     program_prefix=$ac_optarg ;;
  1440.  
  1441.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1442.   | --program-suf | --program-su | --program-s)
  1443.     ac_prev=program_suffix ;;
  1444.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1445.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1446.     program_suffix=$ac_optarg ;;
  1447.  
  1448.   -program-transform-name | --program-transform-name \
  1449.   | --program-transform-nam | --program-transform-na \
  1450.   | --program-transform-n | --program-transform- \
  1451.   | --program-transform | --program-transfor \
  1452.   | --program-transfo | --program-transf \
  1453.   | --program-trans | --program-tran \
  1454.   | --progr-tra | --program-tr | --program-t)
  1455.     ac_prev=program_transform_name ;;
  1456.   -program-transform-name=* | --program-transform-name=* \
  1457.   | --program-transform-nam=* | --program-transform-na=* \
  1458.   | --program-transform-n=* | --program-transform-=* \
  1459.   | --program-transform=* | --program-transfor=* \
  1460.   | --program-transfo=* | --program-transf=* \
  1461.   | --program-trans=* | --program-tran=* \
  1462.   | --progr-tra=* | --program-tr=* | --program-t=*)
  1463.     program_transform_name=$ac_optarg ;;
  1464.  
  1465.   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1466.     ac_prev=pdfdir ;;
  1467.   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1468.     pdfdir=$ac_optarg ;;
  1469.  
  1470.   -psdir | --psdir | --psdi | --psd | --ps)
  1471.     ac_prev=psdir ;;
  1472.   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1473.     psdir=$ac_optarg ;;
  1474.  
  1475.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1476.   | -silent | --silent | --silen | --sile | --sil)
  1477.     silent=yes ;;
  1478.  
  1479.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1480.     ac_prev=sbindir ;;
  1481.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1482.   | --sbi=* | --sb=*)
  1483.     sbindir=$ac_optarg ;;
  1484.  
  1485.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1486.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1487.   | --sharedst | --shareds | --shared | --share | --shar \
  1488.   | --sha | --sh)
  1489.     ac_prev=sharedstatedir ;;
  1490.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1491.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1492.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1493.   | --sha=* | --sh=*)
  1494.     sharedstatedir=$ac_optarg ;;
  1495.  
  1496.   -site | --site | --sit)
  1497.     ac_prev=site ;;
  1498.   -site=* | --site=* | --sit=*)
  1499.     site=$ac_optarg ;;
  1500.  
  1501.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1502.     ac_prev=srcdir ;;
  1503.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1504.     srcdir=$ac_optarg ;;
  1505.  
  1506.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1507.   | --syscon | --sysco | --sysc | --sys | --sy)
  1508.     ac_prev=sysconfdir ;;
  1509.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1510.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1511.     sysconfdir=$ac_optarg ;;
  1512.  
  1513.   -target | --target | --targe | --targ | --tar | --ta | --t)
  1514.     ac_prev=target_alias ;;
  1515.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1516.     target_alias=$ac_optarg ;;
  1517.  
  1518.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1519.     verbose=yes ;;
  1520.  
  1521.   -version | --version | --versio | --versi | --vers | -V)
  1522.     ac_init_version=: ;;
  1523.  
  1524.   -with-* | --with-*)
  1525.     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1526.     # Reject names that are not valid shell variable names.
  1527.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1528.       as_fn_error $? "invalid package name: $ac_useropt"
  1529.     ac_useropt_orig=$ac_useropt
  1530.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1531.     case $ac_user_opts in
  1532.       *"
  1533. "with_$ac_useropt"
  1534. "*) ;;
  1535.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1536.          ac_unrecognized_sep=', ';;
  1537.     esac
  1538.     eval with_$ac_useropt=\$ac_optarg ;;
  1539.  
  1540.   -without-* | --without-*)
  1541.     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1542.     # Reject names that are not valid shell variable names.
  1543.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1544.       as_fn_error $? "invalid package name: $ac_useropt"
  1545.     ac_useropt_orig=$ac_useropt
  1546.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1547.     case $ac_user_opts in
  1548.       *"
  1549. "with_$ac_useropt"
  1550. "*) ;;
  1551.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1552.          ac_unrecognized_sep=', ';;
  1553.     esac
  1554.     eval with_$ac_useropt=no ;;
  1555.  
  1556.   --x)
  1557.     # Obsolete; use --with-x.
  1558.     with_x=yes ;;
  1559.  
  1560.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1561.   | --x-incl | --x-inc | --x-in | --x-i)
  1562.     ac_prev=x_includes ;;
  1563.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1564.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1565.     x_includes=$ac_optarg ;;
  1566.  
  1567.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1568.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1569.     ac_prev=x_libraries ;;
  1570.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1571.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1572.     x_libraries=$ac_optarg ;;
  1573.  
  1574.   -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1575. Try \`$0 --help' for more information"
  1576.     ;;
  1577.  
  1578.   *=*)
  1579.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1580.     # Reject names that are not valid shell variable names.
  1581.     case $ac_envvar in #(
  1582.       '' | [0-9]* | *[!_$as_cr_alnum]* )
  1583.       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1584.     esac
  1585.     eval $ac_envvar=\$ac_optarg
  1586.     export $ac_envvar ;;
  1587.  
  1588.   *)
  1589.     # FIXME: should be removed in autoconf 3.0.
  1590.     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1591.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1592.       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1593.     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1594.     ;;
  1595.  
  1596.   esac
  1597. done
  1598.  
  1599. if test -n "$ac_prev"; then
  1600.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1601.   as_fn_error $? "missing argument to $ac_option"
  1602. fi
  1603.  
  1604. if test -n "$ac_unrecognized_opts"; then
  1605.   case $enable_option_checking in
  1606.     no) ;;
  1607.     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1608.     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1609.   esac
  1610. fi
  1611.  
  1612. # Check all directory arguments for consistency.
  1613. for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1614.                 datadir sysconfdir sharedstatedir localstatedir includedir \
  1615.                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1616.                 libdir localedir mandir
  1617. do
  1618.   eval ac_val=\$$ac_var
  1619.   # Remove trailing slashes.
  1620.   case $ac_val in
  1621.     */ )
  1622.       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1623.       eval $ac_var=\$ac_val;;
  1624.   esac
  1625.   # Be sure to have absolute directory names.
  1626.   case $ac_val in
  1627.     [\\/$]* | ?:[\\/]* )  continue;;
  1628.     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1629.   esac
  1630.   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1631. done
  1632.  
  1633. # There might be people who depend on the old broken behavior: `$host'
  1634. # used to hold the argument of --host etc.
  1635. # FIXME: To remove some day.
  1636. build=$build_alias
  1637. host=$host_alias
  1638. target=$target_alias
  1639.  
  1640. # FIXME: To remove some day.
  1641. if test "x$host_alias" != x; then
  1642.   if test "x$build_alias" = x; then
  1643.     cross_compiling=maybe
  1644.   elif test "x$build_alias" != "x$host_alias"; then
  1645.     cross_compiling=yes
  1646.   fi
  1647. fi
  1648.  
  1649. ac_tool_prefix=
  1650. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1651.  
  1652. test "$silent" = yes && exec 6>/dev/null
  1653.  
  1654.  
  1655. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1656. ac_ls_di=`ls -di .` &&
  1657. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1658.   as_fn_error $? "working directory cannot be determined"
  1659. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1660.   as_fn_error $? "pwd does not report name of working directory"
  1661.  
  1662.  
  1663. # Find the source files, if location was not specified.
  1664. if test -z "$srcdir"; then
  1665.   ac_srcdir_defaulted=yes
  1666.   # Try the directory containing this script, then the parent directory.
  1667.   ac_confdir=`$as_dirname -- "$as_myself" ||
  1668. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1669.          X"$as_myself" : 'X\(//\)[^/]' \| \
  1670.          X"$as_myself" : 'X\(//\)$' \| \
  1671.          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1672. $as_echo X"$as_myself" |
  1673.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1674.             s//\1/
  1675.             q
  1676.           }
  1677.           /^X\(\/\/\)[^/].*/{
  1678.             s//\1/
  1679.             q
  1680.           }
  1681.           /^X\(\/\/\)$/{
  1682.             s//\1/
  1683.             q
  1684.           }
  1685.           /^X\(\/\).*/{
  1686.             s//\1/
  1687.             q
  1688.           }
  1689.           s/.*/./; q'`
  1690.   srcdir=$ac_confdir
  1691.   if test ! -r "$srcdir/$ac_unique_file"; then
  1692.     srcdir=..
  1693.   fi
  1694. else
  1695.   ac_srcdir_defaulted=no
  1696. fi
  1697. if test ! -r "$srcdir/$ac_unique_file"; then
  1698.   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1699.   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1700. fi
  1701. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1702. ac_abs_confdir=`(
  1703.         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1704.         pwd)`
  1705. # When building in place, set srcdir=.
  1706. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1707.   srcdir=.
  1708. fi
  1709. # Remove unnecessary trailing slashes from srcdir.
  1710. # Double slashes in file names in object file debugging info
  1711. # mess up M-x gdb in Emacs.
  1712. case $srcdir in
  1713. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1714. esac
  1715. for ac_var in $ac_precious_vars; do
  1716.   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1717.   eval ac_env_${ac_var}_value=\$${ac_var}
  1718.   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1719.   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1720. done
  1721.  
  1722. #
  1723. # Report the --help message.
  1724. #
  1725. if test "$ac_init_help" = "long"; then
  1726.   # Omit some internal or obsolete options to make the list less imposing.
  1727.   # This message is too long to be a string in the A/UX 3.1 sh.
  1728.   cat <<_ACEOF
  1729. \`configure' configures Mesa 9.2.5 to adapt to many kinds of systems.
  1730.  
  1731. Usage: $0 [OPTION]... [VAR=VALUE]...
  1732.  
  1733. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1734. VAR=VALUE.  See below for descriptions of some of the useful variables.
  1735.  
  1736. Defaults for the options are specified in brackets.
  1737.  
  1738. Configuration:
  1739.   -h, --help              display this help and exit
  1740.       --help=short        display options specific to this package
  1741.       --help=recursive    display the short help of all the included packages
  1742.   -V, --version           display version information and exit
  1743.   -q, --quiet, --silent   do not print \`checking ...' messages
  1744.       --cache-file=FILE   cache test results in FILE [disabled]
  1745.   -C, --config-cache      alias for \`--cache-file=config.cache'
  1746.   -n, --no-create         do not create output files
  1747.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1748.  
  1749. Installation directories:
  1750.   --prefix=PREFIX         install architecture-independent files in PREFIX
  1751.                           [$ac_default_prefix]
  1752.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1753.                           [PREFIX]
  1754.  
  1755. By default, \`make install' will install all the files in
  1756. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1757. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1758. for instance \`--prefix=\$HOME'.
  1759.  
  1760. For better control, use the options below.
  1761.  
  1762. Fine tuning of the installation directories:
  1763.   --bindir=DIR            user executables [EPREFIX/bin]
  1764.   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1765.   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1766.   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1767.   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1768.   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1769.   --libdir=DIR            object code libraries [EPREFIX/lib]
  1770.   --includedir=DIR        C header files [PREFIX/include]
  1771.   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1772.   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1773.   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1774.   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1775.   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1776.   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1777.   --docdir=DIR            documentation root [DATAROOTDIR/doc/mesa]
  1778.   --htmldir=DIR           html documentation [DOCDIR]
  1779.   --dvidir=DIR            dvi documentation [DOCDIR]
  1780.   --pdfdir=DIR            pdf documentation [DOCDIR]
  1781.   --psdir=DIR             ps documentation [DOCDIR]
  1782. _ACEOF
  1783.  
  1784.   cat <<\_ACEOF
  1785.  
  1786. Program names:
  1787.   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1788.   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1789.   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1790.  
  1791. System types:
  1792.   --build=BUILD     configure for building on BUILD [guessed]
  1793.   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1794.   --target=TARGET   configure for building compilers for TARGET [HOST]
  1795. _ACEOF
  1796. fi
  1797.  
  1798. if test -n "$ac_init_help"; then
  1799.   case $ac_init_help in
  1800.      short | recursive ) echo "Configuration of Mesa 9.2.5:";;
  1801.    esac
  1802.   cat <<\_ACEOF
  1803.  
  1804. Optional Features:
  1805.   --disable-option-checking  ignore unrecognized --enable/--with options
  1806.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1807.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1808.   --enable-silent-rules   less verbose build output (undo: "make V=1")
  1809.   --disable-silent-rules  verbose build output (undo: "make V=0")
  1810.   --enable-dependency-tracking
  1811.                           do not reject slow dependency extractors
  1812.   --disable-dependency-tracking
  1813.                           speeds up one-time build
  1814.   --enable-static[=PKGS]  build static libraries [default=no]
  1815.   --enable-shared[=PKGS]  build shared libraries [default=yes]
  1816.   --enable-fast-install[=PKGS]
  1817.                           optimize for fast installation [default=yes]
  1818.   --disable-libtool-lock  avoid locking (might break parallel builds)
  1819.   --enable-32-bit         build 32-bit libraries [default=auto]
  1820.   --enable-64-bit         build 64-bit libraries [default=auto]
  1821.   --enable-debug          use debug compiler flags and macros
  1822.                           [default=disabled]
  1823.   --enable-mangling       enable mangled symbols and library name
  1824.                           [default=disabled]
  1825.   --enable-texture-float  enable floating-point textures and renderbuffers
  1826.                           [default=disabled]
  1827.   --disable-asm           disable assembly usage [default=enabled on supported
  1828.                           plaforms]
  1829.   --enable-selinux        Build SELinux-aware Mesa [default=disabled]
  1830.   --disable-opengl        disable support for standard OpenGL API [default=no]
  1831.   --enable-gles1          enable support for OpenGL ES 1.x API [default=no]
  1832.   --enable-gles2          enable support for OpenGL ES 2.x API [default=no]
  1833.   --enable-openvg         enable support for OpenVG API [default=no]
  1834.   --enable-dri            enable DRI modules [default=enabled]
  1835.   --enable-glx            enable GLX library [default=enabled]
  1836.   --enable-osmesa         enable OSMesa library [default=disabled]
  1837.   --enable-gallium-osmesa enable Gallium implementation of the OSMesa library
  1838.                           [default=disabled]
  1839.   --disable-egl           disable EGL library [default=enabled]
  1840.   --enable-xorg           enable support for X.Org DDX API [default=no]
  1841.   --enable-xa             enable build of the XA X Acceleration API
  1842.                           [default=no]
  1843.   --enable-gbm            enable gbm library [default=auto]
  1844.   --enable-xvmc           enable xvmc library [default=auto]
  1845.   --enable-vdpau          enable vdpau library [default=auto]
  1846.   --enable-opencl         enable OpenCL library NOTE: Enabling this option
  1847.                           will also enable --with-llvm-shared-libs
  1848.                           [default=no]
  1849.   --enable-xlib-glx       make GLX library Xlib-based instead of DRI-based
  1850.                           [default=disabled]
  1851.   --enable-gallium-egl    enable optional EGL state tracker (not required for
  1852.                           EGL support in Gallium with OpenGL and OpenGL ES)
  1853.                           [default=disable]
  1854.   --enable-gallium-gbm    enable optional gbm state tracker (not required for
  1855.                           gbm support in Gallium) [default=auto]
  1856.   --enable-r600-llvm-compiler
  1857.                           Enable experimental LLVM backend for graphics
  1858.                           shaders [default=disable]
  1859.   --enable-gallium-tests  Enable optional Gallium tests) [default=disable]
  1860.   --enable-shared-glapi   Enable shared glapi for OpenGL [default=yes]
  1861.   --disable-driglx-direct disable direct rendering in GLX and EGL for DRI
  1862.                           [default=auto]
  1863.   --enable-glx-tls        enable TLS support in GLX [default=disabled]
  1864.   --enable-gallium-llvm   build gallium LLVM support [default=enabled on
  1865.                           x86/x86_64]
  1866.  
  1867. Optional Packages:
  1868.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1869.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1870.   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
  1871.                           both]
  1872.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  1873.   --with-sysroot=DIR Search for dependent libraries within DIR
  1874.                         (or the compiler's sysroot if not specified).
  1875.   --with-gl-lib-name[=NAME]
  1876.                           specify GL library name [default=GL]
  1877.   --with-osmesa-lib-name[=NAME]
  1878.                           specify OSMesa library name [default=OSMesa]
  1879.   --with-gallium-drivers[=DIRS...]
  1880.                           comma delimited Gallium drivers list, e.g.
  1881.                           "i915,ilo,nouveau,r300,r600,radeonsi,freedreno,svga,swrast"
  1882.                           [default=r300,r600,svga,swrast]
  1883.   --with-dri-driverdir=DIR
  1884.                           directory for the DRI drivers [${libdir}/dri]
  1885.   --with-dri-searchpath=DIRS...
  1886.                           semicolon delimited DRI driver search directories
  1887.                           [${libdir}/dri]
  1888.   --with-dri-drivers[=DIRS...]
  1889.                           comma delimited DRI drivers list, e.g.
  1890.                           "swrast,i965,radeon" [default=auto]
  1891.   --with-expat=DIR        expat install directory
  1892.   --with-osmesa-bits=BITS OSMesa channel bits and library name: 8, 16, 32
  1893.                           [default=8]
  1894.   --with-libclc-path      DEPRECATED: See
  1895.                           http://dri.freedesktop.org/wiki/GalliumCompute#How_to_Install
  1896.   --with-clang-libdir     Path to Clang libraries [default=llvm-config
  1897.                           --libdir]
  1898.   --with-egl-platforms[=DIRS...]
  1899.                           comma delimited native platforms libEGL supports,
  1900.                           e.g. "x11,drm" [default=auto]
  1901.   --with-egl-driver-dir=DIR
  1902.                           directory for EGL drivers [[default=${libdir}/egl]]
  1903.   --with-xorg-driver-dir=DIR
  1904.                           Default xorg driver
  1905.                           directory[[default=${libdir}/xorg/modules/drivers]]
  1906.   --with-max-width=N      Maximum framebuffer width (4096)
  1907.   --with-max-height=N     Maximum framebuffer height (4096)
  1908.   --with-llvm-shared-libs link with LLVM shared libraries [default=disabled]
  1909.   --with-llvm-prefix      Prefix for LLVM installations in non-standard
  1910.                           locations
  1911.   --with-xvmc-libdir=DIR  directory for the XVMC libraries [default=${libdir}]
  1912.   --with-vdpau-libdir=DIR directory for the VDPAU libraries
  1913.                           [default=${libdir}/vdpau]
  1914.   --with-opencl-libdir=DIR
  1915.                           directory for auxiliary libraries used by the OpenCL
  1916.                           implementation [default=${libdir}/opencl]
  1917.  
  1918. Some influential environment variables:
  1919.   CC          C compiler command
  1920.   CFLAGS      C compiler flags
  1921.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1922.               nonstandard directory <lib dir>
  1923.   LIBS        libraries to pass to the linker, e.g. -l<library>
  1924.   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1925.               you have headers in a nonstandard directory <include dir>
  1926.   CPP         C preprocessor
  1927.   CXX         C++ compiler command
  1928.   CXXFLAGS    C++ compiler flags
  1929.   CXXCPP      C++ preprocessor
  1930.   CCAS        assembler compiler command (defaults to CC)
  1931.   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1932.   YACC        The `Yet Another Compiler Compiler' implementation to use.
  1933.               Defaults to the first program found out of: `bison -y', `byacc',
  1934.               `yacc'.
  1935.   YFLAGS      The list of arguments that will be passed by default to $YACC.
  1936.               This script will default YFLAGS to the empty string to avoid a
  1937.               default value of `-d' given by some make applications.
  1938.   PKG_CONFIG  path to pkg-config utility
  1939.   PKG_CONFIG_PATH
  1940.               directories to add to pkg-config's search path
  1941.   PKG_CONFIG_LIBDIR
  1942.               path overriding pkg-config's built-in search path
  1943.   LIBDRM_CFLAGS
  1944.               C compiler flags for LIBDRM, overriding pkg-config
  1945.   LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1946.   XLIBGL_CFLAGS
  1947.               C compiler flags for XLIBGL, overriding pkg-config
  1948.   XLIBGL_LIBS linker flags for XLIBGL, overriding pkg-config
  1949.   GLPROTO_CFLAGS
  1950.               C compiler flags for GLPROTO, overriding pkg-config
  1951.   GLPROTO_LIBS
  1952.               linker flags for GLPROTO, overriding pkg-config
  1953.   DRI2PROTO_CFLAGS
  1954.               C compiler flags for DRI2PROTO, overriding pkg-config
  1955.   DRI2PROTO_LIBS
  1956.               linker flags for DRI2PROTO, overriding pkg-config
  1957.   XF86VIDMODE_CFLAGS
  1958.               C compiler flags for XF86VIDMODE, overriding pkg-config
  1959.   XF86VIDMODE_LIBS
  1960.               linker flags for XF86VIDMODE, overriding pkg-config
  1961.   DRIGL_CFLAGS
  1962.               C compiler flags for DRIGL, overriding pkg-config
  1963.   DRIGL_LIBS  linker flags for DRIGL, overriding pkg-config
  1964.   INTEL_CFLAGS
  1965.               C compiler flags for INTEL, overriding pkg-config
  1966.   INTEL_LIBS  linker flags for INTEL, overriding pkg-config
  1967.   NOUVEAU_CFLAGS
  1968.               C compiler flags for NOUVEAU, overriding pkg-config
  1969.   NOUVEAU_LIBS
  1970.               linker flags for NOUVEAU, overriding pkg-config
  1971.   RADEON_CFLAGS
  1972.               C compiler flags for RADEON, overriding pkg-config
  1973.   RADEON_LIBS linker flags for RADEON, overriding pkg-config
  1974.   LIBUDEV_CFLAGS
  1975.               C compiler flags for LIBUDEV, overriding pkg-config
  1976.   LIBUDEV_LIBS
  1977.               linker flags for LIBUDEV, overriding pkg-config
  1978.   XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
  1979.   XORG_LIBS   linker flags for XORG, overriding pkg-config
  1980.   LIBDRM_XORG_CFLAGS
  1981.               C compiler flags for LIBDRM_XORG, overriding pkg-config
  1982.   LIBDRM_XORG_LIBS
  1983.               linker flags for LIBDRM_XORG, overriding pkg-config
  1984.   LIBKMS_XORG_CFLAGS
  1985.               C compiler flags for LIBKMS_XORG, overriding pkg-config
  1986.   LIBKMS_XORG_LIBS
  1987.               linker flags for LIBKMS_XORG, overriding pkg-config
  1988.   XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
  1989.   XEXT_LIBS   linker flags for XEXT, overriding pkg-config
  1990.   XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config
  1991.   XVMC_LIBS   linker flags for XVMC, overriding pkg-config
  1992.   VDPAU_CFLAGS
  1993.               C compiler flags for VDPAU, overriding pkg-config
  1994.   VDPAU_LIBS  linker flags for VDPAU, overriding pkg-config
  1995.   WAYLAND_CFLAGS
  1996.               C compiler flags for WAYLAND, overriding pkg-config
  1997.   WAYLAND_LIBS
  1998.               linker flags for WAYLAND, overriding pkg-config
  1999.   XCB_DRI2_CFLAGS
  2000.               C compiler flags for XCB_DRI2, overriding pkg-config
  2001.   XCB_DRI2_LIBS
  2002.               linker flags for XCB_DRI2, overriding pkg-config
  2003.   FREEDRENO_CFLAGS
  2004.               C compiler flags for FREEDRENO, overriding pkg-config
  2005.   FREEDRENO_LIBS
  2006.               linker flags for FREEDRENO, overriding pkg-config
  2007.   GALLIUM_PIPE_LOADER_XCB_CFLAGS
  2008.               C compiler flags for GALLIUM_PIPE_LOADER_XCB, overriding
  2009.               pkg-config
  2010.   GALLIUM_PIPE_LOADER_XCB_LIBS
  2011.               linker flags for GALLIUM_PIPE_LOADER_XCB, overriding pkg-config
  2012.  
  2013. Use these variables to override the choices made by `configure' or to help
  2014. it to find libraries and programs with nonstandard names/locations.
  2015.  
  2016. See docs/autoconf.html for more details on the options for Mesa.
  2017.  
  2018. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa>.
  2019. _ACEOF
  2020. ac_status=$?
  2021. fi
  2022.  
  2023. if test "$ac_init_help" = "recursive"; then
  2024.   # If there are subdirs, report their specific --help.
  2025.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  2026.     test -d "$ac_dir" ||
  2027.       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  2028.       continue
  2029.     ac_builddir=.
  2030.  
  2031. case "$ac_dir" in
  2032. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2033. *)
  2034.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  2035.   # A ".." for each directory in $ac_dir_suffix.
  2036.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  2037.   case $ac_top_builddir_sub in
  2038.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2039.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  2040.   esac ;;
  2041. esac
  2042. ac_abs_top_builddir=$ac_pwd
  2043. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  2044. # for backward compatibility:
  2045. ac_top_builddir=$ac_top_build_prefix
  2046.  
  2047. case $srcdir in
  2048.   .)  # We are building in place.
  2049.     ac_srcdir=.
  2050.     ac_top_srcdir=$ac_top_builddir_sub
  2051.     ac_abs_top_srcdir=$ac_pwd ;;
  2052.   [\\/]* | ?:[\\/]* )  # Absolute name.
  2053.     ac_srcdir=$srcdir$ac_dir_suffix;
  2054.     ac_top_srcdir=$srcdir
  2055.     ac_abs_top_srcdir=$srcdir ;;
  2056.   *) # Relative name.
  2057.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  2058.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  2059.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  2060. esac
  2061. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  2062.  
  2063.     cd "$ac_dir" || { ac_status=$?; continue; }
  2064.     # Check for guested configure.
  2065.     if test -f "$ac_srcdir/configure.gnu"; then
  2066.       echo &&
  2067.       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  2068.     elif test -f "$ac_srcdir/configure"; then
  2069.       echo &&
  2070.       $SHELL "$ac_srcdir/configure" --help=recursive
  2071.     else
  2072.       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  2073.     fi || ac_status=$?
  2074.     cd "$ac_pwd" || { ac_status=$?; break; }
  2075.   done
  2076. fi
  2077.  
  2078. test -n "$ac_init_help" && exit $ac_status
  2079. if $ac_init_version; then
  2080.   cat <<\_ACEOF
  2081. Mesa configure 9.2.5
  2082. generated by GNU Autoconf 2.69
  2083.  
  2084. Copyright (C) 2012 Free Software Foundation, Inc.
  2085. This configure script is free software; the Free Software Foundation
  2086. gives unlimited permission to copy, distribute and modify it.
  2087. _ACEOF
  2088.   exit
  2089. fi
  2090.  
  2091. ## ------------------------ ##
  2092. ## Autoconf initialization. ##
  2093. ## ------------------------ ##
  2094.  
  2095. # ac_fn_c_try_compile LINENO
  2096. # --------------------------
  2097. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2098. ac_fn_c_try_compile ()
  2099. {
  2100.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2101.   rm -f conftest.$ac_objext
  2102.   if { { ac_try="$ac_compile"
  2103. case "(($ac_try" in
  2104.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2105.   *) ac_try_echo=$ac_try;;
  2106. esac
  2107. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2108. $as_echo "$ac_try_echo"; } >&5
  2109.   (eval "$ac_compile") 2>conftest.err
  2110.   ac_status=$?
  2111.   if test -s conftest.err; then
  2112.     grep -v '^ *+' conftest.err >conftest.er1
  2113.     cat conftest.er1 >&5
  2114.     mv -f conftest.er1 conftest.err
  2115.   fi
  2116.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2117.   test $ac_status = 0; } && {
  2118.          test -z "$ac_c_werror_flag" ||
  2119.          test ! -s conftest.err
  2120.        } && test -s conftest.$ac_objext; then :
  2121.   ac_retval=0
  2122. else
  2123.   $as_echo "$as_me: failed program was:" >&5
  2124. sed 's/^/| /' conftest.$ac_ext >&5
  2125.  
  2126.         ac_retval=1
  2127. fi
  2128.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2129.   as_fn_set_status $ac_retval
  2130.  
  2131. } # ac_fn_c_try_compile
  2132.  
  2133. # ac_fn_c_try_cpp LINENO
  2134. # ----------------------
  2135. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2136. ac_fn_c_try_cpp ()
  2137. {
  2138.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2139.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  2140. case "(($ac_try" in
  2141.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2142.   *) ac_try_echo=$ac_try;;
  2143. esac
  2144. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2145. $as_echo "$ac_try_echo"; } >&5
  2146.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2147.   ac_status=$?
  2148.   if test -s conftest.err; then
  2149.     grep -v '^ *+' conftest.err >conftest.er1
  2150.     cat conftest.er1 >&5
  2151.     mv -f conftest.er1 conftest.err
  2152.   fi
  2153.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2154.   test $ac_status = 0; } > conftest.i && {
  2155.          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2156.          test ! -s conftest.err
  2157.        }; then :
  2158.   ac_retval=0
  2159. else
  2160.   $as_echo "$as_me: failed program was:" >&5
  2161. sed 's/^/| /' conftest.$ac_ext >&5
  2162.  
  2163.     ac_retval=1
  2164. fi
  2165.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2166.   as_fn_set_status $ac_retval
  2167.  
  2168. } # ac_fn_c_try_cpp
  2169.  
  2170. # ac_fn_cxx_try_compile LINENO
  2171. # ----------------------------
  2172. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2173. ac_fn_cxx_try_compile ()
  2174. {
  2175.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2176.   rm -f conftest.$ac_objext
  2177.   if { { ac_try="$ac_compile"
  2178. case "(($ac_try" in
  2179.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2180.   *) ac_try_echo=$ac_try;;
  2181. esac
  2182. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2183. $as_echo "$ac_try_echo"; } >&5
  2184.   (eval "$ac_compile") 2>conftest.err
  2185.   ac_status=$?
  2186.   if test -s conftest.err; then
  2187.     grep -v '^ *+' conftest.err >conftest.er1
  2188.     cat conftest.er1 >&5
  2189.     mv -f conftest.er1 conftest.err
  2190.   fi
  2191.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2192.   test $ac_status = 0; } && {
  2193.          test -z "$ac_cxx_werror_flag" ||
  2194.          test ! -s conftest.err
  2195.        } && test -s conftest.$ac_objext; then :
  2196.   ac_retval=0
  2197. else
  2198.   $as_echo "$as_me: failed program was:" >&5
  2199. sed 's/^/| /' conftest.$ac_ext >&5
  2200.  
  2201.         ac_retval=1
  2202. fi
  2203.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2204.   as_fn_set_status $ac_retval
  2205.  
  2206. } # ac_fn_cxx_try_compile
  2207.  
  2208. # ac_fn_cxx_try_cpp LINENO
  2209. # ------------------------
  2210. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2211. ac_fn_cxx_try_cpp ()
  2212. {
  2213.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2214.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  2215. case "(($ac_try" in
  2216.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2217.   *) ac_try_echo=$ac_try;;
  2218. esac
  2219. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2220. $as_echo "$ac_try_echo"; } >&5
  2221.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2222.   ac_status=$?
  2223.   if test -s conftest.err; then
  2224.     grep -v '^ *+' conftest.err >conftest.er1
  2225.     cat conftest.er1 >&5
  2226.     mv -f conftest.er1 conftest.err
  2227.   fi
  2228.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2229.   test $ac_status = 0; } > conftest.i && {
  2230.          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2231.          test ! -s conftest.err
  2232.        }; then :
  2233.   ac_retval=0
  2234. else
  2235.   $as_echo "$as_me: failed program was:" >&5
  2236. sed 's/^/| /' conftest.$ac_ext >&5
  2237.  
  2238.     ac_retval=1
  2239. fi
  2240.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2241.   as_fn_set_status $ac_retval
  2242.  
  2243. } # ac_fn_cxx_try_cpp
  2244.  
  2245. # ac_fn_c_try_link LINENO
  2246. # -----------------------
  2247. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2248. ac_fn_c_try_link ()
  2249. {
  2250.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2251.   rm -f conftest.$ac_objext conftest$ac_exeext
  2252.   if { { ac_try="$ac_link"
  2253. case "(($ac_try" in
  2254.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2255.   *) ac_try_echo=$ac_try;;
  2256. esac
  2257. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2258. $as_echo "$ac_try_echo"; } >&5
  2259.   (eval "$ac_link") 2>conftest.err
  2260.   ac_status=$?
  2261.   if test -s conftest.err; then
  2262.     grep -v '^ *+' conftest.err >conftest.er1
  2263.     cat conftest.er1 >&5
  2264.     mv -f conftest.er1 conftest.err
  2265.   fi
  2266.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2267.   test $ac_status = 0; } && {
  2268.          test -z "$ac_c_werror_flag" ||
  2269.          test ! -s conftest.err
  2270.        } && test -s conftest$ac_exeext && {
  2271.          test "$cross_compiling" = yes ||
  2272.          test -x conftest$ac_exeext
  2273.        }; then :
  2274.   ac_retval=0
  2275. else
  2276.   $as_echo "$as_me: failed program was:" >&5
  2277. sed 's/^/| /' conftest.$ac_ext >&5
  2278.  
  2279.         ac_retval=1
  2280. fi
  2281.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2282.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2283.   # interfere with the next link command; also delete a directory that is
  2284.   # left behind by Apple's compiler.  We do this before executing the actions.
  2285.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2286.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2287.   as_fn_set_status $ac_retval
  2288.  
  2289. } # ac_fn_c_try_link
  2290.  
  2291. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2292. # -------------------------------------------------------
  2293. # Tests whether HEADER exists and can be compiled using the include files in
  2294. # INCLUDES, setting the cache variable VAR accordingly.
  2295. ac_fn_c_check_header_compile ()
  2296. {
  2297.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2298.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2299. $as_echo_n "checking for $2... " >&6; }
  2300. if eval \${$3+:} false; then :
  2301.   $as_echo_n "(cached) " >&6
  2302. else
  2303.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2304. /* end confdefs.h.  */
  2305. $4
  2306. #include <$2>
  2307. _ACEOF
  2308. if ac_fn_c_try_compile "$LINENO"; then :
  2309.   eval "$3=yes"
  2310. else
  2311.   eval "$3=no"
  2312. fi
  2313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2314. fi
  2315. eval ac_res=\$$3
  2316.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2317. $as_echo "$ac_res" >&6; }
  2318.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2319.  
  2320. } # ac_fn_c_check_header_compile
  2321.  
  2322. # ac_fn_c_try_run LINENO
  2323. # ----------------------
  2324. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2325. # that executables *can* be run.
  2326. ac_fn_c_try_run ()
  2327. {
  2328.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2329.   if { { ac_try="$ac_link"
  2330. case "(($ac_try" in
  2331.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2332.   *) ac_try_echo=$ac_try;;
  2333. esac
  2334. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2335. $as_echo "$ac_try_echo"; } >&5
  2336.   (eval "$ac_link") 2>&5
  2337.   ac_status=$?
  2338.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2339.   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2340.   { { case "(($ac_try" in
  2341.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2342.   *) ac_try_echo=$ac_try;;
  2343. esac
  2344. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2345. $as_echo "$ac_try_echo"; } >&5
  2346.   (eval "$ac_try") 2>&5
  2347.   ac_status=$?
  2348.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2349.   test $ac_status = 0; }; }; then :
  2350.   ac_retval=0
  2351. else
  2352.   $as_echo "$as_me: program exited with status $ac_status" >&5
  2353.        $as_echo "$as_me: failed program was:" >&5
  2354. sed 's/^/| /' conftest.$ac_ext >&5
  2355.  
  2356.        ac_retval=$ac_status
  2357. fi
  2358.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2359.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2360.   as_fn_set_status $ac_retval
  2361.  
  2362. } # ac_fn_c_try_run
  2363.  
  2364. # ac_fn_c_check_func LINENO FUNC VAR
  2365. # ----------------------------------
  2366. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2367. ac_fn_c_check_func ()
  2368. {
  2369.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2370.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2371. $as_echo_n "checking for $2... " >&6; }
  2372. if eval \${$3+:} false; then :
  2373.   $as_echo_n "(cached) " >&6
  2374. else
  2375.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2376. /* end confdefs.h.  */
  2377. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2378.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  2379. #define $2 innocuous_$2
  2380.  
  2381. /* System header to define __stub macros and hopefully few prototypes,
  2382.     which can conflict with char $2 (); below.
  2383.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2384.     <limits.h> exists even on freestanding compilers.  */
  2385.  
  2386. #ifdef __STDC__
  2387. # include <limits.h>
  2388. #else
  2389. # include <assert.h>
  2390. #endif
  2391.  
  2392. #undef $2
  2393.  
  2394. /* Override any GCC internal prototype to avoid an error.
  2395.    Use char because int might match the return type of a GCC
  2396.    builtin and then its argument prototype would still apply.  */
  2397. #ifdef __cplusplus
  2398. extern "C"
  2399. #endif
  2400. char $2 ();
  2401. /* The GNU C library defines this for functions which it implements
  2402.     to always fail with ENOSYS.  Some functions are actually named
  2403.     something starting with __ and the normal name is an alias.  */
  2404. #if defined __stub_$2 || defined __stub___$2
  2405. choke me
  2406. #endif
  2407.  
  2408. int
  2409. main ()
  2410. {
  2411. return $2 ();
  2412.   ;
  2413.   return 0;
  2414. }
  2415. _ACEOF
  2416. if ac_fn_c_try_link "$LINENO"; then :
  2417.   eval "$3=yes"
  2418. else
  2419.   eval "$3=no"
  2420. fi
  2421. rm -f core conftest.err conftest.$ac_objext \
  2422.     conftest$ac_exeext conftest.$ac_ext
  2423. fi
  2424. eval ac_res=\$$3
  2425.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2426. $as_echo "$ac_res" >&6; }
  2427.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2428.  
  2429. } # ac_fn_c_check_func
  2430.  
  2431. # ac_fn_cxx_try_link LINENO
  2432. # -------------------------
  2433. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2434. ac_fn_cxx_try_link ()
  2435. {
  2436.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2437.   rm -f conftest.$ac_objext conftest$ac_exeext
  2438.   if { { ac_try="$ac_link"
  2439. case "(($ac_try" in
  2440.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2441.   *) ac_try_echo=$ac_try;;
  2442. esac
  2443. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2444. $as_echo "$ac_try_echo"; } >&5
  2445.   (eval "$ac_link") 2>conftest.err
  2446.   ac_status=$?
  2447.   if test -s conftest.err; then
  2448.     grep -v '^ *+' conftest.err >conftest.er1
  2449.     cat conftest.er1 >&5
  2450.     mv -f conftest.er1 conftest.err
  2451.   fi
  2452.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2453.   test $ac_status = 0; } && {
  2454.          test -z "$ac_cxx_werror_flag" ||
  2455.          test ! -s conftest.err
  2456.        } && test -s conftest$ac_exeext && {
  2457.          test "$cross_compiling" = yes ||
  2458.          test -x conftest$ac_exeext
  2459.        }; then :
  2460.   ac_retval=0
  2461. else
  2462.   $as_echo "$as_me: failed program was:" >&5
  2463. sed 's/^/| /' conftest.$ac_ext >&5
  2464.  
  2465.         ac_retval=1
  2466. fi
  2467.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2468.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2469.   # interfere with the next link command; also delete a directory that is
  2470.   # left behind by Apple's compiler.  We do this before executing the actions.
  2471.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2472.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2473.   as_fn_set_status $ac_retval
  2474.  
  2475. } # ac_fn_cxx_try_link
  2476.  
  2477. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2478. # -------------------------------------------------------
  2479. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2480. # the include files in INCLUDES and setting the cache variable VAR
  2481. # accordingly.
  2482. ac_fn_c_check_header_mongrel ()
  2483. {
  2484.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2485.   if eval \${$3+:} false; then :
  2486.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2487. $as_echo_n "checking for $2... " >&6; }
  2488. if eval \${$3+:} false; then :
  2489.   $as_echo_n "(cached) " >&6
  2490. fi
  2491. eval ac_res=\$$3
  2492.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2493. $as_echo "$ac_res" >&6; }
  2494. else
  2495.   # Is the header compilable?
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2497. $as_echo_n "checking $2 usability... " >&6; }
  2498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2499. /* end confdefs.h.  */
  2500. $4
  2501. #include <$2>
  2502. _ACEOF
  2503. if ac_fn_c_try_compile "$LINENO"; then :
  2504.   ac_header_compiler=yes
  2505. else
  2506.   ac_header_compiler=no
  2507. fi
  2508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2510. $as_echo "$ac_header_compiler" >&6; }
  2511.  
  2512. # Is the header present?
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2514. $as_echo_n "checking $2 presence... " >&6; }
  2515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2516. /* end confdefs.h.  */
  2517. #include <$2>
  2518. _ACEOF
  2519. if ac_fn_c_try_cpp "$LINENO"; then :
  2520.   ac_header_preproc=yes
  2521. else
  2522.   ac_header_preproc=no
  2523. fi
  2524. rm -f conftest.err conftest.i conftest.$ac_ext
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2526. $as_echo "$ac_header_preproc" >&6; }
  2527.  
  2528. # So?  What about this header?
  2529. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2530.   yes:no: )
  2531.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2532. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2533.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2534. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2535.     ;;
  2536.   no:yes:* )
  2537.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2538. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2539.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  2540. $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  2541.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2542. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2543.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  2544. $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  2545.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2546. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2547. ( $as_echo "## ---------------------------------------------------------------------- ##
  2548. ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa ##
  2549. ## ---------------------------------------------------------------------- ##"
  2550.      ) | sed "s/^/$as_me: WARNING:     /" >&2
  2551.     ;;
  2552. esac
  2553.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2554. $as_echo_n "checking for $2... " >&6; }
  2555. if eval \${$3+:} false; then :
  2556.   $as_echo_n "(cached) " >&6
  2557. else
  2558.   eval "$3=\$ac_header_compiler"
  2559. fi
  2560. eval ac_res=\$$3
  2561.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2562. $as_echo "$ac_res" >&6; }
  2563. fi
  2564.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2565.  
  2566. } # ac_fn_c_check_header_mongrel
  2567.  
  2568. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2569. # --------------------------------------------
  2570. # Tries to find the compile-time value of EXPR in a program that includes
  2571. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2572. # computed
  2573. ac_fn_c_compute_int ()
  2574. {
  2575.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2576.   if test "$cross_compiling" = yes; then
  2577.     # Depending upon the size, compute the lo and hi bounds.
  2578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2579. /* end confdefs.h.  */
  2580. $4
  2581. int
  2582. main ()
  2583. {
  2584. static int test_array [1 - 2 * !(($2) >= 0)];
  2585. test_array [0] = 0;
  2586. return test_array [0];
  2587.  
  2588.   ;
  2589.   return 0;
  2590. }
  2591. _ACEOF
  2592. if ac_fn_c_try_compile "$LINENO"; then :
  2593.   ac_lo=0 ac_mid=0
  2594.   while :; do
  2595.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2596. /* end confdefs.h.  */
  2597. $4
  2598. int
  2599. main ()
  2600. {
  2601. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2602. test_array [0] = 0;
  2603. return test_array [0];
  2604.  
  2605.   ;
  2606.   return 0;
  2607. }
  2608. _ACEOF
  2609. if ac_fn_c_try_compile "$LINENO"; then :
  2610.   ac_hi=$ac_mid; break
  2611. else
  2612.   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2613.                         if test $ac_lo -le $ac_mid; then
  2614.                           ac_lo= ac_hi=
  2615.                           break
  2616.                         fi
  2617.                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2618. fi
  2619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2620.   done
  2621. else
  2622.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2623. /* end confdefs.h.  */
  2624. $4
  2625. int
  2626. main ()
  2627. {
  2628. static int test_array [1 - 2 * !(($2) < 0)];
  2629. test_array [0] = 0;
  2630. return test_array [0];
  2631.  
  2632.   ;
  2633.   return 0;
  2634. }
  2635. _ACEOF
  2636. if ac_fn_c_try_compile "$LINENO"; then :
  2637.   ac_hi=-1 ac_mid=-1
  2638.   while :; do
  2639.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2640. /* end confdefs.h.  */
  2641. $4
  2642. int
  2643. main ()
  2644. {
  2645. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2646. test_array [0] = 0;
  2647. return test_array [0];
  2648.  
  2649.   ;
  2650.   return 0;
  2651. }
  2652. _ACEOF
  2653. if ac_fn_c_try_compile "$LINENO"; then :
  2654.   ac_lo=$ac_mid; break
  2655. else
  2656.   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2657.                         if test $ac_mid -le $ac_hi; then
  2658.                           ac_lo= ac_hi=
  2659.                           break
  2660.                         fi
  2661.                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2662. fi
  2663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2664.   done
  2665. else
  2666.   ac_lo= ac_hi=
  2667. fi
  2668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2669. fi
  2670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2671. # Binary search between lo and hi bounds.
  2672. while test "x$ac_lo" != "x$ac_hi"; do
  2673.   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2674.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2675. /* end confdefs.h.  */
  2676. $4
  2677. int
  2678. main ()
  2679. {
  2680. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2681. test_array [0] = 0;
  2682. return test_array [0];
  2683.  
  2684.   ;
  2685.   return 0;
  2686. }
  2687. _ACEOF
  2688. if ac_fn_c_try_compile "$LINENO"; then :
  2689.   ac_hi=$ac_mid
  2690. else
  2691.   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2692. fi
  2693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2694. done
  2695. case $ac_lo in #((
  2696. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2697. '') ac_retval=1 ;;
  2698. esac
  2699.   else
  2700.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2701. /* end confdefs.h.  */
  2702. $4
  2703. static long int longval () { return $2; }
  2704. static unsigned long int ulongval () { return $2; }
  2705. #include <stdio.h>
  2706. #include <stdlib.h>
  2707. int
  2708. main ()
  2709. {
  2710.  
  2711.   FILE *f = fopen ("conftest.val", "w");
  2712.   if (! f)
  2713.     return 1;
  2714.   if (($2) < 0)
  2715.     {
  2716.       long int i = longval ();
  2717.       if (i != ($2))
  2718.         return 1;
  2719.       fprintf (f, "%ld", i);
  2720.     }
  2721.   else
  2722.     {
  2723.       unsigned long int i = ulongval ();
  2724.       if (i != ($2))
  2725.         return 1;
  2726.       fprintf (f, "%lu", i);
  2727.     }
  2728.   /* Do not output a trailing newline, as this causes \r\n confusion
  2729.      on some platforms.  */
  2730.   return ferror (f) || fclose (f) != 0;
  2731.  
  2732.   ;
  2733.   return 0;
  2734. }
  2735. _ACEOF
  2736. if ac_fn_c_try_run "$LINENO"; then :
  2737.   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2738. else
  2739.   ac_retval=1
  2740. fi
  2741. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2742.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  2743. rm -f conftest.val
  2744.  
  2745.   fi
  2746.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2747.   as_fn_set_status $ac_retval
  2748.  
  2749. } # ac_fn_c_compute_int
  2750. cat >config.log <<_ACEOF
  2751. This file contains any messages produced by compilers while
  2752. running configure, to aid debugging if configure makes a mistake.
  2753.  
  2754. It was created by Mesa $as_me 9.2.5, which was
  2755. generated by GNU Autoconf 2.69.  Invocation command line was
  2756.  
  2757.   $ $0 $@
  2758.  
  2759. _ACEOF
  2760. exec 5>>config.log
  2761. {
  2762. cat <<_ASUNAME
  2763. ## --------- ##
  2764. ## Platform. ##
  2765. ## --------- ##
  2766.  
  2767. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2768. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2769. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2770. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2771. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2772.  
  2773. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2774. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  2775.  
  2776. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  2777. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  2778. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2779. /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  2780. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  2781. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  2782. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  2783.  
  2784. _ASUNAME
  2785.  
  2786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2787. for as_dir in $PATH
  2788. do
  2789.   IFS=$as_save_IFS
  2790.   test -z "$as_dir" && as_dir=.
  2791.     $as_echo "PATH: $as_dir"
  2792.   done
  2793. IFS=$as_save_IFS
  2794.  
  2795. } >&5
  2796.  
  2797. cat >&5 <<_ACEOF
  2798.  
  2799.  
  2800. ## ----------- ##
  2801. ## Core tests. ##
  2802. ## ----------- ##
  2803.  
  2804. _ACEOF
  2805.  
  2806.  
  2807. # Keep a trace of the command line.
  2808. # Strip out --no-create and --no-recursion so they do not pile up.
  2809. # Strip out --silent because we don't want to record it for future runs.
  2810. # Also quote any args containing shell meta-characters.
  2811. # Make two passes to allow for proper duplicate-argument suppression.
  2812. ac_configure_args=
  2813. ac_configure_args0=
  2814. ac_configure_args1=
  2815. ac_must_keep_next=false
  2816. for ac_pass in 1 2
  2817. do
  2818.   for ac_arg
  2819.   do
  2820.     case $ac_arg in
  2821.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2822.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2823.     | -silent | --silent | --silen | --sile | --sil)
  2824.       continue ;;
  2825.     *\'*)
  2826.       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2827.     esac
  2828.     case $ac_pass in
  2829.     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2830.     2)
  2831.       as_fn_append ac_configure_args1 " '$ac_arg'"
  2832.       if test $ac_must_keep_next = true; then
  2833.         ac_must_keep_next=false # Got value, back to normal.
  2834.       else
  2835.         case $ac_arg in
  2836.           *=* | --config-cache | -C | -disable-* | --disable-* \
  2837.           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2838.           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2839.           | -with-* | --with-* | -without-* | --without-* | --x)
  2840.             case "$ac_configure_args0 " in
  2841.               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2842.             esac
  2843.             ;;
  2844.           -* ) ac_must_keep_next=true ;;
  2845.         esac
  2846.       fi
  2847.       as_fn_append ac_configure_args " '$ac_arg'"
  2848.       ;;
  2849.     esac
  2850.   done
  2851. done
  2852. { ac_configure_args0=; unset ac_configure_args0;}
  2853. { ac_configure_args1=; unset ac_configure_args1;}
  2854.  
  2855. # When interrupted or exit'd, cleanup temporary files, and complete
  2856. # config.log.  We remove comments because anyway the quotes in there
  2857. # would cause problems or look ugly.
  2858. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2859. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2860. trap 'exit_status=$?
  2861.   # Save into config.log some information that might help in debugging.
  2862.   {
  2863.     echo
  2864.  
  2865.     $as_echo "## ---------------- ##
  2866. ## Cache variables. ##
  2867. ## ---------------- ##"
  2868.     echo
  2869.     # The following way of writing the cache mishandles newlines in values,
  2870. (
  2871.   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2872.     eval ac_val=\$$ac_var
  2873.     case $ac_val in #(
  2874.     *${as_nl}*)
  2875.       case $ac_var in #(
  2876.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2877. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2878.       esac
  2879.       case $ac_var in #(
  2880.       _ | IFS | as_nl) ;; #(
  2881.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2882.       *) { eval $ac_var=; unset $ac_var;} ;;
  2883.       esac ;;
  2884.     esac
  2885.   done
  2886.   (set) 2>&1 |
  2887.     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2888.     *${as_nl}ac_space=\ *)
  2889.       sed -n \
  2890.         "s/'\''/'\''\\\\'\'''\''/g;
  2891.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2892.       ;; #(
  2893.     *)
  2894.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2895.       ;;
  2896.     esac |
  2897.     sort
  2898. )
  2899.     echo
  2900.  
  2901.     $as_echo "## ----------------- ##
  2902. ## Output variables. ##
  2903. ## ----------------- ##"
  2904.     echo
  2905.     for ac_var in $ac_subst_vars
  2906.     do
  2907.       eval ac_val=\$$ac_var
  2908.       case $ac_val in
  2909.       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2910.       esac
  2911.       $as_echo "$ac_var='\''$ac_val'\''"
  2912.     done | sort
  2913.     echo
  2914.  
  2915.     if test -n "$ac_subst_files"; then
  2916.       $as_echo "## ------------------- ##
  2917. ## File substitutions. ##
  2918. ## ------------------- ##"
  2919.       echo
  2920.       for ac_var in $ac_subst_files
  2921.       do
  2922.         eval ac_val=\$$ac_var
  2923.         case $ac_val in
  2924.         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2925.         esac
  2926.         $as_echo "$ac_var='\''$ac_val'\''"
  2927.       done | sort
  2928.       echo
  2929.     fi
  2930.  
  2931.     if test -s confdefs.h; then
  2932.       $as_echo "## ----------- ##
  2933. ## confdefs.h. ##
  2934. ## ----------- ##"
  2935.       echo
  2936.       cat confdefs.h
  2937.       echo
  2938.     fi
  2939.     test "$ac_signal" != 0 &&
  2940.       $as_echo "$as_me: caught signal $ac_signal"
  2941.     $as_echo "$as_me: exit $exit_status"
  2942.   } >&5
  2943.   rm -f core *.core core.conftest.* &&
  2944.     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2945.     exit $exit_status
  2946. ' 0
  2947. for ac_signal in 1 2 13 15; do
  2948.   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2949. done
  2950. ac_signal=0
  2951.  
  2952. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2953. rm -f -r conftest* confdefs.h
  2954.  
  2955. $as_echo "/* confdefs.h */" > confdefs.h
  2956.  
  2957. # Predefined preprocessor variables.
  2958.  
  2959. cat >>confdefs.h <<_ACEOF
  2960. #define PACKAGE_NAME "$PACKAGE_NAME"
  2961. _ACEOF
  2962.  
  2963. cat >>confdefs.h <<_ACEOF
  2964. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2965. _ACEOF
  2966.  
  2967. cat >>confdefs.h <<_ACEOF
  2968. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2969. _ACEOF
  2970.  
  2971. cat >>confdefs.h <<_ACEOF
  2972. #define PACKAGE_STRING "$PACKAGE_STRING"
  2973. _ACEOF
  2974.  
  2975. cat >>confdefs.h <<_ACEOF
  2976. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2977. _ACEOF
  2978.  
  2979. cat >>confdefs.h <<_ACEOF
  2980. #define PACKAGE_URL "$PACKAGE_URL"
  2981. _ACEOF
  2982.  
  2983.  
  2984. # Let the site file select an alternate cache file if it wants to.
  2985. # Prefer an explicitly selected file to automatically selected ones.
  2986. ac_site_file1=NONE
  2987. ac_site_file2=NONE
  2988. if test -n "$CONFIG_SITE"; then
  2989.   # We do not want a PATH search for config.site.
  2990.   case $CONFIG_SITE in #((
  2991.     -*)  ac_site_file1=./$CONFIG_SITE;;
  2992.     */*) ac_site_file1=$CONFIG_SITE;;
  2993.     *)   ac_site_file1=./$CONFIG_SITE;;
  2994.   esac
  2995. elif test "x$prefix" != xNONE; then
  2996.   ac_site_file1=$prefix/share/config.site
  2997.   ac_site_file2=$prefix/etc/config.site
  2998. else
  2999.   ac_site_file1=$ac_default_prefix/share/config.site
  3000.   ac_site_file2=$ac_default_prefix/etc/config.site
  3001. fi
  3002. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  3003. do
  3004.   test "x$ac_site_file" = xNONE && continue
  3005.   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  3006.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  3007. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  3008.     sed 's/^/| /' "$ac_site_file" >&5
  3009.     . "$ac_site_file" \
  3010.       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3011. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3012. as_fn_error $? "failed to load site script $ac_site_file
  3013. See \`config.log' for more details" "$LINENO" 5; }
  3014.   fi
  3015. done
  3016.  
  3017. if test -r "$cache_file"; then
  3018.   # Some versions of bash will fail to source /dev/null (special files
  3019.   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  3020.   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  3021.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  3022. $as_echo "$as_me: loading cache $cache_file" >&6;}
  3023.     case $cache_file in
  3024.       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  3025.       *)                      . "./$cache_file";;
  3026.     esac
  3027.   fi
  3028. else
  3029.   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  3030. $as_echo "$as_me: creating cache $cache_file" >&6;}
  3031.   >$cache_file
  3032. fi
  3033.  
  3034. # Check that the precious variables saved in the cache have kept the same
  3035. # value.
  3036. ac_cache_corrupted=false
  3037. for ac_var in $ac_precious_vars; do
  3038.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3039.   eval ac_new_set=\$ac_env_${ac_var}_set
  3040.   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3041.   eval ac_new_val=\$ac_env_${ac_var}_value
  3042.   case $ac_old_set,$ac_new_set in
  3043.     set,)
  3044.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3045. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3046.       ac_cache_corrupted=: ;;
  3047.     ,set)
  3048.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3049. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3050.       ac_cache_corrupted=: ;;
  3051.     ,);;
  3052.     *)
  3053.       if test "x$ac_old_val" != "x$ac_new_val"; then
  3054.         # differences in whitespace do not lead to failure.
  3055.         ac_old_val_w=`echo x $ac_old_val`
  3056.         ac_new_val_w=`echo x $ac_new_val`
  3057.         if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3058.           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3059. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3060.           ac_cache_corrupted=:
  3061.         else
  3062.           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3063. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3064.           eval $ac_var=\$ac_old_val
  3065.         fi
  3066.         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  3067. $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  3068.         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  3069. $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  3070.       fi;;
  3071.   esac
  3072.   # Pass precious variables to config.status.
  3073.   if test "$ac_new_set" = set; then
  3074.     case $ac_new_val in
  3075.     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3076.     *) ac_arg=$ac_var=$ac_new_val ;;
  3077.     esac
  3078.     case " $ac_configure_args " in
  3079.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  3080.       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3081.     esac
  3082.   fi
  3083. done
  3084. if $ac_cache_corrupted; then
  3085.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3086. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3087.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3088. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  3089.   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  3090. fi
  3091. ## -------------------- ##
  3092. ## Main body of script. ##
  3093. ## -------------------- ##
  3094.  
  3095. ac_ext=c
  3096. ac_cpp='$CPP $CPPFLAGS'
  3097. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3098. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3099. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3100.  
  3101.  
  3102. ac_aux_dir=
  3103. for ac_dir in bin "$srcdir"/bin; do
  3104.   if test -f "$ac_dir/install-sh"; then
  3105.     ac_aux_dir=$ac_dir
  3106.     ac_install_sh="$ac_aux_dir/install-sh -c"
  3107.     break
  3108.   elif test -f "$ac_dir/install.sh"; then
  3109.     ac_aux_dir=$ac_dir
  3110.     ac_install_sh="$ac_aux_dir/install.sh -c"
  3111.     break
  3112.   elif test -f "$ac_dir/shtool"; then
  3113.     ac_aux_dir=$ac_dir
  3114.     ac_install_sh="$ac_aux_dir/shtool install -c"
  3115.     break
  3116.   fi
  3117. done
  3118. if test -z "$ac_aux_dir"; then
  3119.   as_fn_error $? "cannot find install-sh, install.sh, or shtool in bin \"$srcdir\"/bin" "$LINENO" 5
  3120. fi
  3121.  
  3122. # These three variables are undocumented and unsupported,
  3123. # and are intended to be withdrawn in a future Autoconf release.
  3124. # They can cause serious problems if a builder's source tree is in a directory
  3125. # whose full name contains unusual characters.
  3126. ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  3127. ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  3128. ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  3129.  
  3130.  
  3131.  
  3132. # Make sure we can run config.sub.
  3133. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3134.   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3135.  
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3137. $as_echo_n "checking build system type... " >&6; }
  3138. if ${ac_cv_build+:} false; then :
  3139.   $as_echo_n "(cached) " >&6
  3140. else
  3141.   ac_build_alias=$build_alias
  3142. test "x$ac_build_alias" = x &&
  3143.   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3144. test "x$ac_build_alias" = x &&
  3145.   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3146. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3147.   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3148.  
  3149. fi
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3151. $as_echo "$ac_cv_build" >&6; }
  3152. case $ac_cv_build in
  3153. *-*-*) ;;
  3154. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3155. esac
  3156. build=$ac_cv_build
  3157. ac_save_IFS=$IFS; IFS='-'
  3158. set x $ac_cv_build
  3159. shift
  3160. build_cpu=$1
  3161. build_vendor=$2
  3162. shift; shift
  3163. # Remember, the first character of IFS is used to create $*,
  3164. # except with old shells:
  3165. build_os=$*
  3166. IFS=$ac_save_IFS
  3167. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3168.  
  3169.  
  3170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3171. $as_echo_n "checking host system type... " >&6; }
  3172. if ${ac_cv_host+:} false; then :
  3173.   $as_echo_n "(cached) " >&6
  3174. else
  3175.   if test "x$host_alias" = x; then
  3176.   ac_cv_host=$ac_cv_build
  3177. else
  3178.   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3179.     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3180. fi
  3181.  
  3182. fi
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3184. $as_echo "$ac_cv_host" >&6; }
  3185. case $ac_cv_host in
  3186. *-*-*) ;;
  3187. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3188. esac
  3189. host=$ac_cv_host
  3190. ac_save_IFS=$IFS; IFS='-'
  3191. set x $ac_cv_host
  3192. shift
  3193. host_cpu=$1
  3194. host_vendor=$2
  3195. shift; shift
  3196. # Remember, the first character of IFS is used to create $*,
  3197. # except with old shells:
  3198. host_os=$*
  3199. IFS=$ac_save_IFS
  3200. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3201.  
  3202.  
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3204. $as_echo_n "checking target system type... " >&6; }
  3205. if ${ac_cv_target+:} false; then :
  3206.   $as_echo_n "(cached) " >&6
  3207. else
  3208.   if test "x$target_alias" = x; then
  3209.   ac_cv_target=$ac_cv_host
  3210. else
  3211.   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3212.     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3213. fi
  3214.  
  3215. fi
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3217. $as_echo "$ac_cv_target" >&6; }
  3218. case $ac_cv_target in
  3219. *-*-*) ;;
  3220. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  3221. esac
  3222. target=$ac_cv_target
  3223. ac_save_IFS=$IFS; IFS='-'
  3224. set x $ac_cv_target
  3225. shift
  3226. target_cpu=$1
  3227. target_vendor=$2
  3228. shift; shift
  3229. # Remember, the first character of IFS is used to create $*,
  3230. # except with old shells:
  3231. target_os=$*
  3232. IFS=$ac_save_IFS
  3233. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3234.  
  3235.  
  3236. # The aliases save the names the user supplied, while $host etc.
  3237. # will get canonicalized.
  3238. test -n "$target_alias" &&
  3239.   test "$program_prefix$program_suffix$program_transform_name" = \
  3240.     NONENONEs,x,x, &&
  3241.   program_prefix=${target_alias}-
  3242.  
  3243. am__api_version='1.14'
  3244.  
  3245. # Find a good install program.  We prefer a C program (faster),
  3246. # so one script is as good as another.  But avoid the broken or
  3247. # incompatible versions:
  3248. # SysV /etc/install, /usr/sbin/install
  3249. # SunOS /usr/etc/install
  3250. # IRIX /sbin/install
  3251. # AIX /bin/install
  3252. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3253. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3254. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3255. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3256. # OS/2's system install, which has a completely different semantic
  3257. # ./install, which can be erroneously created by make from ./install.sh.
  3258. # Reject install programs that cannot install multiple files.
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3260. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3261. if test -z "$INSTALL"; then
  3262. if ${ac_cv_path_install+:} false; then :
  3263.   $as_echo_n "(cached) " >&6
  3264. else
  3265.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3266. for as_dir in $PATH
  3267. do
  3268.   IFS=$as_save_IFS
  3269.   test -z "$as_dir" && as_dir=.
  3270.     # Account for people who put trailing slashes in PATH elements.
  3271. case $as_dir/ in #((
  3272.   ./ | .// | /[cC]/* | \
  3273.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3274.   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3275.   /usr/ucb/* ) ;;
  3276.   *)
  3277.     # OSF1 and SCO ODT 3.0 have their own names for install.
  3278.     # Don't use installbsd from OSF since it installs stuff as root
  3279.     # by default.
  3280.     for ac_prog in ginstall scoinst install; do
  3281.       for ac_exec_ext in '' $ac_executable_extensions; do
  3282.         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3283.           if test $ac_prog = install &&
  3284.             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3285.             # AIX install.  It has an incompatible calling convention.
  3286.             :
  3287.           elif test $ac_prog = install &&
  3288.             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3289.             # program-specific install script used by HP pwplus--don't use.
  3290.             :
  3291.           else
  3292.             rm -rf conftest.one conftest.two conftest.dir
  3293.             echo one > conftest.one
  3294.             echo two > conftest.two
  3295.             mkdir conftest.dir
  3296.             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3297.               test -s conftest.one && test -s conftest.two &&
  3298.               test -s conftest.dir/conftest.one &&
  3299.               test -s conftest.dir/conftest.two
  3300.             then
  3301.               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3302.               break 3
  3303.             fi
  3304.           fi
  3305.         fi
  3306.       done
  3307.     done
  3308.     ;;
  3309. esac
  3310.  
  3311.   done
  3312. IFS=$as_save_IFS
  3313.  
  3314. rm -rf conftest.one conftest.two conftest.dir
  3315.  
  3316. fi
  3317.   if test "${ac_cv_path_install+set}" = set; then
  3318.     INSTALL=$ac_cv_path_install
  3319.   else
  3320.     # As a last resort, use the slow shell script.  Don't cache a
  3321.     # value for INSTALL within a source directory, because that will
  3322.     # break other packages using the cache if that directory is
  3323.     # removed, or if the value is a relative name.
  3324.     INSTALL=$ac_install_sh
  3325.   fi
  3326. fi
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3328. $as_echo "$INSTALL" >&6; }
  3329.  
  3330. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3331. # It thinks the first close brace ends the variable substitution.
  3332. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3333.  
  3334. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3335.  
  3336. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3337.  
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3339. $as_echo_n "checking whether build environment is sane... " >&6; }
  3340. # Reject unsafe characters in $srcdir or the absolute working directory
  3341. # name.  Accept space and tab only in the latter.
  3342. am_lf='
  3343. '
  3344. case `pwd` in
  3345.   *[\\\"\#\$\&\'\`$am_lf]*)
  3346.     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3347. esac
  3348. case $srcdir in
  3349.   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
  3350.     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3351. esac
  3352.  
  3353. # Do 'set' in a subshell so we don't clobber the current shell's
  3354. # arguments.  Must try -L first in case configure is actually a
  3355. # symlink; some systems play weird games with the mod time of symlinks
  3356. # (eg FreeBSD returns the mod time of the symlink's containing
  3357. # directory).
  3358. if (
  3359.    am_has_slept=no
  3360.    for am_try in 1 2; do
  3361.      echo "timestamp, slept: $am_has_slept" > conftest.file
  3362.      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3363.      if test "$*" = "X"; then
  3364.         # -L didn't work.
  3365.         set X `ls -t "$srcdir/configure" conftest.file`
  3366.      fi
  3367.      if test "$*" != "X $srcdir/configure conftest.file" \
  3368.         && test "$*" != "X conftest.file $srcdir/configure"; then
  3369.  
  3370.         # If neither matched, then we have a broken ls.  This can happen
  3371.         # if, for instance, CONFIG_SHELL is bash and it inherits a
  3372.         # broken ls alias from the environment.  This has actually
  3373.         # happened.  Such a system could not be considered "sane".
  3374.         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  3375.   alias in your environment" "$LINENO" 5
  3376.      fi
  3377.      if test "$2" = conftest.file || test $am_try -eq 2; then
  3378.        break
  3379.      fi
  3380.      # Just in case.
  3381.      sleep 1
  3382.      am_has_slept=yes
  3383.    done
  3384.    test "$2" = conftest.file
  3385.    )
  3386. then
  3387.    # Ok.
  3388.    :
  3389. else
  3390.    as_fn_error $? "newly created file is older than distributed files!
  3391. Check your system clock" "$LINENO" 5
  3392. fi
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3394. $as_echo "yes" >&6; }
  3395. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3396. # generated files are strictly newer.
  3397. am_sleep_pid=
  3398. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3399.   ( sleep 1 ) &
  3400.   am_sleep_pid=$!
  3401. fi
  3402.  
  3403. rm -f conftest.file
  3404.  
  3405. test "$program_prefix" != NONE &&
  3406.   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3407. # Use a double $ so make ignores it.
  3408. test "$program_suffix" != NONE &&
  3409.   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3410. # Double any \ or $.
  3411. # By default was `s,x,x', remove it if useless.
  3412. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3413. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3414.  
  3415. # expand $ac_aux_dir to an absolute path
  3416. am_aux_dir=`cd $ac_aux_dir && pwd`
  3417.  
  3418. if test x"${MISSING+set}" != xset; then
  3419.   case $am_aux_dir in
  3420.   *\ * | *\     *)
  3421.     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3422.   *)
  3423.     MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3424.   esac
  3425. fi
  3426. # Use eval to expand $SHELL
  3427. if eval "$MISSING --is-lightweight"; then
  3428.   am_missing_run="$MISSING "
  3429. else
  3430.   am_missing_run=
  3431.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3432. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3433. fi
  3434.  
  3435. if test x"${install_sh}" != xset; then
  3436.   case $am_aux_dir in
  3437.   *\ * | *\     *)
  3438.     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3439.   *)
  3440.     install_sh="\${SHELL} $am_aux_dir/install-sh"
  3441.   esac
  3442. fi
  3443.  
  3444. # Installed binaries are usually stripped using 'strip' when the user
  3445. # run "make install-strip".  However 'strip' might not be the right
  3446. # tool to use in cross-compilation environments, therefore Automake
  3447. # will honor the 'STRIP' environment variable to overrule this program.
  3448. if test "$cross_compiling" != no; then
  3449.   if test -n "$ac_tool_prefix"; then
  3450.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3451. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3453. $as_echo_n "checking for $ac_word... " >&6; }
  3454. if ${ac_cv_prog_STRIP+:} false; then :
  3455.   $as_echo_n "(cached) " >&6
  3456. else
  3457.   if test -n "$STRIP"; then
  3458.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3459. else
  3460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3461. for as_dir in $PATH
  3462. do
  3463.   IFS=$as_save_IFS
  3464.   test -z "$as_dir" && as_dir=.
  3465.     for ac_exec_ext in '' $ac_executable_extensions; do
  3466.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3467.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3468.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3469.     break 2
  3470.   fi
  3471. done
  3472.   done
  3473. IFS=$as_save_IFS
  3474.  
  3475. fi
  3476. fi
  3477. STRIP=$ac_cv_prog_STRIP
  3478. if test -n "$STRIP"; then
  3479.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3480. $as_echo "$STRIP" >&6; }
  3481. else
  3482.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3483. $as_echo "no" >&6; }
  3484. fi
  3485.  
  3486.  
  3487. fi
  3488. if test -z "$ac_cv_prog_STRIP"; then
  3489.   ac_ct_STRIP=$STRIP
  3490.   # Extract the first word of "strip", so it can be a program name with args.
  3491. set dummy strip; ac_word=$2
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3493. $as_echo_n "checking for $ac_word... " >&6; }
  3494. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3495.   $as_echo_n "(cached) " >&6
  3496. else
  3497.   if test -n "$ac_ct_STRIP"; then
  3498.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3499. else
  3500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3501. for as_dir in $PATH
  3502. do
  3503.   IFS=$as_save_IFS
  3504.   test -z "$as_dir" && as_dir=.
  3505.     for ac_exec_ext in '' $ac_executable_extensions; do
  3506.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3507.     ac_cv_prog_ac_ct_STRIP="strip"
  3508.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3509.     break 2
  3510.   fi
  3511. done
  3512.   done
  3513. IFS=$as_save_IFS
  3514.  
  3515. fi
  3516. fi
  3517. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3518. if test -n "$ac_ct_STRIP"; then
  3519.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3520. $as_echo "$ac_ct_STRIP" >&6; }
  3521. else
  3522.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3523. $as_echo "no" >&6; }
  3524. fi
  3525.  
  3526.   if test "x$ac_ct_STRIP" = x; then
  3527.     STRIP=":"
  3528.   else
  3529.     case $cross_compiling:$ac_tool_warned in
  3530. yes:)
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3532. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3533. ac_tool_warned=yes ;;
  3534. esac
  3535.     STRIP=$ac_ct_STRIP
  3536.   fi
  3537. else
  3538.   STRIP="$ac_cv_prog_STRIP"
  3539. fi
  3540.  
  3541. fi
  3542. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3543.  
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3545. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3546. if test -z "$MKDIR_P"; then
  3547.   if ${ac_cv_path_mkdir+:} false; then :
  3548.   $as_echo_n "(cached) " >&6
  3549. else
  3550.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3551. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3552. do
  3553.   IFS=$as_save_IFS
  3554.   test -z "$as_dir" && as_dir=.
  3555.     for ac_prog in mkdir gmkdir; do
  3556.          for ac_exec_ext in '' $ac_executable_extensions; do
  3557.            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3558.            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3559.              'mkdir (GNU coreutils) '* | \
  3560.              'mkdir (coreutils) '* | \
  3561.              'mkdir (fileutils) '4.1*)
  3562.                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3563.                break 3;;
  3564.            esac
  3565.          done
  3566.        done
  3567.   done
  3568. IFS=$as_save_IFS
  3569.  
  3570. fi
  3571.  
  3572.   test -d ./--version && rmdir ./--version
  3573.   if test "${ac_cv_path_mkdir+set}" = set; then
  3574.     MKDIR_P="$ac_cv_path_mkdir -p"
  3575.   else
  3576.     # As a last resort, use the slow shell script.  Don't cache a
  3577.     # value for MKDIR_P within a source directory, because that will
  3578.     # break other packages using the cache if that directory is
  3579.     # removed, or if the value is a relative name.
  3580.     MKDIR_P="$ac_install_sh -d"
  3581.   fi
  3582. fi
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3584. $as_echo "$MKDIR_P" >&6; }
  3585.  
  3586. for ac_prog in gawk mawk nawk awk
  3587. do
  3588.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3589. set dummy $ac_prog; ac_word=$2
  3590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3591. $as_echo_n "checking for $ac_word... " >&6; }
  3592. if ${ac_cv_prog_AWK+:} false; then :
  3593.   $as_echo_n "(cached) " >&6
  3594. else
  3595.   if test -n "$AWK"; then
  3596.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3597. else
  3598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3599. for as_dir in $PATH
  3600. do
  3601.   IFS=$as_save_IFS
  3602.   test -z "$as_dir" && as_dir=.
  3603.     for ac_exec_ext in '' $ac_executable_extensions; do
  3604.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3605.     ac_cv_prog_AWK="$ac_prog"
  3606.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3607.     break 2
  3608.   fi
  3609. done
  3610.   done
  3611. IFS=$as_save_IFS
  3612.  
  3613. fi
  3614. fi
  3615. AWK=$ac_cv_prog_AWK
  3616. if test -n "$AWK"; then
  3617.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3618. $as_echo "$AWK" >&6; }
  3619. else
  3620.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3621. $as_echo "no" >&6; }
  3622. fi
  3623.  
  3624.  
  3625.   test -n "$AWK" && break
  3626. done
  3627.  
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3629. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3630. set x ${MAKE-make}
  3631. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3632. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3633.   $as_echo_n "(cached) " >&6
  3634. else
  3635.   cat >conftest.make <<\_ACEOF
  3636. SHELL = /bin/sh
  3637. all:
  3638.         @echo '@@@%%%=$(MAKE)=@@@%%%'
  3639. _ACEOF
  3640. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3641. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3642.   *@@@%%%=?*=@@@%%%*)
  3643.     eval ac_cv_prog_make_${ac_make}_set=yes;;
  3644.   *)
  3645.     eval ac_cv_prog_make_${ac_make}_set=no;;
  3646. esac
  3647. rm -f conftest.make
  3648. fi
  3649. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3650.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3651. $as_echo "yes" >&6; }
  3652.   SET_MAKE=
  3653. else
  3654.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3655. $as_echo "no" >&6; }
  3656.   SET_MAKE="MAKE=${MAKE-make}"
  3657. fi
  3658.  
  3659. rm -rf .tst 2>/dev/null
  3660. mkdir .tst 2>/dev/null
  3661. if test -d .tst; then
  3662.   am__leading_dot=.
  3663. else
  3664.   am__leading_dot=_
  3665. fi
  3666. rmdir .tst 2>/dev/null
  3667.  
  3668. # Check whether --enable-silent-rules was given.
  3669. if test "${enable_silent_rules+set}" = set; then :
  3670.   enableval=$enable_silent_rules;
  3671. fi
  3672.  
  3673. case $enable_silent_rules in # (((
  3674.   yes) AM_DEFAULT_VERBOSITY=0;;
  3675.    no) AM_DEFAULT_VERBOSITY=1;;
  3676.     *) AM_DEFAULT_VERBOSITY=1;;
  3677. esac
  3678. am_make=${MAKE-make}
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3680. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3681. if ${am_cv_make_support_nested_variables+:} false; then :
  3682.   $as_echo_n "(cached) " >&6
  3683. else
  3684.   if $as_echo 'TRUE=$(BAR$(V))
  3685. BAR0=false
  3686. BAR1=true
  3687. V=1
  3688. am__doit:
  3689.         @$(TRUE)
  3690. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3691.   am_cv_make_support_nested_variables=yes
  3692. else
  3693.   am_cv_make_support_nested_variables=no
  3694. fi
  3695. fi
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3697. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3698. if test $am_cv_make_support_nested_variables = yes; then
  3699.     AM_V='$(V)'
  3700.   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3701. else
  3702.   AM_V=$AM_DEFAULT_VERBOSITY
  3703.   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3704. fi
  3705. AM_BACKSLASH='\'
  3706.  
  3707. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3708.   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3709.   # is not polluted with repeated "-I."
  3710.   am__isrc=' -I$(srcdir)'
  3711.   # test to see if srcdir already configured
  3712.   if test -f $srcdir/config.status; then
  3713.     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3714.   fi
  3715. fi
  3716.  
  3717. # test whether we have cygpath
  3718. if test -z "$CYGPATH_W"; then
  3719.   if (cygpath --version) >/dev/null 2>/dev/null; then
  3720.     CYGPATH_W='cygpath -w'
  3721.   else
  3722.     CYGPATH_W=echo
  3723.   fi
  3724. fi
  3725.  
  3726.  
  3727. # Define the identity of the package.
  3728.  PACKAGE='mesa'
  3729.  VERSION='9.2.5'
  3730.  
  3731.  
  3732. cat >>confdefs.h <<_ACEOF
  3733. #define PACKAGE "$PACKAGE"
  3734. _ACEOF
  3735.  
  3736.  
  3737. cat >>confdefs.h <<_ACEOF
  3738. #define VERSION "$VERSION"
  3739. _ACEOF
  3740.  
  3741. # Some tools Automake needs.
  3742.  
  3743. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3744.  
  3745.  
  3746. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3747.  
  3748.  
  3749. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3750.  
  3751.  
  3752. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3753.  
  3754.  
  3755. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3756.  
  3757. # For better backward compatibility.  To be removed once Automake 1.9.x
  3758. # dies out for good.  For more background, see:
  3759. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3760. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3761. mkdir_p='$(MKDIR_P)'
  3762.  
  3763. # We need awk for the "check" target.  The system "awk" is bad on
  3764. # some platforms.
  3765. # Always define AMTAR for backward compatibility.  Yes, it's still used
  3766. # in the wild :-(  We should find a proper way to deprecate it ...
  3767. AMTAR='$${TAR-tar}'
  3768.  
  3769.  
  3770. # We'll loop over all known methods to create a tar archive until one works.
  3771. _am_tools='gnutar  pax cpio none'
  3772.  
  3773. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3774.  
  3775.  
  3776.  
  3777.  
  3778.  
  3779.  
  3780. # POSIX will say in a future version that running "rm -f" with no argument
  3781. # is OK; and we want to be able to make that assumption in our Makefile
  3782. # recipes.  So use an aggressive probe to check that the usage we want is
  3783. # actually supported "in the wild" to an acceptable degree.
  3784. # See automake bug#10828.
  3785. # To make any issue more visible, cause the running configure to be aborted
  3786. # by default if the 'rm' program in use doesn't match our expectations; the
  3787. # user can still override this though.
  3788. if rm -f && rm -fr && rm -rf; then : OK; else
  3789.   cat >&2 <<'END'
  3790. Oops!
  3791.  
  3792. Your 'rm' program seems unable to run without file operands specified
  3793. on the command line, even when the '-f' option is present.  This is contrary
  3794. to the behaviour of most rm programs out there, and not conforming with
  3795. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3796.  
  3797. Please tell bug-automake@gnu.org about your system, including the value
  3798. of your $PATH and any error possibly output before this message.  This
  3799. can help us improve future automake versions.
  3800.  
  3801. END
  3802.   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3803.     echo 'Configuration will proceed anyway, since you have set the' >&2
  3804.     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3805.     echo >&2
  3806.   else
  3807.     cat >&2 <<'END'
  3808. Aborting the configuration process, to ensure you take notice of the issue.
  3809.  
  3810. You can download and install GNU coreutils to get an 'rm' implementation
  3811. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3812.  
  3813. If you want to complete the configuration process using your problematic
  3814. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3815. to "yes", and re-run configure.
  3816.  
  3817. END
  3818.     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3819.   fi
  3820. fi
  3821.  
  3822. echo \#buildapi-variable-no-builddir >/dev/null
  3823.  
  3824. # Support silent build rules, requires at least automake-1.11. Disable
  3825. # by either passing --disable-silent-rules to configure or passing V=1
  3826. # to make
  3827. # Check whether --enable-silent-rules was given.
  3828. if test "${enable_silent_rules+set}" = set; then :
  3829.   enableval=$enable_silent_rules;
  3830. fi
  3831.  
  3832. case $enable_silent_rules in # (((
  3833.   yes) AM_DEFAULT_VERBOSITY=0;;
  3834.    no) AM_DEFAULT_VERBOSITY=1;;
  3835.     *) AM_DEFAULT_VERBOSITY=0;;
  3836. esac
  3837. am_make=${MAKE-make}
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3839. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3840. if ${am_cv_make_support_nested_variables+:} false; then :
  3841.   $as_echo_n "(cached) " >&6
  3842. else
  3843.   if $as_echo 'TRUE=$(BAR$(V))
  3844. BAR0=false
  3845. BAR1=true
  3846. V=1
  3847. am__doit:
  3848.         @$(TRUE)
  3849. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3850.   am_cv_make_support_nested_variables=yes
  3851. else
  3852.   am_cv_make_support_nested_variables=no
  3853. fi
  3854. fi
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3856. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3857. if test $am_cv_make_support_nested_variables = yes; then
  3858.     AM_V='$(V)'
  3859.   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3860. else
  3861.   AM_V=$AM_DEFAULT_VERBOSITY
  3862.   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3863. fi
  3864. AM_BACKSLASH='\'
  3865.  
  3866.  
  3867. DEPDIR="${am__leading_dot}deps"
  3868.  
  3869. ac_config_commands="$ac_config_commands depfiles"
  3870.  
  3871.  
  3872. am_make=${MAKE-make}
  3873. cat > confinc << 'END'
  3874. am__doit:
  3875.         @echo this is the am__doit target
  3876. .PHONY: am__doit
  3877. END
  3878. # If we don't find an include directive, just comment out the code.
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3880. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3881. am__include="#"
  3882. am__quote=
  3883. _am_result=none
  3884. # First try GNU make style include.
  3885. echo "include confinc" > confmf
  3886. # Ignore all kinds of additional output from 'make'.
  3887. case `$am_make -s -f confmf 2> /dev/null` in #(
  3888. *the\ am__doit\ target*)
  3889.   am__include=include
  3890.   am__quote=
  3891.   _am_result=GNU
  3892.   ;;
  3893. esac
  3894. # Now try BSD make style include.
  3895. if test "$am__include" = "#"; then
  3896.    echo '.include "confinc"' > confmf
  3897.    case `$am_make -s -f confmf 2> /dev/null` in #(
  3898.    *the\ am__doit\ target*)
  3899.      am__include=.include
  3900.      am__quote="\""
  3901.      _am_result=BSD
  3902.      ;;
  3903.    esac
  3904. fi
  3905.  
  3906.  
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3908. $as_echo "$_am_result" >&6; }
  3909. rm -f confinc confmf
  3910.  
  3911. # Check whether --enable-dependency-tracking was given.
  3912. if test "${enable_dependency_tracking+set}" = set; then :
  3913.   enableval=$enable_dependency_tracking;
  3914. fi
  3915.  
  3916. if test "x$enable_dependency_tracking" != xno; then
  3917.   am_depcomp="$ac_aux_dir/depcomp"
  3918.   AMDEPBACKSLASH='\'
  3919.   am__nodep='_no'
  3920. fi
  3921.  if test "x$enable_dependency_tracking" != xno; then
  3922.   AMDEP_TRUE=
  3923.   AMDEP_FALSE='#'
  3924. else
  3925.   AMDEP_TRUE='#'
  3926.   AMDEP_FALSE=
  3927. fi
  3928.  
  3929.  
  3930. ac_ext=c
  3931. ac_cpp='$CPP $CPPFLAGS'
  3932. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3933. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3934. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3935. if test -n "$ac_tool_prefix"; then
  3936.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3937. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3939. $as_echo_n "checking for $ac_word... " >&6; }
  3940. if ${ac_cv_prog_CC+:} false; then :
  3941.   $as_echo_n "(cached) " >&6
  3942. else
  3943.   if test -n "$CC"; then
  3944.   ac_cv_prog_CC="$CC" # Let the user override the test.
  3945. else
  3946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3947. for as_dir in $PATH
  3948. do
  3949.   IFS=$as_save_IFS
  3950.   test -z "$as_dir" && as_dir=.
  3951.     for ac_exec_ext in '' $ac_executable_extensions; do
  3952.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3953.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3954.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3955.     break 2
  3956.   fi
  3957. done
  3958.   done
  3959. IFS=$as_save_IFS
  3960.  
  3961. fi
  3962. fi
  3963. CC=$ac_cv_prog_CC
  3964. if test -n "$CC"; then
  3965.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3966. $as_echo "$CC" >&6; }
  3967. else
  3968.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3969. $as_echo "no" >&6; }
  3970. fi
  3971.  
  3972.  
  3973. fi
  3974. if test -z "$ac_cv_prog_CC"; then
  3975.   ac_ct_CC=$CC
  3976.   # Extract the first word of "gcc", so it can be a program name with args.
  3977. set dummy gcc; ac_word=$2
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3979. $as_echo_n "checking for $ac_word... " >&6; }
  3980. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3981.   $as_echo_n "(cached) " >&6
  3982. else
  3983.   if test -n "$ac_ct_CC"; then
  3984.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3985. else
  3986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3987. for as_dir in $PATH
  3988. do
  3989.   IFS=$as_save_IFS
  3990.   test -z "$as_dir" && as_dir=.
  3991.     for ac_exec_ext in '' $ac_executable_extensions; do
  3992.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3993.     ac_cv_prog_ac_ct_CC="gcc"
  3994.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3995.     break 2
  3996.   fi
  3997. done
  3998.   done
  3999. IFS=$as_save_IFS
  4000.  
  4001. fi
  4002. fi
  4003. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4004. if test -n "$ac_ct_CC"; then
  4005.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4006. $as_echo "$ac_ct_CC" >&6; }
  4007. else
  4008.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4009. $as_echo "no" >&6; }
  4010. fi
  4011.  
  4012.   if test "x$ac_ct_CC" = x; then
  4013.     CC=""
  4014.   else
  4015.     case $cross_compiling:$ac_tool_warned in
  4016. yes:)
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4018. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4019. ac_tool_warned=yes ;;
  4020. esac
  4021.     CC=$ac_ct_CC
  4022.   fi
  4023. else
  4024.   CC="$ac_cv_prog_CC"
  4025. fi
  4026.  
  4027. if test -z "$CC"; then
  4028.           if test -n "$ac_tool_prefix"; then
  4029.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4030. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4032. $as_echo_n "checking for $ac_word... " >&6; }
  4033. if ${ac_cv_prog_CC+:} false; then :
  4034.   $as_echo_n "(cached) " >&6
  4035. else
  4036.   if test -n "$CC"; then
  4037.   ac_cv_prog_CC="$CC" # Let the user override the test.
  4038. else
  4039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4040. for as_dir in $PATH
  4041. do
  4042.   IFS=$as_save_IFS
  4043.   test -z "$as_dir" && as_dir=.
  4044.     for ac_exec_ext in '' $ac_executable_extensions; do
  4045.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4046.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4047.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4048.     break 2
  4049.   fi
  4050. done
  4051.   done
  4052. IFS=$as_save_IFS
  4053.  
  4054. fi
  4055. fi
  4056. CC=$ac_cv_prog_CC
  4057. if test -n "$CC"; then
  4058.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4059. $as_echo "$CC" >&6; }
  4060. else
  4061.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4062. $as_echo "no" >&6; }
  4063. fi
  4064.  
  4065.  
  4066.   fi
  4067. fi
  4068. if test -z "$CC"; then
  4069.   # Extract the first word of "cc", so it can be a program name with args.
  4070. set dummy cc; ac_word=$2
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4072. $as_echo_n "checking for $ac_word... " >&6; }
  4073. if ${ac_cv_prog_CC+:} false; then :
  4074.   $as_echo_n "(cached) " >&6
  4075. else
  4076.   if test -n "$CC"; then
  4077.   ac_cv_prog_CC="$CC" # Let the user override the test.
  4078. else
  4079.   ac_prog_rejected=no
  4080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4081. for as_dir in $PATH
  4082. do
  4083.   IFS=$as_save_IFS
  4084.   test -z "$as_dir" && as_dir=.
  4085.     for ac_exec_ext in '' $ac_executable_extensions; do
  4086.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4087.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4088.        ac_prog_rejected=yes
  4089.        continue
  4090.      fi
  4091.     ac_cv_prog_CC="cc"
  4092.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4093.     break 2
  4094.   fi
  4095. done
  4096.   done
  4097. IFS=$as_save_IFS
  4098.  
  4099. if test $ac_prog_rejected = yes; then
  4100.   # We found a bogon in the path, so make sure we never use it.
  4101.   set dummy $ac_cv_prog_CC
  4102.   shift
  4103.   if test $# != 0; then
  4104.     # We chose a different compiler from the bogus one.
  4105.     # However, it has the same basename, so the bogon will be chosen
  4106.     # first if we set CC to just the basename; use the full file name.
  4107.     shift
  4108.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4109.   fi
  4110. fi
  4111. fi
  4112. fi
  4113. CC=$ac_cv_prog_CC
  4114. if test -n "$CC"; then
  4115.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4116. $as_echo "$CC" >&6; }
  4117. else
  4118.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4119. $as_echo "no" >&6; }
  4120. fi
  4121.  
  4122.  
  4123. fi
  4124. if test -z "$CC"; then
  4125.   if test -n "$ac_tool_prefix"; then
  4126.   for ac_prog in cl.exe
  4127.   do
  4128.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4129. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4131. $as_echo_n "checking for $ac_word... " >&6; }
  4132. if ${ac_cv_prog_CC+:} false; then :
  4133.   $as_echo_n "(cached) " >&6
  4134. else
  4135.   if test -n "$CC"; then
  4136.   ac_cv_prog_CC="$CC" # Let the user override the test.
  4137. else
  4138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4139. for as_dir in $PATH
  4140. do
  4141.   IFS=$as_save_IFS
  4142.   test -z "$as_dir" && as_dir=.
  4143.     for ac_exec_ext in '' $ac_executable_extensions; do
  4144.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4145.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4146.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4147.     break 2
  4148.   fi
  4149. done
  4150.   done
  4151. IFS=$as_save_IFS
  4152.  
  4153. fi
  4154. fi
  4155. CC=$ac_cv_prog_CC
  4156. if test -n "$CC"; then
  4157.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4158. $as_echo "$CC" >&6; }
  4159. else
  4160.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4161. $as_echo "no" >&6; }
  4162. fi
  4163.  
  4164.  
  4165.     test -n "$CC" && break
  4166.   done
  4167. fi
  4168. if test -z "$CC"; then
  4169.   ac_ct_CC=$CC
  4170.   for ac_prog in cl.exe
  4171. do
  4172.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4173. set dummy $ac_prog; ac_word=$2
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4175. $as_echo_n "checking for $ac_word... " >&6; }
  4176. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4177.   $as_echo_n "(cached) " >&6
  4178. else
  4179.   if test -n "$ac_ct_CC"; then
  4180.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4181. else
  4182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4183. for as_dir in $PATH
  4184. do
  4185.   IFS=$as_save_IFS
  4186.   test -z "$as_dir" && as_dir=.
  4187.     for ac_exec_ext in '' $ac_executable_extensions; do
  4188.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4189.     ac_cv_prog_ac_ct_CC="$ac_prog"
  4190.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4191.     break 2
  4192.   fi
  4193. done
  4194.   done
  4195. IFS=$as_save_IFS
  4196.  
  4197. fi
  4198. fi
  4199. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4200. if test -n "$ac_ct_CC"; then
  4201.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4202. $as_echo "$ac_ct_CC" >&6; }
  4203. else
  4204.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4205. $as_echo "no" >&6; }
  4206. fi
  4207.  
  4208.  
  4209.   test -n "$ac_ct_CC" && break
  4210. done
  4211.  
  4212.   if test "x$ac_ct_CC" = x; then
  4213.     CC=""
  4214.   else
  4215.     case $cross_compiling:$ac_tool_warned in
  4216. yes:)
  4217. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4218. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4219. ac_tool_warned=yes ;;
  4220. esac
  4221.     CC=$ac_ct_CC
  4222.   fi
  4223. fi
  4224.  
  4225. fi
  4226.  
  4227.  
  4228. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4229. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4230. as_fn_error $? "no acceptable C compiler found in \$PATH
  4231. See \`config.log' for more details" "$LINENO" 5; }
  4232.  
  4233. # Provide some information about the compiler.
  4234. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4235. set X $ac_compile
  4236. ac_compiler=$2
  4237. for ac_option in --version -v -V -qversion; do
  4238.   { { ac_try="$ac_compiler $ac_option >&5"
  4239. case "(($ac_try" in
  4240.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4241.   *) ac_try_echo=$ac_try;;
  4242. esac
  4243. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4244. $as_echo "$ac_try_echo"; } >&5
  4245.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4246.   ac_status=$?
  4247.   if test -s conftest.err; then
  4248.     sed '10a\
  4249. ... rest of stderr output deleted ...
  4250.          10q' conftest.err >conftest.er1
  4251.     cat conftest.er1 >&5
  4252.   fi
  4253.   rm -f conftest.er1 conftest.err
  4254.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4255.   test $ac_status = 0; }
  4256. done
  4257.  
  4258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4259. /* end confdefs.h.  */
  4260.  
  4261. int
  4262. main ()
  4263. {
  4264.  
  4265.   ;
  4266.   return 0;
  4267. }
  4268. _ACEOF
  4269. ac_clean_files_save=$ac_clean_files
  4270. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4271. # Try to create an executable without -o first, disregard a.out.
  4272. # It will help us diagnose broken compilers, and finding out an intuition
  4273. # of exeext.
  4274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4275. $as_echo_n "checking whether the C compiler works... " >&6; }
  4276. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4277.  
  4278. # The possible output files:
  4279. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4280.  
  4281. ac_rmfiles=
  4282. for ac_file in $ac_files
  4283. do
  4284.   case $ac_file in
  4285.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4286.     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4287.   esac
  4288. done
  4289. rm -f $ac_rmfiles
  4290.  
  4291. if { { ac_try="$ac_link_default"
  4292. case "(($ac_try" in
  4293.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4294.   *) ac_try_echo=$ac_try;;
  4295. esac
  4296. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4297. $as_echo "$ac_try_echo"; } >&5
  4298.   (eval "$ac_link_default") 2>&5
  4299.   ac_status=$?
  4300.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4301.   test $ac_status = 0; }; then :
  4302.   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4303. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4304. # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  4305. # so that the user can short-circuit this test for compilers unknown to
  4306. # Autoconf.
  4307. for ac_file in $ac_files ''
  4308. do
  4309.   test -f "$ac_file" || continue
  4310.   case $ac_file in
  4311.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4312.         ;;
  4313.     [ab].out )
  4314.         # We found the default executable, but exeext='' is most
  4315.         # certainly right.
  4316.         break;;
  4317.     *.* )
  4318.         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  4319.         then :; else
  4320.            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4321.         fi
  4322.         # We set ac_cv_exeext here because the later test for it is not
  4323.         # safe: cross compilers may not add the suffix if given an `-o'
  4324.         # argument, so we may need to know it at that point already.
  4325.         # Even if this section looks crufty: it has the advantage of
  4326.         # actually working.
  4327.         break;;
  4328.     * )
  4329.         break;;
  4330.   esac
  4331. done
  4332. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4333.  
  4334. else
  4335.   ac_file=''
  4336. fi
  4337. if test -z "$ac_file"; then :
  4338.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4339. $as_echo "no" >&6; }
  4340. $as_echo "$as_me: failed program was:" >&5
  4341. sed 's/^/| /' conftest.$ac_ext >&5
  4342.  
  4343. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4344. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4345. as_fn_error 77 "C compiler cannot create executables
  4346. See \`config.log' for more details" "$LINENO" 5; }
  4347. else
  4348.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4349. $as_echo "yes" >&6; }
  4350. fi
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4352. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4354. $as_echo "$ac_file" >&6; }
  4355. ac_exeext=$ac_cv_exeext
  4356.  
  4357. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4358. ac_clean_files=$ac_clean_files_save
  4359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4360. $as_echo_n "checking for suffix of executables... " >&6; }
  4361. if { { ac_try="$ac_link"
  4362. case "(($ac_try" in
  4363.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4364.   *) ac_try_echo=$ac_try;;
  4365. esac
  4366. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4367. $as_echo "$ac_try_echo"; } >&5
  4368.   (eval "$ac_link") 2>&5
  4369.   ac_status=$?
  4370.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4371.   test $ac_status = 0; }; then :
  4372.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4373. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  4374. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4375. # `rm'.
  4376. for ac_file in conftest.exe conftest conftest.*; do
  4377.   test -f "$ac_file" || continue
  4378.   case $ac_file in
  4379.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4380.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4381.           break;;
  4382.     * ) break;;
  4383.   esac
  4384. done
  4385. else
  4386.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4387. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4388. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4389. See \`config.log' for more details" "$LINENO" 5; }
  4390. fi
  4391. rm -f conftest conftest$ac_cv_exeext
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4393. $as_echo "$ac_cv_exeext" >&6; }
  4394.  
  4395. rm -f conftest.$ac_ext
  4396. EXEEXT=$ac_cv_exeext
  4397. ac_exeext=$EXEEXT
  4398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4399. /* end confdefs.h.  */
  4400. #include <stdio.h>
  4401. int
  4402. main ()
  4403. {
  4404. FILE *f = fopen ("conftest.out", "w");
  4405.  return ferror (f) || fclose (f) != 0;
  4406.  
  4407.   ;
  4408.   return 0;
  4409. }
  4410. _ACEOF
  4411. ac_clean_files="$ac_clean_files conftest.out"
  4412. # Check that the compiler produces executables we can run.  If not, either
  4413. # the compiler is broken, or we cross compile.
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4415. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4416. if test "$cross_compiling" != yes; then
  4417.   { { ac_try="$ac_link"
  4418. case "(($ac_try" in
  4419.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4420.   *) ac_try_echo=$ac_try;;
  4421. esac
  4422. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4423. $as_echo "$ac_try_echo"; } >&5
  4424.   (eval "$ac_link") 2>&5
  4425.   ac_status=$?
  4426.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4427.   test $ac_status = 0; }
  4428.   if { ac_try='./conftest$ac_cv_exeext'
  4429.   { { case "(($ac_try" in
  4430.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4431.   *) ac_try_echo=$ac_try;;
  4432. esac
  4433. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4434. $as_echo "$ac_try_echo"; } >&5
  4435.   (eval "$ac_try") 2>&5
  4436.   ac_status=$?
  4437.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4438.   test $ac_status = 0; }; }; then
  4439.     cross_compiling=no
  4440.   else
  4441.     if test "$cross_compiling" = maybe; then
  4442.         cross_compiling=yes
  4443.     else
  4444.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4445. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4446. as_fn_error $? "cannot run C compiled programs.
  4447. If you meant to cross compile, use \`--host'.
  4448. See \`config.log' for more details" "$LINENO" 5; }
  4449.     fi
  4450.   fi
  4451. fi
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4453. $as_echo "$cross_compiling" >&6; }
  4454.  
  4455. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4456. ac_clean_files=$ac_clean_files_save
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4458. $as_echo_n "checking for suffix of object files... " >&6; }
  4459. if ${ac_cv_objext+:} false; then :
  4460.   $as_echo_n "(cached) " >&6
  4461. else
  4462.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4463. /* end confdefs.h.  */
  4464.  
  4465. int
  4466. main ()
  4467. {
  4468.  
  4469.   ;
  4470.   return 0;
  4471. }
  4472. _ACEOF
  4473. rm -f conftest.o conftest.obj
  4474. if { { ac_try="$ac_compile"
  4475. case "(($ac_try" in
  4476.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4477.   *) ac_try_echo=$ac_try;;
  4478. esac
  4479. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4480. $as_echo "$ac_try_echo"; } >&5
  4481.   (eval "$ac_compile") 2>&5
  4482.   ac_status=$?
  4483.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4484.   test $ac_status = 0; }; then :
  4485.   for ac_file in conftest.o conftest.obj conftest.*; do
  4486.   test -f "$ac_file" || continue;
  4487.   case $ac_file in
  4488.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4489.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4490.        break;;
  4491.   esac
  4492. done
  4493. else
  4494.   $as_echo "$as_me: failed program was:" >&5
  4495. sed 's/^/| /' conftest.$ac_ext >&5
  4496.  
  4497. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4498. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4499. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4500. See \`config.log' for more details" "$LINENO" 5; }
  4501. fi
  4502. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4503. fi
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4505. $as_echo "$ac_cv_objext" >&6; }
  4506. OBJEXT=$ac_cv_objext
  4507. ac_objext=$OBJEXT
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4509. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4510. if ${ac_cv_c_compiler_gnu+:} false; then :
  4511.   $as_echo_n "(cached) " >&6
  4512. else
  4513.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4514. /* end confdefs.h.  */
  4515.  
  4516. int
  4517. main ()
  4518. {
  4519. #ifndef __GNUC__
  4520.        choke me
  4521. #endif
  4522.  
  4523.   ;
  4524.   return 0;
  4525. }
  4526. _ACEOF
  4527. if ac_fn_c_try_compile "$LINENO"; then :
  4528.   ac_compiler_gnu=yes
  4529. else
  4530.   ac_compiler_gnu=no
  4531. fi
  4532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4533. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4534.  
  4535. fi
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4537. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4538. if test $ac_compiler_gnu = yes; then
  4539.   GCC=yes
  4540. else
  4541.   GCC=
  4542. fi
  4543. ac_test_CFLAGS=${CFLAGS+set}
  4544. ac_save_CFLAGS=$CFLAGS
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4546. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4547. if ${ac_cv_prog_cc_g+:} false; then :
  4548.   $as_echo_n "(cached) " >&6
  4549. else
  4550.   ac_save_c_werror_flag=$ac_c_werror_flag
  4551.    ac_c_werror_flag=yes
  4552.    ac_cv_prog_cc_g=no
  4553.    CFLAGS="-g"
  4554.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4555. /* end confdefs.h.  */
  4556.  
  4557. int
  4558. main ()
  4559. {
  4560.  
  4561.   ;
  4562.   return 0;
  4563. }
  4564. _ACEOF
  4565. if ac_fn_c_try_compile "$LINENO"; then :
  4566.   ac_cv_prog_cc_g=yes
  4567. else
  4568.   CFLAGS=""
  4569.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4570. /* end confdefs.h.  */
  4571.  
  4572. int
  4573. main ()
  4574. {
  4575.  
  4576.   ;
  4577.   return 0;
  4578. }
  4579. _ACEOF
  4580. if ac_fn_c_try_compile "$LINENO"; then :
  4581.  
  4582. else
  4583.   ac_c_werror_flag=$ac_save_c_werror_flag
  4584.          CFLAGS="-g"
  4585.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4586. /* end confdefs.h.  */
  4587.  
  4588. int
  4589. main ()
  4590. {
  4591.  
  4592.   ;
  4593.   return 0;
  4594. }
  4595. _ACEOF
  4596. if ac_fn_c_try_compile "$LINENO"; then :
  4597.   ac_cv_prog_cc_g=yes
  4598. fi
  4599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4600. fi
  4601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4602. fi
  4603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4604.    ac_c_werror_flag=$ac_save_c_werror_flag
  4605. fi
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4607. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4608. if test "$ac_test_CFLAGS" = set; then
  4609.   CFLAGS=$ac_save_CFLAGS
  4610. elif test $ac_cv_prog_cc_g = yes; then
  4611.   if test "$GCC" = yes; then
  4612.     CFLAGS="-g -O2"
  4613.   else
  4614.     CFLAGS="-g"
  4615.   fi
  4616. else
  4617.   if test "$GCC" = yes; then
  4618.     CFLAGS="-O2"
  4619.   else
  4620.     CFLAGS=
  4621.   fi
  4622. fi
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4624. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4625. if ${ac_cv_prog_cc_c89+:} false; then :
  4626.   $as_echo_n "(cached) " >&6
  4627. else
  4628.   ac_cv_prog_cc_c89=no
  4629. ac_save_CC=$CC
  4630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4631. /* end confdefs.h.  */
  4632. #include <stdarg.h>
  4633. #include <stdio.h>
  4634. struct stat;
  4635. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4636. struct buf { int x; };
  4637. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4638. static char *e (p, i)
  4639.      char **p;
  4640.      int i;
  4641. {
  4642.   return p[i];
  4643. }
  4644. static char *f (char * (*g) (char **, int), char **p, ...)
  4645. {
  4646.   char *s;
  4647.   va_list v;
  4648.   va_start (v,p);
  4649.   s = g (p, va_arg (v,int));
  4650.   va_end (v);
  4651.   return s;
  4652. }
  4653.  
  4654. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4655.    function prototypes and stuff, but not '\xHH' hex character constants.
  4656.    These don't provoke an error unfortunately, instead are silently treated
  4657.    as 'x'.  The following induces an error, until -std is added to get
  4658.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4659.    array size at least.  It's necessary to write '\x00'==0 to get something
  4660.    that's true only with -std.  */
  4661. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4662.  
  4663. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4664.    inside strings and character constants.  */
  4665. #define FOO(x) 'x'
  4666. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4667.  
  4668. int test (int i, double x);
  4669. struct s1 {int (*f) (int a);};
  4670. struct s2 {int (*f) (double a);};
  4671. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4672. int argc;
  4673. char **argv;
  4674. int
  4675. main ()
  4676. {
  4677. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4678.   ;
  4679.   return 0;
  4680. }
  4681. _ACEOF
  4682. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4683.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4684. do
  4685.   CC="$ac_save_CC $ac_arg"
  4686.   if ac_fn_c_try_compile "$LINENO"; then :
  4687.   ac_cv_prog_cc_c89=$ac_arg
  4688. fi
  4689. rm -f core conftest.err conftest.$ac_objext
  4690.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4691. done
  4692. rm -f conftest.$ac_ext
  4693. CC=$ac_save_CC
  4694.  
  4695. fi
  4696. # AC_CACHE_VAL
  4697. case "x$ac_cv_prog_cc_c89" in
  4698.   x)
  4699.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4700. $as_echo "none needed" >&6; } ;;
  4701.   xno)
  4702.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4703. $as_echo "unsupported" >&6; } ;;
  4704.   *)
  4705.     CC="$CC $ac_cv_prog_cc_c89"
  4706.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4707. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4708. esac
  4709. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4710.  
  4711. fi
  4712.  
  4713. ac_ext=c
  4714. ac_cpp='$CPP $CPPFLAGS'
  4715. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4716. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4717. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4718.  
  4719. ac_ext=c
  4720. ac_cpp='$CPP $CPPFLAGS'
  4721. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4722. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4723. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4725. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4726. if ${am_cv_prog_cc_c_o+:} false; then :
  4727.   $as_echo_n "(cached) " >&6
  4728. else
  4729.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4730. /* end confdefs.h.  */
  4731.  
  4732. int
  4733. main ()
  4734. {
  4735.  
  4736.   ;
  4737.   return 0;
  4738. }
  4739. _ACEOF
  4740.   # Make sure it works both with $CC and with simple cc.
  4741.   # Following AC_PROG_CC_C_O, we do the test twice because some
  4742.   # compilers refuse to overwrite an existing .o file with -o,
  4743.   # though they will create one.
  4744.   am_cv_prog_cc_c_o=yes
  4745.   for am_i in 1 2; do
  4746.     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4747.    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4748.    ac_status=$?
  4749.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4750.    (exit $ac_status); } \
  4751.          && test -f conftest2.$ac_objext; then
  4752.       : OK
  4753.     else
  4754.       am_cv_prog_cc_c_o=no
  4755.       break
  4756.     fi
  4757.   done
  4758.   rm -f core conftest*
  4759.   unset am_i
  4760. fi
  4761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4762. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4763. if test "$am_cv_prog_cc_c_o" != yes; then
  4764.    # Losing compiler, so override with the script.
  4765.    # FIXME: It is wrong to rewrite CC.
  4766.    # But if we don't then we get into trouble of one sort or another.
  4767.    # A longer-term fix would be to have automake use am__CC in this case,
  4768.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4769.    CC="$am_aux_dir/compile $CC"
  4770. fi
  4771. ac_ext=c
  4772. ac_cpp='$CPP $CPPFLAGS'
  4773. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4774. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4775. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4776.  
  4777.  
  4778. depcc="$CC"   am_compiler_list=
  4779.  
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4781. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4782. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4783.   $as_echo_n "(cached) " >&6
  4784. else
  4785.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4786.   # We make a subdir and do the tests there.  Otherwise we can end up
  4787.   # making bogus files that we don't know about and never remove.  For
  4788.   # instance it was reported that on HP-UX the gcc test will end up
  4789.   # making a dummy file named 'D' -- because '-MD' means "put the output
  4790.   # in D".
  4791.   rm -rf conftest.dir
  4792.   mkdir conftest.dir
  4793.   # Copy depcomp to subdir because otherwise we won't find it if we're
  4794.   # using a relative directory.
  4795.   cp "$am_depcomp" conftest.dir
  4796.   cd conftest.dir
  4797.   # We will build objects and dependencies in a subdirectory because
  4798.   # it helps to detect inapplicable dependency modes.  For instance
  4799.   # both Tru64's cc and ICC support -MD to output dependencies as a
  4800.   # side effect of compilation, but ICC will put the dependencies in
  4801.   # the current directory while Tru64 will put them in the object
  4802.   # directory.
  4803.   mkdir sub
  4804.  
  4805.   am_cv_CC_dependencies_compiler_type=none
  4806.   if test "$am_compiler_list" = ""; then
  4807.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4808.   fi
  4809.   am__universal=false
  4810.   case " $depcc " in #(
  4811.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4812.      esac
  4813.  
  4814.   for depmode in $am_compiler_list; do
  4815.     # Setup a source with many dependencies, because some compilers
  4816.     # like to wrap large dependency lists on column 80 (with \), and
  4817.     # we should not choose a depcomp mode which is confused by this.
  4818.     #
  4819.     # We need to recreate these files for each test, as the compiler may
  4820.     # overwrite some of them when testing with obscure command lines.
  4821.     # This happens at least with the AIX C compiler.
  4822.     : > sub/conftest.c
  4823.     for i in 1 2 3 4 5 6; do
  4824.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4825.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4826.       # Solaris 10 /bin/sh.
  4827.       echo '/* dummy */' > sub/conftst$i.h
  4828.     done
  4829.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4830.  
  4831.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4832.     # mode.  It turns out that the SunPro C++ compiler does not properly
  4833.     # handle '-M -o', and we need to detect this.  Also, some Intel
  4834.     # versions had trouble with output in subdirs.
  4835.     am__obj=sub/conftest.${OBJEXT-o}
  4836.     am__minus_obj="-o $am__obj"
  4837.     case $depmode in
  4838.     gcc)
  4839.       # This depmode causes a compiler race in universal mode.
  4840.       test "$am__universal" = false || continue
  4841.       ;;
  4842.     nosideeffect)
  4843.       # After this tag, mechanisms are not by side-effect, so they'll
  4844.       # only be used when explicitly requested.
  4845.       if test "x$enable_dependency_tracking" = xyes; then
  4846.         continue
  4847.       else
  4848.         break
  4849.       fi
  4850.       ;;
  4851.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4852.       # This compiler won't grok '-c -o', but also, the minuso test has
  4853.       # not run yet.  These depmodes are late enough in the game, and
  4854.       # so weak that their functioning should not be impacted.
  4855.       am__obj=conftest.${OBJEXT-o}
  4856.       am__minus_obj=
  4857.       ;;
  4858.     none) break ;;
  4859.     esac
  4860.     if depmode=$depmode \
  4861.        source=sub/conftest.c object=$am__obj \
  4862.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4863.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4864.          >/dev/null 2>conftest.err &&
  4865.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4866.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4867.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4868.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4869.       # icc doesn't choke on unknown options, it will just issue warnings
  4870.       # or remarks (even with -Werror).  So we grep stderr for any message
  4871.       # that says an option was ignored or not supported.
  4872.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4873.       #   icc: Command line warning: ignoring option '-M'; no argument required
  4874.       # The diagnosis changed in icc 8.0:
  4875.       #   icc: Command line remark: option '-MP' not supported
  4876.       if (grep 'ignoring option' conftest.err ||
  4877.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4878.         am_cv_CC_dependencies_compiler_type=$depmode
  4879.         break
  4880.       fi
  4881.     fi
  4882.   done
  4883.  
  4884.   cd ..
  4885.   rm -rf conftest.dir
  4886. else
  4887.   am_cv_CC_dependencies_compiler_type=none
  4888. fi
  4889.  
  4890. fi
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4892. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4893. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4894.  
  4895.  if
  4896.   test "x$enable_dependency_tracking" != xno \
  4897.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4898.   am__fastdepCC_TRUE=
  4899.   am__fastdepCC_FALSE='#'
  4900. else
  4901.   am__fastdepCC_TRUE='#'
  4902.   am__fastdepCC_FALSE=
  4903. fi
  4904.  
  4905.  
  4906.  
  4907. if test -n "$ac_tool_prefix"; then
  4908.   for ac_prog in ar lib "link -lib"
  4909.   do
  4910.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4911. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4913. $as_echo_n "checking for $ac_word... " >&6; }
  4914. if ${ac_cv_prog_AR+:} false; then :
  4915.   $as_echo_n "(cached) " >&6
  4916. else
  4917.   if test -n "$AR"; then
  4918.   ac_cv_prog_AR="$AR" # Let the user override the test.
  4919. else
  4920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4921. for as_dir in $PATH
  4922. do
  4923.   IFS=$as_save_IFS
  4924.   test -z "$as_dir" && as_dir=.
  4925.     for ac_exec_ext in '' $ac_executable_extensions; do
  4926.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4927.     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4928.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4929.     break 2
  4930.   fi
  4931. done
  4932.   done
  4933. IFS=$as_save_IFS
  4934.  
  4935. fi
  4936. fi
  4937. AR=$ac_cv_prog_AR
  4938. if test -n "$AR"; then
  4939.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4940. $as_echo "$AR" >&6; }
  4941. else
  4942.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4943. $as_echo "no" >&6; }
  4944. fi
  4945.  
  4946.  
  4947.     test -n "$AR" && break
  4948.   done
  4949. fi
  4950. if test -z "$AR"; then
  4951.   ac_ct_AR=$AR
  4952.   for ac_prog in ar lib "link -lib"
  4953. do
  4954.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4955. set dummy $ac_prog; ac_word=$2
  4956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4957. $as_echo_n "checking for $ac_word... " >&6; }
  4958. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4959.   $as_echo_n "(cached) " >&6
  4960. else
  4961.   if test -n "$ac_ct_AR"; then
  4962.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4963. else
  4964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4965. for as_dir in $PATH
  4966. do
  4967.   IFS=$as_save_IFS
  4968.   test -z "$as_dir" && as_dir=.
  4969.     for ac_exec_ext in '' $ac_executable_extensions; do
  4970.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4971.     ac_cv_prog_ac_ct_AR="$ac_prog"
  4972.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4973.     break 2
  4974.   fi
  4975. done
  4976.   done
  4977. IFS=$as_save_IFS
  4978.  
  4979. fi
  4980. fi
  4981. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4982. if test -n "$ac_ct_AR"; then
  4983.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4984. $as_echo "$ac_ct_AR" >&6; }
  4985. else
  4986.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4987. $as_echo "no" >&6; }
  4988. fi
  4989.  
  4990.  
  4991.   test -n "$ac_ct_AR" && break
  4992. done
  4993.  
  4994.   if test "x$ac_ct_AR" = x; then
  4995.     AR="false"
  4996.   else
  4997.     case $cross_compiling:$ac_tool_warned in
  4998. yes:)
  4999. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5000. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5001. ac_tool_warned=yes ;;
  5002. esac
  5003.     AR=$ac_ct_AR
  5004.   fi
  5005. fi
  5006.  
  5007. : ${AR=ar}
  5008.  
  5009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  5010. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  5011. if ${am_cv_ar_interface+:} false; then :
  5012.   $as_echo_n "(cached) " >&6
  5013. else
  5014.   ac_ext=c
  5015. ac_cpp='$CPP $CPPFLAGS'
  5016. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5017. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5018. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5019.  
  5020.    am_cv_ar_interface=ar
  5021.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5022. /* end confdefs.h.  */
  5023. int some_variable = 0;
  5024. _ACEOF
  5025. if ac_fn_c_try_compile "$LINENO"; then :
  5026.   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  5027.       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  5028.   (eval $am_ar_try) 2>&5
  5029.   ac_status=$?
  5030.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5031.   test $ac_status = 0; }
  5032.       if test "$ac_status" -eq 0; then
  5033.         am_cv_ar_interface=ar
  5034.       else
  5035.         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  5036.         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  5037.   (eval $am_ar_try) 2>&5
  5038.   ac_status=$?
  5039.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5040.   test $ac_status = 0; }
  5041.         if test "$ac_status" -eq 0; then
  5042.           am_cv_ar_interface=lib
  5043.         else
  5044.           am_cv_ar_interface=unknown
  5045.         fi
  5046.       fi
  5047.       rm -f conftest.lib libconftest.a
  5048.  
  5049. fi
  5050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5051.    ac_ext=c
  5052. ac_cpp='$CPP $CPPFLAGS'
  5053. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5054. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5055. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5056.  
  5057. fi
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  5059. $as_echo "$am_cv_ar_interface" >&6; }
  5060.  
  5061. case $am_cv_ar_interface in
  5062. ar)
  5063.   ;;
  5064. lib)
  5065.   # Microsoft lib, so override with the ar-lib wrapper script.
  5066.   # FIXME: It is wrong to rewrite AR.
  5067.   # But if we don't then we get into trouble of one sort or another.
  5068.   # A longer-term fix would be to have automake use am__AR in this case,
  5069.   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  5070.   # similar.
  5071.   AR="$am_aux_dir/ar-lib $AR"
  5072.   ;;
  5073. unknown)
  5074.   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  5075.   ;;
  5076. esac
  5077.  
  5078.  
  5079. OSMESA_VERSION=8
  5080.  
  5081.  
  5082. LIBDRM_REQUIRED=2.4.24
  5083. LIBDRM_RADEON_REQUIRED=2.4.46
  5084. LIBDRM_INTEL_REQUIRED=2.4.38
  5085. LIBDRM_NVVIEUX_REQUIRED=2.4.33
  5086. LIBDRM_NOUVEAU_REQUIRED="2.4.33 libdrm >= 2.4.41"
  5087. LIBDRM_FREEDRENO_REQUIRED=2.4.39
  5088. DRI2PROTO_REQUIRED=2.6
  5089. GLPROTO_REQUIRED=1.4.14
  5090. LIBDRM_XORG_REQUIRED=2.4.24
  5091. LIBKMS_XORG_REQUIRED=1.0.0
  5092.  
  5093. ac_ext=c
  5094. ac_cpp='$CPP $CPPFLAGS'
  5095. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5096. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5097. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5099. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5100. # On Suns, sometimes $CPP names a directory.
  5101. if test -n "$CPP" && test -d "$CPP"; then
  5102.   CPP=
  5103. fi
  5104. if test -z "$CPP"; then
  5105.   if ${ac_cv_prog_CPP+:} false; then :
  5106.   $as_echo_n "(cached) " >&6
  5107. else
  5108.       # Double quotes because CPP needs to be expanded
  5109.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5110.     do
  5111.       ac_preproc_ok=false
  5112. for ac_c_preproc_warn_flag in '' yes
  5113. do
  5114.   # Use a header file that comes with gcc, so configuring glibc
  5115.   # with a fresh cross-compiler works.
  5116.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5117.   # <limits.h> exists even on freestanding compilers.
  5118.   # On the NeXT, cc -E runs the code through the compiler's parser,
  5119.   # not just through cpp. "Syntax error" is here to catch this case.
  5120.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5121. /* end confdefs.h.  */
  5122. #ifdef __STDC__
  5123. # include <limits.h>
  5124. #else
  5125. # include <assert.h>
  5126. #endif
  5127.                      Syntax error
  5128. _ACEOF
  5129. if ac_fn_c_try_cpp "$LINENO"; then :
  5130.  
  5131. else
  5132.   # Broken: fails on valid input.
  5133. continue
  5134. fi
  5135. rm -f conftest.err conftest.i conftest.$ac_ext
  5136.  
  5137.   # OK, works on sane cases.  Now check whether nonexistent headers
  5138.   # can be detected and how.
  5139.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5140. /* end confdefs.h.  */
  5141. #include <ac_nonexistent.h>
  5142. _ACEOF
  5143. if ac_fn_c_try_cpp "$LINENO"; then :
  5144.   # Broken: success on invalid input.
  5145. continue
  5146. else
  5147.   # Passes both tests.
  5148. ac_preproc_ok=:
  5149. break
  5150. fi
  5151. rm -f conftest.err conftest.i conftest.$ac_ext
  5152.  
  5153. done
  5154. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5155. rm -f conftest.i conftest.err conftest.$ac_ext
  5156. if $ac_preproc_ok; then :
  5157.   break
  5158. fi
  5159.  
  5160.     done
  5161.     ac_cv_prog_CPP=$CPP
  5162.  
  5163. fi
  5164.   CPP=$ac_cv_prog_CPP
  5165. else
  5166.   ac_cv_prog_CPP=$CPP
  5167. fi
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5169. $as_echo "$CPP" >&6; }
  5170. ac_preproc_ok=false
  5171. for ac_c_preproc_warn_flag in '' yes
  5172. do
  5173.   # Use a header file that comes with gcc, so configuring glibc
  5174.   # with a fresh cross-compiler works.
  5175.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5176.   # <limits.h> exists even on freestanding compilers.
  5177.   # On the NeXT, cc -E runs the code through the compiler's parser,
  5178.   # not just through cpp. "Syntax error" is here to catch this case.
  5179.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5180. /* end confdefs.h.  */
  5181. #ifdef __STDC__
  5182. # include <limits.h>
  5183. #else
  5184. # include <assert.h>
  5185. #endif
  5186.                      Syntax error
  5187. _ACEOF
  5188. if ac_fn_c_try_cpp "$LINENO"; then :
  5189.  
  5190. else
  5191.   # Broken: fails on valid input.
  5192. continue
  5193. fi
  5194. rm -f conftest.err conftest.i conftest.$ac_ext
  5195.  
  5196.   # OK, works on sane cases.  Now check whether nonexistent headers
  5197.   # can be detected and how.
  5198.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5199. /* end confdefs.h.  */
  5200. #include <ac_nonexistent.h>
  5201. _ACEOF
  5202. if ac_fn_c_try_cpp "$LINENO"; then :
  5203.   # Broken: success on invalid input.
  5204. continue
  5205. else
  5206.   # Passes both tests.
  5207. ac_preproc_ok=:
  5208. break
  5209. fi
  5210. rm -f conftest.err conftest.i conftest.$ac_ext
  5211.  
  5212. done
  5213. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5214. rm -f conftest.i conftest.err conftest.$ac_ext
  5215. if $ac_preproc_ok; then :
  5216.  
  5217. else
  5218.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5219. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5220. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5221. See \`config.log' for more details" "$LINENO" 5; }
  5222. fi
  5223.  
  5224. ac_ext=c
  5225. ac_cpp='$CPP $CPPFLAGS'
  5226. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5227. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5228. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5229.  
  5230. ac_ext=c
  5231. ac_cpp='$CPP $CPPFLAGS'
  5232. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5233. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5234. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5235. if test -n "$ac_tool_prefix"; then
  5236.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  5237. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5239. $as_echo_n "checking for $ac_word... " >&6; }
  5240. if ${ac_cv_prog_CC+:} false; then :
  5241.   $as_echo_n "(cached) " >&6
  5242. else
  5243.   if test -n "$CC"; then
  5244.   ac_cv_prog_CC="$CC" # Let the user override the test.
  5245. else
  5246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5247. for as_dir in $PATH
  5248. do
  5249.   IFS=$as_save_IFS
  5250.   test -z "$as_dir" && as_dir=.
  5251.     for ac_exec_ext in '' $ac_executable_extensions; do
  5252.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5253.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  5254.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5255.     break 2
  5256.   fi
  5257. done
  5258.   done
  5259. IFS=$as_save_IFS
  5260.  
  5261. fi
  5262. fi
  5263. CC=$ac_cv_prog_CC
  5264. if test -n "$CC"; then
  5265.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5266. $as_echo "$CC" >&6; }
  5267. else
  5268.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5269. $as_echo "no" >&6; }
  5270. fi
  5271.  
  5272.  
  5273. fi
  5274. if test -z "$ac_cv_prog_CC"; then
  5275.   ac_ct_CC=$CC
  5276.   # Extract the first word of "gcc", so it can be a program name with args.
  5277. set dummy gcc; ac_word=$2
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5279. $as_echo_n "checking for $ac_word... " >&6; }
  5280. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  5281.   $as_echo_n "(cached) " >&6
  5282. else
  5283.   if test -n "$ac_ct_CC"; then
  5284.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5285. else
  5286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5287. for as_dir in $PATH
  5288. do
  5289.   IFS=$as_save_IFS
  5290.   test -z "$as_dir" && as_dir=.
  5291.     for ac_exec_ext in '' $ac_executable_extensions; do
  5292.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5293.     ac_cv_prog_ac_ct_CC="gcc"
  5294.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5295.     break 2
  5296.   fi
  5297. done
  5298.   done
  5299. IFS=$as_save_IFS
  5300.  
  5301. fi
  5302. fi
  5303. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5304. if test -n "$ac_ct_CC"; then
  5305.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5306. $as_echo "$ac_ct_CC" >&6; }
  5307. else
  5308.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5309. $as_echo "no" >&6; }
  5310. fi
  5311.  
  5312.   if test "x$ac_ct_CC" = x; then
  5313.     CC=""
  5314.   else
  5315.     case $cross_compiling:$ac_tool_warned in
  5316. yes:)
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5318. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5319. ac_tool_warned=yes ;;
  5320. esac
  5321.     CC=$ac_ct_CC
  5322.   fi
  5323. else
  5324.   CC="$ac_cv_prog_CC"
  5325. fi
  5326.  
  5327. if test -z "$CC"; then
  5328.           if test -n "$ac_tool_prefix"; then
  5329.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5330. set dummy ${ac_tool_prefix}cc; ac_word=$2
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5332. $as_echo_n "checking for $ac_word... " >&6; }
  5333. if ${ac_cv_prog_CC+:} false; then :
  5334.   $as_echo_n "(cached) " >&6
  5335. else
  5336.   if test -n "$CC"; then
  5337.   ac_cv_prog_CC="$CC" # Let the user override the test.
  5338. else
  5339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5340. for as_dir in $PATH
  5341. do
  5342.   IFS=$as_save_IFS
  5343.   test -z "$as_dir" && as_dir=.
  5344.     for ac_exec_ext in '' $ac_executable_extensions; do
  5345.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5346.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  5347.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5348.     break 2
  5349.   fi
  5350. done
  5351.   done
  5352. IFS=$as_save_IFS
  5353.  
  5354. fi
  5355. fi
  5356. CC=$ac_cv_prog_CC
  5357. if test -n "$CC"; then
  5358.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5359. $as_echo "$CC" >&6; }
  5360. else
  5361.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5362. $as_echo "no" >&6; }
  5363. fi
  5364.  
  5365.  
  5366.   fi
  5367. fi
  5368. if test -z "$CC"; then
  5369.   # Extract the first word of "cc", so it can be a program name with args.
  5370. set dummy cc; ac_word=$2
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5372. $as_echo_n "checking for $ac_word... " >&6; }
  5373. if ${ac_cv_prog_CC+:} false; then :
  5374.   $as_echo_n "(cached) " >&6
  5375. else
  5376.   if test -n "$CC"; then
  5377.   ac_cv_prog_CC="$CC" # Let the user override the test.
  5378. else
  5379.   ac_prog_rejected=no
  5380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5381. for as_dir in $PATH
  5382. do
  5383.   IFS=$as_save_IFS
  5384.   test -z "$as_dir" && as_dir=.
  5385.     for ac_exec_ext in '' $ac_executable_extensions; do
  5386.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5387.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5388.        ac_prog_rejected=yes
  5389.        continue
  5390.      fi
  5391.     ac_cv_prog_CC="cc"
  5392.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5393.     break 2
  5394.   fi
  5395. done
  5396.   done
  5397. IFS=$as_save_IFS
  5398.  
  5399. if test $ac_prog_rejected = yes; then
  5400.   # We found a bogon in the path, so make sure we never use it.
  5401.   set dummy $ac_cv_prog_CC
  5402.   shift
  5403.   if test $# != 0; then
  5404.     # We chose a different compiler from the bogus one.
  5405.     # However, it has the same basename, so the bogon will be chosen
  5406.     # first if we set CC to just the basename; use the full file name.
  5407.     shift
  5408.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  5409.   fi
  5410. fi
  5411. fi
  5412. fi
  5413. CC=$ac_cv_prog_CC
  5414. if test -n "$CC"; then
  5415.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5416. $as_echo "$CC" >&6; }
  5417. else
  5418.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5419. $as_echo "no" >&6; }
  5420. fi
  5421.  
  5422.  
  5423. fi
  5424. if test -z "$CC"; then
  5425.   if test -n "$ac_tool_prefix"; then
  5426.   for ac_prog in cl.exe
  5427.   do
  5428.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5429. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5431. $as_echo_n "checking for $ac_word... " >&6; }
  5432. if ${ac_cv_prog_CC+:} false; then :
  5433.   $as_echo_n "(cached) " >&6
  5434. else
  5435.   if test -n "$CC"; then
  5436.   ac_cv_prog_CC="$CC" # Let the user override the test.
  5437. else
  5438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5439. for as_dir in $PATH
  5440. do
  5441.   IFS=$as_save_IFS
  5442.   test -z "$as_dir" && as_dir=.
  5443.     for ac_exec_ext in '' $ac_executable_extensions; do
  5444.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5445.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  5446.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5447.     break 2
  5448.   fi
  5449. done
  5450.   done
  5451. IFS=$as_save_IFS
  5452.  
  5453. fi
  5454. fi
  5455. CC=$ac_cv_prog_CC
  5456. if test -n "$CC"; then
  5457.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5458. $as_echo "$CC" >&6; }
  5459. else
  5460.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5461. $as_echo "no" >&6; }
  5462. fi
  5463.  
  5464.  
  5465.     test -n "$CC" && break
  5466.   done
  5467. fi
  5468. if test -z "$CC"; then
  5469.   ac_ct_CC=$CC
  5470.   for ac_prog in cl.exe
  5471. do
  5472.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5473. set dummy $ac_prog; ac_word=$2
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5475. $as_echo_n "checking for $ac_word... " >&6; }
  5476. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  5477.   $as_echo_n "(cached) " >&6
  5478. else
  5479.   if test -n "$ac_ct_CC"; then
  5480.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5481. else
  5482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5483. for as_dir in $PATH
  5484. do
  5485.   IFS=$as_save_IFS
  5486.   test -z "$as_dir" && as_dir=.
  5487.     for ac_exec_ext in '' $ac_executable_extensions; do
  5488.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5489.     ac_cv_prog_ac_ct_CC="$ac_prog"
  5490.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5491.     break 2
  5492.   fi
  5493. done
  5494.   done
  5495. IFS=$as_save_IFS
  5496.  
  5497. fi
  5498. fi
  5499. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5500. if test -n "$ac_ct_CC"; then
  5501.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5502. $as_echo "$ac_ct_CC" >&6; }
  5503. else
  5504.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5505. $as_echo "no" >&6; }
  5506. fi
  5507.  
  5508.  
  5509.   test -n "$ac_ct_CC" && break
  5510. done
  5511.  
  5512.   if test "x$ac_ct_CC" = x; then
  5513.     CC=""
  5514.   else
  5515.     case $cross_compiling:$ac_tool_warned in
  5516. yes:)
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5518. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5519. ac_tool_warned=yes ;;
  5520. esac
  5521.     CC=$ac_ct_CC
  5522.   fi
  5523. fi
  5524.  
  5525. fi
  5526.  
  5527.  
  5528. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5529. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5530. as_fn_error $? "no acceptable C compiler found in \$PATH
  5531. See \`config.log' for more details" "$LINENO" 5; }
  5532.  
  5533. # Provide some information about the compiler.
  5534. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  5535. set X $ac_compile
  5536. ac_compiler=$2
  5537. for ac_option in --version -v -V -qversion; do
  5538.   { { ac_try="$ac_compiler $ac_option >&5"
  5539. case "(($ac_try" in
  5540.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5541.   *) ac_try_echo=$ac_try;;
  5542. esac
  5543. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5544. $as_echo "$ac_try_echo"; } >&5
  5545.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5546.   ac_status=$?
  5547.   if test -s conftest.err; then
  5548.     sed '10a\
  5549. ... rest of stderr output deleted ...
  5550.          10q' conftest.err >conftest.er1
  5551.     cat conftest.er1 >&5
  5552.   fi
  5553.   rm -f conftest.er1 conftest.err
  5554.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5555.   test $ac_status = 0; }
  5556. done
  5557.  
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  5559. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  5560. if ${ac_cv_c_compiler_gnu+:} false; then :
  5561.   $as_echo_n "(cached) " >&6
  5562. else
  5563.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5564. /* end confdefs.h.  */
  5565.  
  5566. int
  5567. main ()
  5568. {
  5569. #ifndef __GNUC__
  5570.        choke me
  5571. #endif
  5572.  
  5573.   ;
  5574.   return 0;
  5575. }
  5576. _ACEOF
  5577. if ac_fn_c_try_compile "$LINENO"; then :
  5578.   ac_compiler_gnu=yes
  5579. else
  5580.   ac_compiler_gnu=no
  5581. fi
  5582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5583. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5584.  
  5585. fi
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  5587. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  5588. if test $ac_compiler_gnu = yes; then
  5589.   GCC=yes
  5590. else
  5591.   GCC=
  5592. fi
  5593. ac_test_CFLAGS=${CFLAGS+set}
  5594. ac_save_CFLAGS=$CFLAGS
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  5596. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  5597. if ${ac_cv_prog_cc_g+:} false; then :
  5598.   $as_echo_n "(cached) " >&6
  5599. else
  5600.   ac_save_c_werror_flag=$ac_c_werror_flag
  5601.    ac_c_werror_flag=yes
  5602.    ac_cv_prog_cc_g=no
  5603.    CFLAGS="-g"
  5604.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5605. /* end confdefs.h.  */
  5606.  
  5607. int
  5608. main ()
  5609. {
  5610.  
  5611.   ;
  5612.   return 0;
  5613. }
  5614. _ACEOF
  5615. if ac_fn_c_try_compile "$LINENO"; then :
  5616.   ac_cv_prog_cc_g=yes
  5617. else
  5618.   CFLAGS=""
  5619.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5620. /* end confdefs.h.  */
  5621.  
  5622. int
  5623. main ()
  5624. {
  5625.  
  5626.   ;
  5627.   return 0;
  5628. }
  5629. _ACEOF
  5630. if ac_fn_c_try_compile "$LINENO"; then :
  5631.  
  5632. else
  5633.   ac_c_werror_flag=$ac_save_c_werror_flag
  5634.          CFLAGS="-g"
  5635.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5636. /* end confdefs.h.  */
  5637.  
  5638. int
  5639. main ()
  5640. {
  5641.  
  5642.   ;
  5643.   return 0;
  5644. }
  5645. _ACEOF
  5646. if ac_fn_c_try_compile "$LINENO"; then :
  5647.   ac_cv_prog_cc_g=yes
  5648. fi
  5649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5650. fi
  5651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5652. fi
  5653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5654.    ac_c_werror_flag=$ac_save_c_werror_flag
  5655. fi
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  5657. $as_echo "$ac_cv_prog_cc_g" >&6; }
  5658. if test "$ac_test_CFLAGS" = set; then
  5659.   CFLAGS=$ac_save_CFLAGS
  5660. elif test $ac_cv_prog_cc_g = yes; then
  5661.   if test "$GCC" = yes; then
  5662.     CFLAGS="-g -O2"
  5663.   else
  5664.     CFLAGS="-g"
  5665.   fi
  5666. else
  5667.   if test "$GCC" = yes; then
  5668.     CFLAGS="-O2"
  5669.   else
  5670.     CFLAGS=
  5671.   fi
  5672. fi
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  5674. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5675. if ${ac_cv_prog_cc_c89+:} false; then :
  5676.   $as_echo_n "(cached) " >&6
  5677. else
  5678.   ac_cv_prog_cc_c89=no
  5679. ac_save_CC=$CC
  5680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5681. /* end confdefs.h.  */
  5682. #include <stdarg.h>
  5683. #include <stdio.h>
  5684. struct stat;
  5685. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5686. struct buf { int x; };
  5687. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5688. static char *e (p, i)
  5689.      char **p;
  5690.      int i;
  5691. {
  5692.   return p[i];
  5693. }
  5694. static char *f (char * (*g) (char **, int), char **p, ...)
  5695. {
  5696.   char *s;
  5697.   va_list v;
  5698.   va_start (v,p);
  5699.   s = g (p, va_arg (v,int));
  5700.   va_end (v);
  5701.   return s;
  5702. }
  5703.  
  5704. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5705.    function prototypes and stuff, but not '\xHH' hex character constants.
  5706.    These don't provoke an error unfortunately, instead are silently treated
  5707.    as 'x'.  The following induces an error, until -std is added to get
  5708.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5709.    array size at least.  It's necessary to write '\x00'==0 to get something
  5710.    that's true only with -std.  */
  5711. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5712.  
  5713. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5714.    inside strings and character constants.  */
  5715. #define FOO(x) 'x'
  5716. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5717.  
  5718. int test (int i, double x);
  5719. struct s1 {int (*f) (int a);};
  5720. struct s2 {int (*f) (double a);};
  5721. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5722. int argc;
  5723. char **argv;
  5724. int
  5725. main ()
  5726. {
  5727. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5728.   ;
  5729.   return 0;
  5730. }
  5731. _ACEOF
  5732. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5733.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5734. do
  5735.   CC="$ac_save_CC $ac_arg"
  5736.   if ac_fn_c_try_compile "$LINENO"; then :
  5737.   ac_cv_prog_cc_c89=$ac_arg
  5738. fi
  5739. rm -f core conftest.err conftest.$ac_objext
  5740.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5741. done
  5742. rm -f conftest.$ac_ext
  5743. CC=$ac_save_CC
  5744.  
  5745. fi
  5746. # AC_CACHE_VAL
  5747. case "x$ac_cv_prog_cc_c89" in
  5748.   x)
  5749.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5750. $as_echo "none needed" >&6; } ;;
  5751.   xno)
  5752.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5753. $as_echo "unsupported" >&6; } ;;
  5754.   *)
  5755.     CC="$CC $ac_cv_prog_cc_c89"
  5756.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5757. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5758. esac
  5759. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5760.  
  5761. fi
  5762.  
  5763. ac_ext=c
  5764. ac_cpp='$CPP $CPPFLAGS'
  5765. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5766. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5767. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5768.  
  5769. ac_ext=c
  5770. ac_cpp='$CPP $CPPFLAGS'
  5771. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5772. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5773. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  5775. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  5776. if ${am_cv_prog_cc_c_o+:} false; then :
  5777.   $as_echo_n "(cached) " >&6
  5778. else
  5779.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5780. /* end confdefs.h.  */
  5781.  
  5782. int
  5783. main ()
  5784. {
  5785.  
  5786.   ;
  5787.   return 0;
  5788. }
  5789. _ACEOF
  5790.   # Make sure it works both with $CC and with simple cc.
  5791.   # Following AC_PROG_CC_C_O, we do the test twice because some
  5792.   # compilers refuse to overwrite an existing .o file with -o,
  5793.   # though they will create one.
  5794.   am_cv_prog_cc_c_o=yes
  5795.   for am_i in 1 2; do
  5796.     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  5797.    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  5798.    ac_status=$?
  5799.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5800.    (exit $ac_status); } \
  5801.          && test -f conftest2.$ac_objext; then
  5802.       : OK
  5803.     else
  5804.       am_cv_prog_cc_c_o=no
  5805.       break
  5806.     fi
  5807.   done
  5808.   rm -f core conftest*
  5809.   unset am_i
  5810. fi
  5811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  5812. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  5813. if test "$am_cv_prog_cc_c_o" != yes; then
  5814.    # Losing compiler, so override with the script.
  5815.    # FIXME: It is wrong to rewrite CC.
  5816.    # But if we don't then we get into trouble of one sort or another.
  5817.    # A longer-term fix would be to have automake use am__CC in this case,
  5818.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5819.    CC="$am_aux_dir/compile $CC"
  5820. fi
  5821. ac_ext=c
  5822. ac_cpp='$CPP $CPPFLAGS'
  5823. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5824. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5825. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5826.  
  5827.  
  5828. depcc="$CC"   am_compiler_list=
  5829.  
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5831. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5832. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  5833.   $as_echo_n "(cached) " >&6
  5834. else
  5835.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5836.   # We make a subdir and do the tests there.  Otherwise we can end up
  5837.   # making bogus files that we don't know about and never remove.  For
  5838.   # instance it was reported that on HP-UX the gcc test will end up
  5839.   # making a dummy file named 'D' -- because '-MD' means "put the output
  5840.   # in D".
  5841.   rm -rf conftest.dir
  5842.   mkdir conftest.dir
  5843.   # Copy depcomp to subdir because otherwise we won't find it if we're
  5844.   # using a relative directory.
  5845.   cp "$am_depcomp" conftest.dir
  5846.   cd conftest.dir
  5847.   # We will build objects and dependencies in a subdirectory because
  5848.   # it helps to detect inapplicable dependency modes.  For instance
  5849.   # both Tru64's cc and ICC support -MD to output dependencies as a
  5850.   # side effect of compilation, but ICC will put the dependencies in
  5851.   # the current directory while Tru64 will put them in the object
  5852.   # directory.
  5853.   mkdir sub
  5854.  
  5855.   am_cv_CC_dependencies_compiler_type=none
  5856.   if test "$am_compiler_list" = ""; then
  5857.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5858.   fi
  5859.   am__universal=false
  5860.   case " $depcc " in #(
  5861.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5862.      esac
  5863.  
  5864.   for depmode in $am_compiler_list; do
  5865.     # Setup a source with many dependencies, because some compilers
  5866.     # like to wrap large dependency lists on column 80 (with \), and
  5867.     # we should not choose a depcomp mode which is confused by this.
  5868.     #
  5869.     # We need to recreate these files for each test, as the compiler may
  5870.     # overwrite some of them when testing with obscure command lines.
  5871.     # This happens at least with the AIX C compiler.
  5872.     : > sub/conftest.c
  5873.     for i in 1 2 3 4 5 6; do
  5874.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5875.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5876.       # Solaris 10 /bin/sh.
  5877.       echo '/* dummy */' > sub/conftst$i.h
  5878.     done
  5879.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5880.  
  5881.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5882.     # mode.  It turns out that the SunPro C++ compiler does not properly
  5883.     # handle '-M -o', and we need to detect this.  Also, some Intel
  5884.     # versions had trouble with output in subdirs.
  5885.     am__obj=sub/conftest.${OBJEXT-o}
  5886.     am__minus_obj="-o $am__obj"
  5887.     case $depmode in
  5888.     gcc)
  5889.       # This depmode causes a compiler race in universal mode.
  5890.       test "$am__universal" = false || continue
  5891.       ;;
  5892.     nosideeffect)
  5893.       # After this tag, mechanisms are not by side-effect, so they'll
  5894.       # only be used when explicitly requested.
  5895.       if test "x$enable_dependency_tracking" = xyes; then
  5896.         continue
  5897.       else
  5898.         break
  5899.       fi
  5900.       ;;
  5901.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5902.       # This compiler won't grok '-c -o', but also, the minuso test has
  5903.       # not run yet.  These depmodes are late enough in the game, and
  5904.       # so weak that their functioning should not be impacted.
  5905.       am__obj=conftest.${OBJEXT-o}
  5906.       am__minus_obj=
  5907.       ;;
  5908.     none) break ;;
  5909.     esac
  5910.     if depmode=$depmode \
  5911.        source=sub/conftest.c object=$am__obj \
  5912.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5913.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5914.          >/dev/null 2>conftest.err &&
  5915.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5916.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5917.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5918.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5919.       # icc doesn't choke on unknown options, it will just issue warnings
  5920.       # or remarks (even with -Werror).  So we grep stderr for any message
  5921.       # that says an option was ignored or not supported.
  5922.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5923.       #   icc: Command line warning: ignoring option '-M'; no argument required
  5924.       # The diagnosis changed in icc 8.0:
  5925.       #   icc: Command line remark: option '-MP' not supported
  5926.       if (grep 'ignoring option' conftest.err ||
  5927.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5928.         am_cv_CC_dependencies_compiler_type=$depmode
  5929.         break
  5930.       fi
  5931.     fi
  5932.   done
  5933.  
  5934.   cd ..
  5935.   rm -rf conftest.dir
  5936. else
  5937.   am_cv_CC_dependencies_compiler_type=none
  5938. fi
  5939.  
  5940. fi
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5942. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5943. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5944.  
  5945.  if
  5946.   test "x$enable_dependency_tracking" != xno \
  5947.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5948.   am__fastdepCC_TRUE=
  5949.   am__fastdepCC_FALSE='#'
  5950. else
  5951.   am__fastdepCC_TRUE='#'
  5952.   am__fastdepCC_FALSE=
  5953. fi
  5954.  
  5955.  
  5956.  
  5957.  
  5958.  
  5959. save_cross_compiling=$cross_compiling
  5960. save_ac_tool_prefix=$ac_tool_prefix
  5961. cross_compiling=no
  5962. ac_tool_prefix=
  5963.  
  5964. ac_ext=c
  5965. ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  5966. ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  5967. ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
  5968. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5969. if test -n "$ac_tool_prefix"; then
  5970.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  5971. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5973. $as_echo_n "checking for $ac_word... " >&6; }
  5974. if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
  5975.   $as_echo_n "(cached) " >&6
  5976. else
  5977.   if test -n "$CC_FOR_BUILD"; then
  5978.   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  5979. else
  5980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5981. for as_dir in $PATH
  5982. do
  5983.   IFS=$as_save_IFS
  5984.   test -z "$as_dir" && as_dir=.
  5985.     for ac_exec_ext in '' $ac_executable_extensions; do
  5986.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5987.     ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
  5988.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5989.     break 2
  5990.   fi
  5991. done
  5992.   done
  5993. IFS=$as_save_IFS
  5994.  
  5995. fi
  5996. fi
  5997. CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  5998. if test -n "$CC_FOR_BUILD"; then
  5999.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
  6000. $as_echo "$CC_FOR_BUILD" >&6; }
  6001. else
  6002.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6003. $as_echo "no" >&6; }
  6004. fi
  6005.  
  6006.  
  6007. fi
  6008. if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
  6009.   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  6010.   # Extract the first word of "gcc", so it can be a program name with args.
  6011. set dummy gcc; ac_word=$2
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6013. $as_echo_n "checking for $ac_word... " >&6; }
  6014. if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
  6015.   $as_echo_n "(cached) " >&6
  6016. else
  6017.   if test -n "$ac_ct_CC_FOR_BUILD"; then
  6018.   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  6019. else
  6020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6021. for as_dir in $PATH
  6022. do
  6023.   IFS=$as_save_IFS
  6024.   test -z "$as_dir" && as_dir=.
  6025.     for ac_exec_ext in '' $ac_executable_extensions; do
  6026.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6027.     ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
  6028.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6029.     break 2
  6030.   fi
  6031. done
  6032.   done
  6033. IFS=$as_save_IFS
  6034.  
  6035. fi
  6036. fi
  6037. ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  6038. if test -n "$ac_ct_CC_FOR_BUILD"; then
  6039.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
  6040. $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
  6041. else
  6042.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6043. $as_echo "no" >&6; }
  6044. fi
  6045.  
  6046.   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  6047.     CC_FOR_BUILD=""
  6048.   else
  6049.     case $cross_compiling:$ac_tool_warned in
  6050. yes:)
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
  6052. $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
  6053. ac_tool_warned=yes ;;
  6054. esac
  6055.     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  6056.   fi
  6057. else
  6058.   CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
  6059. fi
  6060.  
  6061. if test -z "$CC_FOR_BUILD"; then
  6062.           if test -n "$ac_tool_prefix"; then
  6063.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  6064. set dummy ${ac_tool_prefix}cc; ac_word=$2
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6066. $as_echo_n "checking for $ac_word... " >&6; }
  6067. if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
  6068.   $as_echo_n "(cached) " >&6
  6069. else
  6070.   if test -n "$CC_FOR_BUILD"; then
  6071.   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  6072. else
  6073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6074. for as_dir in $PATH
  6075. do
  6076.   IFS=$as_save_IFS
  6077.   test -z "$as_dir" && as_dir=.
  6078.     for ac_exec_ext in '' $ac_executable_extensions; do
  6079.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6080.     ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
  6081.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6082.     break 2
  6083.   fi
  6084. done
  6085.   done
  6086. IFS=$as_save_IFS
  6087.  
  6088. fi
  6089. fi
  6090. CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  6091. if test -n "$CC_FOR_BUILD"; then
  6092.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
  6093. $as_echo "$CC_FOR_BUILD" >&6; }
  6094. else
  6095.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6096. $as_echo "no" >&6; }
  6097. fi
  6098.  
  6099.  
  6100.   fi
  6101. fi
  6102. if test -z "$CC_FOR_BUILD"; then
  6103.   # Extract the first word of "cc", so it can be a program name with args.
  6104. set dummy cc; ac_word=$2
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6106. $as_echo_n "checking for $ac_word... " >&6; }
  6107. if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
  6108.   $as_echo_n "(cached) " >&6
  6109. else
  6110.   if test -n "$CC_FOR_BUILD"; then
  6111.   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  6112. else
  6113.   ac_prog_rejected=no
  6114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6115. for as_dir in $PATH
  6116. do
  6117.   IFS=$as_save_IFS
  6118.   test -z "$as_dir" && as_dir=.
  6119.     for ac_exec_ext in '' $ac_executable_extensions; do
  6120.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6121.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  6122.        ac_prog_rejected=yes
  6123.        continue
  6124.      fi
  6125.     ac_cv_prog_CC_FOR_BUILD="cc"
  6126.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6127.     break 2
  6128.   fi
  6129. done
  6130.   done
  6131. IFS=$as_save_IFS
  6132.  
  6133. if test $ac_prog_rejected = yes; then
  6134.   # We found a bogon in the path, so make sure we never use it.
  6135.   set dummy $ac_cv_prog_CC_FOR_BUILD
  6136.   shift
  6137.   if test $# != 0; then
  6138.     # We chose a different compiler from the bogus one.
  6139.     # However, it has the same basename, so the bogon will be chosen
  6140.     # first if we set CC_FOR_BUILD to just the basename; use the full file name.
  6141.     shift
  6142.     ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
  6143.   fi
  6144. fi
  6145. fi
  6146. fi
  6147. CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  6148. if test -n "$CC_FOR_BUILD"; then
  6149.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
  6150. $as_echo "$CC_FOR_BUILD" >&6; }
  6151. else
  6152.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6153. $as_echo "no" >&6; }
  6154. fi
  6155.  
  6156.  
  6157. fi
  6158. if test -z "$CC_FOR_BUILD"; then
  6159.   if test -n "$ac_tool_prefix"; then
  6160.   for ac_prog in cl.exe
  6161.   do
  6162.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6163. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6165. $as_echo_n "checking for $ac_word... " >&6; }
  6166. if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
  6167.   $as_echo_n "(cached) " >&6
  6168. else
  6169.   if test -n "$CC_FOR_BUILD"; then
  6170.   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
  6171. else
  6172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6173. for as_dir in $PATH
  6174. do
  6175.   IFS=$as_save_IFS
  6176.   test -z "$as_dir" && as_dir=.
  6177.     for ac_exec_ext in '' $ac_executable_extensions; do
  6178.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6179.     ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
  6180.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6181.     break 2
  6182.   fi
  6183. done
  6184.   done
  6185. IFS=$as_save_IFS
  6186.  
  6187. fi
  6188. fi
  6189. CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
  6190. if test -n "$CC_FOR_BUILD"; then
  6191.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
  6192. $as_echo "$CC_FOR_BUILD" >&6; }
  6193. else
  6194.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6195. $as_echo "no" >&6; }
  6196. fi
  6197.  
  6198.  
  6199.     test -n "$CC_FOR_BUILD" && break
  6200.   done
  6201. fi
  6202. if test -z "$CC_FOR_BUILD"; then
  6203.   ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
  6204.   for ac_prog in cl.exe
  6205. do
  6206.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  6207. set dummy $ac_prog; ac_word=$2
  6208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6209. $as_echo_n "checking for $ac_word... " >&6; }
  6210. if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
  6211.   $as_echo_n "(cached) " >&6
  6212. else
  6213.   if test -n "$ac_ct_CC_FOR_BUILD"; then
  6214.   ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
  6215. else
  6216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6217. for as_dir in $PATH
  6218. do
  6219.   IFS=$as_save_IFS
  6220.   test -z "$as_dir" && as_dir=.
  6221.     for ac_exec_ext in '' $ac_executable_extensions; do
  6222.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6223.     ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
  6224.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6225.     break 2
  6226.   fi
  6227. done
  6228.   done
  6229. IFS=$as_save_IFS
  6230.  
  6231. fi
  6232. fi
  6233. ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
  6234. if test -n "$ac_ct_CC_FOR_BUILD"; then
  6235.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
  6236. $as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
  6237. else
  6238.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6239. $as_echo "no" >&6; }
  6240. fi
  6241.  
  6242.  
  6243.   test -n "$ac_ct_CC_FOR_BUILD" && break
  6244. done
  6245.  
  6246.   if test "x$ac_ct_CC_FOR_BUILD" = x; then
  6247.     CC_FOR_BUILD=""
  6248.   else
  6249.     case $cross_compiling:$ac_tool_warned in
  6250. yes:)
  6251. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
  6252. $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
  6253. ac_tool_warned=yes ;;
  6254. esac
  6255.     CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
  6256.   fi
  6257. fi
  6258.  
  6259. fi
  6260.  
  6261.  
  6262. test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6263. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6264. as_fn_error $? "no acceptable C compiler found in \$PATH
  6265. See \`config.log' for more details" "$LINENO" 5; }
  6266.  
  6267. # Provide some information about the compiler.
  6268. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  6269. set X $ac_build_compile
  6270. ac_compiler=$2
  6271. for ac_option in --version -v -V -qversion; do
  6272.   { { ac_try="$ac_compiler $ac_option >&5"
  6273. case "(($ac_try" in
  6274.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6275.   *) ac_try_echo=$ac_try;;
  6276. esac
  6277. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6278. $as_echo "$ac_try_echo"; } >&5
  6279.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6280.   ac_status=$?
  6281.   if test -s conftest.err; then
  6282.     sed '10a\
  6283. ... rest of stderr output deleted ...
  6284.          10q' conftest.err >conftest.er1
  6285.     cat conftest.er1 >&5
  6286.   fi
  6287.   rm -f conftest.er1 conftest.err
  6288.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6289.   test $ac_status = 0; }
  6290. done
  6291.  
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  6293. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  6294. if ${ac_cv_c_compiler_gnu+:} false; then :
  6295.   $as_echo_n "(cached) " >&6
  6296. else
  6297.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6298. /* end confdefs.h.  */
  6299.  
  6300. int
  6301. main ()
  6302. {
  6303. #ifndef __GNUC__
  6304.        choke me
  6305. #endif
  6306.  
  6307.   ;
  6308.   return 0;
  6309. }
  6310. _ACEOF
  6311. if ac_fn_c_try_compile "$LINENO"; then :
  6312.   ac_compiler_gnu=yes
  6313. else
  6314.   ac_compiler_gnu=no
  6315. fi
  6316. rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6317. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  6318.  
  6319. fi
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  6321. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  6322. if test $ac_compiler_gnu = yes; then
  6323.   GCC=yes
  6324. else
  6325.   GCC=
  6326. fi
  6327. ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
  6328. ac_save_CFLAGS=$CFLAGS_FOR_BUILD
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
  6330. $as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
  6331. if ${ac_cv_build_prog_cc_g+:} false; then :
  6332.   $as_echo_n "(cached) " >&6
  6333. else
  6334.   ac_save_c_werror_flag=$ac_c_werror_flag
  6335.    ac_c_werror_flag=yes
  6336.    ac_cv_build_prog_cc_g=no
  6337.    CFLAGS_FOR_BUILD="-g"
  6338.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6339. /* end confdefs.h.  */
  6340.  
  6341. int
  6342. main ()
  6343. {
  6344.  
  6345.   ;
  6346.   return 0;
  6347. }
  6348. _ACEOF
  6349. if ac_fn_c_try_compile "$LINENO"; then :
  6350.   ac_cv_build_prog_cc_g=yes
  6351. else
  6352.   CFLAGS_FOR_BUILD=""
  6353.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6354. /* end confdefs.h.  */
  6355.  
  6356. int
  6357. main ()
  6358. {
  6359.  
  6360.   ;
  6361.   return 0;
  6362. }
  6363. _ACEOF
  6364. if ac_fn_c_try_compile "$LINENO"; then :
  6365.  
  6366. else
  6367.   ac_c_werror_flag=$ac_save_c_werror_flag
  6368.          CFLAGS_FOR_BUILD="-g"
  6369.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6370. /* end confdefs.h.  */
  6371.  
  6372. int
  6373. main ()
  6374. {
  6375.  
  6376.   ;
  6377.   return 0;
  6378. }
  6379. _ACEOF
  6380. if ac_fn_c_try_compile "$LINENO"; then :
  6381.   ac_cv_build_prog_cc_g=yes
  6382. fi
  6383. rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6384. fi
  6385. rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6386. fi
  6387. rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
  6388.    ac_c_werror_flag=$ac_save_c_werror_flag
  6389. fi
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
  6391. $as_echo "$ac_cv_build_prog_cc_g" >&6; }
  6392. if test "$ac_test_CFLAGS" = set; then
  6393.   CFLAGS_FOR_BUILD=$ac_save_CFLAGS
  6394. elif test $ac_cv_build_prog_cc_g = yes; then
  6395.   if test "$GCC" = yes; then
  6396.     CFLAGS_FOR_BUILD="-g -O2"
  6397.   else
  6398.     CFLAGS_FOR_BUILD="-g"
  6399.   fi
  6400. else
  6401.   if test "$GCC" = yes; then
  6402.     CFLAGS_FOR_BUILD="-O2"
  6403.   else
  6404.     CFLAGS_FOR_BUILD=
  6405.   fi
  6406. fi
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
  6408. $as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
  6409. if ${ac_cv_prog_cc_c89+:} false; then :
  6410.   $as_echo_n "(cached) " >&6
  6411. else
  6412.   ac_cv_prog_cc_c89=no
  6413. ac_save_CC=$CC_FOR_BUILD
  6414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6415. /* end confdefs.h.  */
  6416. #include <stdarg.h>
  6417. #include <stdio.h>
  6418. struct stat;
  6419. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  6420. struct buf { int x; };
  6421. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  6422. static char *e (p, i)
  6423.      char **p;
  6424.      int i;
  6425. {
  6426.   return p[i];
  6427. }
  6428. static char *f (char * (*g) (char **, int), char **p, ...)
  6429. {
  6430.   char *s;
  6431.   va_list v;
  6432.   va_start (v,p);
  6433.   s = g (p, va_arg (v,int));
  6434.   va_end (v);
  6435.   return s;
  6436. }
  6437.  
  6438. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  6439.    function prototypes and stuff, but not '\xHH' hex character constants.
  6440.    These don't provoke an error unfortunately, instead are silently treated
  6441.    as 'x'.  The following induces an error, until -std is added to get
  6442.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  6443.    array size at least.  It's necessary to write '\x00'==0 to get something
  6444.    that's true only with -std.  */
  6445. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  6446.  
  6447. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  6448.    inside strings and character constants.  */
  6449. #define FOO(x) 'x'
  6450. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  6451.  
  6452. int test (int i, double x);
  6453. struct s1 {int (*f) (int a);};
  6454. struct s2 {int (*f) (double a);};
  6455. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  6456. int argc;
  6457. char **argv;
  6458. int
  6459. main ()
  6460. {
  6461. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  6462.   ;
  6463.   return 0;
  6464. }
  6465. _ACEOF
  6466. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  6467.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  6468. do
  6469.   CC_FOR_BUILD="$ac_save_CC $ac_arg"
  6470.   if ac_fn_c_try_compile "$LINENO"; then :
  6471.   ac_cv_prog_cc_c89=$ac_arg
  6472. fi
  6473. rm -f core conftest.err conftest.$ac_build_objext
  6474.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  6475. done
  6476. rm -f conftest.$ac_ext
  6477. CC_FOR_BUILD=$ac_save_CC
  6478.  
  6479. fi
  6480. # AC_CACHE_VAL
  6481. case "x$ac_cv_prog_cc_c89" in
  6482.   x)
  6483.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  6484. $as_echo "none needed" >&6; } ;;
  6485.   xno)
  6486.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  6487. $as_echo "unsupported" >&6; } ;;
  6488.   *)
  6489.     CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
  6490.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  6491. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  6492. esac
  6493. if test "x$ac_cv_prog_cc_c89" != xno; then :
  6494.  
  6495. fi
  6496.  
  6497. ac_ext=c
  6498. ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6499. ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6500. ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
  6501. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6502.  
  6503. ac_ext=c
  6504. ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6505. ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6506. ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
  6507. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
  6509. $as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
  6510. if ${am_cv_prog_cc_c_o+:} false; then :
  6511.   $as_echo_n "(cached) " >&6
  6512. else
  6513.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6514. /* end confdefs.h.  */
  6515.  
  6516. int
  6517. main ()
  6518. {
  6519.  
  6520.   ;
  6521.   return 0;
  6522. }
  6523. _ACEOF
  6524.   # Make sure it works both with $CC and with simple cc.
  6525.   # Following AC_PROG_CC_C_O, we do the test twice because some
  6526.   # compilers refuse to overwrite an existing .o file with -o,
  6527.   # though they will create one.
  6528.   am_cv_prog_cc_c_o=yes
  6529.   for am_i in 1 2; do
  6530.     if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
  6531.    ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
  6532.    ac_status=$?
  6533.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6534.    (exit $ac_status); } \
  6535.          && test -f conftest2.$ac_build_objext; then
  6536.       : OK
  6537.     else
  6538.       am_cv_prog_cc_c_o=no
  6539.       break
  6540.     fi
  6541.   done
  6542.   rm -f core conftest*
  6543.   unset am_i
  6544. fi
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  6546. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  6547. if test "$am_cv_prog_cc_c_o" != yes; then
  6548.    # Losing compiler, so override with the script.
  6549.    # FIXME: It is wrong to rewrite CC.
  6550.    # But if we don't then we get into trouble of one sort or another.
  6551.    # A longer-term fix would be to have automake use am__CC in this case,
  6552.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  6553.    CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
  6554. fi
  6555. ac_ext=c
  6556. ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6557. ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6558. ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
  6559. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6560.  
  6561.  
  6562. depcc="$CC_FOR_BUILD"   am_compiler_list=
  6563.  
  6564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6565. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6566. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  6567.   $as_echo_n "(cached) " >&6
  6568. else
  6569.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6570.   # We make a subdir and do the tests there.  Otherwise we can end up
  6571.   # making bogus files that we don't know about and never remove.  For
  6572.   # instance it was reported that on HP-UX the gcc test will end up
  6573.   # making a dummy file named 'D' -- because '-MD' means "put the output
  6574.   # in D".
  6575.   rm -rf conftest.dir
  6576.   mkdir conftest.dir
  6577.   # Copy depcomp to subdir because otherwise we won't find it if we're
  6578.   # using a relative directory.
  6579.   cp "$am_depcomp" conftest.dir
  6580.   cd conftest.dir
  6581.   # We will build objects and dependencies in a subdirectory because
  6582.   # it helps to detect inapplicable dependency modes.  For instance
  6583.   # both Tru64's cc and ICC support -MD to output dependencies as a
  6584.   # side effect of compilation, but ICC will put the dependencies in
  6585.   # the current directory while Tru64 will put them in the object
  6586.   # directory.
  6587.   mkdir sub
  6588.  
  6589.   am_cv_CC_dependencies_compiler_type=none
  6590.   if test "$am_compiler_list" = ""; then
  6591.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6592.   fi
  6593.   am__universal=false
  6594.   case " $depcc " in #(
  6595.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6596.      esac
  6597.  
  6598.   for depmode in $am_compiler_list; do
  6599.     # Setup a source with many dependencies, because some compilers
  6600.     # like to wrap large dependency lists on column 80 (with \), and
  6601.     # we should not choose a depcomp mode which is confused by this.
  6602.     #
  6603.     # We need to recreate these files for each test, as the compiler may
  6604.     # overwrite some of them when testing with obscure command lines.
  6605.     # This happens at least with the AIX C compiler.
  6606.     : > sub/conftest.c
  6607.     for i in 1 2 3 4 5 6; do
  6608.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6609.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  6610.       # Solaris 10 /bin/sh.
  6611.       echo '/* dummy */' > sub/conftst$i.h
  6612.     done
  6613.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6614.  
  6615.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  6616.     # mode.  It turns out that the SunPro C++ compiler does not properly
  6617.     # handle '-M -o', and we need to detect this.  Also, some Intel
  6618.     # versions had trouble with output in subdirs.
  6619.     am__obj=sub/conftest.${OBJEXT-o}
  6620.     am__minus_obj="-o $am__obj"
  6621.     case $depmode in
  6622.     gcc)
  6623.       # This depmode causes a compiler race in universal mode.
  6624.       test "$am__universal" = false || continue
  6625.       ;;
  6626.     nosideeffect)
  6627.       # After this tag, mechanisms are not by side-effect, so they'll
  6628.       # only be used when explicitly requested.
  6629.       if test "x$enable_dependency_tracking" = xyes; then
  6630.         continue
  6631.       else
  6632.         break
  6633.       fi
  6634.       ;;
  6635.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  6636.       # This compiler won't grok '-c -o', but also, the minuso test has
  6637.       # not run yet.  These depmodes are late enough in the game, and
  6638.       # so weak that their functioning should not be impacted.
  6639.       am__obj=conftest.${OBJEXT-o}
  6640.       am__minus_obj=
  6641.       ;;
  6642.     none) break ;;
  6643.     esac
  6644.     if depmode=$depmode \
  6645.        source=sub/conftest.c object=$am__obj \
  6646.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6647.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6648.          >/dev/null 2>conftest.err &&
  6649.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6650.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6651.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6652.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6653.       # icc doesn't choke on unknown options, it will just issue warnings
  6654.       # or remarks (even with -Werror).  So we grep stderr for any message
  6655.       # that says an option was ignored or not supported.
  6656.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  6657.       #   icc: Command line warning: ignoring option '-M'; no argument required
  6658.       # The diagnosis changed in icc 8.0:
  6659.       #   icc: Command line remark: option '-MP' not supported
  6660.       if (grep 'ignoring option' conftest.err ||
  6661.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6662.         am_cv_CC_dependencies_compiler_type=$depmode
  6663.         break
  6664.       fi
  6665.     fi
  6666.   done
  6667.  
  6668.   cd ..
  6669.   rm -rf conftest.dir
  6670. else
  6671.   am_cv_CC_dependencies_compiler_type=none
  6672. fi
  6673.  
  6674. fi
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  6676. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  6677. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  6678.  
  6679.  if
  6680.   test "x$enable_dependency_tracking" != xno \
  6681.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  6682.   am__fastdepCC_TRUE=
  6683.   am__fastdepCC_FALSE='#'
  6684. else
  6685.   am__fastdepCC_TRUE='#'
  6686.   am__fastdepCC_FALSE=
  6687. fi
  6688.  
  6689.  
  6690. ac_ext=c
  6691. ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6692. ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6693. ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
  6694. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6696. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6697. # On Suns, sometimes $CPP names a directory.
  6698. if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
  6699.   CPP_FOR_BUILD=
  6700. fi
  6701. if test -z "$CPP_FOR_BUILD"; then
  6702.   if ${ac_cv_build_prog_CPP+:} false; then :
  6703.   $as_echo_n "(cached) " >&6
  6704. else
  6705.       # Double quotes because CPP needs to be expanded
  6706.     for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
  6707.     do
  6708.       ac_preproc_ok=false
  6709. for ac_c_preproc_warn_flag in '' yes
  6710. do
  6711.   # Use a header file that comes with gcc, so configuring glibc
  6712.   # with a fresh cross-compiler works.
  6713.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6714.   # <limits.h> exists even on freestanding compilers.
  6715.   # On the NeXT, cc -E runs the code through the compiler's parser,
  6716.   # not just through cpp. "Syntax error" is here to catch this case.
  6717.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6718. /* end confdefs.h.  */
  6719. #ifdef __STDC__
  6720. # include <limits.h>
  6721. #else
  6722. # include <assert.h>
  6723. #endif
  6724.                      Syntax error
  6725. _ACEOF
  6726. if ac_fn_c_try_cpp "$LINENO"; then :
  6727.  
  6728. else
  6729.   # Broken: fails on valid input.
  6730. continue
  6731. fi
  6732. rm -f conftest.err conftest.i conftest.$ac_ext
  6733.  
  6734.   # OK, works on sane cases.  Now check whether nonexistent headers
  6735.   # can be detected and how.
  6736.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6737. /* end confdefs.h.  */
  6738. #include <ac_nonexistent.h>
  6739. _ACEOF
  6740. if ac_fn_c_try_cpp "$LINENO"; then :
  6741.   # Broken: success on invalid input.
  6742. continue
  6743. else
  6744.   # Passes both tests.
  6745. ac_preproc_ok=:
  6746. break
  6747. fi
  6748. rm -f conftest.err conftest.i conftest.$ac_ext
  6749.  
  6750. done
  6751. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6752. rm -f conftest.i conftest.err conftest.$ac_ext
  6753. if $ac_preproc_ok; then :
  6754.   break
  6755. fi
  6756.  
  6757.     done
  6758.     ac_cv_build_prog_CPP=$CPP_FOR_BUILD
  6759.  
  6760. fi
  6761.   CPP_FOR_BUILD=$ac_cv_build_prog_CPP
  6762. else
  6763.   ac_cv_build_prog_CPP=$CPP_FOR_BUILD
  6764. fi
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
  6766. $as_echo "$CPP_FOR_BUILD" >&6; }
  6767. ac_preproc_ok=false
  6768. for ac_c_preproc_warn_flag in '' yes
  6769. do
  6770.   # Use a header file that comes with gcc, so configuring glibc
  6771.   # with a fresh cross-compiler works.
  6772.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6773.   # <limits.h> exists even on freestanding compilers.
  6774.   # On the NeXT, cc -E runs the code through the compiler's parser,
  6775.   # not just through cpp. "Syntax error" is here to catch this case.
  6776.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6777. /* end confdefs.h.  */
  6778. #ifdef __STDC__
  6779. # include <limits.h>
  6780. #else
  6781. # include <assert.h>
  6782. #endif
  6783.                      Syntax error
  6784. _ACEOF
  6785. if ac_fn_c_try_cpp "$LINENO"; then :
  6786.  
  6787. else
  6788.   # Broken: fails on valid input.
  6789. continue
  6790. fi
  6791. rm -f conftest.err conftest.i conftest.$ac_ext
  6792.  
  6793.   # OK, works on sane cases.  Now check whether nonexistent headers
  6794.   # can be detected and how.
  6795.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6796. /* end confdefs.h.  */
  6797. #include <ac_nonexistent.h>
  6798. _ACEOF
  6799. if ac_fn_c_try_cpp "$LINENO"; then :
  6800.   # Broken: success on invalid input.
  6801. continue
  6802. else
  6803.   # Passes both tests.
  6804. ac_preproc_ok=:
  6805. break
  6806. fi
  6807. rm -f conftest.err conftest.i conftest.$ac_ext
  6808.  
  6809. done
  6810. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6811. rm -f conftest.i conftest.err conftest.$ac_ext
  6812. if $ac_preproc_ok; then :
  6813.  
  6814. else
  6815.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6816. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6817. as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
  6818. See \`config.log' for more details" "$LINENO" 5; }
  6819. fi
  6820.  
  6821. ac_ext=c
  6822. ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  6823. ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  6824. ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
  6825. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6826.  
  6827.  
  6828.  
  6829. ac_tool_prefix=$save_ac_tool_prefix
  6830. cross_compiling=$save_cross_compiling
  6831.  
  6832.  
  6833. BUILD_EXEEXT=$ac_build_exeext
  6834. BUILD_OBJEXT=$ac_build_objext
  6835.  
  6836. ac_ext=cpp
  6837. ac_cpp='$CXXCPP $CPPFLAGS'
  6838. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6839. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6840. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6841. if test -z "$CXX"; then
  6842.   if test -n "$CCC"; then
  6843.     CXX=$CCC
  6844.   else
  6845.     if test -n "$ac_tool_prefix"; then
  6846.   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6847.   do
  6848.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6849. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6851. $as_echo_n "checking for $ac_word... " >&6; }
  6852. if ${ac_cv_prog_CXX+:} false; then :
  6853.   $as_echo_n "(cached) " >&6
  6854. else
  6855.   if test -n "$CXX"; then
  6856.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6857. else
  6858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6859. for as_dir in $PATH
  6860. do
  6861.   IFS=$as_save_IFS
  6862.   test -z "$as_dir" && as_dir=.
  6863.     for ac_exec_ext in '' $ac_executable_extensions; do
  6864.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6865.     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6866.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6867.     break 2
  6868.   fi
  6869. done
  6870.   done
  6871. IFS=$as_save_IFS
  6872.  
  6873. fi
  6874. fi
  6875. CXX=$ac_cv_prog_CXX
  6876. if test -n "$CXX"; then
  6877.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6878. $as_echo "$CXX" >&6; }
  6879. else
  6880.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6881. $as_echo "no" >&6; }
  6882. fi
  6883.  
  6884.  
  6885.     test -n "$CXX" && break
  6886.   done
  6887. fi
  6888. if test -z "$CXX"; then
  6889.   ac_ct_CXX=$CXX
  6890.   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6891. do
  6892.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  6893. set dummy $ac_prog; ac_word=$2
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6895. $as_echo_n "checking for $ac_word... " >&6; }
  6896. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  6897.   $as_echo_n "(cached) " >&6
  6898. else
  6899.   if test -n "$ac_ct_CXX"; then
  6900.   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6901. else
  6902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6903. for as_dir in $PATH
  6904. do
  6905.   IFS=$as_save_IFS
  6906.   test -z "$as_dir" && as_dir=.
  6907.     for ac_exec_ext in '' $ac_executable_extensions; do
  6908.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6909.     ac_cv_prog_ac_ct_CXX="$ac_prog"
  6910.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6911.     break 2
  6912.   fi
  6913. done
  6914.   done
  6915. IFS=$as_save_IFS
  6916.  
  6917. fi
  6918. fi
  6919. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6920. if test -n "$ac_ct_CXX"; then
  6921.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6922. $as_echo "$ac_ct_CXX" >&6; }
  6923. else
  6924.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6925. $as_echo "no" >&6; }
  6926. fi
  6927.  
  6928.  
  6929.   test -n "$ac_ct_CXX" && break
  6930. done
  6931.  
  6932.   if test "x$ac_ct_CXX" = x; then
  6933.     CXX="g++"
  6934.   else
  6935.     case $cross_compiling:$ac_tool_warned in
  6936. yes:)
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6938. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6939. ac_tool_warned=yes ;;
  6940. esac
  6941.     CXX=$ac_ct_CXX
  6942.   fi
  6943. fi
  6944.  
  6945.   fi
  6946. fi
  6947. # Provide some information about the compiler.
  6948. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6949. set X $ac_compile
  6950. ac_compiler=$2
  6951. for ac_option in --version -v -V -qversion; do
  6952.   { { ac_try="$ac_compiler $ac_option >&5"
  6953. case "(($ac_try" in
  6954.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6955.   *) ac_try_echo=$ac_try;;
  6956. esac
  6957. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6958. $as_echo "$ac_try_echo"; } >&5
  6959.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6960.   ac_status=$?
  6961.   if test -s conftest.err; then
  6962.     sed '10a\
  6963. ... rest of stderr output deleted ...
  6964.          10q' conftest.err >conftest.er1
  6965.     cat conftest.er1 >&5
  6966.   fi
  6967.   rm -f conftest.er1 conftest.err
  6968.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6969.   test $ac_status = 0; }
  6970. done
  6971.  
  6972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6973. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6974. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  6975.   $as_echo_n "(cached) " >&6
  6976. else
  6977.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6978. /* end confdefs.h.  */
  6979.  
  6980. int
  6981. main ()
  6982. {
  6983. #ifndef __GNUC__
  6984.        choke me
  6985. #endif
  6986.  
  6987.   ;
  6988.   return 0;
  6989. }
  6990. _ACEOF
  6991. if ac_fn_cxx_try_compile "$LINENO"; then :
  6992.   ac_compiler_gnu=yes
  6993. else
  6994.   ac_compiler_gnu=no
  6995. fi
  6996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6997. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6998.  
  6999. fi
  7000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  7001. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  7002. if test $ac_compiler_gnu = yes; then
  7003.   GXX=yes
  7004. else
  7005.   GXX=
  7006. fi
  7007. ac_test_CXXFLAGS=${CXXFLAGS+set}
  7008. ac_save_CXXFLAGS=$CXXFLAGS
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  7010. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  7011. if ${ac_cv_prog_cxx_g+:} false; then :
  7012.   $as_echo_n "(cached) " >&6
  7013. else
  7014.   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  7015.    ac_cxx_werror_flag=yes
  7016.    ac_cv_prog_cxx_g=no
  7017.    CXXFLAGS="-g"
  7018.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7019. /* end confdefs.h.  */
  7020.  
  7021. int
  7022. main ()
  7023. {
  7024.  
  7025.   ;
  7026.   return 0;
  7027. }
  7028. _ACEOF
  7029. if ac_fn_cxx_try_compile "$LINENO"; then :
  7030.   ac_cv_prog_cxx_g=yes
  7031. else
  7032.   CXXFLAGS=""
  7033.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7034. /* end confdefs.h.  */
  7035.  
  7036. int
  7037. main ()
  7038. {
  7039.  
  7040.   ;
  7041.   return 0;
  7042. }
  7043. _ACEOF
  7044. if ac_fn_cxx_try_compile "$LINENO"; then :
  7045.  
  7046. else
  7047.   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7048.          CXXFLAGS="-g"
  7049.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7050. /* end confdefs.h.  */
  7051.  
  7052. int
  7053. main ()
  7054. {
  7055.  
  7056.   ;
  7057.   return 0;
  7058. }
  7059. _ACEOF
  7060. if ac_fn_cxx_try_compile "$LINENO"; then :
  7061.   ac_cv_prog_cxx_g=yes
  7062. fi
  7063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7064. fi
  7065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7066. fi
  7067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7068.    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7069. fi
  7070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  7071. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  7072. if test "$ac_test_CXXFLAGS" = set; then
  7073.   CXXFLAGS=$ac_save_CXXFLAGS
  7074. elif test $ac_cv_prog_cxx_g = yes; then
  7075.   if test "$GXX" = yes; then
  7076.     CXXFLAGS="-g -O2"
  7077.   else
  7078.     CXXFLAGS="-g"
  7079.   fi
  7080. else
  7081.   if test "$GXX" = yes; then
  7082.     CXXFLAGS="-O2"
  7083.   else
  7084.     CXXFLAGS=
  7085.   fi
  7086. fi
  7087. ac_ext=c
  7088. ac_cpp='$CPP $CPPFLAGS'
  7089. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7090. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7091. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7092.  
  7093. depcc="$CXX"  am_compiler_list=
  7094.  
  7095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  7096. $as_echo_n "checking dependency style of $depcc... " >&6; }
  7097. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  7098.   $as_echo_n "(cached) " >&6
  7099. else
  7100.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7101.   # We make a subdir and do the tests there.  Otherwise we can end up
  7102.   # making bogus files that we don't know about and never remove.  For
  7103.   # instance it was reported that on HP-UX the gcc test will end up
  7104.   # making a dummy file named 'D' -- because '-MD' means "put the output
  7105.   # in D".
  7106.   rm -rf conftest.dir
  7107.   mkdir conftest.dir
  7108.   # Copy depcomp to subdir because otherwise we won't find it if we're
  7109.   # using a relative directory.
  7110.   cp "$am_depcomp" conftest.dir
  7111.   cd conftest.dir
  7112.   # We will build objects and dependencies in a subdirectory because
  7113.   # it helps to detect inapplicable dependency modes.  For instance
  7114.   # both Tru64's cc and ICC support -MD to output dependencies as a
  7115.   # side effect of compilation, but ICC will put the dependencies in
  7116.   # the current directory while Tru64 will put them in the object
  7117.   # directory.
  7118.   mkdir sub
  7119.  
  7120.   am_cv_CXX_dependencies_compiler_type=none
  7121.   if test "$am_compiler_list" = ""; then
  7122.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  7123.   fi
  7124.   am__universal=false
  7125.   case " $depcc " in #(
  7126.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7127.      esac
  7128.  
  7129.   for depmode in $am_compiler_list; do
  7130.     # Setup a source with many dependencies, because some compilers
  7131.     # like to wrap large dependency lists on column 80 (with \), and
  7132.     # we should not choose a depcomp mode which is confused by this.
  7133.     #
  7134.     # We need to recreate these files for each test, as the compiler may
  7135.     # overwrite some of them when testing with obscure command lines.
  7136.     # This happens at least with the AIX C compiler.
  7137.     : > sub/conftest.c
  7138.     for i in 1 2 3 4 5 6; do
  7139.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7140.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  7141.       # Solaris 10 /bin/sh.
  7142.       echo '/* dummy */' > sub/conftst$i.h
  7143.     done
  7144.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7145.  
  7146.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  7147.     # mode.  It turns out that the SunPro C++ compiler does not properly
  7148.     # handle '-M -o', and we need to detect this.  Also, some Intel
  7149.     # versions had trouble with output in subdirs.
  7150.     am__obj=sub/conftest.${OBJEXT-o}
  7151.     am__minus_obj="-o $am__obj"
  7152.     case $depmode in
  7153.     gcc)
  7154.       # This depmode causes a compiler race in universal mode.
  7155.       test "$am__universal" = false || continue
  7156.       ;;
  7157.     nosideeffect)
  7158.       # After this tag, mechanisms are not by side-effect, so they'll
  7159.       # only be used when explicitly requested.
  7160.       if test "x$enable_dependency_tracking" = xyes; then
  7161.         continue
  7162.       else
  7163.         break
  7164.       fi
  7165.       ;;
  7166.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  7167.       # This compiler won't grok '-c -o', but also, the minuso test has
  7168.       # not run yet.  These depmodes are late enough in the game, and
  7169.       # so weak that their functioning should not be impacted.
  7170.       am__obj=conftest.${OBJEXT-o}
  7171.       am__minus_obj=
  7172.       ;;
  7173.     none) break ;;
  7174.     esac
  7175.     if depmode=$depmode \
  7176.        source=sub/conftest.c object=$am__obj \
  7177.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7178.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7179.          >/dev/null 2>conftest.err &&
  7180.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7181.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7182.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7183.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7184.       # icc doesn't choke on unknown options, it will just issue warnings
  7185.       # or remarks (even with -Werror).  So we grep stderr for any message
  7186.       # that says an option was ignored or not supported.
  7187.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  7188.       #   icc: Command line warning: ignoring option '-M'; no argument required
  7189.       # The diagnosis changed in icc 8.0:
  7190.       #   icc: Command line remark: option '-MP' not supported
  7191.       if (grep 'ignoring option' conftest.err ||
  7192.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7193.         am_cv_CXX_dependencies_compiler_type=$depmode
  7194.         break
  7195.       fi
  7196.     fi
  7197.   done
  7198.  
  7199.   cd ..
  7200.   rm -rf conftest.dir
  7201. else
  7202.   am_cv_CXX_dependencies_compiler_type=none
  7203. fi
  7204.  
  7205. fi
  7206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  7207. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  7208. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  7209.  
  7210.  if
  7211.   test "x$enable_dependency_tracking" != xno \
  7212.   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  7213.   am__fastdepCXX_TRUE=
  7214.   am__fastdepCXX_FALSE='#'
  7215. else
  7216.   am__fastdepCXX_TRUE='#'
  7217.   am__fastdepCXX_FALSE=
  7218. fi
  7219.  
  7220.  
  7221. ac_ext=cpp
  7222. ac_cpp='$CXXCPP $CPPFLAGS'
  7223. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7224. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7225. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  7227. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  7228. if test -z "$CXXCPP"; then
  7229.   if ${ac_cv_prog_CXXCPP+:} false; then :
  7230.   $as_echo_n "(cached) " >&6
  7231. else
  7232.       # Double quotes because CXXCPP needs to be expanded
  7233.     for CXXCPP in "$CXX -E" "/lib/cpp"
  7234.     do
  7235.       ac_preproc_ok=false
  7236. for ac_cxx_preproc_warn_flag in '' yes
  7237. do
  7238.   # Use a header file that comes with gcc, so configuring glibc
  7239.   # with a fresh cross-compiler works.
  7240.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7241.   # <limits.h> exists even on freestanding compilers.
  7242.   # On the NeXT, cc -E runs the code through the compiler's parser,
  7243.   # not just through cpp. "Syntax error" is here to catch this case.
  7244.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7245. /* end confdefs.h.  */
  7246. #ifdef __STDC__
  7247. # include <limits.h>
  7248. #else
  7249. # include <assert.h>
  7250. #endif
  7251.                      Syntax error
  7252. _ACEOF
  7253. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7254.  
  7255. else
  7256.   # Broken: fails on valid input.
  7257. continue
  7258. fi
  7259. rm -f conftest.err conftest.i conftest.$ac_ext
  7260.  
  7261.   # OK, works on sane cases.  Now check whether nonexistent headers
  7262.   # can be detected and how.
  7263.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7264. /* end confdefs.h.  */
  7265. #include <ac_nonexistent.h>
  7266. _ACEOF
  7267. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7268.   # Broken: success on invalid input.
  7269. continue
  7270. else
  7271.   # Passes both tests.
  7272. ac_preproc_ok=:
  7273. break
  7274. fi
  7275. rm -f conftest.err conftest.i conftest.$ac_ext
  7276.  
  7277. done
  7278. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7279. rm -f conftest.i conftest.err conftest.$ac_ext
  7280. if $ac_preproc_ok; then :
  7281.   break
  7282. fi
  7283.  
  7284.     done
  7285.     ac_cv_prog_CXXCPP=$CXXCPP
  7286.  
  7287. fi
  7288.   CXXCPP=$ac_cv_prog_CXXCPP
  7289. else
  7290.   ac_cv_prog_CXXCPP=$CXXCPP
  7291. fi
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  7293. $as_echo "$CXXCPP" >&6; }
  7294. ac_preproc_ok=false
  7295. for ac_cxx_preproc_warn_flag in '' yes
  7296. do
  7297.   # Use a header file that comes with gcc, so configuring glibc
  7298.   # with a fresh cross-compiler works.
  7299.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7300.   # <limits.h> exists even on freestanding compilers.
  7301.   # On the NeXT, cc -E runs the code through the compiler's parser,
  7302.   # not just through cpp. "Syntax error" is here to catch this case.
  7303.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7304. /* end confdefs.h.  */
  7305. #ifdef __STDC__
  7306. # include <limits.h>
  7307. #else
  7308. # include <assert.h>
  7309. #endif
  7310.                      Syntax error
  7311. _ACEOF
  7312. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7313.  
  7314. else
  7315.   # Broken: fails on valid input.
  7316. continue
  7317. fi
  7318. rm -f conftest.err conftest.i conftest.$ac_ext
  7319.  
  7320.   # OK, works on sane cases.  Now check whether nonexistent headers
  7321.   # can be detected and how.
  7322.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7323. /* end confdefs.h.  */
  7324. #include <ac_nonexistent.h>
  7325. _ACEOF
  7326. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7327.   # Broken: success on invalid input.
  7328. continue
  7329. else
  7330.   # Passes both tests.
  7331. ac_preproc_ok=:
  7332. break
  7333. fi
  7334. rm -f conftest.err conftest.i conftest.$ac_ext
  7335.  
  7336. done
  7337. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7338. rm -f conftest.i conftest.err conftest.$ac_ext
  7339. if $ac_preproc_ok; then :
  7340.  
  7341. else
  7342.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7343. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7344. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  7345. See \`config.log' for more details" "$LINENO" 5; }
  7346. fi
  7347.  
  7348. ac_ext=c
  7349. ac_cpp='$CPP $CPPFLAGS'
  7350. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7351. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7352. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7353.  
  7354.  
  7355.  
  7356. save_cross_compiling=$cross_compiling
  7357. save_ac_tool_prefix=$ac_tool_prefix
  7358. cross_compiling=no
  7359. ac_tool_prefix=
  7360.  
  7361. ac_ext=cpp
  7362. ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  7363. ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  7364. ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7365. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7366. if test -z "$CXX_FOR_BUILD"; then
  7367.   if test -n "$CCC"; then
  7368.     CXX_FOR_BUILD=$CCC
  7369.   else
  7370.     if test -n "$ac_tool_prefix"; then
  7371.   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7372.   do
  7373.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7374. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7376. $as_echo_n "checking for $ac_word... " >&6; }
  7377. if ${ac_cv_prog_CXX_FOR_BUILD+:} false; then :
  7378.   $as_echo_n "(cached) " >&6
  7379. else
  7380.   if test -n "$CXX_FOR_BUILD"; then
  7381.   ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test.
  7382. else
  7383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7384. for as_dir in $PATH
  7385. do
  7386.   IFS=$as_save_IFS
  7387.   test -z "$as_dir" && as_dir=.
  7388.     for ac_exec_ext in '' $ac_executable_extensions; do
  7389.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7390.     ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog"
  7391.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7392.     break 2
  7393.   fi
  7394. done
  7395.   done
  7396. IFS=$as_save_IFS
  7397.  
  7398. fi
  7399. fi
  7400. CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD
  7401. if test -n "$CXX_FOR_BUILD"; then
  7402.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5
  7403. $as_echo "$CXX_FOR_BUILD" >&6; }
  7404. else
  7405.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7406. $as_echo "no" >&6; }
  7407. fi
  7408.  
  7409.  
  7410.     test -n "$CXX_FOR_BUILD" && break
  7411.   done
  7412. fi
  7413. if test -z "$CXX_FOR_BUILD"; then
  7414.   ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD
  7415.   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7416. do
  7417.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  7418. set dummy $ac_prog; ac_word=$2
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7420. $as_echo_n "checking for $ac_word... " >&6; }
  7421. if ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+:} false; then :
  7422.   $as_echo_n "(cached) " >&6
  7423. else
  7424.   if test -n "$ac_ct_CXX_FOR_BUILD"; then
  7425.   ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test.
  7426. else
  7427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7428. for as_dir in $PATH
  7429. do
  7430.   IFS=$as_save_IFS
  7431.   test -z "$as_dir" && as_dir=.
  7432.     for ac_exec_ext in '' $ac_executable_extensions; do
  7433.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7434.     ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog"
  7435.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7436.     break 2
  7437.   fi
  7438. done
  7439.   done
  7440. IFS=$as_save_IFS
  7441.  
  7442. fi
  7443. fi
  7444. ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD
  7445. if test -n "$ac_ct_CXX_FOR_BUILD"; then
  7446.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5
  7447. $as_echo "$ac_ct_CXX_FOR_BUILD" >&6; }
  7448. else
  7449.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7450. $as_echo "no" >&6; }
  7451. fi
  7452.  
  7453.  
  7454.   test -n "$ac_ct_CXX_FOR_BUILD" && break
  7455. done
  7456.  
  7457.   if test "x$ac_ct_CXX_FOR_BUILD" = x; then
  7458.     CXX_FOR_BUILD="g++"
  7459.   else
  7460.     case $cross_compiling:$ac_tool_warned in
  7461. yes:)
  7462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
  7463. $as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
  7464. ac_tool_warned=yes ;;
  7465. esac
  7466.     CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD
  7467.   fi
  7468. fi
  7469.  
  7470.   fi
  7471. fi
  7472. # Provide some information about the compiler.
  7473. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  7474. set X $ac_build_compile
  7475. ac_compiler=$2
  7476. for ac_option in --version -v -V -qversion; do
  7477.   { { ac_try="$ac_compiler $ac_option >&5"
  7478. case "(($ac_try" in
  7479.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7480.   *) ac_try_echo=$ac_try;;
  7481. esac
  7482. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  7483. $as_echo "$ac_try_echo"; } >&5
  7484.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  7485.   ac_status=$?
  7486.   if test -s conftest.err; then
  7487.     sed '10a\
  7488. ... rest of stderr output deleted ...
  7489.          10q' conftest.err >conftest.er1
  7490.     cat conftest.er1 >&5
  7491.   fi
  7492.   rm -f conftest.er1 conftest.err
  7493.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7494.   test $ac_status = 0; }
  7495. done
  7496.  
  7497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  7498. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  7499. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  7500.   $as_echo_n "(cached) " >&6
  7501. else
  7502.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7503. /* end confdefs.h.  */
  7504.  
  7505. int
  7506. main ()
  7507. {
  7508. #ifndef __GNUC__
  7509.        choke me
  7510. #endif
  7511.  
  7512.   ;
  7513.   return 0;
  7514. }
  7515. _ACEOF
  7516. if ac_fn_cxx_try_compile "$LINENO"; then :
  7517.   ac_compiler_gnu=yes
  7518. else
  7519.   ac_compiler_gnu=no
  7520. fi
  7521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7522. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  7523.  
  7524. fi
  7525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  7526. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  7527. if test $ac_compiler_gnu = yes; then
  7528.   GXX=yes
  7529. else
  7530.   GXX=
  7531. fi
  7532. ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+set}
  7533. ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD
  7534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5
  7535. $as_echo_n "checking whether $CXX_FOR_BUILD accepts -g... " >&6; }
  7536. if ${ac_cv_build_prog_cxx_g+:} false; then :
  7537.   $as_echo_n "(cached) " >&6
  7538. else
  7539.   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  7540.    ac_cxx_werror_flag=yes
  7541.    ac_cv_build_prog_cxx_g=no
  7542.    CXXFLAGS_FOR_BUILD="-g"
  7543.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7544. /* end confdefs.h.  */
  7545.  
  7546. int
  7547. main ()
  7548. {
  7549.  
  7550.   ;
  7551.   return 0;
  7552. }
  7553. _ACEOF
  7554. if ac_fn_cxx_try_compile "$LINENO"; then :
  7555.   ac_cv_build_prog_cxx_g=yes
  7556. else
  7557.   CXXFLAGS_FOR_BUILD=""
  7558.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7559. /* end confdefs.h.  */
  7560.  
  7561. int
  7562. main ()
  7563. {
  7564.  
  7565.   ;
  7566.   return 0;
  7567. }
  7568. _ACEOF
  7569. if ac_fn_cxx_try_compile "$LINENO"; then :
  7570.  
  7571. else
  7572.   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7573.          CXXFLAGS_FOR_BUILD="-g"
  7574.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7575. /* end confdefs.h.  */
  7576.  
  7577. int
  7578. main ()
  7579. {
  7580.  
  7581.   ;
  7582.   return 0;
  7583. }
  7584. _ACEOF
  7585. if ac_fn_cxx_try_compile "$LINENO"; then :
  7586.   ac_cv_build_prog_cxx_g=yes
  7587. fi
  7588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7589. fi
  7590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7591. fi
  7592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7593.    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  7594. fi
  7595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5
  7596. $as_echo "$ac_cv_build_prog_cxx_g" >&6; }
  7597. if test "$ac_test_CXXFLAGS" = set; then
  7598.   CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS
  7599. elif test $ac_cv_build_prog_cxx_g = yes; then
  7600.   if test "$GXX" = yes; then
  7601.     CXXFLAGS_FOR_BUILD="-g -O2"
  7602.   else
  7603.     CXXFLAGS_FOR_BUILD="-g"
  7604.   fi
  7605. else
  7606.   if test "$GXX" = yes; then
  7607.     CXXFLAGS_FOR_BUILD="-O2"
  7608.   else
  7609.     CXXFLAGS_FOR_BUILD=
  7610.   fi
  7611. fi
  7612. ac_ext=c
  7613. ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
  7614. ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  7615. ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7616. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7617.  
  7618. depcc="$CXX_FOR_BUILD"  am_compiler_list=
  7619.  
  7620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  7621. $as_echo_n "checking dependency style of $depcc... " >&6; }
  7622. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  7623.   $as_echo_n "(cached) " >&6
  7624. else
  7625.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7626.   # We make a subdir and do the tests there.  Otherwise we can end up
  7627.   # making bogus files that we don't know about and never remove.  For
  7628.   # instance it was reported that on HP-UX the gcc test will end up
  7629.   # making a dummy file named 'D' -- because '-MD' means "put the output
  7630.   # in D".
  7631.   rm -rf conftest.dir
  7632.   mkdir conftest.dir
  7633.   # Copy depcomp to subdir because otherwise we won't find it if we're
  7634.   # using a relative directory.
  7635.   cp "$am_depcomp" conftest.dir
  7636.   cd conftest.dir
  7637.   # We will build objects and dependencies in a subdirectory because
  7638.   # it helps to detect inapplicable dependency modes.  For instance
  7639.   # both Tru64's cc and ICC support -MD to output dependencies as a
  7640.   # side effect of compilation, but ICC will put the dependencies in
  7641.   # the current directory while Tru64 will put them in the object
  7642.   # directory.
  7643.   mkdir sub
  7644.  
  7645.   am_cv_CXX_dependencies_compiler_type=none
  7646.   if test "$am_compiler_list" = ""; then
  7647.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  7648.   fi
  7649.   am__universal=false
  7650.   case " $depcc " in #(
  7651.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7652.      esac
  7653.  
  7654.   for depmode in $am_compiler_list; do
  7655.     # Setup a source with many dependencies, because some compilers
  7656.     # like to wrap large dependency lists on column 80 (with \), and
  7657.     # we should not choose a depcomp mode which is confused by this.
  7658.     #
  7659.     # We need to recreate these files for each test, as the compiler may
  7660.     # overwrite some of them when testing with obscure command lines.
  7661.     # This happens at least with the AIX C compiler.
  7662.     : > sub/conftest.c
  7663.     for i in 1 2 3 4 5 6; do
  7664.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7665.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  7666.       # Solaris 10 /bin/sh.
  7667.       echo '/* dummy */' > sub/conftst$i.h
  7668.     done
  7669.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7670.  
  7671.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  7672.     # mode.  It turns out that the SunPro C++ compiler does not properly
  7673.     # handle '-M -o', and we need to detect this.  Also, some Intel
  7674.     # versions had trouble with output in subdirs.
  7675.     am__obj=sub/conftest.${OBJEXT-o}
  7676.     am__minus_obj="-o $am__obj"
  7677.     case $depmode in
  7678.     gcc)
  7679.       # This depmode causes a compiler race in universal mode.
  7680.       test "$am__universal" = false || continue
  7681.       ;;
  7682.     nosideeffect)
  7683.       # After this tag, mechanisms are not by side-effect, so they'll
  7684.       # only be used when explicitly requested.
  7685.       if test "x$enable_dependency_tracking" = xyes; then
  7686.         continue
  7687.       else
  7688.         break
  7689.       fi
  7690.       ;;
  7691.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  7692.       # This compiler won't grok '-c -o', but also, the minuso test has
  7693.       # not run yet.  These depmodes are late enough in the game, and
  7694.       # so weak that their functioning should not be impacted.
  7695.       am__obj=conftest.${OBJEXT-o}
  7696.       am__minus_obj=
  7697.       ;;
  7698.     none) break ;;
  7699.     esac
  7700.     if depmode=$depmode \
  7701.        source=sub/conftest.c object=$am__obj \
  7702.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7703.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7704.          >/dev/null 2>conftest.err &&
  7705.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7706.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7707.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7708.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7709.       # icc doesn't choke on unknown options, it will just issue warnings
  7710.       # or remarks (even with -Werror).  So we grep stderr for any message
  7711.       # that says an option was ignored or not supported.
  7712.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  7713.       #   icc: Command line warning: ignoring option '-M'; no argument required
  7714.       # The diagnosis changed in icc 8.0:
  7715.       #   icc: Command line remark: option '-MP' not supported
  7716.       if (grep 'ignoring option' conftest.err ||
  7717.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7718.         am_cv_CXX_dependencies_compiler_type=$depmode
  7719.         break
  7720.       fi
  7721.     fi
  7722.   done
  7723.  
  7724.   cd ..
  7725.   rm -rf conftest.dir
  7726. else
  7727.   am_cv_CXX_dependencies_compiler_type=none
  7728. fi
  7729.  
  7730. fi
  7731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  7732. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  7733. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  7734.  
  7735.  if
  7736.   test "x$enable_dependency_tracking" != xno \
  7737.   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  7738.   am__fastdepCXX_TRUE=
  7739.   am__fastdepCXX_FALSE='#'
  7740. else
  7741.   am__fastdepCXX_TRUE='#'
  7742.   am__fastdepCXX_FALSE=
  7743. fi
  7744.  
  7745.  
  7746. ac_ext=cpp
  7747. ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
  7748. ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  7749. ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7750. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  7752. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  7753. if test -z "$CXXCPP_FOR_BUILD"; then
  7754.   if ${ac_cv_build_prog_CXXCPP+:} false; then :
  7755.   $as_echo_n "(cached) " >&6
  7756. else
  7757.       # Double quotes because CXXCPP needs to be expanded
  7758.     for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" "/lib/cpp"
  7759.     do
  7760.       ac_preproc_ok=false
  7761. for ac_cxx_preproc_warn_flag in '' yes
  7762. do
  7763.   # Use a header file that comes with gcc, so configuring glibc
  7764.   # with a fresh cross-compiler works.
  7765.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7766.   # <limits.h> exists even on freestanding compilers.
  7767.   # On the NeXT, cc -E runs the code through the compiler's parser,
  7768.   # not just through cpp. "Syntax error" is here to catch this case.
  7769.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7770. /* end confdefs.h.  */
  7771. #ifdef __STDC__
  7772. # include <limits.h>
  7773. #else
  7774. # include <assert.h>
  7775. #endif
  7776.                      Syntax error
  7777. _ACEOF
  7778. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7779.  
  7780. else
  7781.   # Broken: fails on valid input.
  7782. continue
  7783. fi
  7784. rm -f conftest.err conftest.i conftest.$ac_ext
  7785.  
  7786.   # OK, works on sane cases.  Now check whether nonexistent headers
  7787.   # can be detected and how.
  7788.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7789. /* end confdefs.h.  */
  7790. #include <ac_nonexistent.h>
  7791. _ACEOF
  7792. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7793.   # Broken: success on invalid input.
  7794. continue
  7795. else
  7796.   # Passes both tests.
  7797. ac_preproc_ok=:
  7798. break
  7799. fi
  7800. rm -f conftest.err conftest.i conftest.$ac_ext
  7801.  
  7802. done
  7803. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7804. rm -f conftest.i conftest.err conftest.$ac_ext
  7805. if $ac_preproc_ok; then :
  7806.   break
  7807. fi
  7808.  
  7809.     done
  7810.     ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
  7811.  
  7812. fi
  7813.   CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP
  7814. else
  7815.   ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
  7816. fi
  7817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5
  7818. $as_echo "$CXXCPP_FOR_BUILD" >&6; }
  7819. ac_preproc_ok=false
  7820. for ac_cxx_preproc_warn_flag in '' yes
  7821. do
  7822.   # Use a header file that comes with gcc, so configuring glibc
  7823.   # with a fresh cross-compiler works.
  7824.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7825.   # <limits.h> exists even on freestanding compilers.
  7826.   # On the NeXT, cc -E runs the code through the compiler's parser,
  7827.   # not just through cpp. "Syntax error" is here to catch this case.
  7828.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7829. /* end confdefs.h.  */
  7830. #ifdef __STDC__
  7831. # include <limits.h>
  7832. #else
  7833. # include <assert.h>
  7834. #endif
  7835.                      Syntax error
  7836. _ACEOF
  7837. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7838.  
  7839. else
  7840.   # Broken: fails on valid input.
  7841. continue
  7842. fi
  7843. rm -f conftest.err conftest.i conftest.$ac_ext
  7844.  
  7845.   # OK, works on sane cases.  Now check whether nonexistent headers
  7846.   # can be detected and how.
  7847.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7848. /* end confdefs.h.  */
  7849. #include <ac_nonexistent.h>
  7850. _ACEOF
  7851. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7852.   # Broken: success on invalid input.
  7853. continue
  7854. else
  7855.   # Passes both tests.
  7856. ac_preproc_ok=:
  7857. break
  7858. fi
  7859. rm -f conftest.err conftest.i conftest.$ac_ext
  7860.  
  7861. done
  7862. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7863. rm -f conftest.i conftest.err conftest.$ac_ext
  7864. if $ac_preproc_ok; then :
  7865.  
  7866. else
  7867.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7868. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7869. as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check
  7870. See \`config.log' for more details" "$LINENO" 5; }
  7871. fi
  7872.  
  7873. ac_ext=c
  7874. ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
  7875. ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
  7876. ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7877. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7878.  
  7879.  
  7880. ac_tool_prefix=$save_ac_tool_prefix
  7881. cross_compiling=$save_cross_compiling
  7882.  
  7883.  
  7884.  
  7885.  
  7886. # By default we simply use the C compiler to build assembly code.
  7887.  
  7888. test "${CCAS+set}" = set || CCAS=$CC
  7889. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  7890.  
  7891.  
  7892.  
  7893. depcc="$CCAS"   am_compiler_list=
  7894.  
  7895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  7896. $as_echo_n "checking dependency style of $depcc... " >&6; }
  7897. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  7898.   $as_echo_n "(cached) " >&6
  7899. else
  7900.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7901.   # We make a subdir and do the tests there.  Otherwise we can end up
  7902.   # making bogus files that we don't know about and never remove.  For
  7903.   # instance it was reported that on HP-UX the gcc test will end up
  7904.   # making a dummy file named 'D' -- because '-MD' means "put the output
  7905.   # in D".
  7906.   rm -rf conftest.dir
  7907.   mkdir conftest.dir
  7908.   # Copy depcomp to subdir because otherwise we won't find it if we're
  7909.   # using a relative directory.
  7910.   cp "$am_depcomp" conftest.dir
  7911.   cd conftest.dir
  7912.   # We will build objects and dependencies in a subdirectory because
  7913.   # it helps to detect inapplicable dependency modes.  For instance
  7914.   # both Tru64's cc and ICC support -MD to output dependencies as a
  7915.   # side effect of compilation, but ICC will put the dependencies in
  7916.   # the current directory while Tru64 will put them in the object
  7917.   # directory.
  7918.   mkdir sub
  7919.  
  7920.   am_cv_CCAS_dependencies_compiler_type=none
  7921.   if test "$am_compiler_list" = ""; then
  7922.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  7923.   fi
  7924.   am__universal=false
  7925.  
  7926.  
  7927.   for depmode in $am_compiler_list; do
  7928.     # Setup a source with many dependencies, because some compilers
  7929.     # like to wrap large dependency lists on column 80 (with \), and
  7930.     # we should not choose a depcomp mode which is confused by this.
  7931.     #
  7932.     # We need to recreate these files for each test, as the compiler may
  7933.     # overwrite some of them when testing with obscure command lines.
  7934.     # This happens at least with the AIX C compiler.
  7935.     : > sub/conftest.c
  7936.     for i in 1 2 3 4 5 6; do
  7937.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7938.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  7939.       # Solaris 10 /bin/sh.
  7940.       echo '/* dummy */' > sub/conftst$i.h
  7941.     done
  7942.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7943.  
  7944.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  7945.     # mode.  It turns out that the SunPro C++ compiler does not properly
  7946.     # handle '-M -o', and we need to detect this.  Also, some Intel
  7947.     # versions had trouble with output in subdirs.
  7948.     am__obj=sub/conftest.${OBJEXT-o}
  7949.     am__minus_obj="-o $am__obj"
  7950.     case $depmode in
  7951.     gcc)
  7952.       # This depmode causes a compiler race in universal mode.
  7953.       test "$am__universal" = false || continue
  7954.       ;;
  7955.     nosideeffect)
  7956.       # After this tag, mechanisms are not by side-effect, so they'll
  7957.       # only be used when explicitly requested.
  7958.       if test "x$enable_dependency_tracking" = xyes; then
  7959.         continue
  7960.       else
  7961.         break
  7962.       fi
  7963.       ;;
  7964.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  7965.       # This compiler won't grok '-c -o', but also, the minuso test has
  7966.       # not run yet.  These depmodes are late enough in the game, and
  7967.       # so weak that their functioning should not be impacted.
  7968.       am__obj=conftest.${OBJEXT-o}
  7969.       am__minus_obj=
  7970.       ;;
  7971.     none) break ;;
  7972.     esac
  7973.     if depmode=$depmode \
  7974.        source=sub/conftest.c object=$am__obj \
  7975.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7976.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7977.          >/dev/null 2>conftest.err &&
  7978.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7979.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7980.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7981.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7982.       # icc doesn't choke on unknown options, it will just issue warnings
  7983.       # or remarks (even with -Werror).  So we grep stderr for any message
  7984.       # that says an option was ignored or not supported.
  7985.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  7986.       #   icc: Command line warning: ignoring option '-M'; no argument required
  7987.       # The diagnosis changed in icc 8.0:
  7988.       #   icc: Command line remark: option '-MP' not supported
  7989.       if (grep 'ignoring option' conftest.err ||
  7990.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7991.         am_cv_CCAS_dependencies_compiler_type=$depmode
  7992.         break
  7993.       fi
  7994.     fi
  7995.   done
  7996.  
  7997.   cd ..
  7998.   rm -rf conftest.dir
  7999. else
  8000.   am_cv_CCAS_dependencies_compiler_type=none
  8001. fi
  8002.  
  8003. fi
  8004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  8005. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  8006. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  8007.  
  8008.  if
  8009.   test "x$enable_dependency_tracking" != xno \
  8010.   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  8011.   am__fastdepCCAS_TRUE=
  8012.   am__fastdepCCAS_FALSE='#'
  8013. else
  8014.   am__fastdepCCAS_TRUE='#'
  8015.   am__fastdepCCAS_FALSE=
  8016. fi
  8017.  
  8018.  
  8019. for ac_prog in gmake make
  8020. do
  8021.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  8022. set dummy $ac_prog; ac_word=$2
  8023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8024. $as_echo_n "checking for $ac_word... " >&6; }
  8025. if ${ac_cv_prog_MAKE+:} false; then :
  8026.   $as_echo_n "(cached) " >&6
  8027. else
  8028.   if test -n "$MAKE"; then
  8029.   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
  8030. else
  8031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8032. for as_dir in $PATH
  8033. do
  8034.   IFS=$as_save_IFS
  8035.   test -z "$as_dir" && as_dir=.
  8036.     for ac_exec_ext in '' $ac_executable_extensions; do
  8037.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8038.     ac_cv_prog_MAKE="$ac_prog"
  8039.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8040.     break 2
  8041.   fi
  8042. done
  8043.   done
  8044. IFS=$as_save_IFS
  8045.  
  8046. fi
  8047. fi
  8048. MAKE=$ac_cv_prog_MAKE
  8049. if test -n "$MAKE"; then
  8050.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
  8051. $as_echo "$MAKE" >&6; }
  8052. else
  8053.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8054. $as_echo "no" >&6; }
  8055. fi
  8056.  
  8057.  
  8058.   test -n "$MAKE" && break
  8059. done
  8060.  
  8061. for ac_prog in python2 python
  8062. do
  8063.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  8064. set dummy $ac_prog; ac_word=$2
  8065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8066. $as_echo_n "checking for $ac_word... " >&6; }
  8067. if ${ac_cv_prog_PYTHON2+:} false; then :
  8068.   $as_echo_n "(cached) " >&6
  8069. else
  8070.   if test -n "$PYTHON2"; then
  8071.   ac_cv_prog_PYTHON2="$PYTHON2" # Let the user override the test.
  8072. else
  8073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8074. for as_dir in $PATH
  8075. do
  8076.   IFS=$as_save_IFS
  8077.   test -z "$as_dir" && as_dir=.
  8078.     for ac_exec_ext in '' $ac_executable_extensions; do
  8079.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8080.     ac_cv_prog_PYTHON2="$ac_prog"
  8081.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8082.     break 2
  8083.   fi
  8084. done
  8085.   done
  8086. IFS=$as_save_IFS
  8087.  
  8088. fi
  8089. fi
  8090. PYTHON2=$ac_cv_prog_PYTHON2
  8091. if test -n "$PYTHON2"; then
  8092.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2" >&5
  8093. $as_echo "$PYTHON2" >&6; }
  8094. else
  8095.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8096. $as_echo "no" >&6; }
  8097. fi
  8098.  
  8099.  
  8100.   test -n "$PYTHON2" && break
  8101. done
  8102.  
  8103.  
  8104.     if test -z $PYTHON2;
  8105.     then
  8106.         PYTHON2="python"
  8107.     fi
  8108.     PYTHON_NAME=`basename $PYTHON2`
  8109.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: libxml2" >&5
  8110. $as_echo_n "checking $PYTHON_NAME module: libxml2... " >&6; }
  8111.         $PYTHON2 -c "import libxml2" 2>/dev/null
  8112.         if test $? -eq 0;
  8113.         then
  8114.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8115. $as_echo "yes" >&6; }
  8116.                 eval HAVE_PYMOD_LIBXML2=yes
  8117.         else
  8118.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8119. $as_echo "no" >&6; }
  8120.                 eval HAVE_PYMOD_LIBXML2=no
  8121.                 #
  8122.                 if test -n "needed"
  8123.                 then
  8124.                         as_fn_error $? "failed to find required module libxml2" "$LINENO" 5
  8125.                         exit 1
  8126.                 fi
  8127.         fi
  8128.  
  8129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  8130. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  8131. if ${ac_cv_path_SED+:} false; then :
  8132.   $as_echo_n "(cached) " >&6
  8133. else
  8134.             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  8135.      for ac_i in 1 2 3 4 5 6 7; do
  8136.        ac_script="$ac_script$as_nl$ac_script"
  8137.      done
  8138.      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  8139.      { ac_script=; unset ac_script;}
  8140.      if test -z "$SED"; then
  8141.   ac_path_SED_found=false
  8142.   # Loop through the user's path and test for each of PROGNAME-LIST
  8143.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8144. for as_dir in $PATH
  8145. do
  8146.   IFS=$as_save_IFS
  8147.   test -z "$as_dir" && as_dir=.
  8148.     for ac_prog in sed gsed; do
  8149.     for ac_exec_ext in '' $ac_executable_extensions; do
  8150.       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  8151.       as_fn_executable_p "$ac_path_SED" || continue
  8152. # Check for GNU ac_path_SED and select it if it is found.
  8153.   # Check for GNU $ac_path_SED
  8154. case `"$ac_path_SED" --version 2>&1` in
  8155. *GNU*)
  8156.   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  8157. *)
  8158.   ac_count=0
  8159.   $as_echo_n 0123456789 >"conftest.in"
  8160.   while :
  8161.   do
  8162.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  8163.     mv "conftest.tmp" "conftest.in"
  8164.     cp "conftest.in" "conftest.nl"
  8165.     $as_echo '' >> "conftest.nl"
  8166.     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8167.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8168.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  8169.     if test $ac_count -gt ${ac_path_SED_max-0}; then
  8170.       # Best one so far, save it but keep looking for a better one
  8171.       ac_cv_path_SED="$ac_path_SED"
  8172.       ac_path_SED_max=$ac_count
  8173.     fi
  8174.     # 10*(2^10) chars as input seems more than enough
  8175.     test $ac_count -gt 10 && break
  8176.   done
  8177.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8178. esac
  8179.  
  8180.       $ac_path_SED_found && break 3
  8181.     done
  8182.   done
  8183.   done
  8184. IFS=$as_save_IFS
  8185.   if test -z "$ac_cv_path_SED"; then
  8186.     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  8187.   fi
  8188. else
  8189.   ac_cv_path_SED=$SED
  8190. fi
  8191.  
  8192. fi
  8193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  8194. $as_echo "$ac_cv_path_SED" >&6; }
  8195.  SED="$ac_cv_path_SED"
  8196.   rm -f conftest.sed
  8197.  
  8198.  
  8199.  
  8200.  
  8201. case `pwd` in
  8202.   *\ * | *\     *)
  8203.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  8204. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  8205. esac
  8206.  
  8207.  
  8208.  
  8209. macro_version='2.4.2'
  8210. macro_revision='1.3337'
  8211.  
  8212.  
  8213.  
  8214.  
  8215.  
  8216.  
  8217.  
  8218.  
  8219.  
  8220.  
  8221.  
  8222.  
  8223.  
  8224. ltmain="$ac_aux_dir/ltmain.sh"
  8225.  
  8226. # Backslashify metacharacters that are still active within
  8227. # double-quoted strings.
  8228. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  8229.  
  8230. # Same as above, but do not quote variable references.
  8231. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  8232.  
  8233. # Sed substitution to delay expansion of an escaped shell variable in a
  8234. # double_quote_subst'ed string.
  8235. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  8236.  
  8237. # Sed substitution to delay expansion of an escaped single quote.
  8238. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  8239.  
  8240. # Sed substitution to avoid accidental globbing in evaled expressions
  8241. no_glob_subst='s/\*/\\\*/g'
  8242.  
  8243. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8244. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  8245. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  8246.  
  8247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  8248. $as_echo_n "checking how to print strings... " >&6; }
  8249. # Test print first, because it will be a builtin if present.
  8250. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  8251.    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  8252.   ECHO='print -r --'
  8253. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  8254.   ECHO='printf %s\n'
  8255. else
  8256.   # Use this function as a fallback that always works.
  8257.   func_fallback_echo ()
  8258.   {
  8259.     eval 'cat <<_LTECHO_EOF
  8260. $1
  8261. _LTECHO_EOF'
  8262.   }
  8263.   ECHO='func_fallback_echo'
  8264. fi
  8265.  
  8266. # func_echo_all arg...
  8267. # Invoke $ECHO with all args, space-separated.
  8268. func_echo_all ()
  8269. {
  8270.     $ECHO ""
  8271. }
  8272.  
  8273. case "$ECHO" in
  8274.   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  8275. $as_echo "printf" >&6; } ;;
  8276.   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  8277. $as_echo "print -r" >&6; } ;;
  8278.   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  8279. $as_echo "cat" >&6; } ;;
  8280. esac
  8281.  
  8282.  
  8283.  
  8284.  
  8285.  
  8286.  
  8287.  
  8288.  
  8289.  
  8290.  
  8291.  
  8292.  
  8293.  
  8294.  
  8295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  8296. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  8297. if ${ac_cv_path_SED+:} false; then :
  8298.   $as_echo_n "(cached) " >&6
  8299. else
  8300.             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  8301.      for ac_i in 1 2 3 4 5 6 7; do
  8302.        ac_script="$ac_script$as_nl$ac_script"
  8303.      done
  8304.      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  8305.      { ac_script=; unset ac_script;}
  8306.      if test -z "$SED"; then
  8307.   ac_path_SED_found=false
  8308.   # Loop through the user's path and test for each of PROGNAME-LIST
  8309.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8310. for as_dir in $PATH
  8311. do
  8312.   IFS=$as_save_IFS
  8313.   test -z "$as_dir" && as_dir=.
  8314.     for ac_prog in sed gsed; do
  8315.     for ac_exec_ext in '' $ac_executable_extensions; do
  8316.       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  8317.       as_fn_executable_p "$ac_path_SED" || continue
  8318. # Check for GNU ac_path_SED and select it if it is found.
  8319.   # Check for GNU $ac_path_SED
  8320. case `"$ac_path_SED" --version 2>&1` in
  8321. *GNU*)
  8322.   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  8323. *)
  8324.   ac_count=0
  8325.   $as_echo_n 0123456789 >"conftest.in"
  8326.   while :
  8327.   do
  8328.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  8329.     mv "conftest.tmp" "conftest.in"
  8330.     cp "conftest.in" "conftest.nl"
  8331.     $as_echo '' >> "conftest.nl"
  8332.     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8333.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8334.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  8335.     if test $ac_count -gt ${ac_path_SED_max-0}; then
  8336.       # Best one so far, save it but keep looking for a better one
  8337.       ac_cv_path_SED="$ac_path_SED"
  8338.       ac_path_SED_max=$ac_count
  8339.     fi
  8340.     # 10*(2^10) chars as input seems more than enough
  8341.     test $ac_count -gt 10 && break
  8342.   done
  8343.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8344. esac
  8345.  
  8346.       $ac_path_SED_found && break 3
  8347.     done
  8348.   done
  8349.   done
  8350. IFS=$as_save_IFS
  8351.   if test -z "$ac_cv_path_SED"; then
  8352.     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  8353.   fi
  8354. else
  8355.   ac_cv_path_SED=$SED
  8356. fi
  8357.  
  8358. fi
  8359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  8360. $as_echo "$ac_cv_path_SED" >&6; }
  8361.  SED="$ac_cv_path_SED"
  8362.   rm -f conftest.sed
  8363.  
  8364. test -z "$SED" && SED=sed
  8365. Xsed="$SED -e 1s/^X//"
  8366.  
  8367.  
  8368.  
  8369.  
  8370.  
  8371.  
  8372.  
  8373.  
  8374.  
  8375.  
  8376.  
  8377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  8378. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  8379. if ${ac_cv_path_GREP+:} false; then :
  8380.   $as_echo_n "(cached) " >&6
  8381. else
  8382.   if test -z "$GREP"; then
  8383.   ac_path_GREP_found=false
  8384.   # Loop through the user's path and test for each of PROGNAME-LIST
  8385.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8386. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  8387. do
  8388.   IFS=$as_save_IFS
  8389.   test -z "$as_dir" && as_dir=.
  8390.     for ac_prog in grep ggrep; do
  8391.     for ac_exec_ext in '' $ac_executable_extensions; do
  8392.       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  8393.       as_fn_executable_p "$ac_path_GREP" || continue
  8394. # Check for GNU ac_path_GREP and select it if it is found.
  8395.   # Check for GNU $ac_path_GREP
  8396. case `"$ac_path_GREP" --version 2>&1` in
  8397. *GNU*)
  8398.   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  8399. *)
  8400.   ac_count=0
  8401.   $as_echo_n 0123456789 >"conftest.in"
  8402.   while :
  8403.   do
  8404.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  8405.     mv "conftest.tmp" "conftest.in"
  8406.     cp "conftest.in" "conftest.nl"
  8407.     $as_echo 'GREP' >> "conftest.nl"
  8408.     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8409.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8410.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  8411.     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  8412.       # Best one so far, save it but keep looking for a better one
  8413.       ac_cv_path_GREP="$ac_path_GREP"
  8414.       ac_path_GREP_max=$ac_count
  8415.     fi
  8416.     # 10*(2^10) chars as input seems more than enough
  8417.     test $ac_count -gt 10 && break
  8418.   done
  8419.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8420. esac
  8421.  
  8422.       $ac_path_GREP_found && break 3
  8423.     done
  8424.   done
  8425.   done
  8426. IFS=$as_save_IFS
  8427.   if test -z "$ac_cv_path_GREP"; then
  8428.     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  8429.   fi
  8430. else
  8431.   ac_cv_path_GREP=$GREP
  8432. fi
  8433.  
  8434. fi
  8435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  8436. $as_echo "$ac_cv_path_GREP" >&6; }
  8437.  GREP="$ac_cv_path_GREP"
  8438.  
  8439.  
  8440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  8441. $as_echo_n "checking for egrep... " >&6; }
  8442. if ${ac_cv_path_EGREP+:} false; then :
  8443.   $as_echo_n "(cached) " >&6
  8444. else
  8445.   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  8446.    then ac_cv_path_EGREP="$GREP -E"
  8447.    else
  8448.      if test -z "$EGREP"; then
  8449.   ac_path_EGREP_found=false
  8450.   # Loop through the user's path and test for each of PROGNAME-LIST
  8451.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8452. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  8453. do
  8454.   IFS=$as_save_IFS
  8455.   test -z "$as_dir" && as_dir=.
  8456.     for ac_prog in egrep; do
  8457.     for ac_exec_ext in '' $ac_executable_extensions; do
  8458.       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  8459.       as_fn_executable_p "$ac_path_EGREP" || continue
  8460. # Check for GNU ac_path_EGREP and select it if it is found.
  8461.   # Check for GNU $ac_path_EGREP
  8462. case `"$ac_path_EGREP" --version 2>&1` in
  8463. *GNU*)
  8464.   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  8465. *)
  8466.   ac_count=0
  8467.   $as_echo_n 0123456789 >"conftest.in"
  8468.   while :
  8469.   do
  8470.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  8471.     mv "conftest.tmp" "conftest.in"
  8472.     cp "conftest.in" "conftest.nl"
  8473.     $as_echo 'EGREP' >> "conftest.nl"
  8474.     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8475.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8476.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  8477.     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  8478.       # Best one so far, save it but keep looking for a better one
  8479.       ac_cv_path_EGREP="$ac_path_EGREP"
  8480.       ac_path_EGREP_max=$ac_count
  8481.     fi
  8482.     # 10*(2^10) chars as input seems more than enough
  8483.     test $ac_count -gt 10 && break
  8484.   done
  8485.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8486. esac
  8487.  
  8488.       $ac_path_EGREP_found && break 3
  8489.     done
  8490.   done
  8491.   done
  8492. IFS=$as_save_IFS
  8493.   if test -z "$ac_cv_path_EGREP"; then
  8494.     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  8495.   fi
  8496. else
  8497.   ac_cv_path_EGREP=$EGREP
  8498. fi
  8499.  
  8500.    fi
  8501. fi
  8502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  8503. $as_echo "$ac_cv_path_EGREP" >&6; }
  8504.  EGREP="$ac_cv_path_EGREP"
  8505.  
  8506.  
  8507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  8508. $as_echo_n "checking for fgrep... " >&6; }
  8509. if ${ac_cv_path_FGREP+:} false; then :
  8510.   $as_echo_n "(cached) " >&6
  8511. else
  8512.   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  8513.    then ac_cv_path_FGREP="$GREP -F"
  8514.    else
  8515.      if test -z "$FGREP"; then
  8516.   ac_path_FGREP_found=false
  8517.   # Loop through the user's path and test for each of PROGNAME-LIST
  8518.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8519. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  8520. do
  8521.   IFS=$as_save_IFS
  8522.   test -z "$as_dir" && as_dir=.
  8523.     for ac_prog in fgrep; do
  8524.     for ac_exec_ext in '' $ac_executable_extensions; do
  8525.       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  8526.       as_fn_executable_p "$ac_path_FGREP" || continue
  8527. # Check for GNU ac_path_FGREP and select it if it is found.
  8528.   # Check for GNU $ac_path_FGREP
  8529. case `"$ac_path_FGREP" --version 2>&1` in
  8530. *GNU*)
  8531.   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  8532. *)
  8533.   ac_count=0
  8534.   $as_echo_n 0123456789 >"conftest.in"
  8535.   while :
  8536.   do
  8537.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  8538.     mv "conftest.tmp" "conftest.in"
  8539.     cp "conftest.in" "conftest.nl"
  8540.     $as_echo 'FGREP' >> "conftest.nl"
  8541.     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8542.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8543.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  8544.     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  8545.       # Best one so far, save it but keep looking for a better one
  8546.       ac_cv_path_FGREP="$ac_path_FGREP"
  8547.       ac_path_FGREP_max=$ac_count
  8548.     fi
  8549.     # 10*(2^10) chars as input seems more than enough
  8550.     test $ac_count -gt 10 && break
  8551.   done
  8552.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8553. esac
  8554.  
  8555.       $ac_path_FGREP_found && break 3
  8556.     done
  8557.   done
  8558.   done
  8559. IFS=$as_save_IFS
  8560.   if test -z "$ac_cv_path_FGREP"; then
  8561.     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  8562.   fi
  8563. else
  8564.   ac_cv_path_FGREP=$FGREP
  8565. fi
  8566.  
  8567.    fi
  8568. fi
  8569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  8570. $as_echo "$ac_cv_path_FGREP" >&6; }
  8571.  FGREP="$ac_cv_path_FGREP"
  8572.  
  8573.  
  8574. test -z "$GREP" && GREP=grep
  8575.  
  8576.  
  8577.  
  8578.  
  8579.  
  8580.  
  8581.  
  8582.  
  8583.  
  8584.  
  8585.  
  8586.  
  8587.  
  8588.  
  8589.  
  8590.  
  8591.  
  8592.  
  8593.  
  8594. # Check whether --with-gnu-ld was given.
  8595. if test "${with_gnu_ld+set}" = set; then :
  8596.   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8597. else
  8598.   with_gnu_ld=no
  8599. fi
  8600.  
  8601. ac_prog=ld
  8602. if test "$GCC" = yes; then
  8603.   # Check if gcc -print-prog-name=ld gives a path.
  8604.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  8605. $as_echo_n "checking for ld used by $CC... " >&6; }
  8606.   case $host in
  8607.   *-*-mingw*)
  8608.     # gcc leaves a trailing carriage return which upsets mingw
  8609.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8610.   *)
  8611.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8612.   esac
  8613.   case $ac_prog in
  8614.     # Accept absolute paths.
  8615.     [\\/]* | ?:[\\/]*)
  8616.       re_direlt='/[^/][^/]*/\.\./'
  8617.       # Canonicalize the pathname of ld
  8618.       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  8619.       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  8620.         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  8621.       done
  8622.       test -z "$LD" && LD="$ac_prog"
  8623.       ;;
  8624.   "")
  8625.     # If it fails, then pretend we aren't using GCC.
  8626.     ac_prog=ld
  8627.     ;;
  8628.   *)
  8629.     # If it is relative, then search for the first ld in PATH.
  8630.     with_gnu_ld=unknown
  8631.     ;;
  8632.   esac
  8633. elif test "$with_gnu_ld" = yes; then
  8634.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  8635. $as_echo_n "checking for GNU ld... " >&6; }
  8636. else
  8637.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  8638. $as_echo_n "checking for non-GNU ld... " >&6; }
  8639. fi
  8640. if ${lt_cv_path_LD+:} false; then :
  8641.   $as_echo_n "(cached) " >&6
  8642. else
  8643.   if test -z "$LD"; then
  8644.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8645.   for ac_dir in $PATH; do
  8646.     IFS="$lt_save_ifs"
  8647.     test -z "$ac_dir" && ac_dir=.
  8648.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8649.       lt_cv_path_LD="$ac_dir/$ac_prog"
  8650.       # Check to see if the program is GNU ld.  I'd rather use --version,
  8651.       # but apparently some variants of GNU ld only accept -v.
  8652.       # Break only if it was the GNU/non-GNU ld that we prefer.
  8653.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  8654.       *GNU* | *'with BFD'*)
  8655.         test "$with_gnu_ld" != no && break
  8656.         ;;
  8657.       *)
  8658.         test "$with_gnu_ld" != yes && break
  8659.         ;;
  8660.       esac
  8661.     fi
  8662.   done
  8663.   IFS="$lt_save_ifs"
  8664. else
  8665.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  8666. fi
  8667. fi
  8668.  
  8669. LD="$lt_cv_path_LD"
  8670. if test -n "$LD"; then
  8671.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  8672. $as_echo "$LD" >&6; }
  8673. else
  8674.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8675. $as_echo "no" >&6; }
  8676. fi
  8677. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  8678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  8679. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  8680. if ${lt_cv_prog_gnu_ld+:} false; then :
  8681.   $as_echo_n "(cached) " >&6
  8682. else
  8683.   # I'd rather use --version here, but apparently some GNU lds only accept -v.
  8684. case `$LD -v 2>&1 </dev/null` in
  8685. *GNU* | *'with BFD'*)
  8686.   lt_cv_prog_gnu_ld=yes
  8687.   ;;
  8688. *)
  8689.   lt_cv_prog_gnu_ld=no
  8690.   ;;
  8691. esac
  8692. fi
  8693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  8694. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  8695. with_gnu_ld=$lt_cv_prog_gnu_ld
  8696.  
  8697.  
  8698.  
  8699.  
  8700.  
  8701.  
  8702.  
  8703.  
  8704.  
  8705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  8706. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  8707. if ${lt_cv_path_NM+:} false; then :
  8708.   $as_echo_n "(cached) " >&6
  8709. else
  8710.   if test -n "$NM"; then
  8711.   # Let the user override the test.
  8712.   lt_cv_path_NM="$NM"
  8713. else
  8714.   lt_nm_to_check="${ac_tool_prefix}nm"
  8715.   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  8716.     lt_nm_to_check="$lt_nm_to_check nm"
  8717.   fi
  8718.   for lt_tmp_nm in $lt_nm_to_check; do
  8719.     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8720.     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  8721.       IFS="$lt_save_ifs"
  8722.       test -z "$ac_dir" && ac_dir=.
  8723.       tmp_nm="$ac_dir/$lt_tmp_nm"
  8724.       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  8725.         # Check to see if the nm accepts a BSD-compat flag.
  8726.         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  8727.         #   nm: unknown option "B" ignored
  8728.         # Tru64's nm complains that /dev/null is an invalid object file
  8729.         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  8730.         */dev/null* | *'Invalid file or object type'*)
  8731.           lt_cv_path_NM="$tmp_nm -B"
  8732.           break
  8733.           ;;
  8734.         *)
  8735.           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  8736.           */dev/null*)
  8737.             lt_cv_path_NM="$tmp_nm -p"
  8738.             break
  8739.             ;;
  8740.           *)
  8741.             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  8742.             continue # so that we can try to find one that supports BSD flags
  8743.             ;;
  8744.           esac
  8745.           ;;
  8746.         esac
  8747.       fi
  8748.     done
  8749.     IFS="$lt_save_ifs"
  8750.   done
  8751.   : ${lt_cv_path_NM=no}
  8752. fi
  8753. fi
  8754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  8755. $as_echo "$lt_cv_path_NM" >&6; }
  8756. if test "$lt_cv_path_NM" != "no"; then
  8757.   NM="$lt_cv_path_NM"
  8758. else
  8759.   # Didn't find any BSD compatible name lister, look for dumpbin.
  8760.   if test -n "$DUMPBIN"; then :
  8761.     # Let the user override the test.
  8762.   else
  8763.     if test -n "$ac_tool_prefix"; then
  8764.   for ac_prog in dumpbin "link -dump"
  8765.   do
  8766.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  8767. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  8768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8769. $as_echo_n "checking for $ac_word... " >&6; }
  8770. if ${ac_cv_prog_DUMPBIN+:} false; then :
  8771.   $as_echo_n "(cached) " >&6
  8772. else
  8773.   if test -n "$DUMPBIN"; then
  8774.   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  8775. else
  8776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8777. for as_dir in $PATH
  8778. do
  8779.   IFS=$as_save_IFS
  8780.   test -z "$as_dir" && as_dir=.
  8781.     for ac_exec_ext in '' $ac_executable_extensions; do
  8782.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8783.     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  8784.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8785.     break 2
  8786.   fi
  8787. done
  8788.   done
  8789. IFS=$as_save_IFS
  8790.  
  8791. fi
  8792. fi
  8793. DUMPBIN=$ac_cv_prog_DUMPBIN
  8794. if test -n "$DUMPBIN"; then
  8795.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  8796. $as_echo "$DUMPBIN" >&6; }
  8797. else
  8798.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8799. $as_echo "no" >&6; }
  8800. fi
  8801.  
  8802.  
  8803.     test -n "$DUMPBIN" && break
  8804.   done
  8805. fi
  8806. if test -z "$DUMPBIN"; then
  8807.   ac_ct_DUMPBIN=$DUMPBIN
  8808.   for ac_prog in dumpbin "link -dump"
  8809. do
  8810.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  8811. set dummy $ac_prog; ac_word=$2
  8812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8813. $as_echo_n "checking for $ac_word... " >&6; }
  8814. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  8815.   $as_echo_n "(cached) " >&6
  8816. else
  8817.   if test -n "$ac_ct_DUMPBIN"; then
  8818.   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  8819. else
  8820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8821. for as_dir in $PATH
  8822. do
  8823.   IFS=$as_save_IFS
  8824.   test -z "$as_dir" && as_dir=.
  8825.     for ac_exec_ext in '' $ac_executable_extensions; do
  8826.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8827.     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  8828.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8829.     break 2
  8830.   fi
  8831. done
  8832.   done
  8833. IFS=$as_save_IFS
  8834.  
  8835. fi
  8836. fi
  8837. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  8838. if test -n "$ac_ct_DUMPBIN"; then
  8839.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  8840. $as_echo "$ac_ct_DUMPBIN" >&6; }
  8841. else
  8842.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8843. $as_echo "no" >&6; }
  8844. fi
  8845.  
  8846.  
  8847.   test -n "$ac_ct_DUMPBIN" && break
  8848. done
  8849.  
  8850.   if test "x$ac_ct_DUMPBIN" = x; then
  8851.     DUMPBIN=":"
  8852.   else
  8853.     case $cross_compiling:$ac_tool_warned in
  8854. yes:)
  8855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8856. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8857. ac_tool_warned=yes ;;
  8858. esac
  8859.     DUMPBIN=$ac_ct_DUMPBIN
  8860.   fi
  8861. fi
  8862.  
  8863.     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  8864.     *COFF*)
  8865.       DUMPBIN="$DUMPBIN -symbols"
  8866.       ;;
  8867.     *)
  8868.       DUMPBIN=:
  8869.       ;;
  8870.     esac
  8871.   fi
  8872.  
  8873.   if test "$DUMPBIN" != ":"; then
  8874.     NM="$DUMPBIN"
  8875.   fi
  8876. fi
  8877. test -z "$NM" && NM=nm
  8878.  
  8879.  
  8880.  
  8881.  
  8882.  
  8883.  
  8884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  8885. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  8886. if ${lt_cv_nm_interface+:} false; then :
  8887.   $as_echo_n "(cached) " >&6
  8888. else
  8889.   lt_cv_nm_interface="BSD nm"
  8890.   echo "int some_variable = 0;" > conftest.$ac_ext
  8891.   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  8892.   (eval "$ac_compile" 2>conftest.err)
  8893.   cat conftest.err >&5
  8894.   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  8895.   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  8896.   cat conftest.err >&5
  8897.   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  8898.   cat conftest.out >&5
  8899.   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  8900.     lt_cv_nm_interface="MS dumpbin"
  8901.   fi
  8902.   rm -f conftest*
  8903. fi
  8904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  8905. $as_echo "$lt_cv_nm_interface" >&6; }
  8906.  
  8907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  8908. $as_echo_n "checking whether ln -s works... " >&6; }
  8909. LN_S=$as_ln_s
  8910. if test "$LN_S" = "ln -s"; then
  8911.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8912. $as_echo "yes" >&6; }
  8913. else
  8914.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  8915. $as_echo "no, using $LN_S" >&6; }
  8916. fi
  8917.  
  8918. # find the maximum length of command line arguments
  8919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  8920. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  8921. if ${lt_cv_sys_max_cmd_len+:} false; then :
  8922.   $as_echo_n "(cached) " >&6
  8923. else
  8924.     i=0
  8925.   teststring="ABCD"
  8926.  
  8927.   case $build_os in
  8928.   msdosdjgpp*)
  8929.     # On DJGPP, this test can blow up pretty badly due to problems in libc
  8930.     # (any single argument exceeding 2000 bytes causes a buffer overrun
  8931.     # during glob expansion).  Even if it were fixed, the result of this
  8932.     # check would be larger than it should be.
  8933.     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
  8934.     ;;
  8935.  
  8936.   gnu*)
  8937.     # Under GNU Hurd, this test is not required because there is
  8938.     # no limit to the length of command line arguments.
  8939.     # Libtool will interpret -1 as no limit whatsoever
  8940.     lt_cv_sys_max_cmd_len=-1;
  8941.     ;;
  8942.  
  8943.   cygwin* | mingw* | cegcc*)
  8944.     # On Win9x/ME, this test blows up -- it succeeds, but takes
  8945.     # about 5 minutes as the teststring grows exponentially.
  8946.     # Worse, since 9x/ME are not pre-emptively multitasking,
  8947.     # you end up with a "frozen" computer, even though with patience
  8948.     # the test eventually succeeds (with a max line length of 256k).
  8949.     # Instead, let's just punt: use the minimum linelength reported by
  8950.     # all of the supported platforms: 8192 (on NT/2K/XP).
  8951.     lt_cv_sys_max_cmd_len=8192;
  8952.     ;;
  8953.  
  8954.   mint*)
  8955.     # On MiNT this can take a long time and run out of memory.
  8956.     lt_cv_sys_max_cmd_len=8192;
  8957.     ;;
  8958.  
  8959.   amigaos*)
  8960.     # On AmigaOS with pdksh, this test takes hours, literally.
  8961.     # So we just punt and use a minimum line length of 8192.
  8962.     lt_cv_sys_max_cmd_len=8192;
  8963.     ;;
  8964.  
  8965.   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  8966.     # This has been around since 386BSD, at least.  Likely further.
  8967.     if test -x /sbin/sysctl; then
  8968.       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  8969.     elif test -x /usr/sbin/sysctl; then
  8970.       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  8971.     else
  8972.       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
  8973.     fi
  8974.     # And add a safety zone
  8975.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  8976.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  8977.     ;;
  8978.  
  8979.   interix*)
  8980.     # We know the value 262144 and hardcode it with a safety zone (like BSD)
  8981.     lt_cv_sys_max_cmd_len=196608
  8982.     ;;
  8983.  
  8984.   os2*)
  8985.     # The test takes a long time on OS/2.
  8986.     lt_cv_sys_max_cmd_len=8192
  8987.     ;;
  8988.  
  8989.   osf*)
  8990.     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  8991.     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  8992.     # nice to cause kernel panics so lets avoid the loop below.
  8993.     # First set a reasonable default.
  8994.     lt_cv_sys_max_cmd_len=16384
  8995.     #
  8996.     if test -x /sbin/sysconfig; then
  8997.       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  8998.         *1*) lt_cv_sys_max_cmd_len=-1 ;;
  8999.       esac
  9000.     fi
  9001.     ;;
  9002.   sco3.2v5*)
  9003.     lt_cv_sys_max_cmd_len=102400
  9004.     ;;
  9005.   sysv5* | sco5v6* | sysv4.2uw2*)
  9006.     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  9007.     if test -n "$kargmax"; then
  9008.       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
  9009.     else
  9010.       lt_cv_sys_max_cmd_len=32768
  9011.     fi
  9012.     ;;
  9013.   *)
  9014.     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  9015.     if test -n "$lt_cv_sys_max_cmd_len" && \
  9016.         test undefined != "$lt_cv_sys_max_cmd_len"; then
  9017.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  9018.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  9019.     else
  9020.       # Make teststring a little bigger before we do anything with it.
  9021.       # a 1K string should be a reasonable start.
  9022.       for i in 1 2 3 4 5 6 7 8 ; do
  9023.         teststring=$teststring$teststring
  9024.       done
  9025.       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  9026.       # If test is not a shell built-in, we'll probably end up computing a
  9027.       # maximum length that is only half of the actual maximum length, but
  9028.       # we can't tell.
  9029.       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  9030.                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  9031.               test $i != 17 # 1/2 MB should be enough
  9032.       do
  9033.         i=`expr $i + 1`
  9034.         teststring=$teststring$teststring
  9035.       done
  9036.       # Only check the string length outside the loop.
  9037.       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  9038.       teststring=
  9039.       # Add a significant safety factor because C++ compilers can tack on
  9040.       # massive amounts of additional arguments before passing them to the
  9041.       # linker.  It appears as though 1/2 is a usable value.
  9042.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  9043.     fi
  9044.     ;;
  9045.   esac
  9046.  
  9047. fi
  9048.  
  9049. if test -n $lt_cv_sys_max_cmd_len ; then
  9050.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  9051. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  9052. else
  9053.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  9054. $as_echo "none" >&6; }
  9055. fi
  9056. max_cmd_len=$lt_cv_sys_max_cmd_len
  9057.  
  9058.  
  9059.  
  9060.  
  9061.  
  9062.  
  9063. : ${CP="cp -f"}
  9064. : ${MV="mv -f"}
  9065. : ${RM="rm -f"}
  9066.  
  9067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  9068. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  9069. # Try some XSI features
  9070. xsi_shell=no
  9071. ( _lt_dummy="a/b/c"
  9072.   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  9073.       = c,a/b,b/c, \
  9074.     && eval 'test $(( 1 + 1 )) -eq 2 \
  9075.     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  9076.   && xsi_shell=yes
  9077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  9078. $as_echo "$xsi_shell" >&6; }
  9079.  
  9080.  
  9081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  9082. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  9083. lt_shell_append=no
  9084. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  9085.     >/dev/null 2>&1 \
  9086.   && lt_shell_append=yes
  9087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  9088. $as_echo "$lt_shell_append" >&6; }
  9089.  
  9090.  
  9091. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9092.   lt_unset=unset
  9093. else
  9094.   lt_unset=false
  9095. fi
  9096.  
  9097.  
  9098.  
  9099.  
  9100.  
  9101. # test EBCDIC or ASCII
  9102. case `echo X|tr X '\101'` in
  9103.  A) # ASCII based system
  9104.     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  9105.   lt_SP2NL='tr \040 \012'
  9106.   lt_NL2SP='tr \015\012 \040\040'
  9107.   ;;
  9108.  *) # EBCDIC based system
  9109.   lt_SP2NL='tr \100 \n'
  9110.   lt_NL2SP='tr \r\n \100\100'
  9111.   ;;
  9112. esac
  9113.  
  9114.  
  9115.  
  9116.  
  9117.  
  9118.  
  9119.  
  9120.  
  9121.  
  9122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  9123. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  9124. if ${lt_cv_to_host_file_cmd+:} false; then :
  9125.   $as_echo_n "(cached) " >&6
  9126. else
  9127.   case $host in
  9128.   *-*-mingw* )
  9129.     case $build in
  9130.       *-*-mingw* ) # actually msys
  9131.         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  9132.         ;;
  9133.       *-*-cygwin* )
  9134.         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  9135.         ;;
  9136.       * ) # otherwise, assume *nix
  9137.         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  9138.         ;;
  9139.     esac
  9140.     ;;
  9141.   *-*-cygwin* )
  9142.     case $build in
  9143.       *-*-mingw* ) # actually msys
  9144.         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  9145.         ;;
  9146.       *-*-cygwin* )
  9147.         lt_cv_to_host_file_cmd=func_convert_file_noop
  9148.         ;;
  9149.       * ) # otherwise, assume *nix
  9150.         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  9151.         ;;
  9152.     esac
  9153.     ;;
  9154.   * ) # unhandled hosts (and "normal" native builds)
  9155.     lt_cv_to_host_file_cmd=func_convert_file_noop
  9156.     ;;
  9157. esac
  9158.  
  9159. fi
  9160.  
  9161. to_host_file_cmd=$lt_cv_to_host_file_cmd
  9162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  9163. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  9164.  
  9165.  
  9166.  
  9167.  
  9168.  
  9169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  9170. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  9171. if ${lt_cv_to_tool_file_cmd+:} false; then :
  9172.   $as_echo_n "(cached) " >&6
  9173. else
  9174.   #assume ordinary cross tools, or native build.
  9175. lt_cv_to_tool_file_cmd=func_convert_file_noop
  9176. case $host in
  9177.   *-*-mingw* )
  9178.     case $build in
  9179.       *-*-mingw* ) # actually msys
  9180.         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  9181.         ;;
  9182.     esac
  9183.     ;;
  9184. esac
  9185.  
  9186. fi
  9187.  
  9188. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  9189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  9190. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  9191.  
  9192.  
  9193.  
  9194.  
  9195.  
  9196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  9197. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  9198. if ${lt_cv_ld_reload_flag+:} false; then :
  9199.   $as_echo_n "(cached) " >&6
  9200. else
  9201.   lt_cv_ld_reload_flag='-r'
  9202. fi
  9203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  9204. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  9205. reload_flag=$lt_cv_ld_reload_flag
  9206. case $reload_flag in
  9207. "" | " "*) ;;
  9208. *) reload_flag=" $reload_flag" ;;
  9209. esac
  9210. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  9211. case $host_os in
  9212.   cygwin* | mingw* | pw32* | cegcc*)
  9213.     if test "$GCC" != yes; then
  9214.       reload_cmds=false
  9215.     fi
  9216.     ;;
  9217.   darwin*)
  9218.     if test "$GCC" = yes; then
  9219.       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  9220.     else
  9221.       reload_cmds='$LD$reload_flag -o $output$reload_objs'
  9222.     fi
  9223.     ;;
  9224. esac
  9225.  
  9226.  
  9227.  
  9228.  
  9229.  
  9230.  
  9231.  
  9232.  
  9233.  
  9234. if test -n "$ac_tool_prefix"; then
  9235.   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  9236. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  9237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9238. $as_echo_n "checking for $ac_word... " >&6; }
  9239. if ${ac_cv_prog_OBJDUMP+:} false; then :
  9240.   $as_echo_n "(cached) " >&6
  9241. else
  9242.   if test -n "$OBJDUMP"; then
  9243.   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  9244. else
  9245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9246. for as_dir in $PATH
  9247. do
  9248.   IFS=$as_save_IFS
  9249.   test -z "$as_dir" && as_dir=.
  9250.     for ac_exec_ext in '' $ac_executable_extensions; do
  9251.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9252.     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  9253.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9254.     break 2
  9255.   fi
  9256. done
  9257.   done
  9258. IFS=$as_save_IFS
  9259.  
  9260. fi
  9261. fi
  9262. OBJDUMP=$ac_cv_prog_OBJDUMP
  9263. if test -n "$OBJDUMP"; then
  9264.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  9265. $as_echo "$OBJDUMP" >&6; }
  9266. else
  9267.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9268. $as_echo "no" >&6; }
  9269. fi
  9270.  
  9271.  
  9272. fi
  9273. if test -z "$ac_cv_prog_OBJDUMP"; then
  9274.   ac_ct_OBJDUMP=$OBJDUMP
  9275.   # Extract the first word of "objdump", so it can be a program name with args.
  9276. set dummy objdump; ac_word=$2
  9277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9278. $as_echo_n "checking for $ac_word... " >&6; }
  9279. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  9280.   $as_echo_n "(cached) " >&6
  9281. else
  9282.   if test -n "$ac_ct_OBJDUMP"; then
  9283.   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  9284. else
  9285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9286. for as_dir in $PATH
  9287. do
  9288.   IFS=$as_save_IFS
  9289.   test -z "$as_dir" && as_dir=.
  9290.     for ac_exec_ext in '' $ac_executable_extensions; do
  9291.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9292.     ac_cv_prog_ac_ct_OBJDUMP="objdump"
  9293.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9294.     break 2
  9295.   fi
  9296. done
  9297.   done
  9298. IFS=$as_save_IFS
  9299.  
  9300. fi
  9301. fi
  9302. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  9303. if test -n "$ac_ct_OBJDUMP"; then
  9304.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  9305. $as_echo "$ac_ct_OBJDUMP" >&6; }
  9306. else
  9307.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9308. $as_echo "no" >&6; }
  9309. fi
  9310.  
  9311.   if test "x$ac_ct_OBJDUMP" = x; then
  9312.     OBJDUMP="false"
  9313.   else
  9314.     case $cross_compiling:$ac_tool_warned in
  9315. yes:)
  9316. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9317. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9318. ac_tool_warned=yes ;;
  9319. esac
  9320.     OBJDUMP=$ac_ct_OBJDUMP
  9321.   fi
  9322. else
  9323.   OBJDUMP="$ac_cv_prog_OBJDUMP"
  9324. fi
  9325.  
  9326. test -z "$OBJDUMP" && OBJDUMP=objdump
  9327.  
  9328.  
  9329.  
  9330.  
  9331.  
  9332.  
  9333.  
  9334.  
  9335.  
  9336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  9337. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  9338. if ${lt_cv_deplibs_check_method+:} false; then :
  9339.   $as_echo_n "(cached) " >&6
  9340. else
  9341.   lt_cv_file_magic_cmd='$MAGIC_CMD'
  9342. lt_cv_file_magic_test_file=
  9343. lt_cv_deplibs_check_method='unknown'
  9344. # Need to set the preceding variable on all platforms that support
  9345. # interlibrary dependencies.
  9346. # 'none' -- dependencies not supported.
  9347. # `unknown' -- same as none, but documents that we really don't know.
  9348. # 'pass_all' -- all dependencies passed with no checks.
  9349. # 'test_compile' -- check by making test program.
  9350. # 'file_magic [[regex]]' -- check by looking for files in library path
  9351. # which responds to the $file_magic_cmd with a given extended regex.
  9352. # If you have `file' or equivalent on your system and you're not sure
  9353. # whether `pass_all' will *always* work, you probably want this one.
  9354.  
  9355. case $host_os in
  9356. aix[4-9]*)
  9357.   lt_cv_deplibs_check_method=pass_all
  9358.   ;;
  9359.  
  9360. beos*)
  9361.   lt_cv_deplibs_check_method=pass_all
  9362.   ;;
  9363.  
  9364. bsdi[45]*)
  9365.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  9366.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  9367.   lt_cv_file_magic_test_file=/shlib/libc.so
  9368.   ;;
  9369.  
  9370. cygwin*)
  9371.   # func_win32_libid is a shell function defined in ltmain.sh
  9372.   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  9373.   lt_cv_file_magic_cmd='func_win32_libid'
  9374.   ;;
  9375.  
  9376. mingw* | pw32*)
  9377.   # Base MSYS/MinGW do not provide the 'file' command needed by
  9378.   # func_win32_libid shell function, so use a weaker test based on 'objdump',
  9379.   # unless we find 'file', for example because we are cross-compiling.
  9380.   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  9381.   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  9382.     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  9383.     lt_cv_file_magic_cmd='func_win32_libid'
  9384.   else
  9385.     # Keep this pattern in sync with the one in func_win32_libid.
  9386.     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  9387.     lt_cv_file_magic_cmd='$OBJDUMP -f'
  9388.   fi
  9389.   ;;
  9390.  
  9391. cegcc*)
  9392.   # use the weaker test based on 'objdump'. See mingw*.
  9393.   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  9394.   lt_cv_file_magic_cmd='$OBJDUMP -f'
  9395.   ;;
  9396.  
  9397. darwin* | rhapsody*)
  9398.   lt_cv_deplibs_check_method=pass_all
  9399.   ;;
  9400.  
  9401. freebsd* | dragonfly*)
  9402.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  9403.     case $host_cpu in
  9404.     i*86 )
  9405.       # Not sure whether the presence of OpenBSD here was a mistake.
  9406.       # Let's accept both of them until this is cleared up.
  9407.       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  9408.       lt_cv_file_magic_cmd=/usr/bin/file
  9409.       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  9410.       ;;
  9411.     esac
  9412.   else
  9413.     lt_cv_deplibs_check_method=pass_all
  9414.   fi
  9415.   ;;
  9416.  
  9417. haiku*)
  9418.   lt_cv_deplibs_check_method=pass_all
  9419.   ;;
  9420.  
  9421. hpux10.20* | hpux11*)
  9422.   lt_cv_file_magic_cmd=/usr/bin/file
  9423.   case $host_cpu in
  9424.   ia64*)
  9425.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  9426.     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  9427.     ;;
  9428.   hppa*64*)
  9429.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  9430.     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  9431.     ;;
  9432.   *)
  9433.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  9434.     lt_cv_file_magic_test_file=/usr/lib/libc.sl
  9435.     ;;
  9436.   esac
  9437.   ;;
  9438.  
  9439. interix[3-9]*)
  9440.   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  9441.   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  9442.   ;;
  9443.  
  9444. irix5* | irix6* | nonstopux*)
  9445.   case $LD in
  9446.   *-32|*"-32 ") libmagic=32-bit;;
  9447.   *-n32|*"-n32 ") libmagic=N32;;
  9448.   *-64|*"-64 ") libmagic=64-bit;;
  9449.   *) libmagic=never-match;;
  9450.   esac
  9451.   lt_cv_deplibs_check_method=pass_all
  9452.   ;;
  9453.  
  9454. # This must be glibc/ELF.
  9455. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9456.   lt_cv_deplibs_check_method=pass_all
  9457.   ;;
  9458.  
  9459. netbsd* | netbsdelf*-gnu)
  9460.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  9461.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  9462.   else
  9463.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  9464.   fi
  9465.   ;;
  9466.  
  9467. newos6*)
  9468.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  9469.   lt_cv_file_magic_cmd=/usr/bin/file
  9470.   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  9471.   ;;
  9472.  
  9473. *nto* | *qnx*)
  9474.   lt_cv_deplibs_check_method=pass_all
  9475.   ;;
  9476.  
  9477. openbsd*)
  9478.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9479.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  9480.   else
  9481.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  9482.   fi
  9483.   ;;
  9484.  
  9485. osf3* | osf4* | osf5*)
  9486.   lt_cv_deplibs_check_method=pass_all
  9487.   ;;
  9488.  
  9489. rdos*)
  9490.   lt_cv_deplibs_check_method=pass_all
  9491.   ;;
  9492.  
  9493. solaris*)
  9494.   lt_cv_deplibs_check_method=pass_all
  9495.   ;;
  9496.  
  9497. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9498.   lt_cv_deplibs_check_method=pass_all
  9499.   ;;
  9500.  
  9501. sysv4 | sysv4.3*)
  9502.   case $host_vendor in
  9503.   motorola)
  9504.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  9505.     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  9506.     ;;
  9507.   ncr)
  9508.     lt_cv_deplibs_check_method=pass_all
  9509.     ;;
  9510.   sequent)
  9511.     lt_cv_file_magic_cmd='/bin/file'
  9512.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  9513.     ;;
  9514.   sni)
  9515.     lt_cv_file_magic_cmd='/bin/file'
  9516.     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  9517.     lt_cv_file_magic_test_file=/lib/libc.so
  9518.     ;;
  9519.   siemens)
  9520.     lt_cv_deplibs_check_method=pass_all
  9521.     ;;
  9522.   pc)
  9523.     lt_cv_deplibs_check_method=pass_all
  9524.     ;;
  9525.   esac
  9526.   ;;
  9527.  
  9528. tpf*)
  9529.   lt_cv_deplibs_check_method=pass_all
  9530.   ;;
  9531. esac
  9532.  
  9533. fi
  9534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  9535. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  9536.  
  9537. file_magic_glob=
  9538. want_nocaseglob=no
  9539. if test "$build" = "$host"; then
  9540.   case $host_os in
  9541.   mingw* | pw32*)
  9542.     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  9543.       want_nocaseglob=yes
  9544.     else
  9545.       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  9546.     fi
  9547.     ;;
  9548.   esac
  9549. fi
  9550.  
  9551. file_magic_cmd=$lt_cv_file_magic_cmd
  9552. deplibs_check_method=$lt_cv_deplibs_check_method
  9553. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  9554.  
  9555.  
  9556.  
  9557.  
  9558.  
  9559.  
  9560.  
  9561.  
  9562.  
  9563.  
  9564.  
  9565.  
  9566.  
  9567.  
  9568.  
  9569.  
  9570.  
  9571.  
  9572.  
  9573.  
  9574.  
  9575.  
  9576. if test -n "$ac_tool_prefix"; then
  9577.   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  9578. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  9579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9580. $as_echo_n "checking for $ac_word... " >&6; }
  9581. if ${ac_cv_prog_DLLTOOL+:} false; then :
  9582.   $as_echo_n "(cached) " >&6
  9583. else
  9584.   if test -n "$DLLTOOL"; then
  9585.   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  9586. else
  9587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9588. for as_dir in $PATH
  9589. do
  9590.   IFS=$as_save_IFS
  9591.   test -z "$as_dir" && as_dir=.
  9592.     for ac_exec_ext in '' $ac_executable_extensions; do
  9593.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9594.     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  9595.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9596.     break 2
  9597.   fi
  9598. done
  9599.   done
  9600. IFS=$as_save_IFS
  9601.  
  9602. fi
  9603. fi
  9604. DLLTOOL=$ac_cv_prog_DLLTOOL
  9605. if test -n "$DLLTOOL"; then
  9606.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  9607. $as_echo "$DLLTOOL" >&6; }
  9608. else
  9609.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9610. $as_echo "no" >&6; }
  9611. fi
  9612.  
  9613.  
  9614. fi
  9615. if test -z "$ac_cv_prog_DLLTOOL"; then
  9616.   ac_ct_DLLTOOL=$DLLTOOL
  9617.   # Extract the first word of "dlltool", so it can be a program name with args.
  9618. set dummy dlltool; ac_word=$2
  9619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9620. $as_echo_n "checking for $ac_word... " >&6; }
  9621. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  9622.   $as_echo_n "(cached) " >&6
  9623. else
  9624.   if test -n "$ac_ct_DLLTOOL"; then
  9625.   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  9626. else
  9627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9628. for as_dir in $PATH
  9629. do
  9630.   IFS=$as_save_IFS
  9631.   test -z "$as_dir" && as_dir=.
  9632.     for ac_exec_ext in '' $ac_executable_extensions; do
  9633.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9634.     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  9635.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9636.     break 2
  9637.   fi
  9638. done
  9639.   done
  9640. IFS=$as_save_IFS
  9641.  
  9642. fi
  9643. fi
  9644. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  9645. if test -n "$ac_ct_DLLTOOL"; then
  9646.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  9647. $as_echo "$ac_ct_DLLTOOL" >&6; }
  9648. else
  9649.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9650. $as_echo "no" >&6; }
  9651. fi
  9652.  
  9653.   if test "x$ac_ct_DLLTOOL" = x; then
  9654.     DLLTOOL="false"
  9655.   else
  9656.     case $cross_compiling:$ac_tool_warned in
  9657. yes:)
  9658. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9659. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9660. ac_tool_warned=yes ;;
  9661. esac
  9662.     DLLTOOL=$ac_ct_DLLTOOL
  9663.   fi
  9664. else
  9665.   DLLTOOL="$ac_cv_prog_DLLTOOL"
  9666. fi
  9667.  
  9668. test -z "$DLLTOOL" && DLLTOOL=dlltool
  9669.  
  9670.  
  9671.  
  9672.  
  9673.  
  9674.  
  9675.  
  9676.  
  9677.  
  9678.  
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  9680. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  9681. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  9682.   $as_echo_n "(cached) " >&6
  9683. else
  9684.   lt_cv_sharedlib_from_linklib_cmd='unknown'
  9685.  
  9686. case $host_os in
  9687. cygwin* | mingw* | pw32* | cegcc*)
  9688.   # two different shell functions defined in ltmain.sh
  9689.   # decide which to use based on capabilities of $DLLTOOL
  9690.   case `$DLLTOOL --help 2>&1` in
  9691.   *--identify-strict*)
  9692.     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  9693.     ;;
  9694.   *)
  9695.     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  9696.     ;;
  9697.   esac
  9698.   ;;
  9699. *)
  9700.   # fallback: assume linklib IS sharedlib
  9701.   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  9702.   ;;
  9703. esac
  9704.  
  9705. fi
  9706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  9707. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  9708. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  9709. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  9710.  
  9711.  
  9712.  
  9713.  
  9714.  
  9715.  
  9716.  
  9717. if test -n "$ac_tool_prefix"; then
  9718.   for ac_prog in ar
  9719.   do
  9720.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9721. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9723. $as_echo_n "checking for $ac_word... " >&6; }
  9724. if ${ac_cv_prog_AR+:} false; then :
  9725.   $as_echo_n "(cached) " >&6
  9726. else
  9727.   if test -n "$AR"; then
  9728.   ac_cv_prog_AR="$AR" # Let the user override the test.
  9729. else
  9730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9731. for as_dir in $PATH
  9732. do
  9733.   IFS=$as_save_IFS
  9734.   test -z "$as_dir" && as_dir=.
  9735.     for ac_exec_ext in '' $ac_executable_extensions; do
  9736.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9737.     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  9738.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9739.     break 2
  9740.   fi
  9741. done
  9742.   done
  9743. IFS=$as_save_IFS
  9744.  
  9745. fi
  9746. fi
  9747. AR=$ac_cv_prog_AR
  9748. if test -n "$AR"; then
  9749.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  9750. $as_echo "$AR" >&6; }
  9751. else
  9752.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9753. $as_echo "no" >&6; }
  9754. fi
  9755.  
  9756.  
  9757.     test -n "$AR" && break
  9758.   done
  9759. fi
  9760. if test -z "$AR"; then
  9761.   ac_ct_AR=$AR
  9762.   for ac_prog in ar
  9763. do
  9764.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  9765. set dummy $ac_prog; ac_word=$2
  9766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9767. $as_echo_n "checking for $ac_word... " >&6; }
  9768. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  9769.   $as_echo_n "(cached) " >&6
  9770. else
  9771.   if test -n "$ac_ct_AR"; then
  9772.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  9773. else
  9774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9775. for as_dir in $PATH
  9776. do
  9777.   IFS=$as_save_IFS
  9778.   test -z "$as_dir" && as_dir=.
  9779.     for ac_exec_ext in '' $ac_executable_extensions; do
  9780.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9781.     ac_cv_prog_ac_ct_AR="$ac_prog"
  9782.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9783.     break 2
  9784.   fi
  9785. done
  9786.   done
  9787. IFS=$as_save_IFS
  9788.  
  9789. fi
  9790. fi
  9791. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  9792. if test -n "$ac_ct_AR"; then
  9793.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  9794. $as_echo "$ac_ct_AR" >&6; }
  9795. else
  9796.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9797. $as_echo "no" >&6; }
  9798. fi
  9799.  
  9800.  
  9801.   test -n "$ac_ct_AR" && break
  9802. done
  9803.  
  9804.   if test "x$ac_ct_AR" = x; then
  9805.     AR="false"
  9806.   else
  9807.     case $cross_compiling:$ac_tool_warned in
  9808. yes:)
  9809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9810. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9811. ac_tool_warned=yes ;;
  9812. esac
  9813.     AR=$ac_ct_AR
  9814.   fi
  9815. fi
  9816.  
  9817. : ${AR=ar}
  9818. : ${AR_FLAGS=cru}
  9819.  
  9820.  
  9821.  
  9822.  
  9823.  
  9824.  
  9825.  
  9826.  
  9827.  
  9828.  
  9829.  
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  9831. $as_echo_n "checking for archiver @FILE support... " >&6; }
  9832. if ${lt_cv_ar_at_file+:} false; then :
  9833.   $as_echo_n "(cached) " >&6
  9834. else
  9835.   lt_cv_ar_at_file=no
  9836.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9837. /* end confdefs.h.  */
  9838.  
  9839. int
  9840. main ()
  9841. {
  9842.  
  9843.   ;
  9844.   return 0;
  9845. }
  9846. _ACEOF
  9847. if ac_fn_c_try_compile "$LINENO"; then :
  9848.   echo conftest.$ac_objext > conftest.lst
  9849.       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  9850.       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  9851.   (eval $lt_ar_try) 2>&5
  9852.   ac_status=$?
  9853.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9854.   test $ac_status = 0; }
  9855.       if test "$ac_status" -eq 0; then
  9856.         # Ensure the archiver fails upon bogus file names.
  9857.         rm -f conftest.$ac_objext libconftest.a
  9858.         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  9859.   (eval $lt_ar_try) 2>&5
  9860.   ac_status=$?
  9861.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9862.   test $ac_status = 0; }
  9863.         if test "$ac_status" -ne 0; then
  9864.           lt_cv_ar_at_file=@
  9865.         fi
  9866.       fi
  9867.       rm -f conftest.* libconftest.a
  9868.  
  9869. fi
  9870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9871.  
  9872. fi
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  9874. $as_echo "$lt_cv_ar_at_file" >&6; }
  9875.  
  9876. if test "x$lt_cv_ar_at_file" = xno; then
  9877.   archiver_list_spec=
  9878. else
  9879.   archiver_list_spec=$lt_cv_ar_at_file
  9880. fi
  9881.  
  9882.  
  9883.  
  9884.  
  9885.  
  9886.  
  9887.  
  9888. if test -n "$ac_tool_prefix"; then
  9889.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  9890. set dummy ${ac_tool_prefix}strip; ac_word=$2
  9891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9892. $as_echo_n "checking for $ac_word... " >&6; }
  9893. if ${ac_cv_prog_STRIP+:} false; then :
  9894.   $as_echo_n "(cached) " >&6
  9895. else
  9896.   if test -n "$STRIP"; then
  9897.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  9898. else
  9899. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9900. for as_dir in $PATH
  9901. do
  9902.   IFS=$as_save_IFS
  9903.   test -z "$as_dir" && as_dir=.
  9904.     for ac_exec_ext in '' $ac_executable_extensions; do
  9905.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9906.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  9907.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9908.     break 2
  9909.   fi
  9910. done
  9911.   done
  9912. IFS=$as_save_IFS
  9913.  
  9914. fi
  9915. fi
  9916. STRIP=$ac_cv_prog_STRIP
  9917. if test -n "$STRIP"; then
  9918.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  9919. $as_echo "$STRIP" >&6; }
  9920. else
  9921.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9922. $as_echo "no" >&6; }
  9923. fi
  9924.  
  9925.  
  9926. fi
  9927. if test -z "$ac_cv_prog_STRIP"; then
  9928.   ac_ct_STRIP=$STRIP
  9929.   # Extract the first word of "strip", so it can be a program name with args.
  9930. set dummy strip; ac_word=$2
  9931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9932. $as_echo_n "checking for $ac_word... " >&6; }
  9933. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  9934.   $as_echo_n "(cached) " >&6
  9935. else
  9936.   if test -n "$ac_ct_STRIP"; then
  9937.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  9938. else
  9939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9940. for as_dir in $PATH
  9941. do
  9942.   IFS=$as_save_IFS
  9943.   test -z "$as_dir" && as_dir=.
  9944.     for ac_exec_ext in '' $ac_executable_extensions; do
  9945.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9946.     ac_cv_prog_ac_ct_STRIP="strip"
  9947.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9948.     break 2
  9949.   fi
  9950. done
  9951.   done
  9952. IFS=$as_save_IFS
  9953.  
  9954. fi
  9955. fi
  9956. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  9957. if test -n "$ac_ct_STRIP"; then
  9958.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  9959. $as_echo "$ac_ct_STRIP" >&6; }
  9960. else
  9961.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9962. $as_echo "no" >&6; }
  9963. fi
  9964.  
  9965.   if test "x$ac_ct_STRIP" = x; then
  9966.     STRIP=":"
  9967.   else
  9968.     case $cross_compiling:$ac_tool_warned in
  9969. yes:)
  9970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9971. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9972. ac_tool_warned=yes ;;
  9973. esac
  9974.     STRIP=$ac_ct_STRIP
  9975.   fi
  9976. else
  9977.   STRIP="$ac_cv_prog_STRIP"
  9978. fi
  9979.  
  9980. test -z "$STRIP" && STRIP=:
  9981.  
  9982.  
  9983.  
  9984.  
  9985.  
  9986.  
  9987. if test -n "$ac_tool_prefix"; then
  9988.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  9989. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  9990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9991. $as_echo_n "checking for $ac_word... " >&6; }
  9992. if ${ac_cv_prog_RANLIB+:} false; then :
  9993.   $as_echo_n "(cached) " >&6
  9994. else
  9995.   if test -n "$RANLIB"; then
  9996.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  9997. else
  9998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9999. for as_dir in $PATH
  10000. do
  10001.   IFS=$as_save_IFS
  10002.   test -z "$as_dir" && as_dir=.
  10003.     for ac_exec_ext in '' $ac_executable_extensions; do
  10004.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10005.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  10006.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10007.     break 2
  10008.   fi
  10009. done
  10010.   done
  10011. IFS=$as_save_IFS
  10012.  
  10013. fi
  10014. fi
  10015. RANLIB=$ac_cv_prog_RANLIB
  10016. if test -n "$RANLIB"; then
  10017.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  10018. $as_echo "$RANLIB" >&6; }
  10019. else
  10020.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10021. $as_echo "no" >&6; }
  10022. fi
  10023.  
  10024.  
  10025. fi
  10026. if test -z "$ac_cv_prog_RANLIB"; then
  10027.   ac_ct_RANLIB=$RANLIB
  10028.   # Extract the first word of "ranlib", so it can be a program name with args.
  10029. set dummy ranlib; ac_word=$2
  10030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10031. $as_echo_n "checking for $ac_word... " >&6; }
  10032. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  10033.   $as_echo_n "(cached) " >&6
  10034. else
  10035.   if test -n "$ac_ct_RANLIB"; then
  10036.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  10037. else
  10038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10039. for as_dir in $PATH
  10040. do
  10041.   IFS=$as_save_IFS
  10042.   test -z "$as_dir" && as_dir=.
  10043.     for ac_exec_ext in '' $ac_executable_extensions; do
  10044.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10045.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  10046.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10047.     break 2
  10048.   fi
  10049. done
  10050.   done
  10051. IFS=$as_save_IFS
  10052.  
  10053. fi
  10054. fi
  10055. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  10056. if test -n "$ac_ct_RANLIB"; then
  10057.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  10058. $as_echo "$ac_ct_RANLIB" >&6; }
  10059. else
  10060.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10061. $as_echo "no" >&6; }
  10062. fi
  10063.  
  10064.   if test "x$ac_ct_RANLIB" = x; then
  10065.     RANLIB=":"
  10066.   else
  10067.     case $cross_compiling:$ac_tool_warned in
  10068. yes:)
  10069. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10070. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10071. ac_tool_warned=yes ;;
  10072. esac
  10073.     RANLIB=$ac_ct_RANLIB
  10074.   fi
  10075. else
  10076.   RANLIB="$ac_cv_prog_RANLIB"
  10077. fi
  10078.  
  10079. test -z "$RANLIB" && RANLIB=:
  10080.  
  10081.  
  10082.  
  10083.  
  10084.  
  10085.  
  10086. # Determine commands to create old-style static archives.
  10087. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  10088. old_postinstall_cmds='chmod 644 $oldlib'
  10089. old_postuninstall_cmds=
  10090.  
  10091. if test -n "$RANLIB"; then
  10092.   case $host_os in
  10093.   openbsd*)
  10094.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  10095.     ;;
  10096.   *)
  10097.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  10098.     ;;
  10099.   esac
  10100.   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  10101. fi
  10102.  
  10103. case $host_os in
  10104.   darwin*)
  10105.     lock_old_archive_extraction=yes ;;
  10106.   *)
  10107.     lock_old_archive_extraction=no ;;
  10108. esac
  10109.  
  10110.  
  10111.  
  10112.  
  10113.  
  10114.  
  10115.  
  10116.  
  10117.  
  10118.  
  10119.  
  10120.  
  10121.  
  10122.  
  10123.  
  10124.  
  10125.  
  10126.  
  10127.  
  10128.  
  10129.  
  10130.  
  10131.  
  10132.  
  10133.  
  10134.  
  10135.  
  10136.  
  10137.  
  10138.  
  10139.  
  10140.  
  10141.  
  10142.  
  10143.  
  10144.  
  10145.  
  10146.  
  10147.  
  10148. # If no C compiler was specified, use CC.
  10149. LTCC=${LTCC-"$CC"}
  10150.  
  10151. # If no C compiler flags were specified, use CFLAGS.
  10152. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10153.  
  10154. # Allow CC to be a program name with arguments.
  10155. compiler=$CC
  10156.  
  10157.  
  10158. # Check for command to grab the raw symbol name followed by C symbol from nm.
  10159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  10160. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  10161. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  10162.   $as_echo_n "(cached) " >&6
  10163. else
  10164.  
  10165. # These are sane defaults that work on at least a few old systems.
  10166. # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  10167.  
  10168. # Character class describing NM global symbol codes.
  10169. symcode='[BCDEGRST]'
  10170.  
  10171. # Regexp to match symbols that can be accessed directly from C.
  10172. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  10173.  
  10174. # Define system-specific variables.
  10175. case $host_os in
  10176. aix*)
  10177.   symcode='[BCDT]'
  10178.   ;;
  10179. cygwin* | mingw* | pw32* | cegcc*)
  10180.   symcode='[ABCDGISTW]'
  10181.   ;;
  10182. hpux*)
  10183.   if test "$host_cpu" = ia64; then
  10184.     symcode='[ABCDEGRST]'
  10185.   fi
  10186.   ;;
  10187. irix* | nonstopux*)
  10188.   symcode='[BCDEGRST]'
  10189.   ;;
  10190. osf*)
  10191.   symcode='[BCDEGQRST]'
  10192.   ;;
  10193. solaris*)
  10194.   symcode='[BDRT]'
  10195.   ;;
  10196. sco3.2v5*)
  10197.   symcode='[DT]'
  10198.   ;;
  10199. sysv4.2uw2*)
  10200.   symcode='[DT]'
  10201.   ;;
  10202. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  10203.   symcode='[ABDT]'
  10204.   ;;
  10205. sysv4)
  10206.   symcode='[DFNSTU]'
  10207.   ;;
  10208. esac
  10209.  
  10210. # If we're using GNU nm, then use its standard symbol codes.
  10211. case `$NM -V 2>&1` in
  10212. *GNU* | *'with BFD'*)
  10213.   symcode='[ABCDGIRSTW]' ;;
  10214. esac
  10215.  
  10216. # Transform an extracted symbol line into a proper C declaration.
  10217. # Some systems (esp. on ia64) link data and code symbols differently,
  10218. # so use this general approach.
  10219. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  10220.  
  10221. # Transform an extracted symbol line into symbol name and symbol address
  10222. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
  10223. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
  10224.  
  10225. # Handle CRLF in mingw tool chain
  10226. opt_cr=
  10227. case $build_os in
  10228. mingw*)
  10229.   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  10230.   ;;
  10231. esac
  10232.  
  10233. # Try without a prefix underscore, then with it.
  10234. for ac_symprfx in "" "_"; do
  10235.  
  10236.   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  10237.   symxfrm="\\1 $ac_symprfx\\2 \\2"
  10238.  
  10239.   # Write the raw and C identifiers.
  10240.   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  10241.     # Fake it for dumpbin and say T for any non-static function
  10242.     # and D for any global variable.
  10243.     # Also find C++ and __fastcall symbols from MSVC++,
  10244.     # which start with @ or ?.
  10245.     lt_cv_sys_global_symbol_pipe="$AWK '"\
  10246. "     {last_section=section; section=\$ 3};"\
  10247. "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  10248. "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  10249. "     \$ 0!~/External *\|/{next};"\
  10250. "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  10251. "     {if(hide[section]) next};"\
  10252. "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  10253. "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  10254. "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
  10255. "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  10256. "     ' prfx=^$ac_symprfx"
  10257.   else
  10258.     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  10259.   fi
  10260.   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  10261.  
  10262.   # Check to see that the pipe works correctly.
  10263.   pipe_works=no
  10264.  
  10265.   rm -f conftest*
  10266.   cat > conftest.$ac_ext <<_LT_EOF
  10267. #ifdef __cplusplus
  10268. extern "C" {
  10269. #endif
  10270. char nm_test_var;
  10271. void nm_test_func(void);
  10272. void nm_test_func(void){}
  10273. #ifdef __cplusplus
  10274. }
  10275. #endif
  10276. int main(){nm_test_var='a';nm_test_func();return(0);}
  10277. _LT_EOF
  10278.  
  10279.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10280.   (eval $ac_compile) 2>&5
  10281.   ac_status=$?
  10282.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10283.   test $ac_status = 0; }; then
  10284.     # Now try to grab the symbols.
  10285.     nlist=conftest.nm
  10286.     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  10287.   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  10288.   ac_status=$?
  10289.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10290.   test $ac_status = 0; } && test -s "$nlist"; then
  10291.       # Try sorting and uniquifying the output.
  10292.       if sort "$nlist" | uniq > "$nlist"T; then
  10293.         mv -f "$nlist"T "$nlist"
  10294.       else
  10295.         rm -f "$nlist"T
  10296.       fi
  10297.  
  10298.       # Make sure that we snagged all the symbols we need.
  10299.       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  10300.         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  10301.           cat <<_LT_EOF > conftest.$ac_ext
  10302. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  10303. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  10304. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  10305.    relocations are performed -- see ld's documentation on pseudo-relocs.  */
  10306. # define LT_DLSYM_CONST
  10307. #elif defined(__osf__)
  10308. /* This system does not cope well with relocations in const data.  */
  10309. # define LT_DLSYM_CONST
  10310. #else
  10311. # define LT_DLSYM_CONST const
  10312. #endif
  10313.  
  10314. #ifdef __cplusplus
  10315. extern "C" {
  10316. #endif
  10317.  
  10318. _LT_EOF
  10319.           # Now generate the symbol file.
  10320.           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  10321.  
  10322.           cat <<_LT_EOF >> conftest.$ac_ext
  10323.  
  10324. /* The mapping between symbol names and symbols.  */
  10325. LT_DLSYM_CONST struct {
  10326.   const char *name;
  10327.   void       *address;
  10328. }
  10329. lt__PROGRAM__LTX_preloaded_symbols[] =
  10330. {
  10331.   { "@PROGRAM@", (void *) 0 },
  10332. _LT_EOF
  10333.           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  10334.           cat <<\_LT_EOF >> conftest.$ac_ext
  10335.   {0, (void *) 0}
  10336. };
  10337.  
  10338. /* This works around a problem in FreeBSD linker */
  10339. #ifdef FREEBSD_WORKAROUND
  10340. static const void *lt_preloaded_setup() {
  10341.   return lt__PROGRAM__LTX_preloaded_symbols;
  10342. }
  10343. #endif
  10344.  
  10345. #ifdef __cplusplus
  10346. }
  10347. #endif
  10348. _LT_EOF
  10349.           # Now try linking the two files.
  10350.           mv conftest.$ac_objext conftstm.$ac_objext
  10351.           lt_globsym_save_LIBS=$LIBS
  10352.           lt_globsym_save_CFLAGS=$CFLAGS
  10353.           LIBS="conftstm.$ac_objext"
  10354.           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  10355.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10356.   (eval $ac_link) 2>&5
  10357.   ac_status=$?
  10358.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10359.   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  10360.             pipe_works=yes
  10361.           fi
  10362.           LIBS=$lt_globsym_save_LIBS
  10363.           CFLAGS=$lt_globsym_save_CFLAGS
  10364.         else
  10365.           echo "cannot find nm_test_func in $nlist" >&5
  10366.         fi
  10367.       else
  10368.         echo "cannot find nm_test_var in $nlist" >&5
  10369.       fi
  10370.     else
  10371.       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  10372.     fi
  10373.   else
  10374.     echo "$progname: failed program was:" >&5
  10375.     cat conftest.$ac_ext >&5
  10376.   fi
  10377.   rm -rf conftest* conftst*
  10378.  
  10379.   # Do not use the global_symbol_pipe unless it works.
  10380.   if test "$pipe_works" = yes; then
  10381.     break
  10382.   else
  10383.     lt_cv_sys_global_symbol_pipe=
  10384.   fi
  10385. done
  10386.  
  10387. fi
  10388.  
  10389. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  10390.   lt_cv_sys_global_symbol_to_cdecl=
  10391. fi
  10392. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  10393.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  10394. $as_echo "failed" >&6; }
  10395. else
  10396.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  10397. $as_echo "ok" >&6; }
  10398. fi
  10399.  
  10400. # Response file support.
  10401. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  10402.   nm_file_list_spec='@'
  10403. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  10404.   nm_file_list_spec='@'
  10405. fi
  10406.  
  10407.  
  10408.  
  10409.  
  10410.  
  10411.  
  10412.  
  10413.  
  10414.  
  10415.  
  10416.  
  10417.  
  10418.  
  10419.  
  10420.  
  10421.  
  10422.  
  10423.  
  10424.  
  10425.  
  10426.  
  10427.  
  10428.  
  10429.  
  10430.  
  10431.  
  10432.  
  10433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  10434. $as_echo_n "checking for sysroot... " >&6; }
  10435.  
  10436. # Check whether --with-sysroot was given.
  10437. if test "${with_sysroot+set}" = set; then :
  10438.   withval=$with_sysroot;
  10439. else
  10440.   with_sysroot=no
  10441. fi
  10442.  
  10443.  
  10444. lt_sysroot=
  10445. case ${with_sysroot} in #(
  10446.  yes)
  10447.    if test "$GCC" = yes; then
  10448.      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  10449.    fi
  10450.    ;; #(
  10451.  /*)
  10452.    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  10453.    ;; #(
  10454.  no|'')
  10455.    ;; #(
  10456.  *)
  10457.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  10458. $as_echo "${with_sysroot}" >&6; }
  10459.    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  10460.    ;;
  10461. esac
  10462.  
  10463.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  10464. $as_echo "${lt_sysroot:-no}" >&6; }
  10465.  
  10466.  
  10467.  
  10468.  
  10469.  
  10470. # Check whether --enable-libtool-lock was given.
  10471. if test "${enable_libtool_lock+set}" = set; then :
  10472.   enableval=$enable_libtool_lock;
  10473. fi
  10474.  
  10475. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  10476.  
  10477. # Some flags need to be propagated to the compiler or linker for good
  10478. # libtool support.
  10479. case $host in
  10480. ia64-*-hpux*)
  10481.   # Find out which ABI we are using.
  10482.   echo 'int i;' > conftest.$ac_ext
  10483.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10484.   (eval $ac_compile) 2>&5
  10485.   ac_status=$?
  10486.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10487.   test $ac_status = 0; }; then
  10488.     case `/usr/bin/file conftest.$ac_objext` in
  10489.       *ELF-32*)
  10490.         HPUX_IA64_MODE="32"
  10491.         ;;
  10492.       *ELF-64*)
  10493.         HPUX_IA64_MODE="64"
  10494.         ;;
  10495.     esac
  10496.   fi
  10497.   rm -rf conftest*
  10498.   ;;
  10499. *-*-irix6*)
  10500.   # Find out which ABI we are using.
  10501.   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  10502.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10503.   (eval $ac_compile) 2>&5
  10504.   ac_status=$?
  10505.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10506.   test $ac_status = 0; }; then
  10507.     if test "$lt_cv_prog_gnu_ld" = yes; then
  10508.       case `/usr/bin/file conftest.$ac_objext` in
  10509.         *32-bit*)
  10510.           LD="${LD-ld} -melf32bsmip"
  10511.           ;;
  10512.         *N32*)
  10513.           LD="${LD-ld} -melf32bmipn32"
  10514.           ;;
  10515.         *64-bit*)
  10516.           LD="${LD-ld} -melf64bmip"
  10517.         ;;
  10518.       esac
  10519.     else
  10520.       case `/usr/bin/file conftest.$ac_objext` in
  10521.         *32-bit*)
  10522.           LD="${LD-ld} -32"
  10523.           ;;
  10524.         *N32*)
  10525.           LD="${LD-ld} -n32"
  10526.           ;;
  10527.         *64-bit*)
  10528.           LD="${LD-ld} -64"
  10529.           ;;
  10530.       esac
  10531.     fi
  10532.   fi
  10533.   rm -rf conftest*
  10534.   ;;
  10535.  
  10536. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  10537. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  10538.   # Find out which ABI we are using.
  10539.   echo 'int i;' > conftest.$ac_ext
  10540.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10541.   (eval $ac_compile) 2>&5
  10542.   ac_status=$?
  10543.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10544.   test $ac_status = 0; }; then
  10545.     case `/usr/bin/file conftest.o` in
  10546.       *32-bit*)
  10547.         case $host in
  10548.           x86_64-*kfreebsd*-gnu)
  10549.             LD="${LD-ld} -m elf_i386_fbsd"
  10550.             ;;
  10551.           x86_64-*linux*)
  10552.             case `/usr/bin/file conftest.o` in
  10553.               *x86-64*)
  10554.                 LD="${LD-ld} -m elf32_x86_64"
  10555.                 ;;
  10556.               *)
  10557.                 LD="${LD-ld} -m elf_i386"
  10558.                 ;;
  10559.             esac
  10560.             ;;
  10561.           ppc64-*linux*|powerpc64-*linux*)
  10562.             LD="${LD-ld} -m elf32ppclinux"
  10563.             ;;
  10564.           s390x-*linux*)
  10565.             LD="${LD-ld} -m elf_s390"
  10566.             ;;
  10567.           sparc64-*linux*)
  10568.             LD="${LD-ld} -m elf32_sparc"
  10569.             ;;
  10570.         esac
  10571.         ;;
  10572.       *64-bit*)
  10573.         case $host in
  10574.           x86_64-*kfreebsd*-gnu)
  10575.             LD="${LD-ld} -m elf_x86_64_fbsd"
  10576.             ;;
  10577.           x86_64-*linux*)
  10578.             LD="${LD-ld} -m elf_x86_64"
  10579.             ;;
  10580.           ppc*-*linux*|powerpc*-*linux*)
  10581.             LD="${LD-ld} -m elf64ppc"
  10582.             ;;
  10583.           s390*-*linux*|s390*-*tpf*)
  10584.             LD="${LD-ld} -m elf64_s390"
  10585.             ;;
  10586.           sparc*-*linux*)
  10587.             LD="${LD-ld} -m elf64_sparc"
  10588.             ;;
  10589.         esac
  10590.         ;;
  10591.     esac
  10592.   fi
  10593.   rm -rf conftest*
  10594.   ;;
  10595.  
  10596. *-*-sco3.2v5*)
  10597.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  10598.   SAVE_CFLAGS="$CFLAGS"
  10599.   CFLAGS="$CFLAGS -belf"
  10600.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  10601. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  10602. if ${lt_cv_cc_needs_belf+:} false; then :
  10603.   $as_echo_n "(cached) " >&6
  10604. else
  10605.   ac_ext=c
  10606. ac_cpp='$CPP $CPPFLAGS'
  10607. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10608. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10609. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10610.  
  10611.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10612. /* end confdefs.h.  */
  10613.  
  10614. int
  10615. main ()
  10616. {
  10617.  
  10618.   ;
  10619.   return 0;
  10620. }
  10621. _ACEOF
  10622. if ac_fn_c_try_link "$LINENO"; then :
  10623.   lt_cv_cc_needs_belf=yes
  10624. else
  10625.   lt_cv_cc_needs_belf=no
  10626. fi
  10627. rm -f core conftest.err conftest.$ac_objext \
  10628.     conftest$ac_exeext conftest.$ac_ext
  10629.      ac_ext=c
  10630. ac_cpp='$CPP $CPPFLAGS'
  10631. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10632. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10633. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10634.  
  10635. fi
  10636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  10637. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  10638.   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  10639.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  10640.     CFLAGS="$SAVE_CFLAGS"
  10641.   fi
  10642.   ;;
  10643. *-*solaris*)
  10644.   # Find out which ABI we are using.
  10645.   echo 'int i;' > conftest.$ac_ext
  10646.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10647.   (eval $ac_compile) 2>&5
  10648.   ac_status=$?
  10649.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10650.   test $ac_status = 0; }; then
  10651.     case `/usr/bin/file conftest.o` in
  10652.     *64-bit*)
  10653.       case $lt_cv_prog_gnu_ld in
  10654.       yes*)
  10655.         case $host in
  10656.         i?86-*-solaris*)
  10657.           LD="${LD-ld} -m elf_x86_64"
  10658.           ;;
  10659.         sparc*-*-solaris*)
  10660.           LD="${LD-ld} -m elf64_sparc"
  10661.           ;;
  10662.         esac
  10663.         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
  10664.         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  10665.           LD="${LD-ld}_sol2"
  10666.         fi
  10667.         ;;
  10668.       *)
  10669.         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  10670.           LD="${LD-ld} -64"
  10671.         fi
  10672.         ;;
  10673.       esac
  10674.       ;;
  10675.     esac
  10676.   fi
  10677.   rm -rf conftest*
  10678.   ;;
  10679. esac
  10680.  
  10681. need_locks="$enable_libtool_lock"
  10682.  
  10683. if test -n "$ac_tool_prefix"; then
  10684.   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  10685. set dummy ${ac_tool_prefix}mt; ac_word=$2
  10686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10687. $as_echo_n "checking for $ac_word... " >&6; }
  10688. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  10689.   $as_echo_n "(cached) " >&6
  10690. else
  10691.   if test -n "$MANIFEST_TOOL"; then
  10692.   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  10693. else
  10694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10695. for as_dir in $PATH
  10696. do
  10697.   IFS=$as_save_IFS
  10698.   test -z "$as_dir" && as_dir=.
  10699.     for ac_exec_ext in '' $ac_executable_extensions; do
  10700.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10701.     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  10702.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10703.     break 2
  10704.   fi
  10705. done
  10706.   done
  10707. IFS=$as_save_IFS
  10708.  
  10709. fi
  10710. fi
  10711. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  10712. if test -n "$MANIFEST_TOOL"; then
  10713.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  10714. $as_echo "$MANIFEST_TOOL" >&6; }
  10715. else
  10716.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10717. $as_echo "no" >&6; }
  10718. fi
  10719.  
  10720.  
  10721. fi
  10722. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  10723.   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  10724.   # Extract the first word of "mt", so it can be a program name with args.
  10725. set dummy mt; ac_word=$2
  10726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10727. $as_echo_n "checking for $ac_word... " >&6; }
  10728. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  10729.   $as_echo_n "(cached) " >&6
  10730. else
  10731.   if test -n "$ac_ct_MANIFEST_TOOL"; then
  10732.   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  10733. else
  10734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10735. for as_dir in $PATH
  10736. do
  10737.   IFS=$as_save_IFS
  10738.   test -z "$as_dir" && as_dir=.
  10739.     for ac_exec_ext in '' $ac_executable_extensions; do
  10740.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10741.     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  10742.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10743.     break 2
  10744.   fi
  10745. done
  10746.   done
  10747. IFS=$as_save_IFS
  10748.  
  10749. fi
  10750. fi
  10751. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  10752. if test -n "$ac_ct_MANIFEST_TOOL"; then
  10753.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  10754. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  10755. else
  10756.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10757. $as_echo "no" >&6; }
  10758. fi
  10759.  
  10760.   if test "x$ac_ct_MANIFEST_TOOL" = x; then
  10761.     MANIFEST_TOOL=":"
  10762.   else
  10763.     case $cross_compiling:$ac_tool_warned in
  10764. yes:)
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10766. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10767. ac_tool_warned=yes ;;
  10768. esac
  10769.     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  10770.   fi
  10771. else
  10772.   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  10773. fi
  10774.  
  10775. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  10776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  10777. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  10778. if ${lt_cv_path_mainfest_tool+:} false; then :
  10779.   $as_echo_n "(cached) " >&6
  10780. else
  10781.   lt_cv_path_mainfest_tool=no
  10782.   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  10783.   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  10784.   cat conftest.err >&5
  10785.   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  10786.     lt_cv_path_mainfest_tool=yes
  10787.   fi
  10788.   rm -f conftest*
  10789. fi
  10790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  10791. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  10792. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  10793.   MANIFEST_TOOL=:
  10794. fi
  10795.  
  10796.  
  10797.  
  10798.  
  10799.  
  10800.  
  10801.   case $host_os in
  10802.     rhapsody* | darwin*)
  10803.     if test -n "$ac_tool_prefix"; then
  10804.   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  10805. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  10806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10807. $as_echo_n "checking for $ac_word... " >&6; }
  10808. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  10809.   $as_echo_n "(cached) " >&6
  10810. else
  10811.   if test -n "$DSYMUTIL"; then
  10812.   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  10813. else
  10814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10815. for as_dir in $PATH
  10816. do
  10817.   IFS=$as_save_IFS
  10818.   test -z "$as_dir" && as_dir=.
  10819.     for ac_exec_ext in '' $ac_executable_extensions; do
  10820.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10821.     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  10822.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10823.     break 2
  10824.   fi
  10825. done
  10826.   done
  10827. IFS=$as_save_IFS
  10828.  
  10829. fi
  10830. fi
  10831. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  10832. if test -n "$DSYMUTIL"; then
  10833.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  10834. $as_echo "$DSYMUTIL" >&6; }
  10835. else
  10836.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10837. $as_echo "no" >&6; }
  10838. fi
  10839.  
  10840.  
  10841. fi
  10842. if test -z "$ac_cv_prog_DSYMUTIL"; then
  10843.   ac_ct_DSYMUTIL=$DSYMUTIL
  10844.   # Extract the first word of "dsymutil", so it can be a program name with args.
  10845. set dummy dsymutil; ac_word=$2
  10846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10847. $as_echo_n "checking for $ac_word... " >&6; }
  10848. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  10849.   $as_echo_n "(cached) " >&6
  10850. else
  10851.   if test -n "$ac_ct_DSYMUTIL"; then
  10852.   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  10853. else
  10854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10855. for as_dir in $PATH
  10856. do
  10857.   IFS=$as_save_IFS
  10858.   test -z "$as_dir" && as_dir=.
  10859.     for ac_exec_ext in '' $ac_executable_extensions; do
  10860.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10861.     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  10862.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10863.     break 2
  10864.   fi
  10865. done
  10866.   done
  10867. IFS=$as_save_IFS
  10868.  
  10869. fi
  10870. fi
  10871. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  10872. if test -n "$ac_ct_DSYMUTIL"; then
  10873.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  10874. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  10875. else
  10876.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10877. $as_echo "no" >&6; }
  10878. fi
  10879.  
  10880.   if test "x$ac_ct_DSYMUTIL" = x; then
  10881.     DSYMUTIL=":"
  10882.   else
  10883.     case $cross_compiling:$ac_tool_warned in
  10884. yes:)
  10885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10886. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10887. ac_tool_warned=yes ;;
  10888. esac
  10889.     DSYMUTIL=$ac_ct_DSYMUTIL
  10890.   fi
  10891. else
  10892.   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  10893. fi
  10894.  
  10895.     if test -n "$ac_tool_prefix"; then
  10896.   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  10897. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  10898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10899. $as_echo_n "checking for $ac_word... " >&6; }
  10900. if ${ac_cv_prog_NMEDIT+:} false; then :
  10901.   $as_echo_n "(cached) " >&6
  10902. else
  10903.   if test -n "$NMEDIT"; then
  10904.   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  10905. else
  10906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10907. for as_dir in $PATH
  10908. do
  10909.   IFS=$as_save_IFS
  10910.   test -z "$as_dir" && as_dir=.
  10911.     for ac_exec_ext in '' $ac_executable_extensions; do
  10912.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10913.     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  10914.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10915.     break 2
  10916.   fi
  10917. done
  10918.   done
  10919. IFS=$as_save_IFS
  10920.  
  10921. fi
  10922. fi
  10923. NMEDIT=$ac_cv_prog_NMEDIT
  10924. if test -n "$NMEDIT"; then
  10925.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  10926. $as_echo "$NMEDIT" >&6; }
  10927. else
  10928.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10929. $as_echo "no" >&6; }
  10930. fi
  10931.  
  10932.  
  10933. fi
  10934. if test -z "$ac_cv_prog_NMEDIT"; then
  10935.   ac_ct_NMEDIT=$NMEDIT
  10936.   # Extract the first word of "nmedit", so it can be a program name with args.
  10937. set dummy nmedit; ac_word=$2
  10938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10939. $as_echo_n "checking for $ac_word... " >&6; }
  10940. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  10941.   $as_echo_n "(cached) " >&6
  10942. else
  10943.   if test -n "$ac_ct_NMEDIT"; then
  10944.   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  10945. else
  10946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10947. for as_dir in $PATH
  10948. do
  10949.   IFS=$as_save_IFS
  10950.   test -z "$as_dir" && as_dir=.
  10951.     for ac_exec_ext in '' $ac_executable_extensions; do
  10952.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10953.     ac_cv_prog_ac_ct_NMEDIT="nmedit"
  10954.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10955.     break 2
  10956.   fi
  10957. done
  10958.   done
  10959. IFS=$as_save_IFS
  10960.  
  10961. fi
  10962. fi
  10963. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  10964. if test -n "$ac_ct_NMEDIT"; then
  10965.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  10966. $as_echo "$ac_ct_NMEDIT" >&6; }
  10967. else
  10968.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10969. $as_echo "no" >&6; }
  10970. fi
  10971.  
  10972.   if test "x$ac_ct_NMEDIT" = x; then
  10973.     NMEDIT=":"
  10974.   else
  10975.     case $cross_compiling:$ac_tool_warned in
  10976. yes:)
  10977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10978. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10979. ac_tool_warned=yes ;;
  10980. esac
  10981.     NMEDIT=$ac_ct_NMEDIT
  10982.   fi
  10983. else
  10984.   NMEDIT="$ac_cv_prog_NMEDIT"
  10985. fi
  10986.  
  10987.     if test -n "$ac_tool_prefix"; then
  10988.   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  10989. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  10990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10991. $as_echo_n "checking for $ac_word... " >&6; }
  10992. if ${ac_cv_prog_LIPO+:} false; then :
  10993.   $as_echo_n "(cached) " >&6
  10994. else
  10995.   if test -n "$LIPO"; then
  10996.   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  10997. else
  10998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10999. for as_dir in $PATH
  11000. do
  11001.   IFS=$as_save_IFS
  11002.   test -z "$as_dir" && as_dir=.
  11003.     for ac_exec_ext in '' $ac_executable_extensions; do
  11004.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11005.     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  11006.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11007.     break 2
  11008.   fi
  11009. done
  11010.   done
  11011. IFS=$as_save_IFS
  11012.  
  11013. fi
  11014. fi
  11015. LIPO=$ac_cv_prog_LIPO
  11016. if test -n "$LIPO"; then
  11017.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  11018. $as_echo "$LIPO" >&6; }
  11019. else
  11020.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11021. $as_echo "no" >&6; }
  11022. fi
  11023.  
  11024.  
  11025. fi
  11026. if test -z "$ac_cv_prog_LIPO"; then
  11027.   ac_ct_LIPO=$LIPO
  11028.   # Extract the first word of "lipo", so it can be a program name with args.
  11029. set dummy lipo; ac_word=$2
  11030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11031. $as_echo_n "checking for $ac_word... " >&6; }
  11032. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  11033.   $as_echo_n "(cached) " >&6
  11034. else
  11035.   if test -n "$ac_ct_LIPO"; then
  11036.   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  11037. else
  11038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11039. for as_dir in $PATH
  11040. do
  11041.   IFS=$as_save_IFS
  11042.   test -z "$as_dir" && as_dir=.
  11043.     for ac_exec_ext in '' $ac_executable_extensions; do
  11044.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11045.     ac_cv_prog_ac_ct_LIPO="lipo"
  11046.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11047.     break 2
  11048.   fi
  11049. done
  11050.   done
  11051. IFS=$as_save_IFS
  11052.  
  11053. fi
  11054. fi
  11055. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  11056. if test -n "$ac_ct_LIPO"; then
  11057.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  11058. $as_echo "$ac_ct_LIPO" >&6; }
  11059. else
  11060.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11061. $as_echo "no" >&6; }
  11062. fi
  11063.  
  11064.   if test "x$ac_ct_LIPO" = x; then
  11065.     LIPO=":"
  11066.   else
  11067.     case $cross_compiling:$ac_tool_warned in
  11068. yes:)
  11069. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11070. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11071. ac_tool_warned=yes ;;
  11072. esac
  11073.     LIPO=$ac_ct_LIPO
  11074.   fi
  11075. else
  11076.   LIPO="$ac_cv_prog_LIPO"
  11077. fi
  11078.  
  11079.     if test -n "$ac_tool_prefix"; then
  11080.   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  11081. set dummy ${ac_tool_prefix}otool; ac_word=$2
  11082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11083. $as_echo_n "checking for $ac_word... " >&6; }
  11084. if ${ac_cv_prog_OTOOL+:} false; then :
  11085.   $as_echo_n "(cached) " >&6
  11086. else
  11087.   if test -n "$OTOOL"; then
  11088.   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  11089. else
  11090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11091. for as_dir in $PATH
  11092. do
  11093.   IFS=$as_save_IFS
  11094.   test -z "$as_dir" && as_dir=.
  11095.     for ac_exec_ext in '' $ac_executable_extensions; do
  11096.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11097.     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  11098.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11099.     break 2
  11100.   fi
  11101. done
  11102.   done
  11103. IFS=$as_save_IFS
  11104.  
  11105. fi
  11106. fi
  11107. OTOOL=$ac_cv_prog_OTOOL
  11108. if test -n "$OTOOL"; then
  11109.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  11110. $as_echo "$OTOOL" >&6; }
  11111. else
  11112.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11113. $as_echo "no" >&6; }
  11114. fi
  11115.  
  11116.  
  11117. fi
  11118. if test -z "$ac_cv_prog_OTOOL"; then
  11119.   ac_ct_OTOOL=$OTOOL
  11120.   # Extract the first word of "otool", so it can be a program name with args.
  11121. set dummy otool; ac_word=$2
  11122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11123. $as_echo_n "checking for $ac_word... " >&6; }
  11124. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  11125.   $as_echo_n "(cached) " >&6
  11126. else
  11127.   if test -n "$ac_ct_OTOOL"; then
  11128.   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  11129. else
  11130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11131. for as_dir in $PATH
  11132. do
  11133.   IFS=$as_save_IFS
  11134.   test -z "$as_dir" && as_dir=.
  11135.     for ac_exec_ext in '' $ac_executable_extensions; do
  11136.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11137.     ac_cv_prog_ac_ct_OTOOL="otool"
  11138.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11139.     break 2
  11140.   fi
  11141. done
  11142.   done
  11143. IFS=$as_save_IFS
  11144.  
  11145. fi
  11146. fi
  11147. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  11148. if test -n "$ac_ct_OTOOL"; then
  11149.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  11150. $as_echo "$ac_ct_OTOOL" >&6; }
  11151. else
  11152.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11153. $as_echo "no" >&6; }
  11154. fi
  11155.  
  11156.   if test "x$ac_ct_OTOOL" = x; then
  11157.     OTOOL=":"
  11158.   else
  11159.     case $cross_compiling:$ac_tool_warned in
  11160. yes:)
  11161. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11162. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11163. ac_tool_warned=yes ;;
  11164. esac
  11165.     OTOOL=$ac_ct_OTOOL
  11166.   fi
  11167. else
  11168.   OTOOL="$ac_cv_prog_OTOOL"
  11169. fi
  11170.  
  11171.     if test -n "$ac_tool_prefix"; then
  11172.   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  11173. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  11174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11175. $as_echo_n "checking for $ac_word... " >&6; }
  11176. if ${ac_cv_prog_OTOOL64+:} false; then :
  11177.   $as_echo_n "(cached) " >&6
  11178. else
  11179.   if test -n "$OTOOL64"; then
  11180.   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  11181. else
  11182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11183. for as_dir in $PATH
  11184. do
  11185.   IFS=$as_save_IFS
  11186.   test -z "$as_dir" && as_dir=.
  11187.     for ac_exec_ext in '' $ac_executable_extensions; do
  11188.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11189.     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  11190.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11191.     break 2
  11192.   fi
  11193. done
  11194.   done
  11195. IFS=$as_save_IFS
  11196.  
  11197. fi
  11198. fi
  11199. OTOOL64=$ac_cv_prog_OTOOL64
  11200. if test -n "$OTOOL64"; then
  11201.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  11202. $as_echo "$OTOOL64" >&6; }
  11203. else
  11204.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11205. $as_echo "no" >&6; }
  11206. fi
  11207.  
  11208.  
  11209. fi
  11210. if test -z "$ac_cv_prog_OTOOL64"; then
  11211.   ac_ct_OTOOL64=$OTOOL64
  11212.   # Extract the first word of "otool64", so it can be a program name with args.
  11213. set dummy otool64; ac_word=$2
  11214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11215. $as_echo_n "checking for $ac_word... " >&6; }
  11216. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  11217.   $as_echo_n "(cached) " >&6
  11218. else
  11219.   if test -n "$ac_ct_OTOOL64"; then
  11220.   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  11221. else
  11222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11223. for as_dir in $PATH
  11224. do
  11225.   IFS=$as_save_IFS
  11226.   test -z "$as_dir" && as_dir=.
  11227.     for ac_exec_ext in '' $ac_executable_extensions; do
  11228.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11229.     ac_cv_prog_ac_ct_OTOOL64="otool64"
  11230.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11231.     break 2
  11232.   fi
  11233. done
  11234.   done
  11235. IFS=$as_save_IFS
  11236.  
  11237. fi
  11238. fi
  11239. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  11240. if test -n "$ac_ct_OTOOL64"; then
  11241.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  11242. $as_echo "$ac_ct_OTOOL64" >&6; }
  11243. else
  11244.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11245. $as_echo "no" >&6; }
  11246. fi
  11247.  
  11248.   if test "x$ac_ct_OTOOL64" = x; then
  11249.     OTOOL64=":"
  11250.   else
  11251.     case $cross_compiling:$ac_tool_warned in
  11252. yes:)
  11253. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11254. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11255. ac_tool_warned=yes ;;
  11256. esac
  11257.     OTOOL64=$ac_ct_OTOOL64
  11258.   fi
  11259. else
  11260.   OTOOL64="$ac_cv_prog_OTOOL64"
  11261. fi
  11262.  
  11263.  
  11264.  
  11265.  
  11266.  
  11267.  
  11268.  
  11269.  
  11270.  
  11271.  
  11272.  
  11273.  
  11274.  
  11275.  
  11276.  
  11277.  
  11278.  
  11279.  
  11280.  
  11281.  
  11282.  
  11283.  
  11284.  
  11285.  
  11286.  
  11287.  
  11288.  
  11289.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  11290. $as_echo_n "checking for -single_module linker flag... " >&6; }
  11291. if ${lt_cv_apple_cc_single_mod+:} false; then :
  11292.   $as_echo_n "(cached) " >&6
  11293. else
  11294.   lt_cv_apple_cc_single_mod=no
  11295.       if test -z "${LT_MULTI_MODULE}"; then
  11296.         # By default we will add the -single_module flag. You can override
  11297.         # by either setting the environment variable LT_MULTI_MODULE
  11298.         # non-empty at configure time, or by adding -multi_module to the
  11299.         # link flags.
  11300.         rm -rf libconftest.dylib*
  11301.         echo "int foo(void){return 1;}" > conftest.c
  11302.         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11303. -dynamiclib -Wl,-single_module conftest.c" >&5
  11304.         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11305.           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  11306.         _lt_result=$?
  11307.         # If there is a non-empty error log, and "single_module"
  11308.         # appears in it, assume the flag caused a linker warning
  11309.         if test -s conftest.err && $GREP single_module conftest.err; then
  11310.           cat conftest.err >&5
  11311.         # Otherwise, if the output was created with a 0 exit code from
  11312.         # the compiler, it worked.
  11313.         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  11314.           lt_cv_apple_cc_single_mod=yes
  11315.         else
  11316.           cat conftest.err >&5
  11317.         fi
  11318.         rm -rf libconftest.dylib*
  11319.         rm -f conftest.*
  11320.       fi
  11321. fi
  11322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  11323. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  11324.  
  11325.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  11326. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  11327. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  11328.   $as_echo_n "(cached) " >&6
  11329. else
  11330.   lt_cv_ld_exported_symbols_list=no
  11331.       save_LDFLAGS=$LDFLAGS
  11332.       echo "_main" > conftest.sym
  11333.       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  11334.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11335. /* end confdefs.h.  */
  11336.  
  11337. int
  11338. main ()
  11339. {
  11340.  
  11341.   ;
  11342.   return 0;
  11343. }
  11344. _ACEOF
  11345. if ac_fn_c_try_link "$LINENO"; then :
  11346.   lt_cv_ld_exported_symbols_list=yes
  11347. else
  11348.   lt_cv_ld_exported_symbols_list=no
  11349. fi
  11350. rm -f core conftest.err conftest.$ac_objext \
  11351.     conftest$ac_exeext conftest.$ac_ext
  11352.         LDFLAGS="$save_LDFLAGS"
  11353.  
  11354. fi
  11355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  11356. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  11357.  
  11358.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  11359. $as_echo_n "checking for -force_load linker flag... " >&6; }
  11360. if ${lt_cv_ld_force_load+:} false; then :
  11361.   $as_echo_n "(cached) " >&6
  11362. else
  11363.   lt_cv_ld_force_load=no
  11364.       cat > conftest.c << _LT_EOF
  11365. int forced_loaded() { return 2;}
  11366. _LT_EOF
  11367.       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  11368.       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  11369.       echo "$AR cru libconftest.a conftest.o" >&5
  11370.       $AR cru libconftest.a conftest.o 2>&5
  11371.       echo "$RANLIB libconftest.a" >&5
  11372.       $RANLIB libconftest.a 2>&5
  11373.       cat > conftest.c << _LT_EOF
  11374. int main() { return 0;}
  11375. _LT_EOF
  11376.       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  11377.       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  11378.       _lt_result=$?
  11379.       if test -s conftest.err && $GREP force_load conftest.err; then
  11380.         cat conftest.err >&5
  11381.       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  11382.         lt_cv_ld_force_load=yes
  11383.       else
  11384.         cat conftest.err >&5
  11385.       fi
  11386.         rm -f conftest.err libconftest.a conftest conftest.c
  11387.         rm -rf conftest.dSYM
  11388.  
  11389. fi
  11390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  11391. $as_echo "$lt_cv_ld_force_load" >&6; }
  11392.     case $host_os in
  11393.     rhapsody* | darwin1.[012])
  11394.       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  11395.     darwin1.*)
  11396.       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  11397.     darwin*) # darwin 5.x on
  11398.       # if running on 10.5 or later, the deployment target defaults
  11399.       # to the OS version, if on x86, and 10.4, the deployment
  11400.       # target defaults to 10.4. Don't you love it?
  11401.       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  11402.         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  11403.           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  11404.         10.[012]*)
  11405.           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  11406.         10.*)
  11407.           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  11408.       esac
  11409.     ;;
  11410.   esac
  11411.     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  11412.       _lt_dar_single_mod='$single_module'
  11413.     fi
  11414.     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  11415.       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  11416.     else
  11417.       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11418.     fi
  11419.     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  11420.       _lt_dsymutil='~$DSYMUTIL $lib || :'
  11421.     else
  11422.       _lt_dsymutil=
  11423.     fi
  11424.     ;;
  11425.   esac
  11426.  
  11427.  
  11428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  11429. $as_echo_n "checking for ANSI C header files... " >&6; }
  11430. if ${ac_cv_header_stdc+:} false; then :
  11431.   $as_echo_n "(cached) " >&6
  11432. else
  11433.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11434. /* end confdefs.h.  */
  11435. #include <stdlib.h>
  11436. #include <stdarg.h>
  11437. #include <string.h>
  11438. #include <float.h>
  11439.  
  11440. int
  11441. main ()
  11442. {
  11443.  
  11444.   ;
  11445.   return 0;
  11446. }
  11447. _ACEOF
  11448. if ac_fn_c_try_compile "$LINENO"; then :
  11449.   ac_cv_header_stdc=yes
  11450. else
  11451.   ac_cv_header_stdc=no
  11452. fi
  11453. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11454.  
  11455. if test $ac_cv_header_stdc = yes; then
  11456.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  11457.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11458. /* end confdefs.h.  */
  11459. #include <string.h>
  11460.  
  11461. _ACEOF
  11462. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11463.   $EGREP "memchr" >/dev/null 2>&1; then :
  11464.  
  11465. else
  11466.   ac_cv_header_stdc=no
  11467. fi
  11468. rm -f conftest*
  11469.  
  11470. fi
  11471.  
  11472. if test $ac_cv_header_stdc = yes; then
  11473.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  11474.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11475. /* end confdefs.h.  */
  11476. #include <stdlib.h>
  11477.  
  11478. _ACEOF
  11479. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11480.   $EGREP "free" >/dev/null 2>&1; then :
  11481.  
  11482. else
  11483.   ac_cv_header_stdc=no
  11484. fi
  11485. rm -f conftest*
  11486.  
  11487. fi
  11488.  
  11489. if test $ac_cv_header_stdc = yes; then
  11490.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  11491.   if test "$cross_compiling" = yes; then :
  11492.   :
  11493. else
  11494.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11495. /* end confdefs.h.  */
  11496. #include <ctype.h>
  11497. #include <stdlib.h>
  11498. #if ((' ' & 0x0FF) == 0x020)
  11499. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  11500. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  11501. #else
  11502. # define ISLOWER(c) \
  11503.                    (('a' <= (c) && (c) <= 'i') \
  11504.                      || ('j' <= (c) && (c) <= 'r') \
  11505.                      || ('s' <= (c) && (c) <= 'z'))
  11506. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  11507. #endif
  11508.  
  11509. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  11510. int
  11511. main ()
  11512. {
  11513.   int i;
  11514.   for (i = 0; i < 256; i++)
  11515.     if (XOR (islower (i), ISLOWER (i))
  11516.         || toupper (i) != TOUPPER (i))
  11517.       return 2;
  11518.   return 0;
  11519. }
  11520. _ACEOF
  11521. if ac_fn_c_try_run "$LINENO"; then :
  11522.  
  11523. else
  11524.   ac_cv_header_stdc=no
  11525. fi
  11526. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11527.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  11528. fi
  11529.  
  11530. fi
  11531. fi
  11532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  11533. $as_echo "$ac_cv_header_stdc" >&6; }
  11534. if test $ac_cv_header_stdc = yes; then
  11535.  
  11536. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  11537.  
  11538. fi
  11539.  
  11540. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  11541. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  11542.                   inttypes.h stdint.h unistd.h
  11543. do :
  11544.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11545. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11546. "
  11547. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11548.   cat >>confdefs.h <<_ACEOF
  11549. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11550. _ACEOF
  11551.  
  11552. fi
  11553.  
  11554. done
  11555.  
  11556.  
  11557. for ac_header in dlfcn.h
  11558. do :
  11559.   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  11560. "
  11561. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  11562.   cat >>confdefs.h <<_ACEOF
  11563. #define HAVE_DLFCN_H 1
  11564. _ACEOF
  11565.  
  11566. fi
  11567.  
  11568. done
  11569.  
  11570.  
  11571.  
  11572.  
  11573. func_stripname_cnf ()
  11574. {
  11575.   case ${2} in
  11576.   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  11577.   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  11578.   esac
  11579. } # func_stripname_cnf
  11580.  
  11581.  
  11582.  
  11583.  
  11584.  
  11585. # Set options
  11586. # Check whether --enable-static was given.
  11587. if test "${enable_static+set}" = set; then :
  11588.   enableval=$enable_static; p=${PACKAGE-default}
  11589.     case $enableval in
  11590.     yes) enable_static=yes ;;
  11591.     no) enable_static=no ;;
  11592.     *)
  11593.      enable_static=no
  11594.       # Look at the argument we got.  We use all the common list separators.
  11595.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11596.       for pkg in $enableval; do
  11597.         IFS="$lt_save_ifs"
  11598.         if test "X$pkg" = "X$p"; then
  11599.           enable_static=yes
  11600.         fi
  11601.       done
  11602.       IFS="$lt_save_ifs"
  11603.       ;;
  11604.     esac
  11605. else
  11606.   enable_static=no
  11607. fi
  11608.  
  11609.  
  11610.  
  11611.  
  11612.  
  11613.  
  11614.  
  11615.  
  11616.  
  11617.  
  11618.         enable_dlopen=no
  11619.  
  11620.  
  11621.   enable_win32_dll=no
  11622.  
  11623.  
  11624.             # Check whether --enable-shared was given.
  11625. if test "${enable_shared+set}" = set; then :
  11626.   enableval=$enable_shared; p=${PACKAGE-default}
  11627.     case $enableval in
  11628.     yes) enable_shared=yes ;;
  11629.     no) enable_shared=no ;;
  11630.     *)
  11631.       enable_shared=no
  11632.       # Look at the argument we got.  We use all the common list separators.
  11633.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11634.       for pkg in $enableval; do
  11635.         IFS="$lt_save_ifs"
  11636.         if test "X$pkg" = "X$p"; then
  11637.           enable_shared=yes
  11638.         fi
  11639.       done
  11640.       IFS="$lt_save_ifs"
  11641.       ;;
  11642.     esac
  11643. else
  11644.   enable_shared=yes
  11645. fi
  11646.  
  11647.  
  11648.  
  11649.  
  11650.  
  11651.  
  11652.  
  11653.  
  11654.  
  11655.  
  11656.  
  11657. # Check whether --with-pic was given.
  11658. if test "${with_pic+set}" = set; then :
  11659.   withval=$with_pic; lt_p=${PACKAGE-default}
  11660.     case $withval in
  11661.     yes|no) pic_mode=$withval ;;
  11662.     *)
  11663.       pic_mode=default
  11664.       # Look at the argument we got.  We use all the common list separators.
  11665.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11666.       for lt_pkg in $withval; do
  11667.         IFS="$lt_save_ifs"
  11668.         if test "X$lt_pkg" = "X$lt_p"; then
  11669.           pic_mode=yes
  11670.         fi
  11671.       done
  11672.       IFS="$lt_save_ifs"
  11673.       ;;
  11674.     esac
  11675. else
  11676.   pic_mode=default
  11677. fi
  11678.  
  11679.  
  11680. test -z "$pic_mode" && pic_mode=default
  11681.  
  11682.  
  11683.  
  11684.  
  11685.  
  11686.  
  11687.  
  11688.   # Check whether --enable-fast-install was given.
  11689. if test "${enable_fast_install+set}" = set; then :
  11690.   enableval=$enable_fast_install; p=${PACKAGE-default}
  11691.     case $enableval in
  11692.     yes) enable_fast_install=yes ;;
  11693.     no) enable_fast_install=no ;;
  11694.     *)
  11695.       enable_fast_install=no
  11696.       # Look at the argument we got.  We use all the common list separators.
  11697.       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11698.       for pkg in $enableval; do
  11699.         IFS="$lt_save_ifs"
  11700.         if test "X$pkg" = "X$p"; then
  11701.           enable_fast_install=yes
  11702.         fi
  11703.       done
  11704.       IFS="$lt_save_ifs"
  11705.       ;;
  11706.     esac
  11707. else
  11708.   enable_fast_install=yes
  11709. fi
  11710.  
  11711.  
  11712.  
  11713.  
  11714.  
  11715.  
  11716.  
  11717.  
  11718.  
  11719.  
  11720.  
  11721. # This can be used to rebuild libtool when needed
  11722. LIBTOOL_DEPS="$ltmain"
  11723.  
  11724. # Always use our own libtool.
  11725. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  11726.  
  11727.  
  11728.  
  11729.  
  11730.  
  11731.  
  11732.  
  11733.  
  11734.  
  11735.  
  11736.  
  11737.  
  11738.  
  11739.  
  11740.  
  11741.  
  11742.  
  11743.  
  11744.  
  11745.  
  11746.  
  11747.  
  11748.  
  11749.  
  11750.  
  11751.  
  11752.  
  11753.  
  11754.  
  11755.  
  11756. test -z "$LN_S" && LN_S="ln -s"
  11757.  
  11758.  
  11759.  
  11760.  
  11761.  
  11762.  
  11763.  
  11764.  
  11765.  
  11766.  
  11767.  
  11768.  
  11769.  
  11770.  
  11771. if test -n "${ZSH_VERSION+set}" ; then
  11772.    setopt NO_GLOB_SUBST
  11773. fi
  11774.  
  11775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  11776. $as_echo_n "checking for objdir... " >&6; }
  11777. if ${lt_cv_objdir+:} false; then :
  11778.   $as_echo_n "(cached) " >&6
  11779. else
  11780.   rm -f .libs 2>/dev/null
  11781. mkdir .libs 2>/dev/null
  11782. if test -d .libs; then
  11783.   lt_cv_objdir=.libs
  11784. else
  11785.   # MS-DOS does not allow filenames that begin with a dot.
  11786.   lt_cv_objdir=_libs
  11787. fi
  11788. rmdir .libs 2>/dev/null
  11789. fi
  11790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  11791. $as_echo "$lt_cv_objdir" >&6; }
  11792. objdir=$lt_cv_objdir
  11793.  
  11794.  
  11795.  
  11796.  
  11797.  
  11798. cat >>confdefs.h <<_ACEOF
  11799. #define LT_OBJDIR "$lt_cv_objdir/"
  11800. _ACEOF
  11801.  
  11802.  
  11803.  
  11804.  
  11805. case $host_os in
  11806. aix3*)
  11807.   # AIX sometimes has problems with the GCC collect2 program.  For some
  11808.   # reason, if we set the COLLECT_NAMES environment variable, the problems
  11809.   # vanish in a puff of smoke.
  11810.   if test "X${COLLECT_NAMES+set}" != Xset; then
  11811.     COLLECT_NAMES=
  11812.     export COLLECT_NAMES
  11813.   fi
  11814.   ;;
  11815. esac
  11816.  
  11817. # Global variables:
  11818. ofile=libtool
  11819. can_build_shared=yes
  11820.  
  11821. # All known linkers require a `.a' archive for static linking (except MSVC,
  11822. # which needs '.lib').
  11823. libext=a
  11824.  
  11825. with_gnu_ld="$lt_cv_prog_gnu_ld"
  11826.  
  11827. old_CC="$CC"
  11828. old_CFLAGS="$CFLAGS"
  11829.  
  11830. # Set sane defaults for various variables
  11831. test -z "$CC" && CC=cc
  11832. test -z "$LTCC" && LTCC=$CC
  11833. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  11834. test -z "$LD" && LD=ld
  11835. test -z "$ac_objext" && ac_objext=o
  11836.  
  11837. for cc_temp in $compiler""; do
  11838.   case $cc_temp in
  11839.     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11840.     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11841.     \-*) ;;
  11842.     *) break;;
  11843.   esac
  11844. done
  11845. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11846.  
  11847.  
  11848. # Only perform the check for file, if the check method requires it
  11849. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  11850. case $deplibs_check_method in
  11851. file_magic*)
  11852.   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  11853.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  11854. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  11855. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  11856.   $as_echo_n "(cached) " >&6
  11857. else
  11858.   case $MAGIC_CMD in
  11859. [\\/*] |  ?:[\\/]*)
  11860.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  11861.   ;;
  11862. *)
  11863.   lt_save_MAGIC_CMD="$MAGIC_CMD"
  11864.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11865.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  11866.   for ac_dir in $ac_dummy; do
  11867.     IFS="$lt_save_ifs"
  11868.     test -z "$ac_dir" && ac_dir=.
  11869.     if test -f $ac_dir/${ac_tool_prefix}file; then
  11870.       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  11871.       if test -n "$file_magic_test_file"; then
  11872.         case $deplibs_check_method in
  11873.         "file_magic "*)
  11874.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  11875.           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11876.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  11877.             $EGREP "$file_magic_regex" > /dev/null; then
  11878.             :
  11879.           else
  11880.             cat <<_LT_EOF 1>&2
  11881.  
  11882. *** Warning: the command libtool uses to detect shared libraries,
  11883. *** $file_magic_cmd, produces output that libtool cannot recognize.
  11884. *** The result is that libtool may fail to recognize shared libraries
  11885. *** as such.  This will affect the creation of libtool libraries that
  11886. *** depend on shared libraries, but programs linked with such libtool
  11887. *** libraries will work regardless of this problem.  Nevertheless, you
  11888. *** may want to report the problem to your system manager and/or to
  11889. *** bug-libtool@gnu.org
  11890.  
  11891. _LT_EOF
  11892.           fi ;;
  11893.         esac
  11894.       fi
  11895.       break
  11896.     fi
  11897.   done
  11898.   IFS="$lt_save_ifs"
  11899.   MAGIC_CMD="$lt_save_MAGIC_CMD"
  11900.   ;;
  11901. esac
  11902. fi
  11903.  
  11904. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11905. if test -n "$MAGIC_CMD"; then
  11906.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  11907. $as_echo "$MAGIC_CMD" >&6; }
  11908. else
  11909.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11910. $as_echo "no" >&6; }
  11911. fi
  11912.  
  11913.  
  11914.  
  11915.  
  11916.  
  11917. if test -z "$lt_cv_path_MAGIC_CMD"; then
  11918.   if test -n "$ac_tool_prefix"; then
  11919.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  11920. $as_echo_n "checking for file... " >&6; }
  11921. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  11922.   $as_echo_n "(cached) " >&6
  11923. else
  11924.   case $MAGIC_CMD in
  11925. [\\/*] |  ?:[\\/]*)
  11926.   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  11927.   ;;
  11928. *)
  11929.   lt_save_MAGIC_CMD="$MAGIC_CMD"
  11930.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11931.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  11932.   for ac_dir in $ac_dummy; do
  11933.     IFS="$lt_save_ifs"
  11934.     test -z "$ac_dir" && ac_dir=.
  11935.     if test -f $ac_dir/file; then
  11936.       lt_cv_path_MAGIC_CMD="$ac_dir/file"
  11937.       if test -n "$file_magic_test_file"; then
  11938.         case $deplibs_check_method in
  11939.         "file_magic "*)
  11940.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  11941.           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11942.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  11943.             $EGREP "$file_magic_regex" > /dev/null; then
  11944.             :
  11945.           else
  11946.             cat <<_LT_EOF 1>&2
  11947.  
  11948. *** Warning: the command libtool uses to detect shared libraries,
  11949. *** $file_magic_cmd, produces output that libtool cannot recognize.
  11950. *** The result is that libtool may fail to recognize shared libraries
  11951. *** as such.  This will affect the creation of libtool libraries that
  11952. *** depend on shared libraries, but programs linked with such libtool
  11953. *** libraries will work regardless of this problem.  Nevertheless, you
  11954. *** may want to report the problem to your system manager and/or to
  11955. *** bug-libtool@gnu.org
  11956.  
  11957. _LT_EOF
  11958.           fi ;;
  11959.         esac
  11960.       fi
  11961.       break
  11962.     fi
  11963.   done
  11964.   IFS="$lt_save_ifs"
  11965.   MAGIC_CMD="$lt_save_MAGIC_CMD"
  11966.   ;;
  11967. esac
  11968. fi
  11969.  
  11970. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  11971. if test -n "$MAGIC_CMD"; then
  11972.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  11973. $as_echo "$MAGIC_CMD" >&6; }
  11974. else
  11975.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11976. $as_echo "no" >&6; }
  11977. fi
  11978.  
  11979.  
  11980.   else
  11981.     MAGIC_CMD=:
  11982.   fi
  11983. fi
  11984.  
  11985.   fi
  11986.   ;;
  11987. esac
  11988.  
  11989. # Use C for the default configuration in the libtool script
  11990.  
  11991. lt_save_CC="$CC"
  11992. ac_ext=c
  11993. ac_cpp='$CPP $CPPFLAGS'
  11994. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11995. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11996. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11997.  
  11998.  
  11999. # Source file extension for C test sources.
  12000. ac_ext=c
  12001.  
  12002. # Object file extension for compiled C test sources.
  12003. objext=o
  12004. objext=$objext
  12005.  
  12006. # Code to be used in simple compile tests
  12007. lt_simple_compile_test_code="int some_variable = 0;"
  12008.  
  12009. # Code to be used in simple link tests
  12010. lt_simple_link_test_code='int main(){return(0);}'
  12011.  
  12012.  
  12013.  
  12014.  
  12015.  
  12016.  
  12017.  
  12018. # If no C compiler was specified, use CC.
  12019. LTCC=${LTCC-"$CC"}
  12020.  
  12021. # If no C compiler flags were specified, use CFLAGS.
  12022. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12023.  
  12024. # Allow CC to be a program name with arguments.
  12025. compiler=$CC
  12026.  
  12027. # Save the default compiler, since it gets overwritten when the other
  12028. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  12029. compiler_DEFAULT=$CC
  12030.  
  12031. # save warnings/boilerplate of simple test code
  12032. ac_outfile=conftest.$ac_objext
  12033. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12034. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12035. _lt_compiler_boilerplate=`cat conftest.err`
  12036. $RM conftest*
  12037.  
  12038. ac_outfile=conftest.$ac_objext
  12039. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12040. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12041. _lt_linker_boilerplate=`cat conftest.err`
  12042. $RM -r conftest*
  12043.  
  12044.  
  12045. ## CAVEAT EMPTOR:
  12046. ## There is no encapsulation within the following macros, do not change
  12047. ## the running order or otherwise move them around unless you know exactly
  12048. ## what you are doing...
  12049. if test -n "$compiler"; then
  12050.  
  12051. lt_prog_compiler_no_builtin_flag=
  12052.  
  12053. if test "$GCC" = yes; then
  12054.   case $cc_basename in
  12055.   nvcc*)
  12056.     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  12057.   *)
  12058.     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  12059.   esac
  12060.  
  12061.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  12062. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  12063. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  12064.   $as_echo_n "(cached) " >&6
  12065. else
  12066.   lt_cv_prog_compiler_rtti_exceptions=no
  12067.    ac_outfile=conftest.$ac_objext
  12068.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12069.    lt_compiler_flag="-fno-rtti -fno-exceptions"
  12070.    # Insert the option either (1) after the last *FLAGS variable, or
  12071.    # (2) before a word containing "conftest.", or (3) at the end.
  12072.    # Note that $ac_compile itself does not contain backslashes and begins
  12073.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  12074.    # The option is referenced via a variable to avoid confusing sed.
  12075.    lt_compile=`echo "$ac_compile" | $SED \
  12076.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12077.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12078.    -e 's:$: $lt_compiler_flag:'`
  12079.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12080.    (eval "$lt_compile" 2>conftest.err)
  12081.    ac_status=$?
  12082.    cat conftest.err >&5
  12083.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12084.    if (exit $ac_status) && test -s "$ac_outfile"; then
  12085.      # The compiler can only warn and ignore the option if not recognized
  12086.      # So say no if there are warnings other than the usual output.
  12087.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12088.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12089.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12090.        lt_cv_prog_compiler_rtti_exceptions=yes
  12091.      fi
  12092.    fi
  12093.    $RM conftest*
  12094.  
  12095. fi
  12096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  12097. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  12098.  
  12099. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  12100.     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  12101. else
  12102.     :
  12103. fi
  12104.  
  12105. fi
  12106.  
  12107.  
  12108.  
  12109.  
  12110.  
  12111.  
  12112.   lt_prog_compiler_wl=
  12113. lt_prog_compiler_pic=
  12114. lt_prog_compiler_static=
  12115.  
  12116.  
  12117.   if test "$GCC" = yes; then
  12118.     lt_prog_compiler_wl='-Wl,'
  12119.     lt_prog_compiler_static='-static'
  12120.  
  12121.     case $host_os in
  12122.       aix*)
  12123.       # All AIX code is PIC.
  12124.       if test "$host_cpu" = ia64; then
  12125.         # AIX 5 now supports IA64 processor
  12126.         lt_prog_compiler_static='-Bstatic'
  12127.       fi
  12128.       ;;
  12129.  
  12130.     amigaos*)
  12131.       case $host_cpu in
  12132.       powerpc)
  12133.             # see comment about AmigaOS4 .so support
  12134.             lt_prog_compiler_pic='-fPIC'
  12135.         ;;
  12136.       m68k)
  12137.             # FIXME: we need at least 68020 code to build shared libraries, but
  12138.             # adding the `-m68020' flag to GCC prevents building anything better,
  12139.             # like `-m68040'.
  12140.             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  12141.         ;;
  12142.       esac
  12143.       ;;
  12144.  
  12145.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12146.       # PIC is the default for these OSes.
  12147.       ;;
  12148.  
  12149.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  12150.       # This hack is so that the source file can tell whether it is being
  12151.       # built for inclusion in a dll (and should export symbols for example).
  12152.       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12153.       # (--disable-auto-import) libraries
  12154.       lt_prog_compiler_pic='-DDLL_EXPORT'
  12155.       ;;
  12156.  
  12157.     darwin* | rhapsody*)
  12158.       # PIC is the default on this platform
  12159.       # Common symbols not allowed in MH_DYLIB files
  12160.       lt_prog_compiler_pic='-fno-common'
  12161.       ;;
  12162.  
  12163.     haiku*)
  12164.       # PIC is the default for Haiku.
  12165.       # The "-static" flag exists, but is broken.
  12166.       lt_prog_compiler_static=
  12167.       ;;
  12168.  
  12169.     hpux*)
  12170.       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12171.       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  12172.       # sets the default TLS model and affects inlining.
  12173.       case $host_cpu in
  12174.       hppa*64*)
  12175.         # +Z the default
  12176.         ;;
  12177.       *)
  12178.         lt_prog_compiler_pic='-fPIC'
  12179.         ;;
  12180.       esac
  12181.       ;;
  12182.  
  12183.     interix[3-9]*)
  12184.       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12185.       # Instead, we relocate shared libraries at runtime.
  12186.       ;;
  12187.  
  12188.     msdosdjgpp*)
  12189.       # Just because we use GCC doesn't mean we suddenly get shared libraries
  12190.       # on systems that don't support them.
  12191.       lt_prog_compiler_can_build_shared=no
  12192.       enable_shared=no
  12193.       ;;
  12194.  
  12195.     *nto* | *qnx*)
  12196.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  12197.       # it will coredump.
  12198.       lt_prog_compiler_pic='-fPIC -shared'
  12199.       ;;
  12200.  
  12201.     sysv4*MP*)
  12202.       if test -d /usr/nec; then
  12203.         lt_prog_compiler_pic=-Kconform_pic
  12204.       fi
  12205.       ;;
  12206.  
  12207.     *)
  12208.       lt_prog_compiler_pic='-fPIC'
  12209.       ;;
  12210.     esac
  12211.  
  12212.     case $cc_basename in
  12213.     nvcc*) # Cuda Compiler Driver 2.2
  12214.       lt_prog_compiler_wl='-Xlinker '
  12215.       if test -n "$lt_prog_compiler_pic"; then
  12216.         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  12217.       fi
  12218.       ;;
  12219.     esac
  12220.   else
  12221.     # PORTME Check for flag to pass linker flags through the system compiler.
  12222.     case $host_os in
  12223.     aix*)
  12224.       lt_prog_compiler_wl='-Wl,'
  12225.       if test "$host_cpu" = ia64; then
  12226.         # AIX 5 now supports IA64 processor
  12227.         lt_prog_compiler_static='-Bstatic'
  12228.       else
  12229.         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  12230.       fi
  12231.       ;;
  12232.  
  12233.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  12234.       # This hack is so that the source file can tell whether it is being
  12235.       # built for inclusion in a dll (and should export symbols for example).
  12236.       lt_prog_compiler_pic='-DDLL_EXPORT'
  12237.       ;;
  12238.  
  12239.     hpux9* | hpux10* | hpux11*)
  12240.       lt_prog_compiler_wl='-Wl,'
  12241.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12242.       # not for PA HP-UX.
  12243.       case $host_cpu in
  12244.       hppa*64*|ia64*)
  12245.         # +Z the default
  12246.         ;;
  12247.       *)
  12248.         lt_prog_compiler_pic='+Z'
  12249.         ;;
  12250.       esac
  12251.       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12252.       lt_prog_compiler_static='${wl}-a ${wl}archive'
  12253.       ;;
  12254.  
  12255.     irix5* | irix6* | nonstopux*)
  12256.       lt_prog_compiler_wl='-Wl,'
  12257.       # PIC (with -KPIC) is the default.
  12258.       lt_prog_compiler_static='-non_shared'
  12259.       ;;
  12260.  
  12261.     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12262.       case $cc_basename in
  12263.       # old Intel for x86_64 which still supported -KPIC.
  12264.       ecc*)
  12265.         lt_prog_compiler_wl='-Wl,'
  12266.         lt_prog_compiler_pic='-KPIC'
  12267.         lt_prog_compiler_static='-static'
  12268.         ;;
  12269.       # icc used to be incompatible with GCC.
  12270.       # ICC 10 doesn't accept -KPIC any more.
  12271.       icc* | ifort*)
  12272.         lt_prog_compiler_wl='-Wl,'
  12273.         lt_prog_compiler_pic='-fPIC'
  12274.         lt_prog_compiler_static='-static'
  12275.         ;;
  12276.       # Lahey Fortran 8.1.
  12277.       lf95*)
  12278.         lt_prog_compiler_wl='-Wl,'
  12279.         lt_prog_compiler_pic='--shared'
  12280.         lt_prog_compiler_static='--static'
  12281.         ;;
  12282.       nagfor*)
  12283.         # NAG Fortran compiler
  12284.         lt_prog_compiler_wl='-Wl,-Wl,,'
  12285.         lt_prog_compiler_pic='-PIC'
  12286.         lt_prog_compiler_static='-Bstatic'
  12287.         ;;
  12288.       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  12289.         # Portland Group compilers (*not* the Pentium gcc compiler,
  12290.         # which looks to be a dead project)
  12291.         lt_prog_compiler_wl='-Wl,'
  12292.         lt_prog_compiler_pic='-fpic'
  12293.         lt_prog_compiler_static='-Bstatic'
  12294.         ;;
  12295.       ccc*)
  12296.         lt_prog_compiler_wl='-Wl,'
  12297.         # All Alpha code is PIC.
  12298.         lt_prog_compiler_static='-non_shared'
  12299.         ;;
  12300.       xl* | bgxl* | bgf* | mpixl*)
  12301.         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  12302.         lt_prog_compiler_wl='-Wl,'
  12303.         lt_prog_compiler_pic='-qpic'
  12304.         lt_prog_compiler_static='-qstaticlink'
  12305.         ;;
  12306.       *)
  12307.         case `$CC -V 2>&1 | sed 5q` in
  12308.         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  12309.           # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12310.           lt_prog_compiler_pic='-KPIC'
  12311.           lt_prog_compiler_static='-Bstatic'
  12312.           lt_prog_compiler_wl=''
  12313.           ;;
  12314.         *Sun\ F* | *Sun*Fortran*)
  12315.           lt_prog_compiler_pic='-KPIC'
  12316.           lt_prog_compiler_static='-Bstatic'
  12317.           lt_prog_compiler_wl='-Qoption ld '
  12318.           ;;
  12319.         *Sun\ C*)
  12320.           # Sun C 5.9
  12321.           lt_prog_compiler_pic='-KPIC'
  12322.           lt_prog_compiler_static='-Bstatic'
  12323.           lt_prog_compiler_wl='-Wl,'
  12324.           ;;
  12325.         *Intel*\ [CF]*Compiler*)
  12326.           lt_prog_compiler_wl='-Wl,'
  12327.           lt_prog_compiler_pic='-fPIC'
  12328.           lt_prog_compiler_static='-static'
  12329.           ;;
  12330.         *Portland\ Group*)
  12331.           lt_prog_compiler_wl='-Wl,'
  12332.           lt_prog_compiler_pic='-fpic'
  12333.           lt_prog_compiler_static='-Bstatic'
  12334.           ;;
  12335.         esac
  12336.         ;;
  12337.       esac
  12338.       ;;
  12339.  
  12340.     newsos6)
  12341.       lt_prog_compiler_pic='-KPIC'
  12342.       lt_prog_compiler_static='-Bstatic'
  12343.       ;;
  12344.  
  12345.     *nto* | *qnx*)
  12346.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  12347.       # it will coredump.
  12348.       lt_prog_compiler_pic='-fPIC -shared'
  12349.       ;;
  12350.  
  12351.     osf3* | osf4* | osf5*)
  12352.       lt_prog_compiler_wl='-Wl,'
  12353.       # All OSF/1 code is PIC.
  12354.       lt_prog_compiler_static='-non_shared'
  12355.       ;;
  12356.  
  12357.     rdos*)
  12358.       lt_prog_compiler_static='-non_shared'
  12359.       ;;
  12360.  
  12361.     solaris*)
  12362.       lt_prog_compiler_pic='-KPIC'
  12363.       lt_prog_compiler_static='-Bstatic'
  12364.       case $cc_basename in
  12365.       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  12366.         lt_prog_compiler_wl='-Qoption ld ';;
  12367.       *)
  12368.         lt_prog_compiler_wl='-Wl,';;
  12369.       esac
  12370.       ;;
  12371.  
  12372.     sunos4*)
  12373.       lt_prog_compiler_wl='-Qoption ld '
  12374.       lt_prog_compiler_pic='-PIC'
  12375.       lt_prog_compiler_static='-Bstatic'
  12376.       ;;
  12377.  
  12378.     sysv4 | sysv4.2uw2* | sysv4.3*)
  12379.       lt_prog_compiler_wl='-Wl,'
  12380.       lt_prog_compiler_pic='-KPIC'
  12381.       lt_prog_compiler_static='-Bstatic'
  12382.       ;;
  12383.  
  12384.     sysv4*MP*)
  12385.       if test -d /usr/nec ;then
  12386.         lt_prog_compiler_pic='-Kconform_pic'
  12387.         lt_prog_compiler_static='-Bstatic'
  12388.       fi
  12389.       ;;
  12390.  
  12391.     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12392.       lt_prog_compiler_wl='-Wl,'
  12393.       lt_prog_compiler_pic='-KPIC'
  12394.       lt_prog_compiler_static='-Bstatic'
  12395.       ;;
  12396.  
  12397.     unicos*)
  12398.       lt_prog_compiler_wl='-Wl,'
  12399.       lt_prog_compiler_can_build_shared=no
  12400.       ;;
  12401.  
  12402.     uts4*)
  12403.       lt_prog_compiler_pic='-pic'
  12404.       lt_prog_compiler_static='-Bstatic'
  12405.       ;;
  12406.  
  12407.     *)
  12408.       lt_prog_compiler_can_build_shared=no
  12409.       ;;
  12410.     esac
  12411.   fi
  12412.  
  12413. case $host_os in
  12414.   # For platforms which do not support PIC, -DPIC is meaningless:
  12415.   *djgpp*)
  12416.     lt_prog_compiler_pic=
  12417.     ;;
  12418.   *)
  12419.     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  12420.     ;;
  12421. esac
  12422.  
  12423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12424. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12425. if ${lt_cv_prog_compiler_pic+:} false; then :
  12426.   $as_echo_n "(cached) " >&6
  12427. else
  12428.   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  12429. fi
  12430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  12431. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  12432. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  12433.  
  12434. #
  12435. # Check to make sure the PIC flag actually works.
  12436. #
  12437. if test -n "$lt_prog_compiler_pic"; then
  12438.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  12439. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  12440. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  12441.   $as_echo_n "(cached) " >&6
  12442. else
  12443.   lt_cv_prog_compiler_pic_works=no
  12444.    ac_outfile=conftest.$ac_objext
  12445.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12446.    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  12447.    # Insert the option either (1) after the last *FLAGS variable, or
  12448.    # (2) before a word containing "conftest.", or (3) at the end.
  12449.    # Note that $ac_compile itself does not contain backslashes and begins
  12450.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  12451.    # The option is referenced via a variable to avoid confusing sed.
  12452.    lt_compile=`echo "$ac_compile" | $SED \
  12453.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12454.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12455.    -e 's:$: $lt_compiler_flag:'`
  12456.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12457.    (eval "$lt_compile" 2>conftest.err)
  12458.    ac_status=$?
  12459.    cat conftest.err >&5
  12460.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12461.    if (exit $ac_status) && test -s "$ac_outfile"; then
  12462.      # The compiler can only warn and ignore the option if not recognized
  12463.      # So say no if there are warnings other than the usual output.
  12464.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12465.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12466.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12467.        lt_cv_prog_compiler_pic_works=yes
  12468.      fi
  12469.    fi
  12470.    $RM conftest*
  12471.  
  12472. fi
  12473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  12474. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  12475.  
  12476. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  12477.     case $lt_prog_compiler_pic in
  12478.      "" | " "*) ;;
  12479.      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  12480.      esac
  12481. else
  12482.     lt_prog_compiler_pic=
  12483.      lt_prog_compiler_can_build_shared=no
  12484. fi
  12485.  
  12486. fi
  12487.  
  12488.  
  12489.  
  12490.  
  12491.  
  12492.  
  12493.  
  12494.  
  12495.  
  12496.  
  12497.  
  12498. #
  12499. # Check to make sure the static flag actually works.
  12500. #
  12501. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  12502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12503. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12504. if ${lt_cv_prog_compiler_static_works+:} false; then :
  12505.   $as_echo_n "(cached) " >&6
  12506. else
  12507.   lt_cv_prog_compiler_static_works=no
  12508.    save_LDFLAGS="$LDFLAGS"
  12509.    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12510.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12511.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12512.      # The linker can only warn and ignore the option if not recognized
  12513.      # So say no if there are warnings
  12514.      if test -s conftest.err; then
  12515.        # Append any errors to the config.log.
  12516.        cat conftest.err 1>&5
  12517.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12518.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12519.        if diff conftest.exp conftest.er2 >/dev/null; then
  12520.          lt_cv_prog_compiler_static_works=yes
  12521.        fi
  12522.      else
  12523.        lt_cv_prog_compiler_static_works=yes
  12524.      fi
  12525.    fi
  12526.    $RM -r conftest*
  12527.    LDFLAGS="$save_LDFLAGS"
  12528.  
  12529. fi
  12530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  12531. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  12532.  
  12533. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  12534.     :
  12535. else
  12536.     lt_prog_compiler_static=
  12537. fi
  12538.  
  12539.  
  12540.  
  12541.  
  12542.  
  12543.  
  12544.  
  12545.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12546. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12547. if ${lt_cv_prog_compiler_c_o+:} false; then :
  12548.   $as_echo_n "(cached) " >&6
  12549. else
  12550.   lt_cv_prog_compiler_c_o=no
  12551.    $RM -r conftest 2>/dev/null
  12552.    mkdir conftest
  12553.    cd conftest
  12554.    mkdir out
  12555.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12556.  
  12557.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  12558.    # Insert the option either (1) after the last *FLAGS variable, or
  12559.    # (2) before a word containing "conftest.", or (3) at the end.
  12560.    # Note that $ac_compile itself does not contain backslashes and begins
  12561.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  12562.    lt_compile=`echo "$ac_compile" | $SED \
  12563.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12564.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12565.    -e 's:$: $lt_compiler_flag:'`
  12566.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12567.    (eval "$lt_compile" 2>out/conftest.err)
  12568.    ac_status=$?
  12569.    cat out/conftest.err >&5
  12570.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12571.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12572.    then
  12573.      # The compiler can only warn and ignore the option if not recognized
  12574.      # So say no if there are warnings
  12575.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12576.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12577.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12578.        lt_cv_prog_compiler_c_o=yes
  12579.      fi
  12580.    fi
  12581.    chmod u+w . 2>&5
  12582.    $RM conftest*
  12583.    # SGI C++ compiler will create directory out/ii_files/ for
  12584.    # template instantiation
  12585.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12586.    $RM out/* && rmdir out
  12587.    cd ..
  12588.    $RM -r conftest
  12589.    $RM conftest*
  12590.  
  12591. fi
  12592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  12593. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  12594.  
  12595.  
  12596.  
  12597.  
  12598.  
  12599.  
  12600.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12601. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12602. if ${lt_cv_prog_compiler_c_o+:} false; then :
  12603.   $as_echo_n "(cached) " >&6
  12604. else
  12605.   lt_cv_prog_compiler_c_o=no
  12606.    $RM -r conftest 2>/dev/null
  12607.    mkdir conftest
  12608.    cd conftest
  12609.    mkdir out
  12610.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12611.  
  12612.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  12613.    # Insert the option either (1) after the last *FLAGS variable, or
  12614.    # (2) before a word containing "conftest.", or (3) at the end.
  12615.    # Note that $ac_compile itself does not contain backslashes and begins
  12616.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  12617.    lt_compile=`echo "$ac_compile" | $SED \
  12618.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12619.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12620.    -e 's:$: $lt_compiler_flag:'`
  12621.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12622.    (eval "$lt_compile" 2>out/conftest.err)
  12623.    ac_status=$?
  12624.    cat out/conftest.err >&5
  12625.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12626.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12627.    then
  12628.      # The compiler can only warn and ignore the option if not recognized
  12629.      # So say no if there are warnings
  12630.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12631.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12632.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12633.        lt_cv_prog_compiler_c_o=yes
  12634.      fi
  12635.    fi
  12636.    chmod u+w . 2>&5
  12637.    $RM conftest*
  12638.    # SGI C++ compiler will create directory out/ii_files/ for
  12639.    # template instantiation
  12640.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12641.    $RM out/* && rmdir out
  12642.    cd ..
  12643.    $RM -r conftest
  12644.    $RM conftest*
  12645.  
  12646. fi
  12647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  12648. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  12649.  
  12650.  
  12651.  
  12652.  
  12653. hard_links="nottested"
  12654. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  12655.   # do not overwrite the value of need_locks provided by the user
  12656.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12657. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12658.   hard_links=yes
  12659.   $RM conftest*
  12660.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12661.   touch conftest.a
  12662.   ln conftest.a conftest.b 2>&5 || hard_links=no
  12663.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12664.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12665. $as_echo "$hard_links" >&6; }
  12666.   if test "$hard_links" = no; then
  12667.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12668. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12669.     need_locks=warn
  12670.   fi
  12671. else
  12672.   need_locks=no
  12673. fi
  12674.  
  12675.  
  12676.  
  12677.  
  12678.  
  12679.  
  12680.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12681. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12682.  
  12683.   runpath_var=
  12684.   allow_undefined_flag=
  12685.   always_export_symbols=no
  12686.   archive_cmds=
  12687.   archive_expsym_cmds=
  12688.   compiler_needs_object=no
  12689.   enable_shared_with_static_runtimes=no
  12690.   export_dynamic_flag_spec=
  12691.   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12692.   hardcode_automatic=no
  12693.   hardcode_direct=no
  12694.   hardcode_direct_absolute=no
  12695.   hardcode_libdir_flag_spec=
  12696.   hardcode_libdir_separator=
  12697.   hardcode_minus_L=no
  12698.   hardcode_shlibpath_var=unsupported
  12699.   inherit_rpath=no
  12700.   link_all_deplibs=unknown
  12701.   module_cmds=
  12702.   module_expsym_cmds=
  12703.   old_archive_from_new_cmds=
  12704.   old_archive_from_expsyms_cmds=
  12705.   thread_safe_flag_spec=
  12706.   whole_archive_flag_spec=
  12707.   # include_expsyms should be a list of space-separated symbols to be *always*
  12708.   # included in the symbol list
  12709.   include_expsyms=
  12710.   # exclude_expsyms can be an extended regexp of symbols to exclude
  12711.   # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12712.   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12713.   # as well as any symbol that contains `d'.
  12714.   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12715.   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12716.   # platforms (ab)use it in PIC code, but their linkers get confused if
  12717.   # the symbol is explicitly referenced.  Since portable code cannot
  12718.   # rely on this symbol name, it's probably fine to never include it in
  12719.   # preloaded symbol tables.
  12720.   # Exclude shared library initialization/finalization symbols.
  12721.   extract_expsyms_cmds=
  12722.  
  12723.   case $host_os in
  12724.   cygwin* | mingw* | pw32* | cegcc*)
  12725.     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12726.     # When not using gcc, we currently assume that we are using
  12727.     # Microsoft Visual C++.
  12728.     if test "$GCC" != yes; then
  12729.       with_gnu_ld=no
  12730.     fi
  12731.     ;;
  12732.   interix*)
  12733.     # we just hope/assume this is gcc and not c89 (= MSVC++)
  12734.     with_gnu_ld=yes
  12735.     ;;
  12736.   openbsd*)
  12737.     with_gnu_ld=no
  12738.     ;;
  12739.   linux* | k*bsd*-gnu | gnu*)
  12740.     link_all_deplibs=no
  12741.     ;;
  12742.   esac
  12743.  
  12744.   ld_shlibs=yes
  12745.  
  12746.   # On some targets, GNU ld is compatible enough with the native linker
  12747.   # that we're better off using the native interface for both.
  12748.   lt_use_gnu_ld_interface=no
  12749.   if test "$with_gnu_ld" = yes; then
  12750.     case $host_os in
  12751.       aix*)
  12752.         # The AIX port of GNU ld has always aspired to compatibility
  12753.         # with the native linker.  However, as the warning in the GNU ld
  12754.         # block says, versions before 2.19.5* couldn't really create working
  12755.         # shared libraries, regardless of the interface used.
  12756.         case `$LD -v 2>&1` in
  12757.           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  12758.           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  12759.           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  12760.           *)
  12761.             lt_use_gnu_ld_interface=yes
  12762.             ;;
  12763.         esac
  12764.         ;;
  12765.       *)
  12766.         lt_use_gnu_ld_interface=yes
  12767.         ;;
  12768.     esac
  12769.   fi
  12770.  
  12771.   if test "$lt_use_gnu_ld_interface" = yes; then
  12772.     # If archive_cmds runs LD, not CC, wlarc should be empty
  12773.     wlarc='${wl}'
  12774.  
  12775.     # Set some defaults for GNU ld with shared library support. These
  12776.     # are reset later if shared libraries are not supported. Putting them
  12777.     # here allows them to be overridden if necessary.
  12778.     runpath_var=LD_RUN_PATH
  12779.     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12780.     export_dynamic_flag_spec='${wl}--export-dynamic'
  12781.     # ancient GNU ld didn't support --whole-archive et. al.
  12782.     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  12783.       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12784.     else
  12785.       whole_archive_flag_spec=
  12786.     fi
  12787.     supports_anon_versioning=no
  12788.     case `$LD -v 2>&1` in
  12789.       *GNU\ gold*) supports_anon_versioning=yes ;;
  12790.       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12791.       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12792.       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12793.       *\ 2.11.*) ;; # other 2.11 versions
  12794.       *) supports_anon_versioning=yes ;;
  12795.     esac
  12796.  
  12797.     # See if GNU ld supports shared libraries.
  12798.     case $host_os in
  12799.     aix[3-9]*)
  12800.       # On AIX/PPC, the GNU linker is very broken
  12801.       if test "$host_cpu" != ia64; then
  12802.         ld_shlibs=no
  12803.         cat <<_LT_EOF 1>&2
  12804.  
  12805. *** Warning: the GNU linker, at least up to release 2.19, is reported
  12806. *** to be unable to reliably create shared libraries on AIX.
  12807. *** Therefore, libtool is disabling shared libraries support.  If you
  12808. *** really care for shared libraries, you may want to install binutils
  12809. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  12810. *** You will then need to restart the configuration process.
  12811.  
  12812. _LT_EOF
  12813.       fi
  12814.       ;;
  12815.  
  12816.     amigaos*)
  12817.       case $host_cpu in
  12818.       powerpc)
  12819.             # see comment about AmigaOS4 .so support
  12820.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12821.             archive_expsym_cmds=''
  12822.         ;;
  12823.       m68k)
  12824.             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  12825.             hardcode_libdir_flag_spec='-L$libdir'
  12826.             hardcode_minus_L=yes
  12827.         ;;
  12828.       esac
  12829.       ;;
  12830.  
  12831.     beos*)
  12832.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12833.         allow_undefined_flag=unsupported
  12834.         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12835.         # support --undefined.  This deserves some investigation.  FIXME
  12836.         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12837.       else
  12838.         ld_shlibs=no
  12839.       fi
  12840.       ;;
  12841.  
  12842.     cygwin* | mingw* | pw32* | cegcc*)
  12843.       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  12844.       # as there is no search path for DLLs.
  12845.       hardcode_libdir_flag_spec='-L$libdir'
  12846.       export_dynamic_flag_spec='${wl}--export-all-symbols'
  12847.       allow_undefined_flag=unsupported
  12848.       always_export_symbols=no
  12849.       enable_shared_with_static_runtimes=yes
  12850.       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12851.       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12852.  
  12853.       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  12854.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12855.         # If the export-symbols file already is a .def file (1st line
  12856.         # is EXPORTS), use it as is; otherwise, prepend...
  12857.         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12858.           cp $export_symbols $output_objdir/$soname.def;
  12859.         else
  12860.           echo EXPORTS > $output_objdir/$soname.def;
  12861.           cat $export_symbols >> $output_objdir/$soname.def;
  12862.         fi~
  12863.         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  12864.       else
  12865.         ld_shlibs=no
  12866.       fi
  12867.       ;;
  12868.  
  12869.     haiku*)
  12870.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12871.       link_all_deplibs=yes
  12872.       ;;
  12873.  
  12874.     interix[3-9]*)
  12875.       hardcode_direct=no
  12876.       hardcode_shlibpath_var=no
  12877.       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  12878.       export_dynamic_flag_spec='${wl}-E'
  12879.       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  12880.       # Instead, shared libraries are loaded at an image base (0x10000000 by
  12881.       # default) and relocated if they conflict, which is a slow very memory
  12882.       # consuming and fragmenting process.  To avoid this, we pick a random,
  12883.       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  12884.       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  12885.       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12886.       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  12887.       ;;
  12888.  
  12889.     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  12890.       tmp_diet=no
  12891.       if test "$host_os" = linux-dietlibc; then
  12892.         case $cc_basename in
  12893.           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
  12894.         esac
  12895.       fi
  12896.       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  12897.          && test "$tmp_diet" = no
  12898.       then
  12899.         tmp_addflag=' $pic_flag'
  12900.         tmp_sharedflag='-shared'
  12901.         case $cc_basename,$host_cpu in
  12902.         pgcc*)                          # Portland Group C compiler
  12903.           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  12904.           tmp_addflag=' $pic_flag'
  12905.           ;;
  12906.         pgf77* | pgf90* | pgf95* | pgfortran*)
  12907.                                         # Portland Group f77 and f90 compilers
  12908.           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  12909.           tmp_addflag=' $pic_flag -Mnomain' ;;
  12910.         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
  12911.           tmp_addflag=' -i_dynamic' ;;
  12912.         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
  12913.           tmp_addflag=' -i_dynamic -nofor_main' ;;
  12914.         ifc* | ifort*)                  # Intel Fortran compiler
  12915.           tmp_addflag=' -nofor_main' ;;
  12916.         lf95*)                          # Lahey Fortran 8.1
  12917.           whole_archive_flag_spec=
  12918.           tmp_sharedflag='--shared' ;;
  12919.         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  12920.           tmp_sharedflag='-qmkshrobj'
  12921.           tmp_addflag= ;;
  12922.         nvcc*)  # Cuda Compiler Driver 2.2
  12923.           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  12924.           compiler_needs_object=yes
  12925.           ;;
  12926.         esac
  12927.         case `$CC -V 2>&1 | sed 5q` in
  12928.         *Sun\ C*)                       # Sun C 5.9
  12929.           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  12930.           compiler_needs_object=yes
  12931.           tmp_sharedflag='-G' ;;
  12932.         *Sun\ F*)                       # Sun Fortran 8.3
  12933.           tmp_sharedflag='-G' ;;
  12934.         esac
  12935.         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12936.  
  12937.         if test "x$supports_anon_versioning" = xyes; then
  12938.           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  12939.             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12940.             echo "local: *; };" >> $output_objdir/$libname.ver~
  12941.             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12942.         fi
  12943.  
  12944.         case $cc_basename in
  12945.         xlf* | bgf* | bgxlf* | mpixlf*)
  12946.           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  12947.           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  12948.           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  12949.           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  12950.           if test "x$supports_anon_versioning" = xyes; then
  12951.             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  12952.               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12953.               echo "local: *; };" >> $output_objdir/$libname.ver~
  12954.               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  12955.           fi
  12956.           ;;
  12957.         esac
  12958.       else
  12959.         ld_shlibs=no
  12960.       fi
  12961.       ;;
  12962.  
  12963.     netbsd* | netbsdelf*-gnu)
  12964.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12965.         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12966.         wlarc=
  12967.       else
  12968.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12969.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12970.       fi
  12971.       ;;
  12972.  
  12973.     solaris*)
  12974.       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  12975.         ld_shlibs=no
  12976.         cat <<_LT_EOF 1>&2
  12977.  
  12978. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12979. *** create shared libraries on Solaris systems.  Therefore, libtool
  12980. *** is disabling shared libraries support.  We urge you to upgrade GNU
  12981. *** binutils to release 2.9.1 or newer.  Another option is to modify
  12982. *** your PATH or compiler configuration so that the native linker is
  12983. *** used, and then restart.
  12984.  
  12985. _LT_EOF
  12986.       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12987.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12988.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12989.       else
  12990.         ld_shlibs=no
  12991.       fi
  12992.       ;;
  12993.  
  12994.     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12995.       case `$LD -v 2>&1` in
  12996.         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12997.         ld_shlibs=no
  12998.         cat <<_LT_EOF 1>&2
  12999.  
  13000. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13001. *** reliably create shared libraries on SCO systems.  Therefore, libtool
  13002. *** is disabling shared libraries support.  We urge you to upgrade GNU
  13003. *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
  13004. *** your PATH or compiler configuration so that the native linker is
  13005. *** used, and then restart.
  13006.  
  13007. _LT_EOF
  13008.         ;;
  13009.         *)
  13010.           # For security reasons, it is highly recommended that you always
  13011.           # use absolute paths for naming shared libraries, and exclude the
  13012.           # DT_RUNPATH tag from executables and libraries.  But doing so
  13013.           # requires that you compile everything twice, which is a pain.
  13014.           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13015.             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13016.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13017.             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13018.           else
  13019.             ld_shlibs=no
  13020.           fi
  13021.         ;;
  13022.       esac
  13023.       ;;
  13024.  
  13025.     sunos4*)
  13026.       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13027.       wlarc=
  13028.       hardcode_direct=yes
  13029.       hardcode_shlibpath_var=no
  13030.       ;;
  13031.  
  13032.     *)
  13033.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13034.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13035.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13036.       else
  13037.         ld_shlibs=no
  13038.       fi
  13039.       ;;
  13040.     esac
  13041.  
  13042.     if test "$ld_shlibs" = no; then
  13043.       runpath_var=
  13044.       hardcode_libdir_flag_spec=
  13045.       export_dynamic_flag_spec=
  13046.       whole_archive_flag_spec=
  13047.     fi
  13048.   else
  13049.     # PORTME fill in a description of your system's linker (not GNU ld)
  13050.     case $host_os in
  13051.     aix3*)
  13052.       allow_undefined_flag=unsupported
  13053.       always_export_symbols=yes
  13054.       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  13055.       # Note: this linker hardcodes the directories in LIBPATH if there
  13056.       # are no directories specified by -L.
  13057.       hardcode_minus_L=yes
  13058.       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13059.         # Neither direct hardcoding nor static linking is supported with a
  13060.         # broken collect2.
  13061.         hardcode_direct=unsupported
  13062.       fi
  13063.       ;;
  13064.  
  13065.     aix[4-9]*)
  13066.       if test "$host_cpu" = ia64; then
  13067.         # On IA64, the linker does run time linking by default, so we don't
  13068.         # have to do anything special.
  13069.         aix_use_runtimelinking=no
  13070.         exp_sym_flag='-Bexport'
  13071.         no_entry_flag=""
  13072.       else
  13073.         # If we're using GNU nm, then we don't want the "-C" option.
  13074.         # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13075.         # Also, AIX nm treats weak defined symbols like other global
  13076.         # defined symbols, whereas GNU nm marks them as "W".
  13077.         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13078.           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  13079.         else
  13080.           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  13081.         fi
  13082.         aix_use_runtimelinking=no
  13083.  
  13084.         # Test if we are trying to use run time linking or normal
  13085.         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13086.         # need to do runtime linking.
  13087.         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13088.           for ld_flag in $LDFLAGS; do
  13089.           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13090.             aix_use_runtimelinking=yes
  13091.             break
  13092.           fi
  13093.           done
  13094.           ;;
  13095.         esac
  13096.  
  13097.         exp_sym_flag='-bexport'
  13098.         no_entry_flag='-bnoentry'
  13099.       fi
  13100.  
  13101.       # When large executables or shared objects are built, AIX ld can
  13102.       # have problems creating the table of contents.  If linking a library
  13103.       # or program results in "error TOC overflow" add -mminimal-toc to
  13104.       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  13105.       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13106.  
  13107.       archive_cmds=''
  13108.       hardcode_direct=yes
  13109.       hardcode_direct_absolute=yes
  13110.       hardcode_libdir_separator=':'
  13111.       link_all_deplibs=yes
  13112.       file_list_spec='${wl}-f,'
  13113.  
  13114.       if test "$GCC" = yes; then
  13115.         case $host_os in aix4.[012]|aix4.[012].*)
  13116.         # We only want to do this on AIX 4.2 and lower, the check
  13117.         # below for broken collect2 doesn't work under 4.3+
  13118.           collect2name=`${CC} -print-prog-name=collect2`
  13119.           if test -f "$collect2name" &&
  13120.            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13121.           then
  13122.           # We have reworked collect2
  13123.           :
  13124.           else
  13125.           # We have old collect2
  13126.           hardcode_direct=unsupported
  13127.           # It fails to find uninstalled libraries when the uninstalled
  13128.           # path is not listed in the libpath.  Setting hardcode_minus_L
  13129.           # to unsupported forces relinking
  13130.           hardcode_minus_L=yes
  13131.           hardcode_libdir_flag_spec='-L$libdir'
  13132.           hardcode_libdir_separator=
  13133.           fi
  13134.           ;;
  13135.         esac
  13136.         shared_flag='-shared'
  13137.         if test "$aix_use_runtimelinking" = yes; then
  13138.           shared_flag="$shared_flag "'${wl}-G'
  13139.         fi
  13140.         link_all_deplibs=no
  13141.       else
  13142.         # not using gcc
  13143.         if test "$host_cpu" = ia64; then
  13144.         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13145.         # chokes on -Wl,-G. The following line is correct:
  13146.           shared_flag='-G'
  13147.         else
  13148.           if test "$aix_use_runtimelinking" = yes; then
  13149.             shared_flag='${wl}-G'
  13150.           else
  13151.             shared_flag='${wl}-bM:SRE'
  13152.           fi
  13153.         fi
  13154.       fi
  13155.  
  13156.       export_dynamic_flag_spec='${wl}-bexpall'
  13157.       # It seems that -bexpall does not export symbols beginning with
  13158.       # underscore (_), so it is better to generate a list of symbols to export.
  13159.       always_export_symbols=yes
  13160.       if test "$aix_use_runtimelinking" = yes; then
  13161.         # Warning - without using the other runtime loading flags (-brtl),
  13162.         # -berok will link without error, but may produce a broken library.
  13163.         allow_undefined_flag='-berok'
  13164.         # Determine the default libpath from the value encoded in an
  13165.         # empty executable.
  13166.         if test "${lt_cv_aix_libpath+set}" = set; then
  13167.   aix_libpath=$lt_cv_aix_libpath
  13168. else
  13169.   if ${lt_cv_aix_libpath_+:} false; then :
  13170.   $as_echo_n "(cached) " >&6
  13171. else
  13172.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13173. /* end confdefs.h.  */
  13174.  
  13175. int
  13176. main ()
  13177. {
  13178.  
  13179.   ;
  13180.   return 0;
  13181. }
  13182. _ACEOF
  13183. if ac_fn_c_try_link "$LINENO"; then :
  13184.  
  13185.   lt_aix_libpath_sed='
  13186.       /Import File Strings/,/^$/ {
  13187.           /^0/ {
  13188.               s/^0  *\([^ ]*\) *$/\1/
  13189.               p
  13190.           }
  13191.       }'
  13192.   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13193.   # Check for a 64-bit object if we didn't find anything.
  13194.   if test -z "$lt_cv_aix_libpath_"; then
  13195.     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13196.   fi
  13197. fi
  13198. rm -f core conftest.err conftest.$ac_objext \
  13199.     conftest$ac_exeext conftest.$ac_ext
  13200.   if test -z "$lt_cv_aix_libpath_"; then
  13201.     lt_cv_aix_libpath_="/usr/lib:/lib"
  13202.   fi
  13203.  
  13204. fi
  13205.  
  13206.   aix_libpath=$lt_cv_aix_libpath_
  13207. fi
  13208.  
  13209.         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  13210.         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13211.       else
  13212.         if test "$host_cpu" = ia64; then
  13213.           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  13214.           allow_undefined_flag="-z nodefs"
  13215.           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  13216.         else
  13217.          # Determine the default libpath from the value encoded in an
  13218.          # empty executable.
  13219.          if test "${lt_cv_aix_libpath+set}" = set; then
  13220.   aix_libpath=$lt_cv_aix_libpath
  13221. else
  13222.   if ${lt_cv_aix_libpath_+:} false; then :
  13223.   $as_echo_n "(cached) " >&6
  13224. else
  13225.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13226. /* end confdefs.h.  */
  13227.  
  13228. int
  13229. main ()
  13230. {
  13231.  
  13232.   ;
  13233.   return 0;
  13234. }
  13235. _ACEOF
  13236. if ac_fn_c_try_link "$LINENO"; then :
  13237.  
  13238.   lt_aix_libpath_sed='
  13239.       /Import File Strings/,/^$/ {
  13240.           /^0/ {
  13241.               s/^0  *\([^ ]*\) *$/\1/
  13242.               p
  13243.           }
  13244.       }'
  13245.   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13246.   # Check for a 64-bit object if we didn't find anything.
  13247.   if test -z "$lt_cv_aix_libpath_"; then
  13248.     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13249.   fi
  13250. fi
  13251. rm -f core conftest.err conftest.$ac_objext \
  13252.     conftest$ac_exeext conftest.$ac_ext
  13253.   if test -z "$lt_cv_aix_libpath_"; then
  13254.     lt_cv_aix_libpath_="/usr/lib:/lib"
  13255.   fi
  13256.  
  13257. fi
  13258.  
  13259.   aix_libpath=$lt_cv_aix_libpath_
  13260. fi
  13261.  
  13262.          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  13263.           # Warning - without using the other run time loading flags,
  13264.           # -berok will link without error, but may produce a broken library.
  13265.           no_undefined_flag=' ${wl}-bernotok'
  13266.           allow_undefined_flag=' ${wl}-berok'
  13267.           if test "$with_gnu_ld" = yes; then
  13268.             # We only use this code for GNU lds that support --whole-archive.
  13269.             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  13270.           else
  13271.             # Exported symbols can be pulled into shared objects from archives
  13272.             whole_archive_flag_spec='$convenience'
  13273.           fi
  13274.           archive_cmds_need_lc=yes
  13275.           # This is similar to how AIX traditionally builds its shared libraries.
  13276.           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  13277.         fi
  13278.       fi
  13279.       ;;
  13280.  
  13281.     amigaos*)
  13282.       case $host_cpu in
  13283.       powerpc)
  13284.             # see comment about AmigaOS4 .so support
  13285.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13286.             archive_expsym_cmds=''
  13287.         ;;
  13288.       m68k)
  13289.             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  13290.             hardcode_libdir_flag_spec='-L$libdir'
  13291.             hardcode_minus_L=yes
  13292.         ;;
  13293.       esac
  13294.       ;;
  13295.  
  13296.     bsdi[45]*)
  13297.       export_dynamic_flag_spec=-rdynamic
  13298.       ;;
  13299.  
  13300.     cygwin* | mingw* | pw32* | cegcc*)
  13301.       # When not using gcc, we currently assume that we are using
  13302.       # Microsoft Visual C++.
  13303.       # hardcode_libdir_flag_spec is actually meaningless, as there is
  13304.       # no search path for DLLs.
  13305.       case $cc_basename in
  13306.       cl*)
  13307.         # Native MSVC
  13308.         hardcode_libdir_flag_spec=' '
  13309.         allow_undefined_flag=unsupported
  13310.         always_export_symbols=yes
  13311.         file_list_spec='@'
  13312.         # Tell ltmain to make .lib files, not .a files.
  13313.         libext=lib
  13314.         # Tell ltmain to make .dll files, not .so files.
  13315.         shrext_cmds=".dll"
  13316.         # FIXME: Setting linknames here is a bad hack.
  13317.         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  13318.         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13319.             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  13320.           else
  13321.             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  13322.           fi~
  13323.           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13324.           linknames='
  13325.         # The linker will not automatically build a static lib if we build a DLL.
  13326.         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  13327.         enable_shared_with_static_runtimes=yes
  13328.         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13329.         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13330.         # Don't use ranlib
  13331.         old_postinstall_cmds='chmod 644 $oldlib'
  13332.         postlink_cmds='lt_outputfile="@OUTPUT@"~
  13333.           lt_tool_outputfile="@TOOL_OUTPUT@"~
  13334.           case $lt_outputfile in
  13335.             *.exe|*.EXE) ;;
  13336.             *)
  13337.               lt_outputfile="$lt_outputfile.exe"
  13338.               lt_tool_outputfile="$lt_tool_outputfile.exe"
  13339.               ;;
  13340.           esac~
  13341.           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  13342.             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13343.             $RM "$lt_outputfile.manifest";
  13344.           fi'
  13345.         ;;
  13346.       *)
  13347.         # Assume MSVC wrapper
  13348.         hardcode_libdir_flag_spec=' '
  13349.         allow_undefined_flag=unsupported
  13350.         # Tell ltmain to make .lib files, not .a files.
  13351.         libext=lib
  13352.         # Tell ltmain to make .dll files, not .so files.
  13353.         shrext_cmds=".dll"
  13354.         # FIXME: Setting linknames here is a bad hack.
  13355.         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  13356.         # The linker will automatically build a .lib file if we build a DLL.
  13357.         old_archive_from_new_cmds='true'
  13358.         # FIXME: Should let the user specify the lib program.
  13359.         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13360.         enable_shared_with_static_runtimes=yes
  13361.         ;;
  13362.       esac
  13363.       ;;
  13364.  
  13365.     darwin* | rhapsody*)
  13366.  
  13367.  
  13368.   archive_cmds_need_lc=no
  13369.   hardcode_direct=no
  13370.   hardcode_automatic=yes
  13371.   hardcode_shlibpath_var=unsupported
  13372.   if test "$lt_cv_ld_force_load" = "yes"; then
  13373.     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  13374.  
  13375.   else
  13376.     whole_archive_flag_spec=''
  13377.   fi
  13378.   link_all_deplibs=yes
  13379.   allow_undefined_flag="$_lt_dar_allow_undefined"
  13380.   case $cc_basename in
  13381.      ifort*) _lt_dar_can_shared=yes ;;
  13382.      *) _lt_dar_can_shared=$GCC ;;
  13383.   esac
  13384.   if test "$_lt_dar_can_shared" = "yes"; then
  13385.     output_verbose_link_cmd=func_echo_all
  13386.     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  13387.     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  13388.     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  13389.     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  13390.  
  13391.   else
  13392.   ld_shlibs=no
  13393.   fi
  13394.  
  13395.       ;;
  13396.  
  13397.     dgux*)
  13398.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13399.       hardcode_libdir_flag_spec='-L$libdir'
  13400.       hardcode_shlibpath_var=no
  13401.       ;;
  13402.  
  13403.     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13404.     # support.  Future versions do this automatically, but an explicit c++rt0.o
  13405.     # does not break anything, and helps significantly (at the cost of a little
  13406.     # extra space).
  13407.     freebsd2.2*)
  13408.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13409.       hardcode_libdir_flag_spec='-R$libdir'
  13410.       hardcode_direct=yes
  13411.       hardcode_shlibpath_var=no
  13412.       ;;
  13413.  
  13414.     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13415.     freebsd2.*)
  13416.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13417.       hardcode_direct=yes
  13418.       hardcode_minus_L=yes
  13419.       hardcode_shlibpath_var=no
  13420.       ;;
  13421.  
  13422.     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13423.     freebsd* | dragonfly*)
  13424.       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13425.       hardcode_libdir_flag_spec='-R$libdir'
  13426.       hardcode_direct=yes
  13427.       hardcode_shlibpath_var=no
  13428.       ;;
  13429.  
  13430.     hpux9*)
  13431.       if test "$GCC" = yes; then
  13432.         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13433.       else
  13434.         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13435.       fi
  13436.       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  13437.       hardcode_libdir_separator=:
  13438.       hardcode_direct=yes
  13439.  
  13440.       # hardcode_minus_L: Not really in the search PATH,
  13441.       # but as the default location of the library.
  13442.       hardcode_minus_L=yes
  13443.       export_dynamic_flag_spec='${wl}-E'
  13444.       ;;
  13445.  
  13446.     hpux10*)
  13447.       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  13448.         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13449.       else
  13450.         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13451.       fi
  13452.       if test "$with_gnu_ld" = no; then
  13453.         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  13454.         hardcode_libdir_separator=:
  13455.         hardcode_direct=yes
  13456.         hardcode_direct_absolute=yes
  13457.         export_dynamic_flag_spec='${wl}-E'
  13458.         # hardcode_minus_L: Not really in the search PATH,
  13459.         # but as the default location of the library.
  13460.         hardcode_minus_L=yes
  13461.       fi
  13462.       ;;
  13463.  
  13464.     hpux11*)
  13465.       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  13466.         case $host_cpu in
  13467.         hppa*64*)
  13468.           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13469.           ;;
  13470.         ia64*)
  13471.           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13472.           ;;
  13473.         *)
  13474.           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13475.           ;;
  13476.         esac
  13477.       else
  13478.         case $host_cpu in
  13479.         hppa*64*)
  13480.           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13481.           ;;
  13482.         ia64*)
  13483.           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13484.           ;;
  13485.         *)
  13486.  
  13487.           # Older versions of the 11.00 compiler do not understand -b yet
  13488.           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  13489.           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  13490. $as_echo_n "checking if $CC understands -b... " >&6; }
  13491. if ${lt_cv_prog_compiler__b+:} false; then :
  13492.   $as_echo_n "(cached) " >&6
  13493. else
  13494.   lt_cv_prog_compiler__b=no
  13495.    save_LDFLAGS="$LDFLAGS"
  13496.    LDFLAGS="$LDFLAGS -b"
  13497.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13498.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13499.      # The linker can only warn and ignore the option if not recognized
  13500.      # So say no if there are warnings
  13501.      if test -s conftest.err; then
  13502.        # Append any errors to the config.log.
  13503.        cat conftest.err 1>&5
  13504.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13505.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13506.        if diff conftest.exp conftest.er2 >/dev/null; then
  13507.          lt_cv_prog_compiler__b=yes
  13508.        fi
  13509.      else
  13510.        lt_cv_prog_compiler__b=yes
  13511.      fi
  13512.    fi
  13513.    $RM -r conftest*
  13514.    LDFLAGS="$save_LDFLAGS"
  13515.  
  13516. fi
  13517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  13518. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  13519.  
  13520. if test x"$lt_cv_prog_compiler__b" = xyes; then
  13521.     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13522. else
  13523.     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13524. fi
  13525.  
  13526.           ;;
  13527.         esac
  13528.       fi
  13529.       if test "$with_gnu_ld" = no; then
  13530.         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  13531.         hardcode_libdir_separator=:
  13532.  
  13533.         case $host_cpu in
  13534.         hppa*64*|ia64*)
  13535.           hardcode_direct=no
  13536.           hardcode_shlibpath_var=no
  13537.           ;;
  13538.         *)
  13539.           hardcode_direct=yes
  13540.           hardcode_direct_absolute=yes
  13541.           export_dynamic_flag_spec='${wl}-E'
  13542.  
  13543.           # hardcode_minus_L: Not really in the search PATH,
  13544.           # but as the default location of the library.
  13545.           hardcode_minus_L=yes
  13546.           ;;
  13547.         esac
  13548.       fi
  13549.       ;;
  13550.  
  13551.     irix5* | irix6* | nonstopux*)
  13552.       if test "$GCC" = yes; then
  13553.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13554.         # Try to use the -exported_symbol ld option, if it does not
  13555.         # work, assume that -exports_file does not work either and
  13556.         # implicitly export all symbols.
  13557.         # This should be the same for all languages, so no per-tag cache variable.
  13558.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  13559. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  13560. if ${lt_cv_irix_exported_symbol+:} false; then :
  13561.   $as_echo_n "(cached) " >&6
  13562. else
  13563.   save_LDFLAGS="$LDFLAGS"
  13564.            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  13565.            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13566. /* end confdefs.h.  */
  13567. int foo (void) { return 0; }
  13568. _ACEOF
  13569. if ac_fn_c_try_link "$LINENO"; then :
  13570.   lt_cv_irix_exported_symbol=yes
  13571. else
  13572.   lt_cv_irix_exported_symbol=no
  13573. fi
  13574. rm -f core conftest.err conftest.$ac_objext \
  13575.     conftest$ac_exeext conftest.$ac_ext
  13576.            LDFLAGS="$save_LDFLAGS"
  13577. fi
  13578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  13579. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  13580.         if test "$lt_cv_irix_exported_symbol" = yes; then
  13581.           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  13582.         fi
  13583.       else
  13584.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  13585.         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  13586.       fi
  13587.       archive_cmds_need_lc='no'
  13588.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13589.       hardcode_libdir_separator=:
  13590.       inherit_rpath=yes
  13591.       link_all_deplibs=yes
  13592.       ;;
  13593.  
  13594.     netbsd* | netbsdelf*-gnu)
  13595.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13596.         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  13597.       else
  13598.         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  13599.       fi
  13600.       hardcode_libdir_flag_spec='-R$libdir'
  13601.       hardcode_direct=yes
  13602.       hardcode_shlibpath_var=no
  13603.       ;;
  13604.  
  13605.     newsos6)
  13606.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13607.       hardcode_direct=yes
  13608.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13609.       hardcode_libdir_separator=:
  13610.       hardcode_shlibpath_var=no
  13611.       ;;
  13612.  
  13613.     *nto* | *qnx*)
  13614.       ;;
  13615.  
  13616.     openbsd*)
  13617.       if test -f /usr/libexec/ld.so; then
  13618.         hardcode_direct=yes
  13619.         hardcode_shlibpath_var=no
  13620.         hardcode_direct_absolute=yes
  13621.         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13622.           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13623.           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13624.           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  13625.           export_dynamic_flag_spec='${wl}-E'
  13626.         else
  13627.           case $host_os in
  13628.            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13629.              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13630.              hardcode_libdir_flag_spec='-R$libdir'
  13631.              ;;
  13632.            *)
  13633.              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13634.              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  13635.              ;;
  13636.           esac
  13637.         fi
  13638.       else
  13639.         ld_shlibs=no
  13640.       fi
  13641.       ;;
  13642.  
  13643.     os2*)
  13644.       hardcode_libdir_flag_spec='-L$libdir'
  13645.       hardcode_minus_L=yes
  13646.       allow_undefined_flag=unsupported
  13647.       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  13648.       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13649.       ;;
  13650.  
  13651.     osf3*)
  13652.       if test "$GCC" = yes; then
  13653.         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  13654.         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13655.       else
  13656.         allow_undefined_flag=' -expect_unresolved \*'
  13657.         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  13658.       fi
  13659.       archive_cmds_need_lc='no'
  13660.       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13661.       hardcode_libdir_separator=:
  13662.       ;;
  13663.  
  13664.     osf4* | osf5*)      # as osf3* with the addition of -msym flag
  13665.       if test "$GCC" = yes; then
  13666.         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  13667.         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13668.         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13669.       else
  13670.         allow_undefined_flag=' -expect_unresolved \*'
  13671.         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  13672.         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  13673.         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  13674.  
  13675.         # Both c and cxx compiler support -rpath directly
  13676.         hardcode_libdir_flag_spec='-rpath $libdir'
  13677.       fi
  13678.       archive_cmds_need_lc='no'
  13679.       hardcode_libdir_separator=:
  13680.       ;;
  13681.  
  13682.     solaris*)
  13683.       no_undefined_flag=' -z defs'
  13684.       if test "$GCC" = yes; then
  13685.         wlarc='${wl}'
  13686.         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13687.         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13688.           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  13689.       else
  13690.         case `$CC -V 2>&1` in
  13691.         *"Compilers 5.0"*)
  13692.           wlarc=''
  13693.           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13694.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13695.           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  13696.           ;;
  13697.         *)
  13698.           wlarc='${wl}'
  13699.           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13700.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  13701.           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  13702.           ;;
  13703.         esac
  13704.       fi
  13705.       hardcode_libdir_flag_spec='-R$libdir'
  13706.       hardcode_shlibpath_var=no
  13707.       case $host_os in
  13708.       solaris2.[0-5] | solaris2.[0-5].*) ;;
  13709.       *)
  13710.         # The compiler driver will combine and reorder linker options,
  13711.         # but understands `-z linker_flag'.  GCC discards it without `$wl',
  13712.         # but is careful enough not to reorder.
  13713.         # Supported since Solaris 2.6 (maybe 2.5.1?)
  13714.         if test "$GCC" = yes; then
  13715.           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13716.         else
  13717.           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  13718.         fi
  13719.         ;;
  13720.       esac
  13721.       link_all_deplibs=yes
  13722.       ;;
  13723.  
  13724.     sunos4*)
  13725.       if test "x$host_vendor" = xsequent; then
  13726.         # Use $CC to link under sequent, because it throws in some extra .o
  13727.         # files that make .init and .fini sections work.
  13728.         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13729.       else
  13730.         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13731.       fi
  13732.       hardcode_libdir_flag_spec='-L$libdir'
  13733.       hardcode_direct=yes
  13734.       hardcode_minus_L=yes
  13735.       hardcode_shlibpath_var=no
  13736.       ;;
  13737.  
  13738.     sysv4)
  13739.       case $host_vendor in
  13740.         sni)
  13741.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13742.           hardcode_direct=yes # is this really true???
  13743.         ;;
  13744.         siemens)
  13745.           ## LD is ld it makes a PLAMLIB
  13746.           ## CC just makes a GrossModule.
  13747.           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13748.           reload_cmds='$CC -r -o $output$reload_objs'
  13749.           hardcode_direct=no
  13750.         ;;
  13751.         motorola)
  13752.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13753.           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  13754.         ;;
  13755.       esac
  13756.       runpath_var='LD_RUN_PATH'
  13757.       hardcode_shlibpath_var=no
  13758.       ;;
  13759.  
  13760.     sysv4.3*)
  13761.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13762.       hardcode_shlibpath_var=no
  13763.       export_dynamic_flag_spec='-Bexport'
  13764.       ;;
  13765.  
  13766.     sysv4*MP*)
  13767.       if test -d /usr/nec; then
  13768.         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13769.         hardcode_shlibpath_var=no
  13770.         runpath_var=LD_RUN_PATH
  13771.         hardcode_runpath_var=yes
  13772.         ld_shlibs=yes
  13773.       fi
  13774.       ;;
  13775.  
  13776.     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13777.       no_undefined_flag='${wl}-z,text'
  13778.       archive_cmds_need_lc=no
  13779.       hardcode_shlibpath_var=no
  13780.       runpath_var='LD_RUN_PATH'
  13781.  
  13782.       if test "$GCC" = yes; then
  13783.         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13784.         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13785.       else
  13786.         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13787.         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13788.       fi
  13789.       ;;
  13790.  
  13791.     sysv5* | sco3.2v5* | sco5v6*)
  13792.       # Note: We can NOT use -z defs as we might desire, because we do not
  13793.       # link with -lc, and that would cause any symbols used from libc to
  13794.       # always be unresolved, which means just about no library would
  13795.       # ever link correctly.  If we're not using GNU ld we use -z text
  13796.       # though, which does catch some bad symbols but isn't as heavy-handed
  13797.       # as -z defs.
  13798.       no_undefined_flag='${wl}-z,text'
  13799.       allow_undefined_flag='${wl}-z,nodefs'
  13800.       archive_cmds_need_lc=no
  13801.       hardcode_shlibpath_var=no
  13802.       hardcode_libdir_flag_spec='${wl}-R,$libdir'
  13803.       hardcode_libdir_separator=':'
  13804.       link_all_deplibs=yes
  13805.       export_dynamic_flag_spec='${wl}-Bexport'
  13806.       runpath_var='LD_RUN_PATH'
  13807.  
  13808.       if test "$GCC" = yes; then
  13809.         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13810.         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13811.       else
  13812.         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13813.         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13814.       fi
  13815.       ;;
  13816.  
  13817.     uts4*)
  13818.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13819.       hardcode_libdir_flag_spec='-L$libdir'
  13820.       hardcode_shlibpath_var=no
  13821.       ;;
  13822.  
  13823.     *)
  13824.       ld_shlibs=no
  13825.       ;;
  13826.     esac
  13827.  
  13828.     if test x$host_vendor = xsni; then
  13829.       case $host in
  13830.       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13831.         export_dynamic_flag_spec='${wl}-Blargedynsym'
  13832.         ;;
  13833.       esac
  13834.     fi
  13835.   fi
  13836.  
  13837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  13838. $as_echo "$ld_shlibs" >&6; }
  13839. test "$ld_shlibs" = no && can_build_shared=no
  13840.  
  13841. with_gnu_ld=$with_gnu_ld
  13842.  
  13843.  
  13844.  
  13845.  
  13846.  
  13847.  
  13848.  
  13849.  
  13850.  
  13851.  
  13852.  
  13853.  
  13854.  
  13855.  
  13856.  
  13857. #
  13858. # Do we need to explicitly link libc?
  13859. #
  13860. case "x$archive_cmds_need_lc" in
  13861. x|xyes)
  13862.   # Assume -lc should be added
  13863.   archive_cmds_need_lc=yes
  13864.  
  13865.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  13866.     case $archive_cmds in
  13867.     *'~'*)
  13868.       # FIXME: we may have to deal with multi-command sequences.
  13869.       ;;
  13870.     '$CC '*)
  13871.       # Test whether the compiler implicitly links with -lc since on some
  13872.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13873.       # to ld, don't add -lc before -lgcc.
  13874.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13875. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13876. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  13877.   $as_echo_n "(cached) " >&6
  13878. else
  13879.   $RM conftest*
  13880.         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13881.  
  13882.         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13883.   (eval $ac_compile) 2>&5
  13884.   ac_status=$?
  13885.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13886.   test $ac_status = 0; } 2>conftest.err; then
  13887.           soname=conftest
  13888.           lib=conftest
  13889.           libobjs=conftest.$ac_objext
  13890.           deplibs=
  13891.           wl=$lt_prog_compiler_wl
  13892.           pic_flag=$lt_prog_compiler_pic
  13893.           compiler_flags=-v
  13894.           linker_flags=-v
  13895.           verstring=
  13896.           output_objdir=.
  13897.           libname=conftest
  13898.           lt_save_allow_undefined_flag=$allow_undefined_flag
  13899.           allow_undefined_flag=
  13900.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13901.   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13902.   ac_status=$?
  13903.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13904.   test $ac_status = 0; }
  13905.           then
  13906.             lt_cv_archive_cmds_need_lc=no
  13907.           else
  13908.             lt_cv_archive_cmds_need_lc=yes
  13909.           fi
  13910.           allow_undefined_flag=$lt_save_allow_undefined_flag
  13911.         else
  13912.           cat conftest.err 1>&5
  13913.         fi
  13914.         $RM conftest*
  13915.  
  13916. fi
  13917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  13918. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  13919.       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  13920.       ;;
  13921.     esac
  13922.   fi
  13923.   ;;
  13924. esac
  13925.  
  13926.  
  13927.  
  13928.  
  13929.  
  13930.  
  13931.  
  13932.  
  13933.  
  13934.  
  13935.  
  13936.  
  13937.  
  13938.  
  13939.  
  13940.  
  13941.  
  13942.  
  13943.  
  13944.  
  13945.  
  13946.  
  13947.  
  13948.  
  13949.  
  13950.  
  13951.  
  13952.  
  13953.  
  13954.  
  13955.  
  13956.  
  13957.  
  13958.  
  13959.  
  13960.  
  13961.  
  13962.  
  13963.  
  13964.  
  13965.  
  13966.  
  13967.  
  13968.  
  13969.  
  13970.  
  13971.  
  13972.  
  13973.  
  13974.  
  13975.  
  13976.  
  13977.  
  13978.  
  13979.  
  13980.  
  13981.  
  13982.  
  13983.  
  13984.  
  13985.  
  13986.  
  13987.  
  13988.  
  13989.  
  13990.  
  13991.  
  13992.  
  13993.  
  13994.  
  13995.  
  13996.  
  13997.  
  13998.  
  13999.  
  14000.  
  14001.  
  14002.  
  14003.  
  14004.  
  14005.  
  14006.  
  14007.  
  14008.  
  14009.  
  14010.  
  14011.  
  14012.  
  14013.  
  14014.  
  14015.  
  14016.  
  14017.  
  14018.  
  14019.  
  14020.  
  14021.  
  14022.  
  14023.  
  14024.  
  14025.  
  14026.  
  14027.  
  14028.  
  14029.  
  14030.  
  14031.  
  14032.  
  14033.  
  14034.  
  14035.  
  14036.  
  14037.  
  14038.  
  14039.  
  14040.  
  14041.  
  14042.  
  14043.  
  14044.  
  14045.  
  14046.  
  14047.  
  14048.  
  14049.  
  14050.  
  14051.  
  14052.  
  14053.  
  14054.  
  14055.  
  14056.  
  14057.  
  14058.  
  14059.  
  14060.  
  14061.  
  14062.  
  14063.  
  14064.  
  14065.  
  14066.  
  14067.  
  14068.  
  14069.  
  14070.  
  14071.  
  14072.  
  14073.  
  14074.  
  14075.  
  14076.  
  14077.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14078. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14079.  
  14080. if test "$GCC" = yes; then
  14081.   case $host_os in
  14082.     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  14083.     *) lt_awk_arg="/^libraries:/" ;;
  14084.   esac
  14085.   case $host_os in
  14086.     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  14087.     *) lt_sed_strip_eq="s,=/,/,g" ;;
  14088.   esac
  14089.   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  14090.   case $lt_search_path_spec in
  14091.   *\;*)
  14092.     # if the path contains ";" then we assume it to be the separator
  14093.     # otherwise default to the standard path separator (i.e. ":") - it is
  14094.     # assumed that no part of a normal pathname contains ";" but that should
  14095.     # okay in the real world where ";" in dirpaths is itself problematic.
  14096.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  14097.     ;;
  14098.   *)
  14099.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  14100.     ;;
  14101.   esac
  14102.   # Ok, now we have the path, separated by spaces, we can step through it
  14103.   # and add multilib dir if necessary.
  14104.   lt_tmp_lt_search_path_spec=
  14105.   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  14106.   for lt_sys_path in $lt_search_path_spec; do
  14107.     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  14108.       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  14109.     else
  14110.       test -d "$lt_sys_path" && \
  14111.         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  14112.     fi
  14113.   done
  14114.   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  14115. BEGIN {RS=" "; FS="/|\n";} {
  14116.   lt_foo="";
  14117.   lt_count=0;
  14118.   for (lt_i = NF; lt_i > 0; lt_i--) {
  14119.     if ($lt_i != "" && $lt_i != ".") {
  14120.       if ($lt_i == "..") {
  14121.         lt_count++;
  14122.       } else {
  14123.         if (lt_count == 0) {
  14124.           lt_foo="/" $lt_i lt_foo;
  14125.         } else {
  14126.           lt_count--;
  14127.         }
  14128.       }
  14129.     }
  14130.   }
  14131.   if (lt_foo != "") { lt_freq[lt_foo]++; }
  14132.   if (lt_freq[lt_foo] == 1) { print lt_foo; }
  14133. }'`
  14134.   # AWK program above erroneously prepends '/' to C:/dos/paths
  14135.   # for these hosts.
  14136.   case $host_os in
  14137.     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  14138.       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  14139.   esac
  14140.   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  14141. else
  14142.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14143. fi
  14144. library_names_spec=
  14145. libname_spec='lib$name'
  14146. soname_spec=
  14147. shrext_cmds=".so"
  14148. postinstall_cmds=
  14149. postuninstall_cmds=
  14150. finish_cmds=
  14151. finish_eval=
  14152. shlibpath_var=
  14153. shlibpath_overrides_runpath=unknown
  14154. version_type=none
  14155. dynamic_linker="$host_os ld.so"
  14156. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14157. need_lib_prefix=unknown
  14158. hardcode_into_libs=no
  14159.  
  14160. # when you set need_version to no, make sure it does not cause -set_version
  14161. # flags to be left without arguments
  14162. need_version=unknown
  14163.  
  14164. case $host_os in
  14165. aix3*)
  14166.   version_type=linux # correct to gnu/linux during the next big refactor
  14167.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14168.   shlibpath_var=LIBPATH
  14169.  
  14170.   # AIX 3 has no versioning support, so we append a major version to the name.
  14171.   soname_spec='${libname}${release}${shared_ext}$major'
  14172.   ;;
  14173.  
  14174. aix[4-9]*)
  14175.   version_type=linux # correct to gnu/linux during the next big refactor
  14176.   need_lib_prefix=no
  14177.   need_version=no
  14178.   hardcode_into_libs=yes
  14179.   if test "$host_cpu" = ia64; then
  14180.     # AIX 5 supports IA64
  14181.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14182.     shlibpath_var=LD_LIBRARY_PATH
  14183.   else
  14184.     # With GCC up to 2.95.x, collect2 would create an import file
  14185.     # for dependence libraries.  The import file would start with
  14186.     # the line `#! .'.  This would cause the generated library to
  14187.     # depend on `.', always an invalid library.  This was fixed in
  14188.     # development snapshots of GCC prior to 3.0.
  14189.     case $host_os in
  14190.       aix4 | aix4.[01] | aix4.[01].*)
  14191.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14192.            echo ' yes '
  14193.            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  14194.         :
  14195.       else
  14196.         can_build_shared=no
  14197.       fi
  14198.       ;;
  14199.     esac
  14200.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14201.     # soname into executable. Probably we can add versioning support to
  14202.     # collect2, so additional links can be useful in future.
  14203.     if test "$aix_use_runtimelinking" = yes; then
  14204.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14205.       # instead of lib<name>.a to let people know that these are not
  14206.       # typical AIX shared libraries.
  14207.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14208.     else
  14209.       # We preserve .a as extension for shared libraries through AIX4.2
  14210.       # and later when we are not doing run time linking.
  14211.       library_names_spec='${libname}${release}.a $libname.a'
  14212.       soname_spec='${libname}${release}${shared_ext}$major'
  14213.     fi
  14214.     shlibpath_var=LIBPATH
  14215.   fi
  14216.   ;;
  14217.  
  14218. amigaos*)
  14219.   case $host_cpu in
  14220.   powerpc)
  14221.     # Since July 2007 AmigaOS4 officially supports .so libraries.
  14222.     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14223.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14224.     ;;
  14225.   m68k)
  14226.     library_names_spec='$libname.ixlibrary $libname.a'
  14227.     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14228.     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  14229.     ;;
  14230.   esac
  14231.   ;;
  14232.  
  14233. beos*)
  14234.   library_names_spec='${libname}${shared_ext}'
  14235.   dynamic_linker="$host_os ld.so"
  14236.   shlibpath_var=LIBRARY_PATH
  14237.   ;;
  14238.  
  14239. bsdi[45]*)
  14240.   version_type=linux # correct to gnu/linux during the next big refactor
  14241.   need_version=no
  14242.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14243.   soname_spec='${libname}${release}${shared_ext}$major'
  14244.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14245.   shlibpath_var=LD_LIBRARY_PATH
  14246.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14247.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14248.   # the default ld.so.conf also contains /usr/contrib/lib and
  14249.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14250.   # libtool to hard-code these into programs
  14251.   ;;
  14252.  
  14253. cygwin* | mingw* | pw32* | cegcc*)
  14254.   version_type=windows
  14255.   shrext_cmds=".dll"
  14256.   need_version=no
  14257.   need_lib_prefix=no
  14258.  
  14259.   case $GCC,$cc_basename in
  14260.   yes,*)
  14261.     # gcc
  14262.     library_names_spec='$libname.dll.a'
  14263.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14264.     postinstall_cmds='base_file=`basename \${file}`~
  14265.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  14266.       dldir=$destdir/`dirname \$dlpath`~
  14267.       test -d \$dldir || mkdir -p \$dldir~
  14268.       $install_prog $dir/$dlname \$dldir/$dlname~
  14269.       chmod a+x \$dldir/$dlname~
  14270.       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14271.         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14272.       fi'
  14273.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14274.       dlpath=$dir/\$dldll~
  14275.        $RM \$dlpath'
  14276.     shlibpath_overrides_runpath=yes
  14277.  
  14278.     case $host_os in
  14279.     cygwin*)
  14280.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14281.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14282.  
  14283.       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  14284.       ;;
  14285.     mingw* | cegcc*)
  14286.       # MinGW DLLs use traditional 'lib' prefix
  14287.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14288.       ;;
  14289.     pw32*)
  14290.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  14291.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14292.       ;;
  14293.     esac
  14294.     dynamic_linker='Win32 ld.exe'
  14295.     ;;
  14296.  
  14297.   *,cl*)
  14298.     # Native MSVC
  14299.     libname_spec='$name'
  14300.     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14301.     library_names_spec='${libname}.dll.lib'
  14302.  
  14303.     case $build_os in
  14304.     mingw*)
  14305.       sys_lib_search_path_spec=
  14306.       lt_save_ifs=$IFS
  14307.       IFS=';'
  14308.       for lt_path in $LIB
  14309.       do
  14310.         IFS=$lt_save_ifs
  14311.         # Let DOS variable expansion print the short 8.3 style file name.
  14312.         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14313.         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14314.       done
  14315.       IFS=$lt_save_ifs
  14316.       # Convert to MSYS style.
  14317.       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14318.       ;;
  14319.     cygwin*)
  14320.       # Convert to unix form, then to dos form, then back to unix form
  14321.       # but this time dos style (no spaces!) so that the unix form looks
  14322.       # like /cygdrive/c/PROGRA~1:/cygdr...
  14323.       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14324.       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14325.       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14326.       ;;
  14327.     *)
  14328.       sys_lib_search_path_spec="$LIB"
  14329.       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14330.         # It is most probably a Windows format PATH.
  14331.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14332.       else
  14333.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14334.       fi
  14335.       # FIXME: find the short name or the path components, as spaces are
  14336.       # common. (e.g. "Program Files" -> "PROGRA~1")
  14337.       ;;
  14338.     esac
  14339.  
  14340.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14341.     postinstall_cmds='base_file=`basename \${file}`~
  14342.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  14343.       dldir=$destdir/`dirname \$dlpath`~
  14344.       test -d \$dldir || mkdir -p \$dldir~
  14345.       $install_prog $dir/$dlname \$dldir/$dlname'
  14346.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14347.       dlpath=$dir/\$dldll~
  14348.        $RM \$dlpath'
  14349.     shlibpath_overrides_runpath=yes
  14350.     dynamic_linker='Win32 link.exe'
  14351.     ;;
  14352.  
  14353.   *)
  14354.     # Assume MSVC wrapper
  14355.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14356.     dynamic_linker='Win32 ld.exe'
  14357.     ;;
  14358.   esac
  14359.   # FIXME: first we should search . and the directory the executable is in
  14360.   shlibpath_var=PATH
  14361.   ;;
  14362.  
  14363. darwin* | rhapsody*)
  14364.   dynamic_linker="$host_os dyld"
  14365.   version_type=darwin
  14366.   need_lib_prefix=no
  14367.   need_version=no
  14368.   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14369.   soname_spec='${libname}${release}${major}$shared_ext'
  14370.   shlibpath_overrides_runpath=yes
  14371.   shlibpath_var=DYLD_LIBRARY_PATH
  14372.   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14373.  
  14374.   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  14375.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14376.   ;;
  14377.  
  14378. dgux*)
  14379.   version_type=linux # correct to gnu/linux during the next big refactor
  14380.   need_lib_prefix=no
  14381.   need_version=no
  14382.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14383.   soname_spec='${libname}${release}${shared_ext}$major'
  14384.   shlibpath_var=LD_LIBRARY_PATH
  14385.   ;;
  14386.  
  14387. freebsd* | dragonfly*)
  14388.   # DragonFly does not have aout.  When/if they implement a new
  14389.   # versioning mechanism, adjust this.
  14390.   if test -x /usr/bin/objformat; then
  14391.     objformat=`/usr/bin/objformat`
  14392.   else
  14393.     case $host_os in
  14394.     freebsd[23].*) objformat=aout ;;
  14395.     *) objformat=elf ;;
  14396.     esac
  14397.   fi
  14398.   version_type=freebsd-$objformat
  14399.   case $version_type in
  14400.     freebsd-elf*)
  14401.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14402.       need_version=no
  14403.       need_lib_prefix=no
  14404.       ;;
  14405.     freebsd-*)
  14406.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14407.       need_version=yes
  14408.       ;;
  14409.   esac
  14410.   shlibpath_var=LD_LIBRARY_PATH
  14411.   case $host_os in
  14412.   freebsd2.*)
  14413.     shlibpath_overrides_runpath=yes
  14414.     ;;
  14415.   freebsd3.[01]* | freebsdelf3.[01]*)
  14416.     shlibpath_overrides_runpath=yes
  14417.     hardcode_into_libs=yes
  14418.     ;;
  14419.   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14420.   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14421.     shlibpath_overrides_runpath=no
  14422.     hardcode_into_libs=yes
  14423.     ;;
  14424.   *) # from 4.6 on, and DragonFly
  14425.     shlibpath_overrides_runpath=yes
  14426.     hardcode_into_libs=yes
  14427.     ;;
  14428.   esac
  14429.   ;;
  14430.  
  14431. haiku*)
  14432.   version_type=linux # correct to gnu/linux during the next big refactor
  14433.   need_lib_prefix=no
  14434.   need_version=no
  14435.   dynamic_linker="$host_os runtime_loader"
  14436.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14437.   soname_spec='${libname}${release}${shared_ext}$major'
  14438.   shlibpath_var=LIBRARY_PATH
  14439.   shlibpath_overrides_runpath=yes
  14440.   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14441.   hardcode_into_libs=yes
  14442.   ;;
  14443.  
  14444. hpux9* | hpux10* | hpux11*)
  14445.   # Give a soname corresponding to the major version so that dld.sl refuses to
  14446.   # link against other versions.
  14447.   version_type=sunos
  14448.   need_lib_prefix=no
  14449.   need_version=no
  14450.   case $host_cpu in
  14451.   ia64*)
  14452.     shrext_cmds='.so'
  14453.     hardcode_into_libs=yes
  14454.     dynamic_linker="$host_os dld.so"
  14455.     shlibpath_var=LD_LIBRARY_PATH
  14456.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14457.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14458.     soname_spec='${libname}${release}${shared_ext}$major'
  14459.     if test "X$HPUX_IA64_MODE" = X32; then
  14460.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14461.     else
  14462.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14463.     fi
  14464.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14465.     ;;
  14466.   hppa*64*)
  14467.     shrext_cmds='.sl'
  14468.     hardcode_into_libs=yes
  14469.     dynamic_linker="$host_os dld.sl"
  14470.     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14471.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14472.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14473.     soname_spec='${libname}${release}${shared_ext}$major'
  14474.     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14475.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14476.     ;;
  14477.   *)
  14478.     shrext_cmds='.sl'
  14479.     dynamic_linker="$host_os dld.sl"
  14480.     shlibpath_var=SHLIB_PATH
  14481.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14482.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14483.     soname_spec='${libname}${release}${shared_ext}$major'
  14484.     ;;
  14485.   esac
  14486.   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14487.   postinstall_cmds='chmod 555 $lib'
  14488.   # or fails outright, so override atomically:
  14489.   install_override_mode=555
  14490.   ;;
  14491.  
  14492. interix[3-9]*)
  14493.   version_type=linux # correct to gnu/linux during the next big refactor
  14494.   need_lib_prefix=no
  14495.   need_version=no
  14496.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14497.   soname_spec='${libname}${release}${shared_ext}$major'
  14498.   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14499.   shlibpath_var=LD_LIBRARY_PATH
  14500.   shlibpath_overrides_runpath=no
  14501.   hardcode_into_libs=yes
  14502.   ;;
  14503.  
  14504. irix5* | irix6* | nonstopux*)
  14505.   case $host_os in
  14506.     nonstopux*) version_type=nonstopux ;;
  14507.     *)
  14508.         if test "$lt_cv_prog_gnu_ld" = yes; then
  14509.                 version_type=linux # correct to gnu/linux during the next big refactor
  14510.         else
  14511.                 version_type=irix
  14512.         fi ;;
  14513.   esac
  14514.   need_lib_prefix=no
  14515.   need_version=no
  14516.   soname_spec='${libname}${release}${shared_ext}$major'
  14517.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14518.   case $host_os in
  14519.   irix5* | nonstopux*)
  14520.     libsuff= shlibsuff=
  14521.     ;;
  14522.   *)
  14523.     case $LD in # libtool.m4 will add one of these switches to LD
  14524.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14525.       libsuff= shlibsuff= libmagic=32-bit;;
  14526.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14527.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  14528.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14529.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14530.     *) libsuff= shlibsuff= libmagic=never-match;;
  14531.     esac
  14532.     ;;
  14533.   esac
  14534.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14535.   shlibpath_overrides_runpath=no
  14536.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14537.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14538.   hardcode_into_libs=yes
  14539.   ;;
  14540.  
  14541. # No shared lib support for Linux oldld, aout, or coff.
  14542. linux*oldld* | linux*aout* | linux*coff*)
  14543.   dynamic_linker=no
  14544.   ;;
  14545.  
  14546. # This must be glibc/ELF.
  14547. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  14548.   version_type=linux # correct to gnu/linux during the next big refactor
  14549.   need_lib_prefix=no
  14550.   need_version=no
  14551.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14552.   soname_spec='${libname}${release}${shared_ext}$major'
  14553.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14554.   shlibpath_var=LD_LIBRARY_PATH
  14555.   shlibpath_overrides_runpath=no
  14556.  
  14557.   # Some binutils ld are patched to set DT_RUNPATH
  14558.   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14559.   $as_echo_n "(cached) " >&6
  14560. else
  14561.   lt_cv_shlibpath_overrides_runpath=no
  14562.     save_LDFLAGS=$LDFLAGS
  14563.     save_libdir=$libdir
  14564.     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  14565.          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  14566.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14567. /* end confdefs.h.  */
  14568.  
  14569. int
  14570. main ()
  14571. {
  14572.  
  14573.   ;
  14574.   return 0;
  14575. }
  14576. _ACEOF
  14577. if ac_fn_c_try_link "$LINENO"; then :
  14578.   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14579.   lt_cv_shlibpath_overrides_runpath=yes
  14580. fi
  14581. fi
  14582. rm -f core conftest.err conftest.$ac_objext \
  14583.     conftest$ac_exeext conftest.$ac_ext
  14584.     LDFLAGS=$save_LDFLAGS
  14585.     libdir=$save_libdir
  14586.  
  14587. fi
  14588.  
  14589.   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14590.  
  14591.   # This implies no fast_install, which is unacceptable.
  14592.   # Some rework will be needed to allow for fast_install
  14593.   # before this can be enabled.
  14594.   hardcode_into_libs=yes
  14595.  
  14596.   # Append ld.so.conf contents to the search path
  14597.   if test -f /etc/ld.so.conf; then
  14598.     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  14599.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14600.   fi
  14601.  
  14602.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  14603.   # powerpc, because MkLinux only supported shared libraries with the
  14604.   # GNU dynamic linker.  Since this was broken with cross compilers,
  14605.   # most powerpc-linux boxes support dynamic linking these days and
  14606.   # people can always --disable-shared, the test was removed, and we
  14607.   # assume the GNU/Linux dynamic linker is in use.
  14608.   dynamic_linker='GNU/Linux ld.so'
  14609.   ;;
  14610.  
  14611. netbsdelf*-gnu)
  14612.   version_type=linux
  14613.   need_lib_prefix=no
  14614.   need_version=no
  14615.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14616.   soname_spec='${libname}${release}${shared_ext}$major'
  14617.   shlibpath_var=LD_LIBRARY_PATH
  14618.   shlibpath_overrides_runpath=no
  14619.   hardcode_into_libs=yes
  14620.   dynamic_linker='NetBSD ld.elf_so'
  14621.   ;;
  14622.  
  14623. netbsd*)
  14624.   version_type=sunos
  14625.   need_lib_prefix=no
  14626.   need_version=no
  14627.   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14628.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14629.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14630.     dynamic_linker='NetBSD (a.out) ld.so'
  14631.   else
  14632.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14633.     soname_spec='${libname}${release}${shared_ext}$major'
  14634.     dynamic_linker='NetBSD ld.elf_so'
  14635.   fi
  14636.   shlibpath_var=LD_LIBRARY_PATH
  14637.   shlibpath_overrides_runpath=yes
  14638.   hardcode_into_libs=yes
  14639.   ;;
  14640.  
  14641. newsos6)
  14642.   version_type=linux # correct to gnu/linux during the next big refactor
  14643.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14644.   shlibpath_var=LD_LIBRARY_PATH
  14645.   shlibpath_overrides_runpath=yes
  14646.   ;;
  14647.  
  14648. *nto* | *qnx*)
  14649.   version_type=qnx
  14650.   need_lib_prefix=no
  14651.   need_version=no
  14652.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14653.   soname_spec='${libname}${release}${shared_ext}$major'
  14654.   shlibpath_var=LD_LIBRARY_PATH
  14655.   shlibpath_overrides_runpath=no
  14656.   hardcode_into_libs=yes
  14657.   dynamic_linker='ldqnx.so'
  14658.   ;;
  14659.  
  14660. openbsd*)
  14661.   version_type=sunos
  14662.   sys_lib_dlsearch_path_spec="/usr/lib"
  14663.   need_lib_prefix=no
  14664.   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14665.   case $host_os in
  14666.     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
  14667.     *)                          need_version=no  ;;
  14668.   esac
  14669.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14670.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14671.   shlibpath_var=LD_LIBRARY_PATH
  14672.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14673.     case $host_os in
  14674.       openbsd2.[89] | openbsd2.[89].*)
  14675.         shlibpath_overrides_runpath=no
  14676.         ;;
  14677.       *)
  14678.         shlibpath_overrides_runpath=yes
  14679.         ;;
  14680.       esac
  14681.   else
  14682.     shlibpath_overrides_runpath=yes
  14683.   fi
  14684.   ;;
  14685.  
  14686. os2*)
  14687.   libname_spec='$name'
  14688.   shrext_cmds=".dll"
  14689.   need_lib_prefix=no
  14690.   library_names_spec='$libname${shared_ext} $libname.a'
  14691.   dynamic_linker='OS/2 ld.exe'
  14692.   shlibpath_var=LIBPATH
  14693.   ;;
  14694.  
  14695. osf3* | osf4* | osf5*)
  14696.   version_type=osf
  14697.   need_lib_prefix=no
  14698.   need_version=no
  14699.   soname_spec='${libname}${release}${shared_ext}$major'
  14700.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14701.   shlibpath_var=LD_LIBRARY_PATH
  14702.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14703.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14704.   ;;
  14705.  
  14706. rdos*)
  14707.   dynamic_linker=no
  14708.   ;;
  14709.  
  14710. solaris*)
  14711.   version_type=linux # correct to gnu/linux during the next big refactor
  14712.   need_lib_prefix=no
  14713.   need_version=no
  14714.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14715.   soname_spec='${libname}${release}${shared_ext}$major'
  14716.   shlibpath_var=LD_LIBRARY_PATH
  14717.   shlibpath_overrides_runpath=yes
  14718.   hardcode_into_libs=yes
  14719.   # ldd complains unless libraries are executable
  14720.   postinstall_cmds='chmod +x $lib'
  14721.   ;;
  14722.  
  14723. sunos4*)
  14724.   version_type=sunos
  14725.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14726.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14727.   shlibpath_var=LD_LIBRARY_PATH
  14728.   shlibpath_overrides_runpath=yes
  14729.   if test "$with_gnu_ld" = yes; then
  14730.     need_lib_prefix=no
  14731.   fi
  14732.   need_version=yes
  14733.   ;;
  14734.  
  14735. sysv4 | sysv4.3*)
  14736.   version_type=linux # correct to gnu/linux during the next big refactor
  14737.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14738.   soname_spec='${libname}${release}${shared_ext}$major'
  14739.   shlibpath_var=LD_LIBRARY_PATH
  14740.   case $host_vendor in
  14741.     sni)
  14742.       shlibpath_overrides_runpath=no
  14743.       need_lib_prefix=no
  14744.       runpath_var=LD_RUN_PATH
  14745.       ;;
  14746.     siemens)
  14747.       need_lib_prefix=no
  14748.       ;;
  14749.     motorola)
  14750.       need_lib_prefix=no
  14751.       need_version=no
  14752.       shlibpath_overrides_runpath=no
  14753.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14754.       ;;
  14755.   esac
  14756.   ;;
  14757.  
  14758. sysv4*MP*)
  14759.   if test -d /usr/nec ;then
  14760.     version_type=linux # correct to gnu/linux during the next big refactor
  14761.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14762.     soname_spec='$libname${shared_ext}.$major'
  14763.     shlibpath_var=LD_LIBRARY_PATH
  14764.   fi
  14765.   ;;
  14766.  
  14767. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14768.   version_type=freebsd-elf
  14769.   need_lib_prefix=no
  14770.   need_version=no
  14771.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14772.   soname_spec='${libname}${release}${shared_ext}$major'
  14773.   shlibpath_var=LD_LIBRARY_PATH
  14774.   shlibpath_overrides_runpath=yes
  14775.   hardcode_into_libs=yes
  14776.   if test "$with_gnu_ld" = yes; then
  14777.     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14778.   else
  14779.     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14780.     case $host_os in
  14781.       sco3.2v5*)
  14782.         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14783.         ;;
  14784.     esac
  14785.   fi
  14786.   sys_lib_dlsearch_path_spec='/usr/lib'
  14787.   ;;
  14788.  
  14789. tpf*)
  14790.   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  14791.   version_type=linux # correct to gnu/linux during the next big refactor
  14792.   need_lib_prefix=no
  14793.   need_version=no
  14794.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14795.   shlibpath_var=LD_LIBRARY_PATH
  14796.   shlibpath_overrides_runpath=no
  14797.   hardcode_into_libs=yes
  14798.   ;;
  14799.  
  14800. uts4*)
  14801.   version_type=linux # correct to gnu/linux during the next big refactor
  14802.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14803.   soname_spec='${libname}${release}${shared_ext}$major'
  14804.   shlibpath_var=LD_LIBRARY_PATH
  14805.   ;;
  14806.  
  14807. *)
  14808.   dynamic_linker=no
  14809.   ;;
  14810. esac
  14811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14812. $as_echo "$dynamic_linker" >&6; }
  14813. test "$dynamic_linker" = no && can_build_shared=no
  14814.  
  14815. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14816. if test "$GCC" = yes; then
  14817.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14818. fi
  14819.  
  14820. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  14821.   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  14822. fi
  14823. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  14824.   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  14825. fi
  14826.  
  14827.  
  14828.  
  14829.  
  14830.  
  14831.  
  14832.  
  14833.  
  14834.  
  14835.  
  14836.  
  14837.  
  14838.  
  14839.  
  14840.  
  14841.  
  14842.  
  14843.  
  14844.  
  14845.  
  14846.  
  14847.  
  14848.  
  14849.  
  14850.  
  14851.  
  14852.  
  14853.  
  14854.  
  14855.  
  14856.  
  14857.  
  14858.  
  14859.  
  14860.  
  14861.  
  14862.  
  14863.  
  14864.  
  14865.  
  14866.  
  14867.  
  14868.  
  14869.  
  14870.  
  14871.  
  14872.  
  14873.  
  14874.  
  14875.  
  14876.  
  14877.  
  14878.  
  14879.  
  14880.  
  14881.  
  14882.  
  14883.  
  14884.  
  14885.  
  14886.  
  14887.  
  14888.  
  14889.  
  14890.  
  14891.  
  14892.  
  14893.  
  14894.  
  14895.  
  14896.  
  14897.  
  14898.  
  14899.  
  14900.  
  14901.  
  14902.  
  14903.  
  14904.  
  14905.  
  14906.  
  14907.  
  14908.  
  14909.  
  14910.  
  14911.  
  14912.  
  14913.  
  14914.  
  14915.  
  14916.  
  14917.  
  14918.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14919. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14920. hardcode_action=
  14921. if test -n "$hardcode_libdir_flag_spec" ||
  14922.    test -n "$runpath_var" ||
  14923.    test "X$hardcode_automatic" = "Xyes" ; then
  14924.  
  14925.   # We can hardcode non-existent directories.
  14926.   if test "$hardcode_direct" != no &&
  14927.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14928.      # have to relink, otherwise we might link with an installed library
  14929.      # when we should be linking with a yet-to-be-installed one
  14930.      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  14931.      test "$hardcode_minus_L" != no; then
  14932.     # Linking always hardcodes the temporary library directory.
  14933.     hardcode_action=relink
  14934.   else
  14935.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14936.     hardcode_action=immediate
  14937.   fi
  14938. else
  14939.   # We cannot hardcode anything, or else we can only hardcode existing
  14940.   # directories.
  14941.   hardcode_action=unsupported
  14942. fi
  14943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  14944. $as_echo "$hardcode_action" >&6; }
  14945.  
  14946. if test "$hardcode_action" = relink ||
  14947.    test "$inherit_rpath" = yes; then
  14948.   # Fast installation is not supported
  14949.   enable_fast_install=no
  14950. elif test "$shlibpath_overrides_runpath" = yes ||
  14951.      test "$enable_shared" = no; then
  14952.   # Fast installation is not necessary
  14953.   enable_fast_install=needless
  14954. fi
  14955.  
  14956.  
  14957.  
  14958.  
  14959.  
  14960.  
  14961.   if test "x$enable_dlopen" != xyes; then
  14962.   enable_dlopen=unknown
  14963.   enable_dlopen_self=unknown
  14964.   enable_dlopen_self_static=unknown
  14965. else
  14966.   lt_cv_dlopen=no
  14967.   lt_cv_dlopen_libs=
  14968.  
  14969.   case $host_os in
  14970.   beos*)
  14971.     lt_cv_dlopen="load_add_on"
  14972.     lt_cv_dlopen_libs=
  14973.     lt_cv_dlopen_self=yes
  14974.     ;;
  14975.  
  14976.   mingw* | pw32* | cegcc*)
  14977.     lt_cv_dlopen="LoadLibrary"
  14978.     lt_cv_dlopen_libs=
  14979.     ;;
  14980.  
  14981.   cygwin*)
  14982.     lt_cv_dlopen="dlopen"
  14983.     lt_cv_dlopen_libs=
  14984.     ;;
  14985.  
  14986.   darwin*)
  14987.   # if libdl is installed we need to link against it
  14988.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  14989. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  14990. if ${ac_cv_lib_dl_dlopen+:} false; then :
  14991.   $as_echo_n "(cached) " >&6
  14992. else
  14993.   ac_check_lib_save_LIBS=$LIBS
  14994. LIBS="-ldl  $LIBS"
  14995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14996. /* end confdefs.h.  */
  14997.  
  14998. /* Override any GCC internal prototype to avoid an error.
  14999.    Use char because int might match the return type of a GCC
  15000.    builtin and then its argument prototype would still apply.  */
  15001. #ifdef __cplusplus
  15002. extern "C"
  15003. #endif
  15004. char dlopen ();
  15005. int
  15006. main ()
  15007. {
  15008. return dlopen ();
  15009.   ;
  15010.   return 0;
  15011. }
  15012. _ACEOF
  15013. if ac_fn_c_try_link "$LINENO"; then :
  15014.   ac_cv_lib_dl_dlopen=yes
  15015. else
  15016.   ac_cv_lib_dl_dlopen=no
  15017. fi
  15018. rm -f core conftest.err conftest.$ac_objext \
  15019.     conftest$ac_exeext conftest.$ac_ext
  15020. LIBS=$ac_check_lib_save_LIBS
  15021. fi
  15022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  15023. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  15024. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  15025.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  15026. else
  15027.  
  15028.     lt_cv_dlopen="dyld"
  15029.     lt_cv_dlopen_libs=
  15030.     lt_cv_dlopen_self=yes
  15031.  
  15032. fi
  15033.  
  15034.     ;;
  15035.  
  15036.   *)
  15037.     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  15038. if test "x$ac_cv_func_shl_load" = xyes; then :
  15039.   lt_cv_dlopen="shl_load"
  15040. else
  15041.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  15042. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  15043. if ${ac_cv_lib_dld_shl_load+:} false; then :
  15044.   $as_echo_n "(cached) " >&6
  15045. else
  15046.   ac_check_lib_save_LIBS=$LIBS
  15047. LIBS="-ldld  $LIBS"
  15048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15049. /* end confdefs.h.  */
  15050.  
  15051. /* Override any GCC internal prototype to avoid an error.
  15052.    Use char because int might match the return type of a GCC
  15053.    builtin and then its argument prototype would still apply.  */
  15054. #ifdef __cplusplus
  15055. extern "C"
  15056. #endif
  15057. char shl_load ();
  15058. int
  15059. main ()
  15060. {
  15061. return shl_load ();
  15062.   ;
  15063.   return 0;
  15064. }
  15065. _ACEOF
  15066. if ac_fn_c_try_link "$LINENO"; then :
  15067.   ac_cv_lib_dld_shl_load=yes
  15068. else
  15069.   ac_cv_lib_dld_shl_load=no
  15070. fi
  15071. rm -f core conftest.err conftest.$ac_objext \
  15072.     conftest$ac_exeext conftest.$ac_ext
  15073. LIBS=$ac_check_lib_save_LIBS
  15074. fi
  15075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  15076. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  15077. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  15078.   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  15079. else
  15080.   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  15081. if test "x$ac_cv_func_dlopen" = xyes; then :
  15082.   lt_cv_dlopen="dlopen"
  15083. else
  15084.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  15085. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  15086. if ${ac_cv_lib_dl_dlopen+:} false; then :
  15087.   $as_echo_n "(cached) " >&6
  15088. else
  15089.   ac_check_lib_save_LIBS=$LIBS
  15090. LIBS="-ldl  $LIBS"
  15091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15092. /* end confdefs.h.  */
  15093.  
  15094. /* Override any GCC internal prototype to avoid an error.
  15095.    Use char because int might match the return type of a GCC
  15096.    builtin and then its argument prototype would still apply.  */
  15097. #ifdef __cplusplus
  15098. extern "C"
  15099. #endif
  15100. char dlopen ();
  15101. int
  15102. main ()
  15103. {
  15104. return dlopen ();
  15105.   ;
  15106.   return 0;
  15107. }
  15108. _ACEOF
  15109. if ac_fn_c_try_link "$LINENO"; then :
  15110.   ac_cv_lib_dl_dlopen=yes
  15111. else
  15112.   ac_cv_lib_dl_dlopen=no
  15113. fi
  15114. rm -f core conftest.err conftest.$ac_objext \
  15115.     conftest$ac_exeext conftest.$ac_ext
  15116. LIBS=$ac_check_lib_save_LIBS
  15117. fi
  15118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  15119. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  15120. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  15121.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  15122. else
  15123.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  15124. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  15125. if ${ac_cv_lib_svld_dlopen+:} false; then :
  15126.   $as_echo_n "(cached) " >&6
  15127. else
  15128.   ac_check_lib_save_LIBS=$LIBS
  15129. LIBS="-lsvld  $LIBS"
  15130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15131. /* end confdefs.h.  */
  15132.  
  15133. /* Override any GCC internal prototype to avoid an error.
  15134.    Use char because int might match the return type of a GCC
  15135.    builtin and then its argument prototype would still apply.  */
  15136. #ifdef __cplusplus
  15137. extern "C"
  15138. #endif
  15139. char dlopen ();
  15140. int
  15141. main ()
  15142. {
  15143. return dlopen ();
  15144.   ;
  15145.   return 0;
  15146. }
  15147. _ACEOF
  15148. if ac_fn_c_try_link "$LINENO"; then :
  15149.   ac_cv_lib_svld_dlopen=yes
  15150. else
  15151.   ac_cv_lib_svld_dlopen=no
  15152. fi
  15153. rm -f core conftest.err conftest.$ac_objext \
  15154.     conftest$ac_exeext conftest.$ac_ext
  15155. LIBS=$ac_check_lib_save_LIBS
  15156. fi
  15157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  15158. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  15159. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  15160.   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  15161. else
  15162.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  15163. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  15164. if ${ac_cv_lib_dld_dld_link+:} false; then :
  15165.   $as_echo_n "(cached) " >&6
  15166. else
  15167.   ac_check_lib_save_LIBS=$LIBS
  15168. LIBS="-ldld  $LIBS"
  15169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15170. /* end confdefs.h.  */
  15171.  
  15172. /* Override any GCC internal prototype to avoid an error.
  15173.    Use char because int might match the return type of a GCC
  15174.    builtin and then its argument prototype would still apply.  */
  15175. #ifdef __cplusplus
  15176. extern "C"
  15177. #endif
  15178. char dld_link ();
  15179. int
  15180. main ()
  15181. {
  15182. return dld_link ();
  15183.   ;
  15184.   return 0;
  15185. }
  15186. _ACEOF
  15187. if ac_fn_c_try_link "$LINENO"; then :
  15188.   ac_cv_lib_dld_dld_link=yes
  15189. else
  15190.   ac_cv_lib_dld_dld_link=no
  15191. fi
  15192. rm -f core conftest.err conftest.$ac_objext \
  15193.     conftest$ac_exeext conftest.$ac_ext
  15194. LIBS=$ac_check_lib_save_LIBS
  15195. fi
  15196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  15197. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  15198. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  15199.   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  15200. fi
  15201.  
  15202.  
  15203. fi
  15204.  
  15205.  
  15206. fi
  15207.  
  15208.  
  15209. fi
  15210.  
  15211.  
  15212. fi
  15213.  
  15214.  
  15215. fi
  15216.  
  15217.     ;;
  15218.   esac
  15219.  
  15220.   if test "x$lt_cv_dlopen" != xno; then
  15221.     enable_dlopen=yes
  15222.   else
  15223.     enable_dlopen=no
  15224.   fi
  15225.  
  15226.   case $lt_cv_dlopen in
  15227.   dlopen)
  15228.     save_CPPFLAGS="$CPPFLAGS"
  15229.     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  15230.  
  15231.     save_LDFLAGS="$LDFLAGS"
  15232.     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  15233.  
  15234.     save_LIBS="$LIBS"
  15235.     LIBS="$lt_cv_dlopen_libs $LIBS"
  15236.  
  15237.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  15238. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  15239. if ${lt_cv_dlopen_self+:} false; then :
  15240.   $as_echo_n "(cached) " >&6
  15241. else
  15242.           if test "$cross_compiling" = yes; then :
  15243.   lt_cv_dlopen_self=cross
  15244. else
  15245.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  15246.   lt_status=$lt_dlunknown
  15247.   cat > conftest.$ac_ext <<_LT_EOF
  15248. #line $LINENO "configure"
  15249. #include "confdefs.h"
  15250.  
  15251. #if HAVE_DLFCN_H
  15252. #include <dlfcn.h>
  15253. #endif
  15254.  
  15255. #include <stdio.h>
  15256.  
  15257. #ifdef RTLD_GLOBAL
  15258. #  define LT_DLGLOBAL           RTLD_GLOBAL
  15259. #else
  15260. #  ifdef DL_GLOBAL
  15261. #    define LT_DLGLOBAL         DL_GLOBAL
  15262. #  else
  15263. #    define LT_DLGLOBAL         0
  15264. #  endif
  15265. #endif
  15266.  
  15267. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  15268.    find out it does not work in some platform. */
  15269. #ifndef LT_DLLAZY_OR_NOW
  15270. #  ifdef RTLD_LAZY
  15271. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  15272. #  else
  15273. #    ifdef DL_LAZY
  15274. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  15275. #    else
  15276. #      ifdef RTLD_NOW
  15277. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  15278. #      else
  15279. #        ifdef DL_NOW
  15280. #          define LT_DLLAZY_OR_NOW      DL_NOW
  15281. #        else
  15282. #          define LT_DLLAZY_OR_NOW      0
  15283. #        endif
  15284. #      endif
  15285. #    endif
  15286. #  endif
  15287. #endif
  15288.  
  15289. /* When -fvisbility=hidden is used, assume the code has been annotated
  15290.    correspondingly for the symbols needed.  */
  15291. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  15292. int fnord () __attribute__((visibility("default")));
  15293. #endif
  15294.  
  15295. int fnord () { return 42; }
  15296. int main ()
  15297. {
  15298.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  15299.   int status = $lt_dlunknown;
  15300.  
  15301.   if (self)
  15302.     {
  15303.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  15304.       else
  15305.         {
  15306.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  15307.           else puts (dlerror ());
  15308.         }
  15309.       /* dlclose (self); */
  15310.     }
  15311.   else
  15312.     puts (dlerror ());
  15313.  
  15314.   return status;
  15315. }
  15316. _LT_EOF
  15317.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  15318.   (eval $ac_link) 2>&5
  15319.   ac_status=$?
  15320.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15321.   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  15322.     (./conftest; exit; ) >&5 2>/dev/null
  15323.     lt_status=$?
  15324.     case x$lt_status in
  15325.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  15326.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  15327.       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  15328.     esac
  15329.   else :
  15330.     # compilation failed
  15331.     lt_cv_dlopen_self=no
  15332.   fi
  15333. fi
  15334. rm -fr conftest*
  15335.  
  15336.  
  15337. fi
  15338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  15339. $as_echo "$lt_cv_dlopen_self" >&6; }
  15340.  
  15341.     if test "x$lt_cv_dlopen_self" = xyes; then
  15342.       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  15343.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  15344. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  15345. if ${lt_cv_dlopen_self_static+:} false; then :
  15346.   $as_echo_n "(cached) " >&6
  15347. else
  15348.           if test "$cross_compiling" = yes; then :
  15349.   lt_cv_dlopen_self_static=cross
  15350. else
  15351.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  15352.   lt_status=$lt_dlunknown
  15353.   cat > conftest.$ac_ext <<_LT_EOF
  15354. #line $LINENO "configure"
  15355. #include "confdefs.h"
  15356.  
  15357. #if HAVE_DLFCN_H
  15358. #include <dlfcn.h>
  15359. #endif
  15360.  
  15361. #include <stdio.h>
  15362.  
  15363. #ifdef RTLD_GLOBAL
  15364. #  define LT_DLGLOBAL           RTLD_GLOBAL
  15365. #else
  15366. #  ifdef DL_GLOBAL
  15367. #    define LT_DLGLOBAL         DL_GLOBAL
  15368. #  else
  15369. #    define LT_DLGLOBAL         0
  15370. #  endif
  15371. #endif
  15372.  
  15373. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  15374.    find out it does not work in some platform. */
  15375. #ifndef LT_DLLAZY_OR_NOW
  15376. #  ifdef RTLD_LAZY
  15377. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  15378. #  else
  15379. #    ifdef DL_LAZY
  15380. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  15381. #    else
  15382. #      ifdef RTLD_NOW
  15383. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  15384. #      else
  15385. #        ifdef DL_NOW
  15386. #          define LT_DLLAZY_OR_NOW      DL_NOW
  15387. #        else
  15388. #          define LT_DLLAZY_OR_NOW      0
  15389. #        endif
  15390. #      endif
  15391. #    endif
  15392. #  endif
  15393. #endif
  15394.  
  15395. /* When -fvisbility=hidden is used, assume the code has been annotated
  15396.    correspondingly for the symbols needed.  */
  15397. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  15398. int fnord () __attribute__((visibility("default")));
  15399. #endif
  15400.  
  15401. int fnord () { return 42; }
  15402. int main ()
  15403. {
  15404.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  15405.   int status = $lt_dlunknown;
  15406.  
  15407.   if (self)
  15408.     {
  15409.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  15410.       else
  15411.         {
  15412.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  15413.           else puts (dlerror ());
  15414.         }
  15415.       /* dlclose (self); */
  15416.     }
  15417.   else
  15418.     puts (dlerror ());
  15419.  
  15420.   return status;
  15421. }
  15422. _LT_EOF
  15423.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  15424.   (eval $ac_link) 2>&5
  15425.   ac_status=$?
  15426.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15427.   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  15428.     (./conftest; exit; ) >&5 2>/dev/null
  15429.     lt_status=$?
  15430.     case x$lt_status in
  15431.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  15432.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  15433.       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  15434.     esac
  15435.   else :
  15436.     # compilation failed
  15437.     lt_cv_dlopen_self_static=no
  15438.   fi
  15439. fi
  15440. rm -fr conftest*
  15441.  
  15442.  
  15443. fi
  15444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  15445. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  15446.     fi
  15447.  
  15448.     CPPFLAGS="$save_CPPFLAGS"
  15449.     LDFLAGS="$save_LDFLAGS"
  15450.     LIBS="$save_LIBS"
  15451.     ;;
  15452.   esac
  15453.  
  15454.   case $lt_cv_dlopen_self in
  15455.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  15456.   *) enable_dlopen_self=unknown ;;
  15457.   esac
  15458.  
  15459.   case $lt_cv_dlopen_self_static in
  15460.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  15461.   *) enable_dlopen_self_static=unknown ;;
  15462.   esac
  15463. fi
  15464.  
  15465.  
  15466.  
  15467.  
  15468.  
  15469.  
  15470.  
  15471.  
  15472.  
  15473.  
  15474.  
  15475.  
  15476.  
  15477.  
  15478.  
  15479.  
  15480.  
  15481. striplib=
  15482. old_striplib=
  15483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  15484. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  15485. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  15486.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  15487.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  15488.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15489. $as_echo "yes" >&6; }
  15490. else
  15491. # FIXME - insert some real tests, host_os isn't really good enough
  15492.   case $host_os in
  15493.   darwin*)
  15494.     if test -n "$STRIP" ; then
  15495.       striplib="$STRIP -x"
  15496.       old_striplib="$STRIP -S"
  15497.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15498. $as_echo "yes" >&6; }
  15499.     else
  15500.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15501. $as_echo "no" >&6; }
  15502.     fi
  15503.     ;;
  15504.   *)
  15505.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15506. $as_echo "no" >&6; }
  15507.     ;;
  15508.   esac
  15509. fi
  15510.  
  15511.  
  15512.  
  15513.  
  15514.  
  15515.  
  15516.  
  15517.  
  15518.  
  15519.  
  15520.  
  15521.  
  15522.   # Report which library types will actually be built
  15523.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  15524. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  15525.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  15526. $as_echo "$can_build_shared" >&6; }
  15527.  
  15528.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  15529. $as_echo_n "checking whether to build shared libraries... " >&6; }
  15530.   test "$can_build_shared" = "no" && enable_shared=no
  15531.  
  15532.   # On AIX, shared libraries and static libraries use the same namespace, and
  15533.   # are all built from PIC.
  15534.   case $host_os in
  15535.   aix3*)
  15536.     test "$enable_shared" = yes && enable_static=no
  15537.     if test -n "$RANLIB"; then
  15538.       archive_cmds="$archive_cmds~\$RANLIB \$lib"
  15539.       postinstall_cmds='$RANLIB $lib'
  15540.     fi
  15541.     ;;
  15542.  
  15543.   aix[4-9]*)
  15544.     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  15545.       test "$enable_shared" = yes && enable_static=no
  15546.     fi
  15547.     ;;
  15548.   esac
  15549.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  15550. $as_echo "$enable_shared" >&6; }
  15551.  
  15552.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  15553. $as_echo_n "checking whether to build static libraries... " >&6; }
  15554.   # Make sure either enable_shared or enable_static is yes.
  15555.   test "$enable_shared" = yes || enable_static=yes
  15556.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  15557. $as_echo "$enable_static" >&6; }
  15558.  
  15559.  
  15560.  
  15561.  
  15562. fi
  15563. ac_ext=c
  15564. ac_cpp='$CPP $CPPFLAGS'
  15565. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15566. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15567. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15568.  
  15569. CC="$lt_save_CC"
  15570.  
  15571.       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  15572.     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  15573.     (test "X$CXX" != "Xg++"))) ; then
  15574.   ac_ext=cpp
  15575. ac_cpp='$CXXCPP $CPPFLAGS'
  15576. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15577. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15578. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  15580. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  15581. if test -z "$CXXCPP"; then
  15582.   if ${ac_cv_prog_CXXCPP+:} false; then :
  15583.   $as_echo_n "(cached) " >&6
  15584. else
  15585.       # Double quotes because CXXCPP needs to be expanded
  15586.     for CXXCPP in "$CXX -E" "/lib/cpp"
  15587.     do
  15588.       ac_preproc_ok=false
  15589. for ac_cxx_preproc_warn_flag in '' yes
  15590. do
  15591.   # Use a header file that comes with gcc, so configuring glibc
  15592.   # with a fresh cross-compiler works.
  15593.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15594.   # <limits.h> exists even on freestanding compilers.
  15595.   # On the NeXT, cc -E runs the code through the compiler's parser,
  15596.   # not just through cpp. "Syntax error" is here to catch this case.
  15597.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15598. /* end confdefs.h.  */
  15599. #ifdef __STDC__
  15600. # include <limits.h>
  15601. #else
  15602. # include <assert.h>
  15603. #endif
  15604.                      Syntax error
  15605. _ACEOF
  15606. if ac_fn_cxx_try_cpp "$LINENO"; then :
  15607.  
  15608. else
  15609.   # Broken: fails on valid input.
  15610. continue
  15611. fi
  15612. rm -f conftest.err conftest.i conftest.$ac_ext
  15613.  
  15614.   # OK, works on sane cases.  Now check whether nonexistent headers
  15615.   # can be detected and how.
  15616.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15617. /* end confdefs.h.  */
  15618. #include <ac_nonexistent.h>
  15619. _ACEOF
  15620. if ac_fn_cxx_try_cpp "$LINENO"; then :
  15621.   # Broken: success on invalid input.
  15622. continue
  15623. else
  15624.   # Passes both tests.
  15625. ac_preproc_ok=:
  15626. break
  15627. fi
  15628. rm -f conftest.err conftest.i conftest.$ac_ext
  15629.  
  15630. done
  15631. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15632. rm -f conftest.i conftest.err conftest.$ac_ext
  15633. if $ac_preproc_ok; then :
  15634.   break
  15635. fi
  15636.  
  15637.     done
  15638.     ac_cv_prog_CXXCPP=$CXXCPP
  15639.  
  15640. fi
  15641.   CXXCPP=$ac_cv_prog_CXXCPP
  15642. else
  15643.   ac_cv_prog_CXXCPP=$CXXCPP
  15644. fi
  15645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  15646. $as_echo "$CXXCPP" >&6; }
  15647. ac_preproc_ok=false
  15648. for ac_cxx_preproc_warn_flag in '' yes
  15649. do
  15650.   # Use a header file that comes with gcc, so configuring glibc
  15651.   # with a fresh cross-compiler works.
  15652.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15653.   # <limits.h> exists even on freestanding compilers.
  15654.   # On the NeXT, cc -E runs the code through the compiler's parser,
  15655.   # not just through cpp. "Syntax error" is here to catch this case.
  15656.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15657. /* end confdefs.h.  */
  15658. #ifdef __STDC__
  15659. # include <limits.h>
  15660. #else
  15661. # include <assert.h>
  15662. #endif
  15663.                      Syntax error
  15664. _ACEOF
  15665. if ac_fn_cxx_try_cpp "$LINENO"; then :
  15666.  
  15667. else
  15668.   # Broken: fails on valid input.
  15669. continue
  15670. fi
  15671. rm -f conftest.err conftest.i conftest.$ac_ext
  15672.  
  15673.   # OK, works on sane cases.  Now check whether nonexistent headers
  15674.   # can be detected and how.
  15675.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15676. /* end confdefs.h.  */
  15677. #include <ac_nonexistent.h>
  15678. _ACEOF
  15679. if ac_fn_cxx_try_cpp "$LINENO"; then :
  15680.   # Broken: success on invalid input.
  15681. continue
  15682. else
  15683.   # Passes both tests.
  15684. ac_preproc_ok=:
  15685. break
  15686. fi
  15687. rm -f conftest.err conftest.i conftest.$ac_ext
  15688.  
  15689. done
  15690. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15691. rm -f conftest.i conftest.err conftest.$ac_ext
  15692. if $ac_preproc_ok; then :
  15693.  
  15694. else
  15695.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15696. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15697. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  15698. See \`config.log' for more details" "$LINENO" 5; }
  15699. fi
  15700.  
  15701. ac_ext=c
  15702. ac_cpp='$CPP $CPPFLAGS'
  15703. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15704. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15705. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15706.  
  15707. else
  15708.   _lt_caught_CXX_error=yes
  15709. fi
  15710.  
  15711. ac_ext=cpp
  15712. ac_cpp='$CXXCPP $CPPFLAGS'
  15713. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15714. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15715. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15716.  
  15717. archive_cmds_need_lc_CXX=no
  15718. allow_undefined_flag_CXX=
  15719. always_export_symbols_CXX=no
  15720. archive_expsym_cmds_CXX=
  15721. compiler_needs_object_CXX=no
  15722. export_dynamic_flag_spec_CXX=
  15723. hardcode_direct_CXX=no
  15724. hardcode_direct_absolute_CXX=no
  15725. hardcode_libdir_flag_spec_CXX=
  15726. hardcode_libdir_separator_CXX=
  15727. hardcode_minus_L_CXX=no
  15728. hardcode_shlibpath_var_CXX=unsupported
  15729. hardcode_automatic_CXX=no
  15730. inherit_rpath_CXX=no
  15731. module_cmds_CXX=
  15732. module_expsym_cmds_CXX=
  15733. link_all_deplibs_CXX=unknown
  15734. old_archive_cmds_CXX=$old_archive_cmds
  15735. reload_flag_CXX=$reload_flag
  15736. reload_cmds_CXX=$reload_cmds
  15737. no_undefined_flag_CXX=
  15738. whole_archive_flag_spec_CXX=
  15739. enable_shared_with_static_runtimes_CXX=no
  15740.  
  15741. # Source file extension for C++ test sources.
  15742. ac_ext=cpp
  15743.  
  15744. # Object file extension for compiled C++ test sources.
  15745. objext=o
  15746. objext_CXX=$objext
  15747.  
  15748. # No sense in running all these tests if we already determined that
  15749. # the CXX compiler isn't working.  Some variables (like enable_shared)
  15750. # are currently assumed to apply to all compilers on this platform,
  15751. # and will be corrupted by setting them based on a non-working compiler.
  15752. if test "$_lt_caught_CXX_error" != yes; then
  15753.   # Code to be used in simple compile tests
  15754.   lt_simple_compile_test_code="int some_variable = 0;"
  15755.  
  15756.   # Code to be used in simple link tests
  15757.   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  15758.  
  15759.   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  15760.  
  15761.  
  15762.  
  15763.  
  15764.  
  15765.  
  15766. # If no C compiler was specified, use CC.
  15767. LTCC=${LTCC-"$CC"}
  15768.  
  15769. # If no C compiler flags were specified, use CFLAGS.
  15770. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  15771.  
  15772. # Allow CC to be a program name with arguments.
  15773. compiler=$CC
  15774.  
  15775.  
  15776.   # save warnings/boilerplate of simple test code
  15777.   ac_outfile=conftest.$ac_objext
  15778. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  15779. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15780. _lt_compiler_boilerplate=`cat conftest.err`
  15781. $RM conftest*
  15782.  
  15783.   ac_outfile=conftest.$ac_objext
  15784. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  15785. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15786. _lt_linker_boilerplate=`cat conftest.err`
  15787. $RM -r conftest*
  15788.  
  15789.  
  15790.   # Allow CC to be a program name with arguments.
  15791.   lt_save_CC=$CC
  15792.   lt_save_CFLAGS=$CFLAGS
  15793.   lt_save_LD=$LD
  15794.   lt_save_GCC=$GCC
  15795.   GCC=$GXX
  15796.   lt_save_with_gnu_ld=$with_gnu_ld
  15797.   lt_save_path_LD=$lt_cv_path_LD
  15798.   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  15799.     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  15800.   else
  15801.     $as_unset lt_cv_prog_gnu_ld
  15802.   fi
  15803.   if test -n "${lt_cv_path_LDCXX+set}"; then
  15804.     lt_cv_path_LD=$lt_cv_path_LDCXX
  15805.   else
  15806.     $as_unset lt_cv_path_LD
  15807.   fi
  15808.   test -z "${LDCXX+set}" || LD=$LDCXX
  15809.   CC=${CXX-"c++"}
  15810.   CFLAGS=$CXXFLAGS
  15811.   compiler=$CC
  15812.   compiler_CXX=$CC
  15813.   for cc_temp in $compiler""; do
  15814.   case $cc_temp in
  15815.     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15816.     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15817.     \-*) ;;
  15818.     *) break;;
  15819.   esac
  15820. done
  15821. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  15822.  
  15823.  
  15824.   if test -n "$compiler"; then
  15825.     # We don't want -fno-exception when compiling C++ code, so set the
  15826.     # no_builtin_flag separately
  15827.     if test "$GXX" = yes; then
  15828.       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  15829.     else
  15830.       lt_prog_compiler_no_builtin_flag_CXX=
  15831.     fi
  15832.  
  15833.     if test "$GXX" = yes; then
  15834.       # Set up default GNU C++ configuration
  15835.  
  15836.  
  15837.  
  15838. # Check whether --with-gnu-ld was given.
  15839. if test "${with_gnu_ld+set}" = set; then :
  15840.   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  15841. else
  15842.   with_gnu_ld=no
  15843. fi
  15844.  
  15845. ac_prog=ld
  15846. if test "$GCC" = yes; then
  15847.   # Check if gcc -print-prog-name=ld gives a path.
  15848.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  15849. $as_echo_n "checking for ld used by $CC... " >&6; }
  15850.   case $host in
  15851.   *-*-mingw*)
  15852.     # gcc leaves a trailing carriage return which upsets mingw
  15853.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  15854.   *)
  15855.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  15856.   esac
  15857.   case $ac_prog in
  15858.     # Accept absolute paths.
  15859.     [\\/]* | ?:[\\/]*)
  15860.       re_direlt='/[^/][^/]*/\.\./'
  15861.       # Canonicalize the pathname of ld
  15862.       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  15863.       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  15864.         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  15865.       done
  15866.       test -z "$LD" && LD="$ac_prog"
  15867.       ;;
  15868.   "")
  15869.     # If it fails, then pretend we aren't using GCC.
  15870.     ac_prog=ld
  15871.     ;;
  15872.   *)
  15873.     # If it is relative, then search for the first ld in PATH.
  15874.     with_gnu_ld=unknown
  15875.     ;;
  15876.   esac
  15877. elif test "$with_gnu_ld" = yes; then
  15878.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  15879. $as_echo_n "checking for GNU ld... " >&6; }
  15880. else
  15881.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  15882. $as_echo_n "checking for non-GNU ld... " >&6; }
  15883. fi
  15884. if ${lt_cv_path_LD+:} false; then :
  15885.   $as_echo_n "(cached) " >&6
  15886. else
  15887.   if test -z "$LD"; then
  15888.   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  15889.   for ac_dir in $PATH; do
  15890.     IFS="$lt_save_ifs"
  15891.     test -z "$ac_dir" && ac_dir=.
  15892.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  15893.       lt_cv_path_LD="$ac_dir/$ac_prog"
  15894.       # Check to see if the program is GNU ld.  I'd rather use --version,
  15895.       # but apparently some variants of GNU ld only accept -v.
  15896.       # Break only if it was the GNU/non-GNU ld that we prefer.
  15897.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  15898.       *GNU* | *'with BFD'*)
  15899.         test "$with_gnu_ld" != no && break
  15900.         ;;
  15901.       *)
  15902.         test "$with_gnu_ld" != yes && break
  15903.         ;;
  15904.       esac
  15905.     fi
  15906.   done
  15907.   IFS="$lt_save_ifs"
  15908. else
  15909.   lt_cv_path_LD="$LD" # Let the user override the test with a path.
  15910. fi
  15911. fi
  15912.  
  15913. LD="$lt_cv_path_LD"
  15914. if test -n "$LD"; then
  15915.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  15916. $as_echo "$LD" >&6; }
  15917. else
  15918.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15919. $as_echo "no" >&6; }
  15920. fi
  15921. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  15922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  15923. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  15924. if ${lt_cv_prog_gnu_ld+:} false; then :
  15925.   $as_echo_n "(cached) " >&6
  15926. else
  15927.   # I'd rather use --version here, but apparently some GNU lds only accept -v.
  15928. case `$LD -v 2>&1 </dev/null` in
  15929. *GNU* | *'with BFD'*)
  15930.   lt_cv_prog_gnu_ld=yes
  15931.   ;;
  15932. *)
  15933.   lt_cv_prog_gnu_ld=no
  15934.   ;;
  15935. esac
  15936. fi
  15937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  15938. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  15939. with_gnu_ld=$lt_cv_prog_gnu_ld
  15940.  
  15941.  
  15942.  
  15943.  
  15944.  
  15945.  
  15946.  
  15947.       # Check if GNU C++ uses GNU ld as the underlying linker, since the
  15948.       # archiving commands below assume that GNU ld is being used.
  15949.       if test "$with_gnu_ld" = yes; then
  15950.         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15951.         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15952.  
  15953.         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  15954.         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  15955.  
  15956.         # If archive_cmds runs LD, not CC, wlarc should be empty
  15957.         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  15958.         #     investigate it a little bit more. (MM)
  15959.         wlarc='${wl}'
  15960.  
  15961.         # ancient GNU ld didn't support --whole-archive et. al.
  15962.         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  15963.           $GREP 'no-whole-archive' > /dev/null; then
  15964.           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15965.         else
  15966.           whole_archive_flag_spec_CXX=
  15967.         fi
  15968.       else
  15969.         with_gnu_ld=no
  15970.         wlarc=
  15971.  
  15972.         # A generic and very simple default shared library creation
  15973.         # command for GNU C++ for the case where it uses the native
  15974.         # linker, instead of GNU ld.  If possible, this setting should
  15975.         # overridden to take advantage of the native linker features on
  15976.         # the platform it is being used on.
  15977.         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  15978.       fi
  15979.  
  15980.       # Commands to make compiler produce verbose output that lists
  15981.       # what "hidden" libraries, object files and flags are used when
  15982.       # linking a shared library.
  15983.       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  15984.  
  15985.     else
  15986.       GXX=no
  15987.       with_gnu_ld=no
  15988.       wlarc=
  15989.     fi
  15990.  
  15991.     # PORTME: fill in a description of your system's C++ link characteristics
  15992.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15993. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  15994.     ld_shlibs_CXX=yes
  15995.     case $host_os in
  15996.       aix3*)
  15997.         # FIXME: insert proper C++ library support
  15998.         ld_shlibs_CXX=no
  15999.         ;;
  16000.       aix[4-9]*)
  16001.         if test "$host_cpu" = ia64; then
  16002.           # On IA64, the linker does run time linking by default, so we don't
  16003.           # have to do anything special.
  16004.           aix_use_runtimelinking=no
  16005.           exp_sym_flag='-Bexport'
  16006.           no_entry_flag=""
  16007.         else
  16008.           aix_use_runtimelinking=no
  16009.  
  16010.           # Test if we are trying to use run time linking or normal
  16011.           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  16012.           # need to do runtime linking.
  16013.           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  16014.             for ld_flag in $LDFLAGS; do
  16015.               case $ld_flag in
  16016.               *-brtl*)
  16017.                 aix_use_runtimelinking=yes
  16018.                 break
  16019.                 ;;
  16020.               esac
  16021.             done
  16022.             ;;
  16023.           esac
  16024.  
  16025.           exp_sym_flag='-bexport'
  16026.           no_entry_flag='-bnoentry'
  16027.         fi
  16028.  
  16029.         # When large executables or shared objects are built, AIX ld can
  16030.         # have problems creating the table of contents.  If linking a library
  16031.         # or program results in "error TOC overflow" add -mminimal-toc to
  16032.         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  16033.         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  16034.  
  16035.         archive_cmds_CXX=''
  16036.         hardcode_direct_CXX=yes
  16037.         hardcode_direct_absolute_CXX=yes
  16038.         hardcode_libdir_separator_CXX=':'
  16039.         link_all_deplibs_CXX=yes
  16040.         file_list_spec_CXX='${wl}-f,'
  16041.  
  16042.         if test "$GXX" = yes; then
  16043.           case $host_os in aix4.[012]|aix4.[012].*)
  16044.           # We only want to do this on AIX 4.2 and lower, the check
  16045.           # below for broken collect2 doesn't work under 4.3+
  16046.           collect2name=`${CC} -print-prog-name=collect2`
  16047.           if test -f "$collect2name" &&
  16048.              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  16049.           then
  16050.             # We have reworked collect2
  16051.             :
  16052.           else
  16053.             # We have old collect2
  16054.             hardcode_direct_CXX=unsupported
  16055.             # It fails to find uninstalled libraries when the uninstalled
  16056.             # path is not listed in the libpath.  Setting hardcode_minus_L
  16057.             # to unsupported forces relinking
  16058.             hardcode_minus_L_CXX=yes
  16059.             hardcode_libdir_flag_spec_CXX='-L$libdir'
  16060.             hardcode_libdir_separator_CXX=
  16061.           fi
  16062.           esac
  16063.           shared_flag='-shared'
  16064.           if test "$aix_use_runtimelinking" = yes; then
  16065.             shared_flag="$shared_flag "'${wl}-G'
  16066.           fi
  16067.         else
  16068.           # not using gcc
  16069.           if test "$host_cpu" = ia64; then
  16070.           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  16071.           # chokes on -Wl,-G. The following line is correct:
  16072.           shared_flag='-G'
  16073.           else
  16074.             if test "$aix_use_runtimelinking" = yes; then
  16075.               shared_flag='${wl}-G'
  16076.             else
  16077.               shared_flag='${wl}-bM:SRE'
  16078.             fi
  16079.           fi
  16080.         fi
  16081.  
  16082.         export_dynamic_flag_spec_CXX='${wl}-bexpall'
  16083.         # It seems that -bexpall does not export symbols beginning with
  16084.         # underscore (_), so it is better to generate a list of symbols to
  16085.         # export.
  16086.         always_export_symbols_CXX=yes
  16087.         if test "$aix_use_runtimelinking" = yes; then
  16088.           # Warning - without using the other runtime loading flags (-brtl),
  16089.           # -berok will link without error, but may produce a broken library.
  16090.           allow_undefined_flag_CXX='-berok'
  16091.           # Determine the default libpath from the value encoded in an empty
  16092.           # executable.
  16093.           if test "${lt_cv_aix_libpath+set}" = set; then
  16094.   aix_libpath=$lt_cv_aix_libpath
  16095. else
  16096.   if ${lt_cv_aix_libpath__CXX+:} false; then :
  16097.   $as_echo_n "(cached) " >&6
  16098. else
  16099.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16100. /* end confdefs.h.  */
  16101.  
  16102. int
  16103. main ()
  16104. {
  16105.  
  16106.   ;
  16107.   return 0;
  16108. }
  16109. _ACEOF
  16110. if ac_fn_cxx_try_link "$LINENO"; then :
  16111.  
  16112.   lt_aix_libpath_sed='
  16113.       /Import File Strings/,/^$/ {
  16114.           /^0/ {
  16115.               s/^0  *\([^ ]*\) *$/\1/
  16116.               p
  16117.           }
  16118.       }'
  16119.   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16120.   # Check for a 64-bit object if we didn't find anything.
  16121.   if test -z "$lt_cv_aix_libpath__CXX"; then
  16122.     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16123.   fi
  16124. fi
  16125. rm -f core conftest.err conftest.$ac_objext \
  16126.     conftest$ac_exeext conftest.$ac_ext
  16127.   if test -z "$lt_cv_aix_libpath__CXX"; then
  16128.     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  16129.   fi
  16130.  
  16131. fi
  16132.  
  16133.   aix_libpath=$lt_cv_aix_libpath__CXX
  16134. fi
  16135.  
  16136.           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  16137.  
  16138.           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  16139.         else
  16140.           if test "$host_cpu" = ia64; then
  16141.             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  16142.             allow_undefined_flag_CXX="-z nodefs"
  16143.             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  16144.           else
  16145.             # Determine the default libpath from the value encoded in an
  16146.             # empty executable.
  16147.             if test "${lt_cv_aix_libpath+set}" = set; then
  16148.   aix_libpath=$lt_cv_aix_libpath
  16149. else
  16150.   if ${lt_cv_aix_libpath__CXX+:} false; then :
  16151.   $as_echo_n "(cached) " >&6
  16152. else
  16153.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16154. /* end confdefs.h.  */
  16155.  
  16156. int
  16157. main ()
  16158. {
  16159.  
  16160.   ;
  16161.   return 0;
  16162. }
  16163. _ACEOF
  16164. if ac_fn_cxx_try_link "$LINENO"; then :
  16165.  
  16166.   lt_aix_libpath_sed='
  16167.       /Import File Strings/,/^$/ {
  16168.           /^0/ {
  16169.               s/^0  *\([^ ]*\) *$/\1/
  16170.               p
  16171.           }
  16172.       }'
  16173.   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16174.   # Check for a 64-bit object if we didn't find anything.
  16175.   if test -z "$lt_cv_aix_libpath__CXX"; then
  16176.     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16177.   fi
  16178. fi
  16179. rm -f core conftest.err conftest.$ac_objext \
  16180.     conftest$ac_exeext conftest.$ac_ext
  16181.   if test -z "$lt_cv_aix_libpath__CXX"; then
  16182.     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  16183.   fi
  16184.  
  16185. fi
  16186.  
  16187.   aix_libpath=$lt_cv_aix_libpath__CXX
  16188. fi
  16189.  
  16190.             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  16191.             # Warning - without using the other run time loading flags,
  16192.             # -berok will link without error, but may produce a broken library.
  16193.             no_undefined_flag_CXX=' ${wl}-bernotok'
  16194.             allow_undefined_flag_CXX=' ${wl}-berok'
  16195.             if test "$with_gnu_ld" = yes; then
  16196.               # We only use this code for GNU lds that support --whole-archive.
  16197.               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  16198.             else
  16199.               # Exported symbols can be pulled into shared objects from archives
  16200.               whole_archive_flag_spec_CXX='$convenience'
  16201.             fi
  16202.             archive_cmds_need_lc_CXX=yes
  16203.             # This is similar to how AIX traditionally builds its shared
  16204.             # libraries.
  16205.             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  16206.           fi
  16207.         fi
  16208.         ;;
  16209.  
  16210.       beos*)
  16211.         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  16212.           allow_undefined_flag_CXX=unsupported
  16213.           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  16214.           # support --undefined.  This deserves some investigation.  FIXME
  16215.           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16216.         else
  16217.           ld_shlibs_CXX=no
  16218.         fi
  16219.         ;;
  16220.  
  16221.       chorus*)
  16222.         case $cc_basename in
  16223.           *)
  16224.           # FIXME: insert proper C++ library support
  16225.           ld_shlibs_CXX=no
  16226.           ;;
  16227.         esac
  16228.         ;;
  16229.  
  16230.       cygwin* | mingw* | pw32* | cegcc*)
  16231.         case $GXX,$cc_basename in
  16232.         ,cl* | no,cl*)
  16233.           # Native MSVC
  16234.           # hardcode_libdir_flag_spec is actually meaningless, as there is
  16235.           # no search path for DLLs.
  16236.           hardcode_libdir_flag_spec_CXX=' '
  16237.           allow_undefined_flag_CXX=unsupported
  16238.           always_export_symbols_CXX=yes
  16239.           file_list_spec_CXX='@'
  16240.           # Tell ltmain to make .lib files, not .a files.
  16241.           libext=lib
  16242.           # Tell ltmain to make .dll files, not .so files.
  16243.           shrext_cmds=".dll"
  16244.           # FIXME: Setting linknames here is a bad hack.
  16245.           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  16246.           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  16247.               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  16248.             else
  16249.               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  16250.             fi~
  16251.             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  16252.             linknames='
  16253.           # The linker will not automatically build a static lib if we build a DLL.
  16254.           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  16255.           enable_shared_with_static_runtimes_CXX=yes
  16256.           # Don't use ranlib
  16257.           old_postinstall_cmds_CXX='chmod 644 $oldlib'
  16258.           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  16259.             lt_tool_outputfile="@TOOL_OUTPUT@"~
  16260.             case $lt_outputfile in
  16261.               *.exe|*.EXE) ;;
  16262.               *)
  16263.                 lt_outputfile="$lt_outputfile.exe"
  16264.                 lt_tool_outputfile="$lt_tool_outputfile.exe"
  16265.                 ;;
  16266.             esac~
  16267.             func_to_tool_file "$lt_outputfile"~
  16268.             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  16269.               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  16270.               $RM "$lt_outputfile.manifest";
  16271.             fi'
  16272.           ;;
  16273.         *)
  16274.           # g++
  16275.           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  16276.           # as there is no search path for DLLs.
  16277.           hardcode_libdir_flag_spec_CXX='-L$libdir'
  16278.           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  16279.           allow_undefined_flag_CXX=unsupported
  16280.           always_export_symbols_CXX=no
  16281.           enable_shared_with_static_runtimes_CXX=yes
  16282.  
  16283.           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  16284.             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  16285.             # If the export-symbols file already is a .def file (1st line
  16286.             # is EXPORTS), use it as is; otherwise, prepend...
  16287.             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  16288.               cp $export_symbols $output_objdir/$soname.def;
  16289.             else
  16290.               echo EXPORTS > $output_objdir/$soname.def;
  16291.               cat $export_symbols >> $output_objdir/$soname.def;
  16292.             fi~
  16293.             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  16294.           else
  16295.             ld_shlibs_CXX=no
  16296.           fi
  16297.           ;;
  16298.         esac
  16299.         ;;
  16300.       darwin* | rhapsody*)
  16301.  
  16302.  
  16303.   archive_cmds_need_lc_CXX=no
  16304.   hardcode_direct_CXX=no
  16305.   hardcode_automatic_CXX=yes
  16306.   hardcode_shlibpath_var_CXX=unsupported
  16307.   if test "$lt_cv_ld_force_load" = "yes"; then
  16308.     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  16309.  
  16310.   else
  16311.     whole_archive_flag_spec_CXX=''
  16312.   fi
  16313.   link_all_deplibs_CXX=yes
  16314.   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  16315.   case $cc_basename in
  16316.      ifort*) _lt_dar_can_shared=yes ;;
  16317.      *) _lt_dar_can_shared=$GCC ;;
  16318.   esac
  16319.   if test "$_lt_dar_can_shared" = "yes"; then
  16320.     output_verbose_link_cmd=func_echo_all
  16321.     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  16322.     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  16323.     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  16324.     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  16325.        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  16326.       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  16327.       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  16328.     fi
  16329.  
  16330.   else
  16331.   ld_shlibs_CXX=no
  16332.   fi
  16333.  
  16334.         ;;
  16335.  
  16336.       dgux*)
  16337.         case $cc_basename in
  16338.           ec++*)
  16339.             # FIXME: insert proper C++ library support
  16340.             ld_shlibs_CXX=no
  16341.             ;;
  16342.           ghcx*)
  16343.             # Green Hills C++ Compiler
  16344.             # FIXME: insert proper C++ library support
  16345.             ld_shlibs_CXX=no
  16346.             ;;
  16347.           *)
  16348.             # FIXME: insert proper C++ library support
  16349.             ld_shlibs_CXX=no
  16350.             ;;
  16351.         esac
  16352.         ;;
  16353.  
  16354.       freebsd2.*)
  16355.         # C++ shared libraries reported to be fairly broken before
  16356.         # switch to ELF
  16357.         ld_shlibs_CXX=no
  16358.         ;;
  16359.  
  16360.       freebsd-elf*)
  16361.         archive_cmds_need_lc_CXX=no
  16362.         ;;
  16363.  
  16364.       freebsd* | dragonfly*)
  16365.         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  16366.         # conventions
  16367.         ld_shlibs_CXX=yes
  16368.         ;;
  16369.  
  16370.       haiku*)
  16371.         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16372.         link_all_deplibs_CXX=yes
  16373.         ;;
  16374.  
  16375.       hpux9*)
  16376.         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  16377.         hardcode_libdir_separator_CXX=:
  16378.         export_dynamic_flag_spec_CXX='${wl}-E'
  16379.         hardcode_direct_CXX=yes
  16380.         hardcode_minus_L_CXX=yes # Not in the search PATH,
  16381.                                              # but as the default
  16382.                                              # location of the library.
  16383.  
  16384.         case $cc_basename in
  16385.           CC*)
  16386.             # FIXME: insert proper C++ library support
  16387.             ld_shlibs_CXX=no
  16388.             ;;
  16389.           aCC*)
  16390.             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  16391.             # Commands to make compiler produce verbose output that lists
  16392.             # what "hidden" libraries, object files and flags are used when
  16393.             # linking a shared library.
  16394.             #
  16395.             # There doesn't appear to be a way to prevent this compiler from
  16396.             # explicitly linking system object files so we need to strip them
  16397.             # from the output so that they don't get included in the library
  16398.             # dependencies.
  16399.             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  16400.             ;;
  16401.           *)
  16402.             if test "$GXX" = yes; then
  16403.               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  16404.             else
  16405.               # FIXME: insert proper C++ library support
  16406.               ld_shlibs_CXX=no
  16407.             fi
  16408.             ;;
  16409.         esac
  16410.         ;;
  16411.  
  16412.       hpux10*|hpux11*)
  16413.         if test $with_gnu_ld = no; then
  16414.           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  16415.           hardcode_libdir_separator_CXX=:
  16416.  
  16417.           case $host_cpu in
  16418.             hppa*64*|ia64*)
  16419.               ;;
  16420.             *)
  16421.               export_dynamic_flag_spec_CXX='${wl}-E'
  16422.               ;;
  16423.           esac
  16424.         fi
  16425.         case $host_cpu in
  16426.           hppa*64*|ia64*)
  16427.             hardcode_direct_CXX=no
  16428.             hardcode_shlibpath_var_CXX=no
  16429.             ;;
  16430.           *)
  16431.             hardcode_direct_CXX=yes
  16432.             hardcode_direct_absolute_CXX=yes
  16433.             hardcode_minus_L_CXX=yes # Not in the search PATH,
  16434.                                                  # but as the default
  16435.                                                  # location of the library.
  16436.             ;;
  16437.         esac
  16438.  
  16439.         case $cc_basename in
  16440.           CC*)
  16441.             # FIXME: insert proper C++ library support
  16442.             ld_shlibs_CXX=no
  16443.             ;;
  16444.           aCC*)
  16445.             case $host_cpu in
  16446.               hppa*64*)
  16447.                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16448.                 ;;
  16449.               ia64*)
  16450.                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16451.                 ;;
  16452.               *)
  16453.                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16454.                 ;;
  16455.             esac
  16456.             # Commands to make compiler produce verbose output that lists
  16457.             # what "hidden" libraries, object files and flags are used when
  16458.             # linking a shared library.
  16459.             #
  16460.             # There doesn't appear to be a way to prevent this compiler from
  16461.             # explicitly linking system object files so we need to strip them
  16462.             # from the output so that they don't get included in the library
  16463.             # dependencies.
  16464.             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  16465.             ;;
  16466.           *)
  16467.             if test "$GXX" = yes; then
  16468.               if test $with_gnu_ld = no; then
  16469.                 case $host_cpu in
  16470.                   hppa*64*)
  16471.                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16472.                     ;;
  16473.                   ia64*)
  16474.                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16475.                     ;;
  16476.                   *)
  16477.                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16478.                     ;;
  16479.                 esac
  16480.               fi
  16481.             else
  16482.               # FIXME: insert proper C++ library support
  16483.               ld_shlibs_CXX=no
  16484.             fi
  16485.             ;;
  16486.         esac
  16487.         ;;
  16488.  
  16489.       interix[3-9]*)
  16490.         hardcode_direct_CXX=no
  16491.         hardcode_shlibpath_var_CXX=no
  16492.         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  16493.         export_dynamic_flag_spec_CXX='${wl}-E'
  16494.         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  16495.         # Instead, shared libraries are loaded at an image base (0x10000000 by
  16496.         # default) and relocated if they conflict, which is a slow very memory
  16497.         # consuming and fragmenting process.  To avoid this, we pick a random,
  16498.         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  16499.         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  16500.         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  16501.         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  16502.         ;;
  16503.       irix5* | irix6*)
  16504.         case $cc_basename in
  16505.           CC*)
  16506.             # SGI C++
  16507.             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  16508.  
  16509.             # Archives containing C++ object files must be created using
  16510.             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  16511.             # necessary to make sure instantiated templates are included
  16512.             # in the archive.
  16513.             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  16514.             ;;
  16515.           *)
  16516.             if test "$GXX" = yes; then
  16517.               if test "$with_gnu_ld" = no; then
  16518.                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16519.               else
  16520.                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  16521.               fi
  16522.             fi
  16523.             link_all_deplibs_CXX=yes
  16524.             ;;
  16525.         esac
  16526.         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  16527.         hardcode_libdir_separator_CXX=:
  16528.         inherit_rpath_CXX=yes
  16529.         ;;
  16530.  
  16531.       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  16532.         case $cc_basename in
  16533.           KCC*)
  16534.             # Kuck and Associates, Inc. (KAI) C++ Compiler
  16535.  
  16536.             # KCC will only create a shared library if the output file
  16537.             # ends with ".so" (or ".sl" for HP-UX), so rename the library
  16538.             # to its proper name (with version) after linking.
  16539.             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  16540.             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  16541.             # Commands to make compiler produce verbose output that lists
  16542.             # what "hidden" libraries, object files and flags are used when
  16543.             # linking a shared library.
  16544.             #
  16545.             # There doesn't appear to be a way to prevent this compiler from
  16546.             # explicitly linking system object files so we need to strip them
  16547.             # from the output so that they don't get included in the library
  16548.             # dependencies.
  16549.             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  16550.  
  16551.             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  16552.             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  16553.  
  16554.             # Archives containing C++ object files must be created using
  16555.             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  16556.             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  16557.             ;;
  16558.           icpc* | ecpc* )
  16559.             # Intel C++
  16560.             with_gnu_ld=yes
  16561.             # version 8.0 and above of icpc choke on multiply defined symbols
  16562.             # if we add $predep_objects and $postdep_objects, however 7.1 and
  16563.             # earlier do not add the objects themselves.
  16564.             case `$CC -V 2>&1` in
  16565.               *"Version 7."*)
  16566.                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16567.                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16568.                 ;;
  16569.               *)  # Version 8.0 or newer
  16570.                 tmp_idyn=
  16571.                 case $host_cpu in
  16572.                   ia64*) tmp_idyn=' -i_dynamic';;
  16573.                 esac
  16574.                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16575.                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  16576.                 ;;
  16577.             esac
  16578.             archive_cmds_need_lc_CXX=no
  16579.             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  16580.             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  16581.             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  16582.             ;;
  16583.           pgCC* | pgcpp*)
  16584.             # Portland Group C++ compiler
  16585.             case `$CC -V` in
  16586.             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  16587.               prelink_cmds_CXX='tpldir=Template.dir~
  16588.                 rm -rf $tpldir~
  16589.                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  16590.                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  16591.               old_archive_cmds_CXX='tpldir=Template.dir~
  16592.                 rm -rf $tpldir~
  16593.                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  16594.                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  16595.                 $RANLIB $oldlib'
  16596.               archive_cmds_CXX='tpldir=Template.dir~
  16597.                 rm -rf $tpldir~
  16598.                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  16599.                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  16600.               archive_expsym_cmds_CXX='tpldir=Template.dir~
  16601.                 rm -rf $tpldir~
  16602.                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  16603.                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  16604.               ;;
  16605.             *) # Version 6 and above use weak symbols
  16606.               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  16607.               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  16608.               ;;
  16609.             esac
  16610.  
  16611.             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  16612.             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  16613.             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  16614.             ;;
  16615.           cxx*)
  16616.             # Compaq C++
  16617.             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16618.             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  16619.  
  16620.             runpath_var=LD_RUN_PATH
  16621.             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  16622.             hardcode_libdir_separator_CXX=:
  16623.  
  16624.             # Commands to make compiler produce verbose output that lists
  16625.             # what "hidden" libraries, object files and flags are used when
  16626.             # linking a shared library.
  16627.             #
  16628.             # There doesn't appear to be a way to prevent this compiler from
  16629.             # explicitly linking system object files so we need to strip them
  16630.             # from the output so that they don't get included in the library
  16631.             # dependencies.
  16632.             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  16633.             ;;
  16634.           xl* | mpixl* | bgxl*)
  16635.             # IBM XL 8.0 on PPC, with GNU ld
  16636.             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  16637.             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  16638.             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16639.             if test "x$supports_anon_versioning" = xyes; then
  16640.               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  16641.                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  16642.                 echo "local: *; };" >> $output_objdir/$libname.ver~
  16643.                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  16644.             fi
  16645.             ;;
  16646.           *)
  16647.             case `$CC -V 2>&1 | sed 5q` in
  16648.             *Sun\ C*)
  16649.               # Sun C++ 5.9
  16650.               no_undefined_flag_CXX=' -zdefs'
  16651.               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16652.               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  16653.               hardcode_libdir_flag_spec_CXX='-R$libdir'
  16654.               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  16655.               compiler_needs_object_CXX=yes
  16656.  
  16657.               # Not sure whether something based on
  16658.               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  16659.               # would be better.
  16660.               output_verbose_link_cmd='func_echo_all'
  16661.  
  16662.               # Archives containing C++ object files must be created using
  16663.               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  16664.               # necessary to make sure instantiated templates are included
  16665.               # in the archive.
  16666.               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  16667.               ;;
  16668.             esac
  16669.             ;;
  16670.         esac
  16671.         ;;
  16672.  
  16673.       lynxos*)
  16674.         # FIXME: insert proper C++ library support
  16675.         ld_shlibs_CXX=no
  16676.         ;;
  16677.  
  16678.       m88k*)
  16679.         # FIXME: insert proper C++ library support
  16680.         ld_shlibs_CXX=no
  16681.         ;;
  16682.  
  16683.       mvs*)
  16684.         case $cc_basename in
  16685.           cxx*)
  16686.             # FIXME: insert proper C++ library support
  16687.             ld_shlibs_CXX=no
  16688.             ;;
  16689.           *)
  16690.             # FIXME: insert proper C++ library support
  16691.             ld_shlibs_CXX=no
  16692.             ;;
  16693.         esac
  16694.         ;;
  16695.  
  16696.       netbsd*)
  16697.         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  16698.           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  16699.           wlarc=
  16700.           hardcode_libdir_flag_spec_CXX='-R$libdir'
  16701.           hardcode_direct_CXX=yes
  16702.           hardcode_shlibpath_var_CXX=no
  16703.         fi
  16704.         # Workaround some broken pre-1.5 toolchains
  16705.         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  16706.         ;;
  16707.  
  16708.       *nto* | *qnx*)
  16709.         ld_shlibs_CXX=yes
  16710.         ;;
  16711.  
  16712.       openbsd2*)
  16713.         # C++ shared libraries are fairly broken
  16714.         ld_shlibs_CXX=no
  16715.         ;;
  16716.  
  16717.       openbsd*)
  16718.         if test -f /usr/libexec/ld.so; then
  16719.           hardcode_direct_CXX=yes
  16720.           hardcode_shlibpath_var_CXX=no
  16721.           hardcode_direct_absolute_CXX=yes
  16722.           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  16723.           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  16724.           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16725.             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  16726.             export_dynamic_flag_spec_CXX='${wl}-E'
  16727.             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  16728.           fi
  16729.           output_verbose_link_cmd=func_echo_all
  16730.         else
  16731.           ld_shlibs_CXX=no
  16732.         fi
  16733.         ;;
  16734.  
  16735.       osf3* | osf4* | osf5*)
  16736.         case $cc_basename in
  16737.           KCC*)
  16738.             # Kuck and Associates, Inc. (KAI) C++ Compiler
  16739.  
  16740.             # KCC will only create a shared library if the output file
  16741.             # ends with ".so" (or ".sl" for HP-UX), so rename the library
  16742.             # to its proper name (with version) after linking.
  16743.             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  16744.  
  16745.             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  16746.             hardcode_libdir_separator_CXX=:
  16747.  
  16748.             # Archives containing C++ object files must be created using
  16749.             # the KAI C++ compiler.
  16750.             case $host in
  16751.               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  16752.               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  16753.             esac
  16754.             ;;
  16755.           RCC*)
  16756.             # Rational C++ 2.4.1
  16757.             # FIXME: insert proper C++ library support
  16758.             ld_shlibs_CXX=no
  16759.             ;;
  16760.           cxx*)
  16761.             case $host in
  16762.               osf3*)
  16763.                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  16764.                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  16765.                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  16766.                 ;;
  16767.               *)
  16768.                 allow_undefined_flag_CXX=' -expect_unresolved \*'
  16769.                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  16770.                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  16771.                   echo "-hidden">> $lib.exp~
  16772.                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  16773.                   $RM $lib.exp'
  16774.                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  16775.                 ;;
  16776.             esac
  16777.  
  16778.             hardcode_libdir_separator_CXX=:
  16779.  
  16780.             # Commands to make compiler produce verbose output that lists
  16781.             # what "hidden" libraries, object files and flags are used when
  16782.             # linking a shared library.
  16783.             #
  16784.             # There doesn't appear to be a way to prevent this compiler from
  16785.             # explicitly linking system object files so we need to strip them
  16786.             # from the output so that they don't get included in the library
  16787.             # dependencies.
  16788.             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  16789.             ;;
  16790.           *)
  16791.             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  16792.               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  16793.               case $host in
  16794.                 osf3*)
  16795.                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16796.                   ;;
  16797.                 *)
  16798.                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16799.                   ;;
  16800.               esac
  16801.  
  16802.               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  16803.               hardcode_libdir_separator_CXX=:
  16804.  
  16805.               # Commands to make compiler produce verbose output that lists
  16806.               # what "hidden" libraries, object files and flags are used when
  16807.               # linking a shared library.
  16808.               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  16809.  
  16810.             else
  16811.               # FIXME: insert proper C++ library support
  16812.               ld_shlibs_CXX=no
  16813.             fi
  16814.             ;;
  16815.         esac
  16816.         ;;
  16817.  
  16818.       psos*)
  16819.         # FIXME: insert proper C++ library support
  16820.         ld_shlibs_CXX=no
  16821.         ;;
  16822.  
  16823.       sunos4*)
  16824.         case $cc_basename in
  16825.           CC*)
  16826.             # Sun C++ 4.x
  16827.             # FIXME: insert proper C++ library support
  16828.             ld_shlibs_CXX=no
  16829.             ;;
  16830.           lcc*)
  16831.             # Lucid
  16832.             # FIXME: insert proper C++ library support
  16833.             ld_shlibs_CXX=no
  16834.             ;;
  16835.           *)
  16836.             # FIXME: insert proper C++ library support
  16837.             ld_shlibs_CXX=no
  16838.             ;;
  16839.         esac
  16840.         ;;
  16841.  
  16842.       solaris*)
  16843.         case $cc_basename in
  16844.           CC* | sunCC*)
  16845.             # Sun C++ 4.2, 5.x and Centerline C++
  16846.             archive_cmds_need_lc_CXX=yes
  16847.             no_undefined_flag_CXX=' -zdefs'
  16848.             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16849.             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  16850.               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  16851.  
  16852.             hardcode_libdir_flag_spec_CXX='-R$libdir'
  16853.             hardcode_shlibpath_var_CXX=no
  16854.             case $host_os in
  16855.               solaris2.[0-5] | solaris2.[0-5].*) ;;
  16856.               *)
  16857.                 # The compiler driver will combine and reorder linker options,
  16858.                 # but understands `-z linker_flag'.
  16859.                 # Supported since Solaris 2.6 (maybe 2.5.1?)
  16860.                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  16861.                 ;;
  16862.             esac
  16863.             link_all_deplibs_CXX=yes
  16864.  
  16865.             output_verbose_link_cmd='func_echo_all'
  16866.  
  16867.             # Archives containing C++ object files must be created using
  16868.             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  16869.             # necessary to make sure instantiated templates are included
  16870.             # in the archive.
  16871.             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  16872.             ;;
  16873.           gcx*)
  16874.             # Green Hills C++ Compiler
  16875.             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  16876.  
  16877.             # The C++ compiler must be used to create the archive.
  16878.             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  16879.             ;;
  16880.           *)
  16881.             # GNU C++ compiler with Solaris linker
  16882.             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  16883.               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  16884.               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  16885.                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  16886.                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  16887.                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  16888.  
  16889.                 # Commands to make compiler produce verbose output that lists
  16890.                 # what "hidden" libraries, object files and flags are used when
  16891.                 # linking a shared library.
  16892.                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  16893.               else
  16894.                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
  16895.                 # platform.
  16896.                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  16897.                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  16898.                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  16899.  
  16900.                 # Commands to make compiler produce verbose output that lists
  16901.                 # what "hidden" libraries, object files and flags are used when
  16902.                 # linking a shared library.
  16903.                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  16904.               fi
  16905.  
  16906.               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  16907.               case $host_os in
  16908.                 solaris2.[0-5] | solaris2.[0-5].*) ;;
  16909.                 *)
  16910.                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  16911.                   ;;
  16912.               esac
  16913.             fi
  16914.             ;;
  16915.         esac
  16916.         ;;
  16917.  
  16918.     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  16919.       no_undefined_flag_CXX='${wl}-z,text'
  16920.       archive_cmds_need_lc_CXX=no
  16921.       hardcode_shlibpath_var_CXX=no
  16922.       runpath_var='LD_RUN_PATH'
  16923.  
  16924.       case $cc_basename in
  16925.         CC*)
  16926.           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16927.           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16928.           ;;
  16929.         *)
  16930.           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16931.           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16932.           ;;
  16933.       esac
  16934.       ;;
  16935.  
  16936.       sysv5* | sco3.2v5* | sco5v6*)
  16937.         # Note: We can NOT use -z defs as we might desire, because we do not
  16938.         # link with -lc, and that would cause any symbols used from libc to
  16939.         # always be unresolved, which means just about no library would
  16940.         # ever link correctly.  If we're not using GNU ld we use -z text
  16941.         # though, which does catch some bad symbols but isn't as heavy-handed
  16942.         # as -z defs.
  16943.         no_undefined_flag_CXX='${wl}-z,text'
  16944.         allow_undefined_flag_CXX='${wl}-z,nodefs'
  16945.         archive_cmds_need_lc_CXX=no
  16946.         hardcode_shlibpath_var_CXX=no
  16947.         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  16948.         hardcode_libdir_separator_CXX=':'
  16949.         link_all_deplibs_CXX=yes
  16950.         export_dynamic_flag_spec_CXX='${wl}-Bexport'
  16951.         runpath_var='LD_RUN_PATH'
  16952.  
  16953.         case $cc_basename in
  16954.           CC*)
  16955.             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16956.             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16957.             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  16958.               '"$old_archive_cmds_CXX"
  16959.             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  16960.               '"$reload_cmds_CXX"
  16961.             ;;
  16962.           *)
  16963.             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16964.             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16965.             ;;
  16966.         esac
  16967.       ;;
  16968.  
  16969.       tandem*)
  16970.         case $cc_basename in
  16971.           NCC*)
  16972.             # NonStop-UX NCC 3.20
  16973.             # FIXME: insert proper C++ library support
  16974.             ld_shlibs_CXX=no
  16975.             ;;
  16976.           *)
  16977.             # FIXME: insert proper C++ library support
  16978.             ld_shlibs_CXX=no
  16979.             ;;
  16980.         esac
  16981.         ;;
  16982.  
  16983.       vxworks*)
  16984.         # FIXME: insert proper C++ library support
  16985.         ld_shlibs_CXX=no
  16986.         ;;
  16987.  
  16988.       *)
  16989.         # FIXME: insert proper C++ library support
  16990.         ld_shlibs_CXX=no
  16991.         ;;
  16992.     esac
  16993.  
  16994.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  16995. $as_echo "$ld_shlibs_CXX" >&6; }
  16996.     test "$ld_shlibs_CXX" = no && can_build_shared=no
  16997.  
  16998.     GCC_CXX="$GXX"
  16999.     LD_CXX="$LD"
  17000.  
  17001.     ## CAVEAT EMPTOR:
  17002.     ## There is no encapsulation within the following macros, do not change
  17003.     ## the running order or otherwise move them around unless you know exactly
  17004.     ## what you are doing...
  17005.     # Dependencies to place before and after the object being linked:
  17006. predep_objects_CXX=
  17007. postdep_objects_CXX=
  17008. predeps_CXX=
  17009. postdeps_CXX=
  17010. compiler_lib_search_path_CXX=
  17011.  
  17012. cat > conftest.$ac_ext <<_LT_EOF
  17013. class Foo
  17014. {
  17015. public:
  17016.   Foo (void) { a = 0; }
  17017. private:
  17018.   int a;
  17019. };
  17020. _LT_EOF
  17021.  
  17022.  
  17023. _lt_libdeps_save_CFLAGS=$CFLAGS
  17024. case "$CC $CFLAGS " in #(
  17025. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  17026. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  17027. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  17028. esac
  17029.  
  17030. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  17031.   (eval $ac_compile) 2>&5
  17032.   ac_status=$?
  17033.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17034.   test $ac_status = 0; }; then
  17035.   # Parse the compiler output and extract the necessary
  17036.   # objects, libraries and library flags.
  17037.  
  17038.   # Sentinel used to keep track of whether or not we are before
  17039.   # the conftest object file.
  17040.   pre_test_object_deps_done=no
  17041.  
  17042.   for p in `eval "$output_verbose_link_cmd"`; do
  17043.     case ${prev}${p} in
  17044.  
  17045.     -L* | -R* | -l*)
  17046.        # Some compilers place space between "-{L,R}" and the path.
  17047.        # Remove the space.
  17048.        if test $p = "-L" ||
  17049.           test $p = "-R"; then
  17050.          prev=$p
  17051.          continue
  17052.        fi
  17053.  
  17054.        # Expand the sysroot to ease extracting the directories later.
  17055.        if test -z "$prev"; then
  17056.          case $p in
  17057.          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  17058.          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  17059.          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  17060.          esac
  17061.        fi
  17062.        case $p in
  17063.        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  17064.        esac
  17065.        if test "$pre_test_object_deps_done" = no; then
  17066.          case ${prev} in
  17067.          -L | -R)
  17068.            # Internal compiler library paths should come after those
  17069.            # provided the user.  The postdeps already come after the
  17070.            # user supplied libs so there is no need to process them.
  17071.            if test -z "$compiler_lib_search_path_CXX"; then
  17072.              compiler_lib_search_path_CXX="${prev}${p}"
  17073.            else
  17074.              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  17075.            fi
  17076.            ;;
  17077.          # The "-l" case would never come before the object being
  17078.          # linked, so don't bother handling this case.
  17079.          esac
  17080.        else
  17081.          if test -z "$postdeps_CXX"; then
  17082.            postdeps_CXX="${prev}${p}"
  17083.          else
  17084.            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  17085.          fi
  17086.        fi
  17087.        prev=
  17088.        ;;
  17089.  
  17090.     *.lto.$objext) ;; # Ignore GCC LTO objects
  17091.     *.$objext)
  17092.        # This assumes that the test object file only shows up
  17093.        # once in the compiler output.
  17094.        if test "$p" = "conftest.$objext"; then
  17095.          pre_test_object_deps_done=yes
  17096.          continue
  17097.        fi
  17098.  
  17099.        if test "$pre_test_object_deps_done" = no; then
  17100.          if test -z "$predep_objects_CXX"; then
  17101.            predep_objects_CXX="$p"
  17102.          else
  17103.            predep_objects_CXX="$predep_objects_CXX $p"
  17104.          fi
  17105.        else
  17106.          if test -z "$postdep_objects_CXX"; then
  17107.            postdep_objects_CXX="$p"
  17108.          else
  17109.            postdep_objects_CXX="$postdep_objects_CXX $p"
  17110.          fi
  17111.        fi
  17112.        ;;
  17113.  
  17114.     *) ;; # Ignore the rest.
  17115.  
  17116.     esac
  17117.   done
  17118.  
  17119.   # Clean up.
  17120.   rm -f a.out a.exe
  17121. else
  17122.   echo "libtool.m4: error: problem compiling CXX test program"
  17123. fi
  17124.  
  17125. $RM -f confest.$objext
  17126. CFLAGS=$_lt_libdeps_save_CFLAGS
  17127.  
  17128. # PORTME: override above test on systems where it is broken
  17129. case $host_os in
  17130. interix[3-9]*)
  17131.   # Interix 3.5 installs completely hosed .la files for C++, so rather than
  17132.   # hack all around it, let's just trust "g++" to DTRT.
  17133.   predep_objects_CXX=
  17134.   postdep_objects_CXX=
  17135.   postdeps_CXX=
  17136.   ;;
  17137.  
  17138. linux*)
  17139.   case `$CC -V 2>&1 | sed 5q` in
  17140.   *Sun\ C*)
  17141.     # Sun C++ 5.9
  17142.  
  17143.     # The more standards-conforming stlport4 library is
  17144.     # incompatible with the Cstd library. Avoid specifying
  17145.     # it if it's in CXXFLAGS. Ignore libCrun as
  17146.     # -library=stlport4 depends on it.
  17147.     case " $CXX $CXXFLAGS " in
  17148.     *" -library=stlport4 "*)
  17149.       solaris_use_stlport4=yes
  17150.       ;;
  17151.     esac
  17152.  
  17153.     if test "$solaris_use_stlport4" != yes; then
  17154.       postdeps_CXX='-library=Cstd -library=Crun'
  17155.     fi
  17156.     ;;
  17157.   esac
  17158.   ;;
  17159.  
  17160. solaris*)
  17161.   case $cc_basename in
  17162.   CC* | sunCC*)
  17163.     # The more standards-conforming stlport4 library is
  17164.     # incompatible with the Cstd library. Avoid specifying
  17165.     # it if it's in CXXFLAGS. Ignore libCrun as
  17166.     # -library=stlport4 depends on it.
  17167.     case " $CXX $CXXFLAGS " in
  17168.     *" -library=stlport4 "*)
  17169.       solaris_use_stlport4=yes
  17170.       ;;
  17171.     esac
  17172.  
  17173.     # Adding this requires a known-good setup of shared libraries for
  17174.     # Sun compiler versions before 5.6, else PIC objects from an old
  17175.     # archive will be linked into the output, leading to subtle bugs.
  17176.     if test "$solaris_use_stlport4" != yes; then
  17177.       postdeps_CXX='-library=Cstd -library=Crun'
  17178.     fi
  17179.     ;;
  17180.   esac
  17181.   ;;
  17182. esac
  17183.  
  17184.  
  17185. case " $postdeps_CXX " in
  17186. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  17187. esac
  17188.  compiler_lib_search_dirs_CXX=
  17189. if test -n "${compiler_lib_search_path_CXX}"; then
  17190.  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  17191. fi
  17192.  
  17193.  
  17194.  
  17195.  
  17196.  
  17197.  
  17198.  
  17199.  
  17200.  
  17201.  
  17202.  
  17203.  
  17204.  
  17205.  
  17206.  
  17207.  
  17208.  
  17209.  
  17210.  
  17211.  
  17212.  
  17213.  
  17214.  
  17215.  
  17216.  
  17217.  
  17218.  
  17219.  
  17220.  
  17221.  
  17222.  
  17223.     lt_prog_compiler_wl_CXX=
  17224. lt_prog_compiler_pic_CXX=
  17225. lt_prog_compiler_static_CXX=
  17226.  
  17227.  
  17228.   # C++ specific cases for pic, static, wl, etc.
  17229.   if test "$GXX" = yes; then
  17230.     lt_prog_compiler_wl_CXX='-Wl,'
  17231.     lt_prog_compiler_static_CXX='-static'
  17232.  
  17233.     case $host_os in
  17234.     aix*)
  17235.       # All AIX code is PIC.
  17236.       if test "$host_cpu" = ia64; then
  17237.         # AIX 5 now supports IA64 processor
  17238.         lt_prog_compiler_static_CXX='-Bstatic'
  17239.       fi
  17240.       ;;
  17241.  
  17242.     amigaos*)
  17243.       case $host_cpu in
  17244.       powerpc)
  17245.             # see comment about AmigaOS4 .so support
  17246.             lt_prog_compiler_pic_CXX='-fPIC'
  17247.         ;;
  17248.       m68k)
  17249.             # FIXME: we need at least 68020 code to build shared libraries, but
  17250.             # adding the `-m68020' flag to GCC prevents building anything better,
  17251.             # like `-m68040'.
  17252.             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  17253.         ;;
  17254.       esac
  17255.       ;;
  17256.  
  17257.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  17258.       # PIC is the default for these OSes.
  17259.       ;;
  17260.     mingw* | cygwin* | os2* | pw32* | cegcc*)
  17261.       # This hack is so that the source file can tell whether it is being
  17262.       # built for inclusion in a dll (and should export symbols for example).
  17263.       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  17264.       # (--disable-auto-import) libraries
  17265.       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  17266.       ;;
  17267.     darwin* | rhapsody*)
  17268.       # PIC is the default on this platform
  17269.       # Common symbols not allowed in MH_DYLIB files
  17270.       lt_prog_compiler_pic_CXX='-fno-common'
  17271.       ;;
  17272.     *djgpp*)
  17273.       # DJGPP does not support shared libraries at all
  17274.       lt_prog_compiler_pic_CXX=
  17275.       ;;
  17276.     haiku*)
  17277.       # PIC is the default for Haiku.
  17278.       # The "-static" flag exists, but is broken.
  17279.       lt_prog_compiler_static_CXX=
  17280.       ;;
  17281.     interix[3-9]*)
  17282.       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  17283.       # Instead, we relocate shared libraries at runtime.
  17284.       ;;
  17285.     sysv4*MP*)
  17286.       if test -d /usr/nec; then
  17287.         lt_prog_compiler_pic_CXX=-Kconform_pic
  17288.       fi
  17289.       ;;
  17290.     hpux*)
  17291.       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  17292.       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  17293.       # sets the default TLS model and affects inlining.
  17294.       case $host_cpu in
  17295.       hppa*64*)
  17296.         ;;
  17297.       *)
  17298.         lt_prog_compiler_pic_CXX='-fPIC'
  17299.         ;;
  17300.       esac
  17301.       ;;
  17302.     *qnx* | *nto*)
  17303.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  17304.       # it will coredump.
  17305.       lt_prog_compiler_pic_CXX='-fPIC -shared'
  17306.       ;;
  17307.     *)
  17308.       lt_prog_compiler_pic_CXX='-fPIC'
  17309.       ;;
  17310.     esac
  17311.   else
  17312.     case $host_os in
  17313.       aix[4-9]*)
  17314.         # All AIX code is PIC.
  17315.         if test "$host_cpu" = ia64; then
  17316.           # AIX 5 now supports IA64 processor
  17317.           lt_prog_compiler_static_CXX='-Bstatic'
  17318.         else
  17319.           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  17320.         fi
  17321.         ;;
  17322.       chorus*)
  17323.         case $cc_basename in
  17324.         cxch68*)
  17325.           # Green Hills C++ Compiler
  17326.           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  17327.           ;;
  17328.         esac
  17329.         ;;
  17330.       mingw* | cygwin* | os2* | pw32* | cegcc*)
  17331.         # This hack is so that the source file can tell whether it is being
  17332.         # built for inclusion in a dll (and should export symbols for example).
  17333.         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  17334.         ;;
  17335.       dgux*)
  17336.         case $cc_basename in
  17337.           ec++*)
  17338.             lt_prog_compiler_pic_CXX='-KPIC'
  17339.             ;;
  17340.           ghcx*)
  17341.             # Green Hills C++ Compiler
  17342.             lt_prog_compiler_pic_CXX='-pic'
  17343.             ;;
  17344.           *)
  17345.             ;;
  17346.         esac
  17347.         ;;
  17348.       freebsd* | dragonfly*)
  17349.         # FreeBSD uses GNU C++
  17350.         ;;
  17351.       hpux9* | hpux10* | hpux11*)
  17352.         case $cc_basename in
  17353.           CC*)
  17354.             lt_prog_compiler_wl_CXX='-Wl,'
  17355.             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  17356.             if test "$host_cpu" != ia64; then
  17357.               lt_prog_compiler_pic_CXX='+Z'
  17358.             fi
  17359.             ;;
  17360.           aCC*)
  17361.             lt_prog_compiler_wl_CXX='-Wl,'
  17362.             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  17363.             case $host_cpu in
  17364.             hppa*64*|ia64*)
  17365.               # +Z the default
  17366.               ;;
  17367.             *)
  17368.               lt_prog_compiler_pic_CXX='+Z'
  17369.               ;;
  17370.             esac
  17371.             ;;
  17372.           *)
  17373.             ;;
  17374.         esac
  17375.         ;;
  17376.       interix*)
  17377.         # This is c89, which is MS Visual C++ (no shared libs)
  17378.         # Anyone wants to do a port?
  17379.         ;;
  17380.       irix5* | irix6* | nonstopux*)
  17381.         case $cc_basename in
  17382.           CC*)
  17383.             lt_prog_compiler_wl_CXX='-Wl,'
  17384.             lt_prog_compiler_static_CXX='-non_shared'
  17385.             # CC pic flag -KPIC is the default.
  17386.             ;;
  17387.           *)
  17388.             ;;
  17389.         esac
  17390.         ;;
  17391.       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  17392.         case $cc_basename in
  17393.           KCC*)
  17394.             # KAI C++ Compiler
  17395.             lt_prog_compiler_wl_CXX='--backend -Wl,'
  17396.             lt_prog_compiler_pic_CXX='-fPIC'
  17397.             ;;
  17398.           ecpc* )
  17399.             # old Intel C++ for x86_64 which still supported -KPIC.
  17400.             lt_prog_compiler_wl_CXX='-Wl,'
  17401.             lt_prog_compiler_pic_CXX='-KPIC'
  17402.             lt_prog_compiler_static_CXX='-static'
  17403.             ;;
  17404.           icpc* )
  17405.             # Intel C++, used to be incompatible with GCC.
  17406.             # ICC 10 doesn't accept -KPIC any more.
  17407.             lt_prog_compiler_wl_CXX='-Wl,'
  17408.             lt_prog_compiler_pic_CXX='-fPIC'
  17409.             lt_prog_compiler_static_CXX='-static'
  17410.             ;;
  17411.           pgCC* | pgcpp*)
  17412.             # Portland Group C++ compiler
  17413.             lt_prog_compiler_wl_CXX='-Wl,'
  17414.             lt_prog_compiler_pic_CXX='-fpic'
  17415.             lt_prog_compiler_static_CXX='-Bstatic'
  17416.             ;;
  17417.           cxx*)
  17418.             # Compaq C++
  17419.             # Make sure the PIC flag is empty.  It appears that all Alpha
  17420.             # Linux and Compaq Tru64 Unix objects are PIC.
  17421.             lt_prog_compiler_pic_CXX=
  17422.             lt_prog_compiler_static_CXX='-non_shared'
  17423.             ;;
  17424.           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  17425.             # IBM XL 8.0, 9.0 on PPC and BlueGene
  17426.             lt_prog_compiler_wl_CXX='-Wl,'
  17427.             lt_prog_compiler_pic_CXX='-qpic'
  17428.             lt_prog_compiler_static_CXX='-qstaticlink'
  17429.             ;;
  17430.           *)
  17431.             case `$CC -V 2>&1 | sed 5q` in
  17432.             *Sun\ C*)
  17433.               # Sun C++ 5.9
  17434.               lt_prog_compiler_pic_CXX='-KPIC'
  17435.               lt_prog_compiler_static_CXX='-Bstatic'
  17436.               lt_prog_compiler_wl_CXX='-Qoption ld '
  17437.               ;;
  17438.             esac
  17439.             ;;
  17440.         esac
  17441.         ;;
  17442.       lynxos*)
  17443.         ;;
  17444.       m88k*)
  17445.         ;;
  17446.       mvs*)
  17447.         case $cc_basename in
  17448.           cxx*)
  17449.             lt_prog_compiler_pic_CXX='-W c,exportall'
  17450.             ;;
  17451.           *)
  17452.             ;;
  17453.         esac
  17454.         ;;
  17455.       netbsd* | netbsdelf*-gnu)
  17456.         ;;
  17457.       *qnx* | *nto*)
  17458.         # QNX uses GNU C++, but need to define -shared option too, otherwise
  17459.         # it will coredump.
  17460.         lt_prog_compiler_pic_CXX='-fPIC -shared'
  17461.         ;;
  17462.       osf3* | osf4* | osf5*)
  17463.         case $cc_basename in
  17464.           KCC*)
  17465.             lt_prog_compiler_wl_CXX='--backend -Wl,'
  17466.             ;;
  17467.           RCC*)
  17468.             # Rational C++ 2.4.1
  17469.             lt_prog_compiler_pic_CXX='-pic'
  17470.             ;;
  17471.           cxx*)
  17472.             # Digital/Compaq C++
  17473.             lt_prog_compiler_wl_CXX='-Wl,'
  17474.             # Make sure the PIC flag is empty.  It appears that all Alpha
  17475.             # Linux and Compaq Tru64 Unix objects are PIC.
  17476.             lt_prog_compiler_pic_CXX=
  17477.             lt_prog_compiler_static_CXX='-non_shared'
  17478.             ;;
  17479.           *)
  17480.             ;;
  17481.         esac
  17482.         ;;
  17483.       psos*)
  17484.         ;;
  17485.       solaris*)
  17486.         case $cc_basename in
  17487.           CC* | sunCC*)
  17488.             # Sun C++ 4.2, 5.x and Centerline C++
  17489.             lt_prog_compiler_pic_CXX='-KPIC'
  17490.             lt_prog_compiler_static_CXX='-Bstatic'
  17491.             lt_prog_compiler_wl_CXX='-Qoption ld '
  17492.             ;;
  17493.           gcx*)
  17494.             # Green Hills C++ Compiler
  17495.             lt_prog_compiler_pic_CXX='-PIC'
  17496.             ;;
  17497.           *)
  17498.             ;;
  17499.         esac
  17500.         ;;
  17501.       sunos4*)
  17502.         case $cc_basename in
  17503.           CC*)
  17504.             # Sun C++ 4.x
  17505.             lt_prog_compiler_pic_CXX='-pic'
  17506.             lt_prog_compiler_static_CXX='-Bstatic'
  17507.             ;;
  17508.           lcc*)
  17509.             # Lucid
  17510.             lt_prog_compiler_pic_CXX='-pic'
  17511.             ;;
  17512.           *)
  17513.             ;;
  17514.         esac
  17515.         ;;
  17516.       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  17517.         case $cc_basename in
  17518.           CC*)
  17519.             lt_prog_compiler_wl_CXX='-Wl,'
  17520.             lt_prog_compiler_pic_CXX='-KPIC'
  17521.             lt_prog_compiler_static_CXX='-Bstatic'
  17522.             ;;
  17523.         esac
  17524.         ;;
  17525.       tandem*)
  17526.         case $cc_basename in
  17527.           NCC*)
  17528.             # NonStop-UX NCC 3.20
  17529.             lt_prog_compiler_pic_CXX='-KPIC'
  17530.             ;;
  17531.           *)
  17532.             ;;
  17533.         esac
  17534.         ;;
  17535.       vxworks*)
  17536.         ;;
  17537.       *)
  17538.         lt_prog_compiler_can_build_shared_CXX=no
  17539.         ;;
  17540.     esac
  17541.   fi
  17542.  
  17543. case $host_os in
  17544.   # For platforms which do not support PIC, -DPIC is meaningless:
  17545.   *djgpp*)
  17546.     lt_prog_compiler_pic_CXX=
  17547.     ;;
  17548.   *)
  17549.     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  17550.     ;;
  17551. esac
  17552.  
  17553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  17554. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  17555. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  17556.   $as_echo_n "(cached) " >&6
  17557. else
  17558.   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  17559. fi
  17560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  17561. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  17562. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  17563.  
  17564. #
  17565. # Check to make sure the PIC flag actually works.
  17566. #
  17567. if test -n "$lt_prog_compiler_pic_CXX"; then
  17568.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  17569. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  17570. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  17571.   $as_echo_n "(cached) " >&6
  17572. else
  17573.   lt_cv_prog_compiler_pic_works_CXX=no
  17574.    ac_outfile=conftest.$ac_objext
  17575.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17576.    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  17577.    # Insert the option either (1) after the last *FLAGS variable, or
  17578.    # (2) before a word containing "conftest.", or (3) at the end.
  17579.    # Note that $ac_compile itself does not contain backslashes and begins
  17580.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  17581.    # The option is referenced via a variable to avoid confusing sed.
  17582.    lt_compile=`echo "$ac_compile" | $SED \
  17583.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17584.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17585.    -e 's:$: $lt_compiler_flag:'`
  17586.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  17587.    (eval "$lt_compile" 2>conftest.err)
  17588.    ac_status=$?
  17589.    cat conftest.err >&5
  17590.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17591.    if (exit $ac_status) && test -s "$ac_outfile"; then
  17592.      # The compiler can only warn and ignore the option if not recognized
  17593.      # So say no if there are warnings other than the usual output.
  17594.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  17595.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  17596.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  17597.        lt_cv_prog_compiler_pic_works_CXX=yes
  17598.      fi
  17599.    fi
  17600.    $RM conftest*
  17601.  
  17602. fi
  17603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  17604. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  17605.  
  17606. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  17607.     case $lt_prog_compiler_pic_CXX in
  17608.      "" | " "*) ;;
  17609.      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  17610.      esac
  17611. else
  17612.     lt_prog_compiler_pic_CXX=
  17613.      lt_prog_compiler_can_build_shared_CXX=no
  17614. fi
  17615.  
  17616. fi
  17617.  
  17618.  
  17619.  
  17620.  
  17621.  
  17622. #
  17623. # Check to make sure the static flag actually works.
  17624. #
  17625. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  17626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  17627. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  17628. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  17629.   $as_echo_n "(cached) " >&6
  17630. else
  17631.   lt_cv_prog_compiler_static_works_CXX=no
  17632.    save_LDFLAGS="$LDFLAGS"
  17633.    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  17634.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  17635.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  17636.      # The linker can only warn and ignore the option if not recognized
  17637.      # So say no if there are warnings
  17638.      if test -s conftest.err; then
  17639.        # Append any errors to the config.log.
  17640.        cat conftest.err 1>&5
  17641.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  17642.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  17643.        if diff conftest.exp conftest.er2 >/dev/null; then
  17644.          lt_cv_prog_compiler_static_works_CXX=yes
  17645.        fi
  17646.      else
  17647.        lt_cv_prog_compiler_static_works_CXX=yes
  17648.      fi
  17649.    fi
  17650.    $RM -r conftest*
  17651.    LDFLAGS="$save_LDFLAGS"
  17652.  
  17653. fi
  17654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  17655. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  17656.  
  17657. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  17658.     :
  17659. else
  17660.     lt_prog_compiler_static_CXX=
  17661. fi
  17662.  
  17663.  
  17664.  
  17665.  
  17666.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  17667. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  17668. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  17669.   $as_echo_n "(cached) " >&6
  17670. else
  17671.   lt_cv_prog_compiler_c_o_CXX=no
  17672.    $RM -r conftest 2>/dev/null
  17673.    mkdir conftest
  17674.    cd conftest
  17675.    mkdir out
  17676.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17677.  
  17678.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  17679.    # Insert the option either (1) after the last *FLAGS variable, or
  17680.    # (2) before a word containing "conftest.", or (3) at the end.
  17681.    # Note that $ac_compile itself does not contain backslashes and begins
  17682.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  17683.    lt_compile=`echo "$ac_compile" | $SED \
  17684.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17685.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17686.    -e 's:$: $lt_compiler_flag:'`
  17687.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  17688.    (eval "$lt_compile" 2>out/conftest.err)
  17689.    ac_status=$?
  17690.    cat out/conftest.err >&5
  17691.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17692.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  17693.    then
  17694.      # The compiler can only warn and ignore the option if not recognized
  17695.      # So say no if there are warnings
  17696.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  17697.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  17698.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  17699.        lt_cv_prog_compiler_c_o_CXX=yes
  17700.      fi
  17701.    fi
  17702.    chmod u+w . 2>&5
  17703.    $RM conftest*
  17704.    # SGI C++ compiler will create directory out/ii_files/ for
  17705.    # template instantiation
  17706.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  17707.    $RM out/* && rmdir out
  17708.    cd ..
  17709.    $RM -r conftest
  17710.    $RM conftest*
  17711.  
  17712. fi
  17713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  17714. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  17715.  
  17716.  
  17717.  
  17718.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  17719. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  17720. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  17721.   $as_echo_n "(cached) " >&6
  17722. else
  17723.   lt_cv_prog_compiler_c_o_CXX=no
  17724.    $RM -r conftest 2>/dev/null
  17725.    mkdir conftest
  17726.    cd conftest
  17727.    mkdir out
  17728.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17729.  
  17730.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  17731.    # Insert the option either (1) after the last *FLAGS variable, or
  17732.    # (2) before a word containing "conftest.", or (3) at the end.
  17733.    # Note that $ac_compile itself does not contain backslashes and begins
  17734.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  17735.    lt_compile=`echo "$ac_compile" | $SED \
  17736.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17737.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17738.    -e 's:$: $lt_compiler_flag:'`
  17739.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  17740.    (eval "$lt_compile" 2>out/conftest.err)
  17741.    ac_status=$?
  17742.    cat out/conftest.err >&5
  17743.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17744.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  17745.    then
  17746.      # The compiler can only warn and ignore the option if not recognized
  17747.      # So say no if there are warnings
  17748.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  17749.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  17750.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  17751.        lt_cv_prog_compiler_c_o_CXX=yes
  17752.      fi
  17753.    fi
  17754.    chmod u+w . 2>&5
  17755.    $RM conftest*
  17756.    # SGI C++ compiler will create directory out/ii_files/ for
  17757.    # template instantiation
  17758.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  17759.    $RM out/* && rmdir out
  17760.    cd ..
  17761.    $RM -r conftest
  17762.    $RM conftest*
  17763.  
  17764. fi
  17765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  17766. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  17767.  
  17768.  
  17769.  
  17770.  
  17771. hard_links="nottested"
  17772. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  17773.   # do not overwrite the value of need_locks provided by the user
  17774.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  17775. $as_echo_n "checking if we can lock with hard links... " >&6; }
  17776.   hard_links=yes
  17777.   $RM conftest*
  17778.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  17779.   touch conftest.a
  17780.   ln conftest.a conftest.b 2>&5 || hard_links=no
  17781.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  17782.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  17783. $as_echo "$hard_links" >&6; }
  17784.   if test "$hard_links" = no; then
  17785.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  17786. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  17787.     need_locks=warn
  17788.   fi
  17789. else
  17790.   need_locks=no
  17791. fi
  17792.  
  17793.  
  17794.  
  17795.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  17796. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  17797.  
  17798.   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  17799.   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  17800.   case $host_os in
  17801.   aix[4-9]*)
  17802.     # If we're using GNU nm, then we don't want the "-C" option.
  17803.     # -C means demangle to AIX nm, but means don't demangle with GNU nm
  17804.     # Also, AIX nm treats weak defined symbols like other global defined
  17805.     # symbols, whereas GNU nm marks them as "W".
  17806.     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  17807.       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  17808.     else
  17809.       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  17810.     fi
  17811.     ;;
  17812.   pw32*)
  17813.     export_symbols_cmds_CXX="$ltdll_cmds"
  17814.     ;;
  17815.   cygwin* | mingw* | cegcc*)
  17816.     case $cc_basename in
  17817.     cl*)
  17818.       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  17819.       ;;
  17820.     *)
  17821.       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  17822.       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  17823.       ;;
  17824.     esac
  17825.     ;;
  17826.   linux* | k*bsd*-gnu | gnu*)
  17827.     link_all_deplibs_CXX=no
  17828.     ;;
  17829.   *)
  17830.     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  17831.     ;;
  17832.   esac
  17833.  
  17834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  17835. $as_echo "$ld_shlibs_CXX" >&6; }
  17836. test "$ld_shlibs_CXX" = no && can_build_shared=no
  17837.  
  17838. with_gnu_ld_CXX=$with_gnu_ld
  17839.  
  17840.  
  17841.  
  17842.  
  17843.  
  17844.  
  17845. #
  17846. # Do we need to explicitly link libc?
  17847. #
  17848. case "x$archive_cmds_need_lc_CXX" in
  17849. x|xyes)
  17850.   # Assume -lc should be added
  17851.   archive_cmds_need_lc_CXX=yes
  17852.  
  17853.   if test "$enable_shared" = yes && test "$GCC" = yes; then
  17854.     case $archive_cmds_CXX in
  17855.     *'~'*)
  17856.       # FIXME: we may have to deal with multi-command sequences.
  17857.       ;;
  17858.     '$CC '*)
  17859.       # Test whether the compiler implicitly links with -lc since on some
  17860.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  17861.       # to ld, don't add -lc before -lgcc.
  17862.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  17863. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  17864. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  17865.   $as_echo_n "(cached) " >&6
  17866. else
  17867.   $RM conftest*
  17868.         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17869.  
  17870.         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  17871.   (eval $ac_compile) 2>&5
  17872.   ac_status=$?
  17873.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17874.   test $ac_status = 0; } 2>conftest.err; then
  17875.           soname=conftest
  17876.           lib=conftest
  17877.           libobjs=conftest.$ac_objext
  17878.           deplibs=
  17879.           wl=$lt_prog_compiler_wl_CXX
  17880.           pic_flag=$lt_prog_compiler_pic_CXX
  17881.           compiler_flags=-v
  17882.           linker_flags=-v
  17883.           verstring=
  17884.           output_objdir=.
  17885.           libname=conftest
  17886.           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  17887.           allow_undefined_flag_CXX=
  17888.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  17889.   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  17890.   ac_status=$?
  17891.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17892.   test $ac_status = 0; }
  17893.           then
  17894.             lt_cv_archive_cmds_need_lc_CXX=no
  17895.           else
  17896.             lt_cv_archive_cmds_need_lc_CXX=yes
  17897.           fi
  17898.           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  17899.         else
  17900.           cat conftest.err 1>&5
  17901.         fi
  17902.         $RM conftest*
  17903.  
  17904. fi
  17905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  17906. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  17907.       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  17908.       ;;
  17909.     esac
  17910.   fi
  17911.   ;;
  17912. esac
  17913.  
  17914.  
  17915.  
  17916.  
  17917.  
  17918.  
  17919.  
  17920.  
  17921.  
  17922.  
  17923.  
  17924.  
  17925.  
  17926.  
  17927.  
  17928.  
  17929.  
  17930.  
  17931.  
  17932.  
  17933.  
  17934.  
  17935.  
  17936.  
  17937.  
  17938.  
  17939.  
  17940.  
  17941.  
  17942.  
  17943.  
  17944.  
  17945.  
  17946.  
  17947.  
  17948.  
  17949.  
  17950.  
  17951.  
  17952.  
  17953.  
  17954.  
  17955.  
  17956.  
  17957.  
  17958.  
  17959.  
  17960.  
  17961.  
  17962.  
  17963.  
  17964.  
  17965.  
  17966.  
  17967.  
  17968.  
  17969.  
  17970.  
  17971.  
  17972.  
  17973.  
  17974.  
  17975.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  17976. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  17977.  
  17978. library_names_spec=
  17979. libname_spec='lib$name'
  17980. soname_spec=
  17981. shrext_cmds=".so"
  17982. postinstall_cmds=
  17983. postuninstall_cmds=
  17984. finish_cmds=
  17985. finish_eval=
  17986. shlibpath_var=
  17987. shlibpath_overrides_runpath=unknown
  17988. version_type=none
  17989. dynamic_linker="$host_os ld.so"
  17990. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  17991. need_lib_prefix=unknown
  17992. hardcode_into_libs=no
  17993.  
  17994. # when you set need_version to no, make sure it does not cause -set_version
  17995. # flags to be left without arguments
  17996. need_version=unknown
  17997.  
  17998. case $host_os in
  17999. aix3*)
  18000.   version_type=linux # correct to gnu/linux during the next big refactor
  18001.   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  18002.   shlibpath_var=LIBPATH
  18003.  
  18004.   # AIX 3 has no versioning support, so we append a major version to the name.
  18005.   soname_spec='${libname}${release}${shared_ext}$major'
  18006.   ;;
  18007.  
  18008. aix[4-9]*)
  18009.   version_type=linux # correct to gnu/linux during the next big refactor
  18010.   need_lib_prefix=no
  18011.   need_version=no
  18012.   hardcode_into_libs=yes
  18013.   if test "$host_cpu" = ia64; then
  18014.     # AIX 5 supports IA64
  18015.     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  18016.     shlibpath_var=LD_LIBRARY_PATH
  18017.   else
  18018.     # With GCC up to 2.95.x, collect2 would create an import file
  18019.     # for dependence libraries.  The import file would start with
  18020.     # the line `#! .'.  This would cause the generated library to
  18021.     # depend on `.', always an invalid library.  This was fixed in
  18022.     # development snapshots of GCC prior to 3.0.
  18023.     case $host_os in
  18024.       aix4 | aix4.[01] | aix4.[01].*)
  18025.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  18026.            echo ' yes '
  18027.            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  18028.         :
  18029.       else
  18030.         can_build_shared=no
  18031.       fi
  18032.       ;;
  18033.     esac
  18034.     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  18035.     # soname into executable. Probably we can add versioning support to
  18036.     # collect2, so additional links can be useful in future.
  18037.     if test "$aix_use_runtimelinking" = yes; then
  18038.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  18039.       # instead of lib<name>.a to let people know that these are not
  18040.       # typical AIX shared libraries.
  18041.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18042.     else
  18043.       # We preserve .a as extension for shared libraries through AIX4.2
  18044.       # and later when we are not doing run time linking.
  18045.       library_names_spec='${libname}${release}.a $libname.a'
  18046.       soname_spec='${libname}${release}${shared_ext}$major'
  18047.     fi
  18048.     shlibpath_var=LIBPATH
  18049.   fi
  18050.   ;;
  18051.  
  18052. amigaos*)
  18053.   case $host_cpu in
  18054.   powerpc)
  18055.     # Since July 2007 AmigaOS4 officially supports .so libraries.
  18056.     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  18057.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18058.     ;;
  18059.   m68k)
  18060.     library_names_spec='$libname.ixlibrary $libname.a'
  18061.     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  18062.     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  18063.     ;;
  18064.   esac
  18065.   ;;
  18066.  
  18067. beos*)
  18068.   library_names_spec='${libname}${shared_ext}'
  18069.   dynamic_linker="$host_os ld.so"
  18070.   shlibpath_var=LIBRARY_PATH
  18071.   ;;
  18072.  
  18073. bsdi[45]*)
  18074.   version_type=linux # correct to gnu/linux during the next big refactor
  18075.   need_version=no
  18076.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18077.   soname_spec='${libname}${release}${shared_ext}$major'
  18078.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  18079.   shlibpath_var=LD_LIBRARY_PATH
  18080.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  18081.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  18082.   # the default ld.so.conf also contains /usr/contrib/lib and
  18083.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  18084.   # libtool to hard-code these into programs
  18085.   ;;
  18086.  
  18087. cygwin* | mingw* | pw32* | cegcc*)
  18088.   version_type=windows
  18089.   shrext_cmds=".dll"
  18090.   need_version=no
  18091.   need_lib_prefix=no
  18092.  
  18093.   case $GCC,$cc_basename in
  18094.   yes,*)
  18095.     # gcc
  18096.     library_names_spec='$libname.dll.a'
  18097.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  18098.     postinstall_cmds='base_file=`basename \${file}`~
  18099.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  18100.       dldir=$destdir/`dirname \$dlpath`~
  18101.       test -d \$dldir || mkdir -p \$dldir~
  18102.       $install_prog $dir/$dlname \$dldir/$dlname~
  18103.       chmod a+x \$dldir/$dlname~
  18104.       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  18105.         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  18106.       fi'
  18107.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  18108.       dlpath=$dir/\$dldll~
  18109.        $RM \$dlpath'
  18110.     shlibpath_overrides_runpath=yes
  18111.  
  18112.     case $host_os in
  18113.     cygwin*)
  18114.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  18115.       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  18116.  
  18117.       ;;
  18118.     mingw* | cegcc*)
  18119.       # MinGW DLLs use traditional 'lib' prefix
  18120.       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  18121.       ;;
  18122.     pw32*)
  18123.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  18124.       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  18125.       ;;
  18126.     esac
  18127.     dynamic_linker='Win32 ld.exe'
  18128.     ;;
  18129.  
  18130.   *,cl*)
  18131.     # Native MSVC
  18132.     libname_spec='$name'
  18133.     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  18134.     library_names_spec='${libname}.dll.lib'
  18135.  
  18136.     case $build_os in
  18137.     mingw*)
  18138.       sys_lib_search_path_spec=
  18139.       lt_save_ifs=$IFS
  18140.       IFS=';'
  18141.       for lt_path in $LIB
  18142.       do
  18143.         IFS=$lt_save_ifs
  18144.         # Let DOS variable expansion print the short 8.3 style file name.
  18145.         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  18146.         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  18147.       done
  18148.       IFS=$lt_save_ifs
  18149.       # Convert to MSYS style.
  18150.       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  18151.       ;;
  18152.     cygwin*)
  18153.       # Convert to unix form, then to dos form, then back to unix form
  18154.       # but this time dos style (no spaces!) so that the unix form looks
  18155.       # like /cygdrive/c/PROGRA~1:/cygdr...
  18156.       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  18157.       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  18158.       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  18159.       ;;
  18160.     *)
  18161.       sys_lib_search_path_spec="$LIB"
  18162.       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  18163.         # It is most probably a Windows format PATH.
  18164.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  18165.       else
  18166.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  18167.       fi
  18168.       # FIXME: find the short name or the path components, as spaces are
  18169.       # common. (e.g. "Program Files" -> "PROGRA~1")
  18170.       ;;
  18171.     esac
  18172.  
  18173.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  18174.     postinstall_cmds='base_file=`basename \${file}`~
  18175.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  18176.       dldir=$destdir/`dirname \$dlpath`~
  18177.       test -d \$dldir || mkdir -p \$dldir~
  18178.       $install_prog $dir/$dlname \$dldir/$dlname'
  18179.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  18180.       dlpath=$dir/\$dldll~
  18181.        $RM \$dlpath'
  18182.     shlibpath_overrides_runpath=yes
  18183.     dynamic_linker='Win32 link.exe'
  18184.     ;;
  18185.  
  18186.   *)
  18187.     # Assume MSVC wrapper
  18188.     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  18189.     dynamic_linker='Win32 ld.exe'
  18190.     ;;
  18191.   esac
  18192.   # FIXME: first we should search . and the directory the executable is in
  18193.   shlibpath_var=PATH
  18194.   ;;
  18195.  
  18196. darwin* | rhapsody*)
  18197.   dynamic_linker="$host_os dyld"
  18198.   version_type=darwin
  18199.   need_lib_prefix=no
  18200.   need_version=no
  18201.   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  18202.   soname_spec='${libname}${release}${major}$shared_ext'
  18203.   shlibpath_overrides_runpath=yes
  18204.   shlibpath_var=DYLD_LIBRARY_PATH
  18205.   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  18206.  
  18207.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  18208.   ;;
  18209.  
  18210. dgux*)
  18211.   version_type=linux # correct to gnu/linux during the next big refactor
  18212.   need_lib_prefix=no
  18213.   need_version=no
  18214.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  18215.   soname_spec='${libname}${release}${shared_ext}$major'
  18216.   shlibpath_var=LD_LIBRARY_PATH
  18217.   ;;
  18218.  
  18219. freebsd* | dragonfly*)
  18220.   # DragonFly does not have aout.  When/if they implement a new
  18221.   # versioning mechanism, adjust this.
  18222.   if test -x /usr/bin/objformat; then
  18223.     objformat=`/usr/bin/objformat`
  18224.   else
  18225.     case $host_os in
  18226.     freebsd[23].*) objformat=aout ;;
  18227.     *) objformat=elf ;;
  18228.     esac
  18229.   fi
  18230.   version_type=freebsd-$objformat
  18231.   case $version_type in
  18232.     freebsd-elf*)
  18233.       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  18234.       need_version=no
  18235.       need_lib_prefix=no
  18236.       ;;
  18237.     freebsd-*)
  18238.       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  18239.       need_version=yes
  18240.       ;;
  18241.   esac
  18242.   shlibpath_var=LD_LIBRARY_PATH
  18243.   case $host_os in
  18244.   freebsd2.*)
  18245.     shlibpath_overrides_runpath=yes
  18246.     ;;
  18247.   freebsd3.[01]* | freebsdelf3.[01]*)
  18248.     shlibpath_overrides_runpath=yes
  18249.     hardcode_into_libs=yes
  18250.     ;;
  18251.   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  18252.   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  18253.     shlibpath_overrides_runpath=no
  18254.     hardcode_into_libs=yes
  18255.     ;;
  18256.   *) # from 4.6 on, and DragonFly
  18257.     shlibpath_overrides_runpath=yes
  18258.     hardcode_into_libs=yes
  18259.     ;;
  18260.   esac
  18261.   ;;
  18262.  
  18263. haiku*)
  18264.   version_type=linux # correct to gnu/linux during the next big refactor
  18265.   need_lib_prefix=no
  18266.   need_version=no
  18267.   dynamic_linker="$host_os runtime_loader"
  18268.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  18269.   soname_spec='${libname}${release}${shared_ext}$major'
  18270.   shlibpath_var=LIBRARY_PATH
  18271.   shlibpath_overrides_runpath=yes
  18272.   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  18273.   hardcode_into_libs=yes
  18274.   ;;
  18275.  
  18276. hpux9* | hpux10* | hpux11*)
  18277.   # Give a soname corresponding to the major version so that dld.sl refuses to
  18278.   # link against other versions.
  18279.   version_type=sunos
  18280.   need_lib_prefix=no
  18281.   need_version=no
  18282.   case $host_cpu in
  18283.   ia64*)
  18284.     shrext_cmds='.so'
  18285.     hardcode_into_libs=yes
  18286.     dynamic_linker="$host_os dld.so"
  18287.     shlibpath_var=LD_LIBRARY_PATH
  18288.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  18289.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18290.     soname_spec='${libname}${release}${shared_ext}$major'
  18291.     if test "X$HPUX_IA64_MODE" = X32; then
  18292.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  18293.     else
  18294.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  18295.     fi
  18296.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  18297.     ;;
  18298.   hppa*64*)
  18299.     shrext_cmds='.sl'
  18300.     hardcode_into_libs=yes
  18301.     dynamic_linker="$host_os dld.sl"
  18302.     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  18303.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  18304.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18305.     soname_spec='${libname}${release}${shared_ext}$major'
  18306.     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  18307.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  18308.     ;;
  18309.   *)
  18310.     shrext_cmds='.sl'
  18311.     dynamic_linker="$host_os dld.sl"
  18312.     shlibpath_var=SHLIB_PATH
  18313.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  18314.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18315.     soname_spec='${libname}${release}${shared_ext}$major'
  18316.     ;;
  18317.   esac
  18318.   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  18319.   postinstall_cmds='chmod 555 $lib'
  18320.   # or fails outright, so override atomically:
  18321.   install_override_mode=555
  18322.   ;;
  18323.  
  18324. interix[3-9]*)
  18325.   version_type=linux # correct to gnu/linux during the next big refactor
  18326.   need_lib_prefix=no
  18327.   need_version=no
  18328.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18329.   soname_spec='${libname}${release}${shared_ext}$major'
  18330.   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  18331.   shlibpath_var=LD_LIBRARY_PATH
  18332.   shlibpath_overrides_runpath=no
  18333.   hardcode_into_libs=yes
  18334.   ;;
  18335.  
  18336. irix5* | irix6* | nonstopux*)
  18337.   case $host_os in
  18338.     nonstopux*) version_type=nonstopux ;;
  18339.     *)
  18340.         if test "$lt_cv_prog_gnu_ld" = yes; then
  18341.                 version_type=linux # correct to gnu/linux during the next big refactor
  18342.         else
  18343.                 version_type=irix
  18344.         fi ;;
  18345.   esac
  18346.   need_lib_prefix=no
  18347.   need_version=no
  18348.   soname_spec='${libname}${release}${shared_ext}$major'
  18349.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  18350.   case $host_os in
  18351.   irix5* | nonstopux*)
  18352.     libsuff= shlibsuff=
  18353.     ;;
  18354.   *)
  18355.     case $LD in # libtool.m4 will add one of these switches to LD
  18356.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  18357.       libsuff= shlibsuff= libmagic=32-bit;;
  18358.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  18359.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  18360.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  18361.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  18362.     *) libsuff= shlibsuff= libmagic=never-match;;
  18363.     esac
  18364.     ;;
  18365.   esac
  18366.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  18367.   shlibpath_overrides_runpath=no
  18368.   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  18369.   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  18370.   hardcode_into_libs=yes
  18371.   ;;
  18372.  
  18373. # No shared lib support for Linux oldld, aout, or coff.
  18374. linux*oldld* | linux*aout* | linux*coff*)
  18375.   dynamic_linker=no
  18376.   ;;
  18377.  
  18378. # This must be glibc/ELF.
  18379. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  18380.   version_type=linux # correct to gnu/linux during the next big refactor
  18381.   need_lib_prefix=no
  18382.   need_version=no
  18383.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18384.   soname_spec='${libname}${release}${shared_ext}$major'
  18385.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  18386.   shlibpath_var=LD_LIBRARY_PATH
  18387.   shlibpath_overrides_runpath=no
  18388.  
  18389.   # Some binutils ld are patched to set DT_RUNPATH
  18390.   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  18391.   $as_echo_n "(cached) " >&6
  18392. else
  18393.   lt_cv_shlibpath_overrides_runpath=no
  18394.     save_LDFLAGS=$LDFLAGS
  18395.     save_libdir=$libdir
  18396.     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  18397.          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  18398.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18399. /* end confdefs.h.  */
  18400.  
  18401. int
  18402. main ()
  18403. {
  18404.  
  18405.   ;
  18406.   return 0;
  18407. }
  18408. _ACEOF
  18409. if ac_fn_cxx_try_link "$LINENO"; then :
  18410.   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  18411.   lt_cv_shlibpath_overrides_runpath=yes
  18412. fi
  18413. fi
  18414. rm -f core conftest.err conftest.$ac_objext \
  18415.     conftest$ac_exeext conftest.$ac_ext
  18416.     LDFLAGS=$save_LDFLAGS
  18417.     libdir=$save_libdir
  18418.  
  18419. fi
  18420.  
  18421.   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  18422.  
  18423.   # This implies no fast_install, which is unacceptable.
  18424.   # Some rework will be needed to allow for fast_install
  18425.   # before this can be enabled.
  18426.   hardcode_into_libs=yes
  18427.  
  18428.   # Append ld.so.conf contents to the search path
  18429.   if test -f /etc/ld.so.conf; then
  18430.     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  18431.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  18432.   fi
  18433.  
  18434.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  18435.   # powerpc, because MkLinux only supported shared libraries with the
  18436.   # GNU dynamic linker.  Since this was broken with cross compilers,
  18437.   # most powerpc-linux boxes support dynamic linking these days and
  18438.   # people can always --disable-shared, the test was removed, and we
  18439.   # assume the GNU/Linux dynamic linker is in use.
  18440.   dynamic_linker='GNU/Linux ld.so'
  18441.   ;;
  18442.  
  18443. netbsdelf*-gnu)
  18444.   version_type=linux
  18445.   need_lib_prefix=no
  18446.   need_version=no
  18447.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18448.   soname_spec='${libname}${release}${shared_ext}$major'
  18449.   shlibpath_var=LD_LIBRARY_PATH
  18450.   shlibpath_overrides_runpath=no
  18451.   hardcode_into_libs=yes
  18452.   dynamic_linker='NetBSD ld.elf_so'
  18453.   ;;
  18454.  
  18455. netbsd*)
  18456.   version_type=sunos
  18457.   need_lib_prefix=no
  18458.   need_version=no
  18459.   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  18460.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18461.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  18462.     dynamic_linker='NetBSD (a.out) ld.so'
  18463.   else
  18464.     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18465.     soname_spec='${libname}${release}${shared_ext}$major'
  18466.     dynamic_linker='NetBSD ld.elf_so'
  18467.   fi
  18468.   shlibpath_var=LD_LIBRARY_PATH
  18469.   shlibpath_overrides_runpath=yes
  18470.   hardcode_into_libs=yes
  18471.   ;;
  18472.  
  18473. newsos6)
  18474.   version_type=linux # correct to gnu/linux during the next big refactor
  18475.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18476.   shlibpath_var=LD_LIBRARY_PATH
  18477.   shlibpath_overrides_runpath=yes
  18478.   ;;
  18479.  
  18480. *nto* | *qnx*)
  18481.   version_type=qnx
  18482.   need_lib_prefix=no
  18483.   need_version=no
  18484.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18485.   soname_spec='${libname}${release}${shared_ext}$major'
  18486.   shlibpath_var=LD_LIBRARY_PATH
  18487.   shlibpath_overrides_runpath=no
  18488.   hardcode_into_libs=yes
  18489.   dynamic_linker='ldqnx.so'
  18490.   ;;
  18491.  
  18492. openbsd*)
  18493.   version_type=sunos
  18494.   sys_lib_dlsearch_path_spec="/usr/lib"
  18495.   need_lib_prefix=no
  18496.   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  18497.   case $host_os in
  18498.     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
  18499.     *)                          need_version=no  ;;
  18500.   esac
  18501.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18502.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  18503.   shlibpath_var=LD_LIBRARY_PATH
  18504.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  18505.     case $host_os in
  18506.       openbsd2.[89] | openbsd2.[89].*)
  18507.         shlibpath_overrides_runpath=no
  18508.         ;;
  18509.       *)
  18510.         shlibpath_overrides_runpath=yes
  18511.         ;;
  18512.       esac
  18513.   else
  18514.     shlibpath_overrides_runpath=yes
  18515.   fi
  18516.   ;;
  18517.  
  18518. os2*)
  18519.   libname_spec='$name'
  18520.   shrext_cmds=".dll"
  18521.   need_lib_prefix=no
  18522.   library_names_spec='$libname${shared_ext} $libname.a'
  18523.   dynamic_linker='OS/2 ld.exe'
  18524.   shlibpath_var=LIBPATH
  18525.   ;;
  18526.  
  18527. osf3* | osf4* | osf5*)
  18528.   version_type=osf
  18529.   need_lib_prefix=no
  18530.   need_version=no
  18531.   soname_spec='${libname}${release}${shared_ext}$major'
  18532.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18533.   shlibpath_var=LD_LIBRARY_PATH
  18534.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  18535.   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  18536.   ;;
  18537.  
  18538. rdos*)
  18539.   dynamic_linker=no
  18540.   ;;
  18541.  
  18542. solaris*)
  18543.   version_type=linux # correct to gnu/linux during the next big refactor
  18544.   need_lib_prefix=no
  18545.   need_version=no
  18546.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18547.   soname_spec='${libname}${release}${shared_ext}$major'
  18548.   shlibpath_var=LD_LIBRARY_PATH
  18549.   shlibpath_overrides_runpath=yes
  18550.   hardcode_into_libs=yes
  18551.   # ldd complains unless libraries are executable
  18552.   postinstall_cmds='chmod +x $lib'
  18553.   ;;
  18554.  
  18555. sunos4*)
  18556.   version_type=sunos
  18557.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18558.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  18559.   shlibpath_var=LD_LIBRARY_PATH
  18560.   shlibpath_overrides_runpath=yes
  18561.   if test "$with_gnu_ld" = yes; then
  18562.     need_lib_prefix=no
  18563.   fi
  18564.   need_version=yes
  18565.   ;;
  18566.  
  18567. sysv4 | sysv4.3*)
  18568.   version_type=linux # correct to gnu/linux during the next big refactor
  18569.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18570.   soname_spec='${libname}${release}${shared_ext}$major'
  18571.   shlibpath_var=LD_LIBRARY_PATH
  18572.   case $host_vendor in
  18573.     sni)
  18574.       shlibpath_overrides_runpath=no
  18575.       need_lib_prefix=no
  18576.       runpath_var=LD_RUN_PATH
  18577.       ;;
  18578.     siemens)
  18579.       need_lib_prefix=no
  18580.       ;;
  18581.     motorola)
  18582.       need_lib_prefix=no
  18583.       need_version=no
  18584.       shlibpath_overrides_runpath=no
  18585.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  18586.       ;;
  18587.   esac
  18588.   ;;
  18589.  
  18590. sysv4*MP*)
  18591.   if test -d /usr/nec ;then
  18592.     version_type=linux # correct to gnu/linux during the next big refactor
  18593.     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  18594.     soname_spec='$libname${shared_ext}.$major'
  18595.     shlibpath_var=LD_LIBRARY_PATH
  18596.   fi
  18597.   ;;
  18598.  
  18599. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  18600.   version_type=freebsd-elf
  18601.   need_lib_prefix=no
  18602.   need_version=no
  18603.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  18604.   soname_spec='${libname}${release}${shared_ext}$major'
  18605.   shlibpath_var=LD_LIBRARY_PATH
  18606.   shlibpath_overrides_runpath=yes
  18607.   hardcode_into_libs=yes
  18608.   if test "$with_gnu_ld" = yes; then
  18609.     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  18610.   else
  18611.     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  18612.     case $host_os in
  18613.       sco3.2v5*)
  18614.         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  18615.         ;;
  18616.     esac
  18617.   fi
  18618.   sys_lib_dlsearch_path_spec='/usr/lib'
  18619.   ;;
  18620.  
  18621. tpf*)
  18622.   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  18623.   version_type=linux # correct to gnu/linux during the next big refactor
  18624.   need_lib_prefix=no
  18625.   need_version=no
  18626.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18627.   shlibpath_var=LD_LIBRARY_PATH
  18628.   shlibpath_overrides_runpath=no
  18629.   hardcode_into_libs=yes
  18630.   ;;
  18631.  
  18632. uts4*)
  18633.   version_type=linux # correct to gnu/linux during the next big refactor
  18634.   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18635.   soname_spec='${libname}${release}${shared_ext}$major'
  18636.   shlibpath_var=LD_LIBRARY_PATH
  18637.   ;;
  18638.  
  18639. *)
  18640.   dynamic_linker=no
  18641.   ;;
  18642. esac
  18643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  18644. $as_echo "$dynamic_linker" >&6; }
  18645. test "$dynamic_linker" = no && can_build_shared=no
  18646.  
  18647. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  18648. if test "$GCC" = yes; then
  18649.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  18650. fi
  18651.  
  18652. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  18653.   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  18654. fi
  18655. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  18656.   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  18657. fi
  18658.  
  18659.  
  18660.  
  18661.  
  18662.  
  18663.  
  18664.  
  18665.  
  18666.  
  18667.  
  18668.  
  18669.  
  18670.  
  18671.  
  18672.  
  18673.  
  18674.  
  18675.  
  18676.  
  18677.  
  18678.  
  18679.  
  18680.  
  18681.  
  18682.  
  18683.  
  18684.  
  18685.  
  18686.  
  18687.  
  18688.  
  18689.  
  18690.  
  18691.  
  18692.  
  18693.  
  18694.  
  18695.  
  18696.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  18697. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  18698. hardcode_action_CXX=
  18699. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  18700.    test -n "$runpath_var_CXX" ||
  18701.    test "X$hardcode_automatic_CXX" = "Xyes" ; then
  18702.  
  18703.   # We can hardcode non-existent directories.
  18704.   if test "$hardcode_direct_CXX" != no &&
  18705.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  18706.      # have to relink, otherwise we might link with an installed library
  18707.      # when we should be linking with a yet-to-be-installed one
  18708.      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  18709.      test "$hardcode_minus_L_CXX" != no; then
  18710.     # Linking always hardcodes the temporary library directory.
  18711.     hardcode_action_CXX=relink
  18712.   else
  18713.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  18714.     hardcode_action_CXX=immediate
  18715.   fi
  18716. else
  18717.   # We cannot hardcode anything, or else we can only hardcode existing
  18718.   # directories.
  18719.   hardcode_action_CXX=unsupported
  18720. fi
  18721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  18722. $as_echo "$hardcode_action_CXX" >&6; }
  18723.  
  18724. if test "$hardcode_action_CXX" = relink ||
  18725.    test "$inherit_rpath_CXX" = yes; then
  18726.   # Fast installation is not supported
  18727.   enable_fast_install=no
  18728. elif test "$shlibpath_overrides_runpath" = yes ||
  18729.      test "$enable_shared" = no; then
  18730.   # Fast installation is not necessary
  18731.   enable_fast_install=needless
  18732. fi
  18733.  
  18734.  
  18735.  
  18736.  
  18737.  
  18738.  
  18739.  
  18740.   fi # test -n "$compiler"
  18741.  
  18742.   CC=$lt_save_CC
  18743.   CFLAGS=$lt_save_CFLAGS
  18744.   LDCXX=$LD
  18745.   LD=$lt_save_LD
  18746.   GCC=$lt_save_GCC
  18747.   with_gnu_ld=$lt_save_with_gnu_ld
  18748.   lt_cv_path_LDCXX=$lt_cv_path_LD
  18749.   lt_cv_path_LD=$lt_save_path_LD
  18750.   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  18751.   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  18752. fi # test "$_lt_caught_CXX_error" != yes
  18753.  
  18754. ac_ext=c
  18755. ac_cpp='$CPP $CPPFLAGS'
  18756. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18757. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18758. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18759.  
  18760.  
  18761.  
  18762.  
  18763.  
  18764.  
  18765.  
  18766.  
  18767.  
  18768.  
  18769.  
  18770.  
  18771.  
  18772.  
  18773.  
  18774.         ac_config_commands="$ac_config_commands libtool"
  18775.  
  18776.  
  18777.  
  18778.  
  18779. # Only expand once:
  18780.  
  18781.  
  18782.  
  18783. for ac_prog in 'bison -y' byacc
  18784. do
  18785.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  18786. set dummy $ac_prog; ac_word=$2
  18787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18788. $as_echo_n "checking for $ac_word... " >&6; }
  18789. if ${ac_cv_prog_YACC+:} false; then :
  18790.   $as_echo_n "(cached) " >&6
  18791. else
  18792.   if test -n "$YACC"; then
  18793.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  18794. else
  18795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18796. for as_dir in $PATH
  18797. do
  18798.   IFS=$as_save_IFS
  18799.   test -z "$as_dir" && as_dir=.
  18800.     for ac_exec_ext in '' $ac_executable_extensions; do
  18801.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18802.     ac_cv_prog_YACC="$ac_prog"
  18803.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18804.     break 2
  18805.   fi
  18806. done
  18807.   done
  18808. IFS=$as_save_IFS
  18809.  
  18810. fi
  18811. fi
  18812. YACC=$ac_cv_prog_YACC
  18813. if test -n "$YACC"; then
  18814.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  18815. $as_echo "$YACC" >&6; }
  18816. else
  18817.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18818. $as_echo "no" >&6; }
  18819. fi
  18820.  
  18821.  
  18822.   test -n "$YACC" && break
  18823. done
  18824. test -n "$YACC" || YACC="yacc"
  18825.  
  18826.  
  18827.  
  18828.  
  18829.  
  18830.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
  18831. $as_echo_n "checking if bison is the parser generator... " >&6; }
  18832. if ${ax_cv_prog_bison+:} false; then :
  18833.   $as_echo_n "(cached) " >&6
  18834. else
  18835.  
  18836.     if $YACC --version 2>/dev/null | $EGREP -q '^bison '; then :
  18837.   ax_cv_prog_bison=yes
  18838. else
  18839.   ax_cv_prog_bison=no
  18840. fi
  18841.  
  18842. fi
  18843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
  18844. $as_echo "$ax_cv_prog_bison" >&6; }
  18845.   if test "$ax_cv_prog_bison" = "yes"; then :
  18846.  
  18847.                               YACC="${YACC% -y}"
  18848.  
  18849. else
  18850.   if test ! -f "$srcdir/src/glsl/glcpp/glcpp-parse.c"; then :
  18851.   as_fn_error $? "bison not found - unable to compile glcpp-parse.y" "$LINENO" 5
  18852. fi
  18853.  
  18854. fi
  18855.  
  18856. for ac_prog in flex lex
  18857. do
  18858.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  18859. set dummy $ac_prog; ac_word=$2
  18860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18861. $as_echo_n "checking for $ac_word... " >&6; }
  18862. if ${ac_cv_prog_LEX+:} false; then :
  18863.   $as_echo_n "(cached) " >&6
  18864. else
  18865.   if test -n "$LEX"; then
  18866.   ac_cv_prog_LEX="$LEX" # Let the user override the test.
  18867. else
  18868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18869. for as_dir in $PATH
  18870. do
  18871.   IFS=$as_save_IFS
  18872.   test -z "$as_dir" && as_dir=.
  18873.     for ac_exec_ext in '' $ac_executable_extensions; do
  18874.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18875.     ac_cv_prog_LEX="$ac_prog"
  18876.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18877.     break 2
  18878.   fi
  18879. done
  18880.   done
  18881. IFS=$as_save_IFS
  18882.  
  18883. fi
  18884. fi
  18885. LEX=$ac_cv_prog_LEX
  18886. if test -n "$LEX"; then
  18887.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  18888. $as_echo "$LEX" >&6; }
  18889. else
  18890.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18891. $as_echo "no" >&6; }
  18892. fi
  18893.  
  18894.  
  18895.   test -n "$LEX" && break
  18896. done
  18897. test -n "$LEX" || LEX=":"
  18898.  
  18899. if test "x$LEX" != "x:"; then
  18900.   cat >conftest.l <<_ACEOF
  18901. %%
  18902. a { ECHO; }
  18903. b { REJECT; }
  18904. c { yymore (); }
  18905. d { yyless (1); }
  18906. e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
  18907.     yyless ((input () != 0)); }
  18908. f { unput (yytext[0]); }
  18909. . { BEGIN INITIAL; }
  18910. %%
  18911. #ifdef YYTEXT_POINTER
  18912. extern char *yytext;
  18913. #endif
  18914. int
  18915. main (void)
  18916. {
  18917.   return ! yylex () + ! yywrap ();
  18918. }
  18919. _ACEOF
  18920. { { ac_try="$LEX conftest.l"
  18921. case "(($ac_try" in
  18922.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18923.   *) ac_try_echo=$ac_try;;
  18924. esac
  18925. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18926. $as_echo "$ac_try_echo"; } >&5
  18927.   (eval "$LEX conftest.l") 2>&5
  18928.   ac_status=$?
  18929.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18930.   test $ac_status = 0; }
  18931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  18932. $as_echo_n "checking lex output file root... " >&6; }
  18933. if ${ac_cv_prog_lex_root+:} false; then :
  18934.   $as_echo_n "(cached) " >&6
  18935. else
  18936.  
  18937. if test -f lex.yy.c; then
  18938.   ac_cv_prog_lex_root=lex.yy
  18939. elif test -f lexyy.c; then
  18940.   ac_cv_prog_lex_root=lexyy
  18941. else
  18942.   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
  18943. fi
  18944. fi
  18945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  18946. $as_echo "$ac_cv_prog_lex_root" >&6; }
  18947. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  18948.  
  18949. if test -z "${LEXLIB+set}"; then
  18950.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  18951. $as_echo_n "checking lex library... " >&6; }
  18952. if ${ac_cv_lib_lex+:} false; then :
  18953.   $as_echo_n "(cached) " >&6
  18954. else
  18955.  
  18956.     ac_save_LIBS=$LIBS
  18957.     ac_cv_lib_lex='none needed'
  18958.     for ac_lib in '' -lfl -ll; do
  18959.       LIBS="$ac_lib $ac_save_LIBS"
  18960.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18961. /* end confdefs.h.  */
  18962. `cat $LEX_OUTPUT_ROOT.c`
  18963. _ACEOF
  18964. if ac_fn_c_try_link "$LINENO"; then :
  18965.   ac_cv_lib_lex=$ac_lib
  18966. fi
  18967. rm -f core conftest.err conftest.$ac_objext \
  18968.     conftest$ac_exeext conftest.$ac_ext
  18969.       test "$ac_cv_lib_lex" != 'none needed' && break
  18970.     done
  18971.     LIBS=$ac_save_LIBS
  18972.  
  18973. fi
  18974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  18975. $as_echo "$ac_cv_lib_lex" >&6; }
  18976.   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  18977. fi
  18978.  
  18979.  
  18980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  18981. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  18982. if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
  18983.   $as_echo_n "(cached) " >&6
  18984. else
  18985.   # POSIX says lex can declare yytext either as a pointer or an array; the
  18986. # default is implementation-dependent.  Figure out which it is, since
  18987. # not all implementations provide the %pointer and %array declarations.
  18988. ac_cv_prog_lex_yytext_pointer=no
  18989. ac_save_LIBS=$LIBS
  18990. LIBS="$LEXLIB $ac_save_LIBS"
  18991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18992. /* end confdefs.h.  */
  18993.  
  18994.   #define YYTEXT_POINTER 1
  18995. `cat $LEX_OUTPUT_ROOT.c`
  18996. _ACEOF
  18997. if ac_fn_c_try_link "$LINENO"; then :
  18998.   ac_cv_prog_lex_yytext_pointer=yes
  18999. fi
  19000. rm -f core conftest.err conftest.$ac_objext \
  19001.     conftest$ac_exeext conftest.$ac_ext
  19002. LIBS=$ac_save_LIBS
  19003.  
  19004. fi
  19005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  19006. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  19007. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  19008.  
  19009. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  19010.  
  19011. fi
  19012. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  19013.  
  19014. fi
  19015. if test "$LEX" = :; then
  19016.   LEX=${am_missing_run}flex
  19017. fi
  19018.  
  19019.  
  19020.  
  19021.  
  19022.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5
  19023. $as_echo_n "checking if flex is the lexer generator... " >&6; }
  19024. if ${ax_cv_prog_flex+:} false; then :
  19025.   $as_echo_n "(cached) " >&6
  19026. else
  19027.  
  19028.     if $LEX --version 2>/dev/null | $EGREP -q '^\<flex\>'; then :
  19029.   ax_cv_prog_flex=yes
  19030. else
  19031.   ax_cv_prog_flex=no
  19032. fi
  19033.  
  19034. fi
  19035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5
  19036. $as_echo "$ax_cv_prog_flex" >&6; }
  19037.   if test "$ax_cv_prog_flex" = "yes"; then :
  19038.  
  19039. else
  19040.   if test ! -f "$srcdir/src/glsl/glcpp/glcpp-lex.c"; then :
  19041.   as_fn_error $? "flex not found - unable to compile glcpp-lex.l" "$LINENO" 5
  19042. fi
  19043.  
  19044. fi
  19045.  
  19046.  
  19047. # Extract the first word of "perl", so it can be a program name with args.
  19048. set dummy perl; ac_word=$2
  19049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19050. $as_echo_n "checking for $ac_word... " >&6; }
  19051. if ${ac_cv_path_PERL+:} false; then :
  19052.   $as_echo_n "(cached) " >&6
  19053. else
  19054.   case $PERL in
  19055.   [\\/]* | ?:[\\/]*)
  19056.   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  19057.   ;;
  19058.   *)
  19059.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19060. for as_dir in $PATH
  19061. do
  19062.   IFS=$as_save_IFS
  19063.   test -z "$as_dir" && as_dir=.
  19064.     for ac_exec_ext in '' $ac_executable_extensions; do
  19065.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19066.     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  19067.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19068.     break 2
  19069.   fi
  19070. done
  19071.   done
  19072. IFS=$as_save_IFS
  19073.  
  19074.   ;;
  19075. esac
  19076. fi
  19077. PERL=$ac_cv_path_PERL
  19078. if test -n "$PERL"; then
  19079.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  19080. $as_echo "$PERL" >&6; }
  19081. else
  19082.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19083. $as_echo "no" >&6; }
  19084. fi
  19085.  
  19086.  
  19087.  
  19088. # Extract the first word of "indent", so it can be a program name with args.
  19089. set dummy indent; ac_word=$2
  19090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19091. $as_echo_n "checking for $ac_word... " >&6; }
  19092. if ${ac_cv_prog_INDENT+:} false; then :
  19093.   $as_echo_n "(cached) " >&6
  19094. else
  19095.   if test -n "$INDENT"; then
  19096.   ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
  19097. else
  19098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19099. for as_dir in $PATH
  19100. do
  19101.   IFS=$as_save_IFS
  19102.   test -z "$as_dir" && as_dir=.
  19103.     for ac_exec_ext in '' $ac_executable_extensions; do
  19104.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19105.     ac_cv_prog_INDENT="indent"
  19106.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19107.     break 2
  19108.   fi
  19109. done
  19110.   done
  19111. IFS=$as_save_IFS
  19112.  
  19113.   test -z "$ac_cv_prog_INDENT" && ac_cv_prog_INDENT="cat"
  19114. fi
  19115. fi
  19116. INDENT=$ac_cv_prog_INDENT
  19117. if test -n "$INDENT"; then
  19118.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
  19119. $as_echo "$INDENT" >&6; }
  19120. else
  19121.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19122. $as_echo "no" >&6; }
  19123. fi
  19124.  
  19125.  
  19126. if test "x$INDENT" != "xcat"; then
  19127.     INDENT_FLAGS='-i4 -nut -br -brs -npcs -ce -TGLubyte -TGLbyte -TBool'
  19128.  
  19129. fi
  19130.  
  19131.  
  19132.  
  19133. case "$host_os" in
  19134. solaris*)
  19135.     # Solaris /bin/sh is too old/non-POSIX compliant
  19136.     for ac_prog in ksh93 ksh sh
  19137. do
  19138.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  19139. set dummy $ac_prog; ac_word=$2
  19140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19141. $as_echo_n "checking for $ac_word... " >&6; }
  19142. if ${ac_cv_path_POSIX_SHELL+:} false; then :
  19143.   $as_echo_n "(cached) " >&6
  19144. else
  19145.   case $POSIX_SHELL in
  19146.   [\\/]* | ?:[\\/]*)
  19147.   ac_cv_path_POSIX_SHELL="$POSIX_SHELL" # Let the user override the test with a path.
  19148.   ;;
  19149.   *)
  19150.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19151. for as_dir in $PATH
  19152. do
  19153.   IFS=$as_save_IFS
  19154.   test -z "$as_dir" && as_dir=.
  19155.     for ac_exec_ext in '' $ac_executable_extensions; do
  19156.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19157.     ac_cv_path_POSIX_SHELL="$as_dir/$ac_word$ac_exec_ext"
  19158.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19159.     break 2
  19160.   fi
  19161. done
  19162.   done
  19163. IFS=$as_save_IFS
  19164.  
  19165.   ;;
  19166. esac
  19167. fi
  19168. POSIX_SHELL=$ac_cv_path_POSIX_SHELL
  19169. if test -n "$POSIX_SHELL"; then
  19170.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSIX_SHELL" >&5
  19171. $as_echo "$POSIX_SHELL" >&6; }
  19172. else
  19173.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19174. $as_echo "no" >&6; }
  19175. fi
  19176.  
  19177.  
  19178.   test -n "$POSIX_SHELL" && break
  19179. done
  19180.  
  19181.     SHELL="$POSIX_SHELL"
  19182.     ;;
  19183. esac
  19184.  
  19185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling with clang" >&5
  19186. $as_echo_n "checking if compiling with clang... " >&6; }
  19187.  
  19188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19189. /* end confdefs.h.  */
  19190.  
  19191. int
  19192. main ()
  19193. {
  19194.  
  19195. #ifndef __clang__
  19196.        not clang
  19197. #endif
  19198.  
  19199.   ;
  19200.   return 0;
  19201. }
  19202. _ACEOF
  19203. if ac_fn_c_try_compile "$LINENO"; then :
  19204.   acv_mesa_CLANG=yes
  19205. else
  19206.   acv_mesa_CLANG=no
  19207. fi
  19208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19209.  
  19210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acv_mesa_CLANG" >&5
  19211. $as_echo "$acv_mesa_CLANG" >&6; }
  19212.  
  19213. GEN_ASM_OFFSETS=no
  19214. if test "x$GCC" = xyes -a "x$acv_mesa_CLANG" = xno; then
  19215.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc version is sufficient" >&5
  19216. $as_echo_n "checking whether gcc version is sufficient... " >&6; }
  19217.     major=0
  19218.     minor=0
  19219.  
  19220.     GCC_VERSION=`$CC -dumpversion`
  19221.     if test $? -eq 0; then
  19222.         GCC_VERSION_MAJOR=`echo $GCC_VERSION | cut -d. -f1`
  19223.         GCC_VERSION_MINOR=`echo $GCC_VERSION | cut -d. -f2`
  19224.     fi
  19225.  
  19226.     if test $GCC_VERSION_MAJOR -lt 3 -o $GCC_VERSION_MAJOR -eq 3 -a $GCC_VERSION_MINOR -lt 3 ; then
  19227.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19228. $as_echo "no" >&6; }
  19229.         as_fn_error $? "If using GCC, version 3.3.0 or later is required." "$LINENO" 5
  19230.     else
  19231.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19232. $as_echo "yes" >&6; }
  19233.     fi
  19234.  
  19235.     if test "x$cross_compiling" = xyes; then
  19236.         GEN_ASM_OFFSETS=yes
  19237.     fi
  19238. fi
  19239.  if test "x$GEN_ASM_OFFSETS" = xyes; then
  19240.   GEN_ASM_OFFSETS_TRUE=
  19241.   GEN_ASM_OFFSETS_FALSE='#'
  19242. else
  19243.   GEN_ASM_OFFSETS_TRUE='#'
  19244.   GEN_ASM_OFFSETS_FALSE=
  19245. fi
  19246.  
  19247.  
  19248.  
  19249.  
  19250.  
  19251.  
  19252.  
  19253.  
  19254.  
  19255.  
  19256. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  19257.         if test -n "$ac_tool_prefix"; then
  19258.   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19259. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19261. $as_echo_n "checking for $ac_word... " >&6; }
  19262. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19263.   $as_echo_n "(cached) " >&6
  19264. else
  19265.   case $PKG_CONFIG in
  19266.   [\\/]* | ?:[\\/]*)
  19267.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19268.   ;;
  19269.   *)
  19270.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19271. for as_dir in $PATH
  19272. do
  19273.   IFS=$as_save_IFS
  19274.   test -z "$as_dir" && as_dir=.
  19275.     for ac_exec_ext in '' $ac_executable_extensions; do
  19276.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19277.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19278.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19279.     break 2
  19280.   fi
  19281. done
  19282.   done
  19283. IFS=$as_save_IFS
  19284.  
  19285.   ;;
  19286. esac
  19287. fi
  19288. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19289. if test -n "$PKG_CONFIG"; then
  19290.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19291. $as_echo "$PKG_CONFIG" >&6; }
  19292. else
  19293.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19294. $as_echo "no" >&6; }
  19295. fi
  19296.  
  19297.  
  19298. fi
  19299. if test -z "$ac_cv_path_PKG_CONFIG"; then
  19300.   ac_pt_PKG_CONFIG=$PKG_CONFIG
  19301.   # Extract the first word of "pkg-config", so it can be a program name with args.
  19302. set dummy pkg-config; ac_word=$2
  19303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19304. $as_echo_n "checking for $ac_word... " >&6; }
  19305. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  19306.   $as_echo_n "(cached) " >&6
  19307. else
  19308.   case $ac_pt_PKG_CONFIG in
  19309.   [\\/]* | ?:[\\/]*)
  19310.   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  19311.   ;;
  19312.   *)
  19313.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19314. for as_dir in $PATH
  19315. do
  19316.   IFS=$as_save_IFS
  19317.   test -z "$as_dir" && as_dir=.
  19318.     for ac_exec_ext in '' $ac_executable_extensions; do
  19319.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19320.     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19321.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19322.     break 2
  19323.   fi
  19324. done
  19325.   done
  19326. IFS=$as_save_IFS
  19327.  
  19328.   ;;
  19329. esac
  19330. fi
  19331. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  19332. if test -n "$ac_pt_PKG_CONFIG"; then
  19333.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  19334. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  19335. else
  19336.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19337. $as_echo "no" >&6; }
  19338. fi
  19339.  
  19340.   if test "x$ac_pt_PKG_CONFIG" = x; then
  19341.     PKG_CONFIG=""
  19342.   else
  19343.     case $cross_compiling:$ac_tool_warned in
  19344. yes:)
  19345. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19346. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19347. ac_tool_warned=yes ;;
  19348. esac
  19349.     PKG_CONFIG=$ac_pt_PKG_CONFIG
  19350.   fi
  19351. else
  19352.   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  19353. fi
  19354.  
  19355. fi
  19356. if test -n "$PKG_CONFIG"; then
  19357.         _pkg_min_version=0.9.0
  19358.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  19359. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  19360.         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  19361.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19362. $as_echo "yes" >&6; }
  19363.         else
  19364.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19365. $as_echo "no" >&6; }
  19366.                 PKG_CONFIG=""
  19367.         fi
  19368. fi
  19369.  
  19370. LIB_DIR=`echo $libdir | $SED 's%.*/%%'`
  19371.  
  19372.  
  19373. _SAVE_LDFLAGS="$LDFLAGS"
  19374. _SAVE_CPPFLAGS="$CPPFLAGS"
  19375.  
  19376. DEFINES_FOR_BUILD=""
  19377.  
  19378. case "$build_os" in
  19379. linux*|*-gnu*|gnu*)
  19380.     DEFINES_FOR_BUILD="$DEFINES_FOR_BUILD -D_GNU_SOURCE"
  19381.     ;;
  19382. solaris*)
  19383.     DEFINES_FOR_BUILD="$DEFINES_FOR_BUILD -DSVR4"
  19384.     ;;
  19385. cygwin*)
  19386.     DEFINES_FOR_BUILD="$DEFINES_FOR_BUILD"
  19387.     ;;
  19388. esac
  19389.  
  19390. DEFINES=""
  19391.  
  19392. case "$host_os" in
  19393. linux*|*-gnu*|gnu*)
  19394.     DEFINES="$DEFINES -D_GNU_SOURCE -DHAVE_PTHREAD"
  19395.     ;;
  19396. solaris*)
  19397.     DEFINES="$DEFINES -DHAVE_PTHREAD -DSVR4"
  19398.     ;;
  19399. cygwin*)
  19400.     DEFINES="$DEFINES -DHAVE_PTHREAD"
  19401.     ;;
  19402. esac
  19403.  
  19404. if test "x$GCC" = xyes; then
  19405.     case "$host_os" in
  19406.     cygwin*)
  19407.         CFLAGS="$CFLAGS -Wall -std=gnu99"
  19408.         ;;
  19409.     *)
  19410.         CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD -Wall -std=c99"
  19411.         CFLAGS="$CFLAGS -Wall -std=c99"
  19412.         ;;
  19413.     esac
  19414.  
  19415.     # Enable -Werror=implicit-function-declaration and
  19416.     # -Werror=missing-prototypes, if available, or otherwise, just
  19417.     # -Wmissing-prototypes.  This is particularly useful to avoid
  19418.     # generating a loadable driver module that has undefined symbols.
  19419.     save_CFLAGS="$CFLAGS"
  19420.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror=missing-prototypes" >&5
  19421. $as_echo_n "checking whether $CC supports -Werror=missing-prototypes... " >&6; }
  19422.     CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
  19423.     CFLAGS="$CFLAGS -Werror=missing-prototypes"
  19424.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19425. /* end confdefs.h.  */
  19426.  
  19427. int
  19428. main ()
  19429. {
  19430.  
  19431.   ;
  19432.   return 0;
  19433. }
  19434. _ACEOF
  19435. if ac_fn_c_try_link "$LINENO"; then :
  19436.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19437. $as_echo "yes" >&6; }
  19438. else
  19439.   CFLAGS="$save_CFLAGS -Wmissing-prototypes";
  19440.                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19441. $as_echo "no" >&6; }
  19442. fi
  19443. rm -f core conftest.err conftest.$ac_objext \
  19444.     conftest$ac_exeext conftest.$ac_ext;
  19445.  
  19446.     # Enable -fvisibility=hidden if using a gcc that supports it
  19447.     save_CFLAGS="$CFLAGS"
  19448.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fvisibility=hidden" >&5
  19449. $as_echo_n "checking whether $CC supports -fvisibility=hidden... " >&6; }
  19450.     VISIBILITY_CFLAGS="-fvisibility=hidden"
  19451.     CFLAGS="$CFLAGS $VISIBILITY_CFLAGS"
  19452.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19453. /* end confdefs.h.  */
  19454.  
  19455. int
  19456. main ()
  19457. {
  19458.  
  19459.   ;
  19460.   return 0;
  19461. }
  19462. _ACEOF
  19463. if ac_fn_c_try_link "$LINENO"; then :
  19464.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19465. $as_echo "yes" >&6; }
  19466. else
  19467.   VISIBILITY_CFLAGS=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19468. $as_echo "no" >&6; }
  19469. fi
  19470. rm -f core conftest.err conftest.$ac_objext \
  19471.     conftest$ac_exeext conftest.$ac_ext;
  19472.  
  19473.     # Restore CFLAGS; VISIBILITY_CFLAGS are added to it where needed.
  19474.     CFLAGS=$save_CFLAGS
  19475.  
  19476.     # Work around aliasing bugs - developers should comment this out
  19477.     CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD -fno-strict-aliasing"
  19478.     CFLAGS="$CFLAGS -fno-strict-aliasing"
  19479.  
  19480.     # gcc's builtin memcmp is slower than glibc's
  19481.     # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052
  19482.     CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD -fno-builtin-memcmp"
  19483.     CFLAGS="$CFLAGS -fno-builtin-memcmp"
  19484. fi
  19485. if test "x$GXX" = xyes; then
  19486.     CXXFLAGS_FOR_BUILD="$CXXFLAGS_FOR_BUILD -Wall"
  19487.     CXXFLAGS="$CXXFLAGS -Wall"
  19488.  
  19489.     # Enable -fvisibility=hidden if using a gcc that supports it
  19490.     save_CXXFLAGS="$CXXFLAGS"
  19491.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -fvisibility=hidden" >&5
  19492. $as_echo_n "checking whether $CXX supports -fvisibility=hidden... " >&6; }
  19493.     VISIBILITY_CXXFLAGS="-fvisibility=hidden"
  19494.     CXXFLAGS="$CXXFLAGS $VISIBILITY_CXXFLAGS"
  19495.     ac_ext=cpp
  19496. ac_cpp='$CXXCPP $CPPFLAGS'
  19497. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19498. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19499. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19500.  
  19501.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19502. /* end confdefs.h.  */
  19503.  
  19504. int
  19505. main ()
  19506. {
  19507.  
  19508.   ;
  19509.   return 0;
  19510. }
  19511. _ACEOF
  19512. if ac_fn_cxx_try_link "$LINENO"; then :
  19513.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19514. $as_echo "yes" >&6; }
  19515. else
  19516.   VISIBILITY_CXXFLAGS="" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19517. $as_echo "no" >&6; }
  19518. fi
  19519. rm -f core conftest.err conftest.$ac_objext \
  19520.     conftest$ac_exeext conftest.$ac_ext;
  19521.     ac_ext=c
  19522. ac_cpp='$CPP $CPPFLAGS'
  19523. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19524. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19525. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19526.  
  19527.  
  19528.     # Restore CXXFLAGS; VISIBILITY_CXXFLAGS are added to it where needed.
  19529.     CXXFLAGS=$save_CXXFLAGS
  19530.  
  19531.     # Work around aliasing bugs - developers should comment this out
  19532.     CXXFLAGS_FOR_BUILD="$CXXFLAGS_FOR_BUILD -fno-strict-aliasing"
  19533.     CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
  19534.  
  19535.     # gcc's builtin memcmp is slower than glibc's
  19536.     # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052
  19537.     CXXFLAGS_FOR_BUILD="$CXXFLAGS_FOR_BUILD -fno-builtin-memcmp"
  19538.     CXXFLAGS="$CXXFLAGS -fno-builtin-memcmp"
  19539. fi
  19540.  
  19541. case "$host_os" in
  19542. cygwin*)
  19543.     VISIBILITY_CFLAGS=""
  19544.     VISIBILITY_CXXFLAGS=""
  19545.     ;;
  19546. esac
  19547.  
  19548.  
  19549.  
  19550.  
  19551. # Check whether --enable-32-bit was given.
  19552. if test "${enable_32_bit+set}" = set; then :
  19553.   enableval=$enable_32_bit; enable_32bit="$enableval"
  19554. else
  19555.   enable_32bit=auto
  19556.  
  19557. fi
  19558.  
  19559. if test "x$enable_32bit" = xyes; then
  19560.     if test "x$GCC" = xyes; then
  19561.         CFLAGS="$CFLAGS -m32"
  19562.         CCASFLAGS="$CCASFLAGS -m32"
  19563.     fi
  19564.     if test "x$GXX" = xyes; then
  19565.         CXXFLAGS="$CXXFLAGS -m32"
  19566.     fi
  19567. fi
  19568. # Check whether --enable-64-bit was given.
  19569. if test "${enable_64_bit+set}" = set; then :
  19570.   enableval=$enable_64_bit; enable_64bit="$enableval"
  19571. else
  19572.   enable_64bit=auto
  19573.  
  19574. fi
  19575.  
  19576. if test "x$enable_64bit" = xyes; then
  19577.     if test "x$GCC" = xyes; then
  19578.         CFLAGS="$CFLAGS -m64"
  19579.     fi
  19580.     if test "x$GXX" = xyes; then
  19581.         CXXFLAGS="$CXXFLAGS -m64"
  19582.     fi
  19583. fi
  19584.  
  19585. case "x$enable_static$enable_shared" in
  19586. xyesyes )
  19587.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build static and shared libraries, disabling shared" >&5
  19588. $as_echo "$as_me: WARNING: Cannot build static and shared libraries, disabling shared" >&2;}
  19589.     enable_shared=no
  19590.     ;;
  19591. xnono )
  19592.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot disable both static and shared libraries, enabling static" >&5
  19593. $as_echo "$as_me: WARNING: Cannot disable both static and shared libraries, enabling static" >&2;}
  19594.     enable_static=yes
  19595.     ;;
  19596. esac
  19597.  
  19598.  if test "x$enable_shared" = xyes; then
  19599.   BUILD_SHARED_TRUE=
  19600.   BUILD_SHARED_FALSE='#'
  19601. else
  19602.   BUILD_SHARED_TRUE='#'
  19603.   BUILD_SHARED_FALSE=
  19604. fi
  19605.  
  19606.  
  19607. # Check whether --enable-debug was given.
  19608. if test "${enable_debug+set}" = set; then :
  19609.   enableval=$enable_debug; enable_debug="$enableval"
  19610. else
  19611.   enable_debug=no
  19612.  
  19613. fi
  19614.  
  19615. if test "x$enable_debug" = xyes; then
  19616.     DEFINES_FOR_BUILD="$DEFINES_FOR_BUILD -DDEBUG"
  19617.     if test "x$GCC_FOR_BUILD" = xyes; then
  19618.         CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD -g -O0"
  19619.     fi
  19620.     if test "x$GXX_FOR_BUILD" = xyes; then
  19621.         CXXFLAGS_FOR_BUILD="$CXXFLAGS_FOR_BUILD -g -O0"
  19622.     fi
  19623.  
  19624.     DEFINES="$DEFINES -DDEBUG"
  19625.     if test "x$GCC" = xyes; then
  19626.         CFLAGS="$CFLAGS -g -O0"
  19627.     fi
  19628.     if test "x$GXX" = xyes; then
  19629.         CXXFLAGS="$CXXFLAGS -g -O0"
  19630.     fi
  19631. fi
  19632.  
  19633. LIB_PREFIX_GLOB='lib'
  19634. LIB_VERSION_SEPARATOR='.'
  19635. if test "$enable_static" = yes; then
  19636.     LIB_EXTENSION='a'
  19637. else
  19638.     case "$host_os" in
  19639.     darwin* )
  19640.         LIB_EXTENSION='dylib' ;;
  19641.     cygwin* )
  19642.                 LIB_PREFIX_GLOB='???'
  19643.         LIB_VERSION_SEPARATOR='-'
  19644.         LIB_EXTENSION='dll' ;;
  19645.     aix* )
  19646.         LIB_EXTENSION='a' ;;
  19647.     * )
  19648.         LIB_EXTENSION='so' ;;
  19649.     esac
  19650. fi
  19651.  
  19652. # Check whether --with-gl-lib-name was given.
  19653. if test "${with_gl_lib_name+set}" = set; then :
  19654.   withval=$with_gl_lib_name; GL_LIB=$withval
  19655. else
  19656.   GL_LIB=GL
  19657. fi
  19658.  
  19659.  
  19660. # Check whether --with-osmesa-lib-name was given.
  19661. if test "${with_osmesa_lib_name+set}" = set; then :
  19662.   withval=$with_osmesa_lib_name; OSMESA_LIB=$withval
  19663. else
  19664.   OSMESA_LIB=OSMesa
  19665. fi
  19666.  
  19667. if test "x$GL_LIB" = xyes; then :
  19668.   GL_LIB=GL
  19669. fi
  19670. if test "x$OSMESA_LIB" = xyes; then :
  19671.   OSMESA_LIB=OSMesa
  19672. fi
  19673.  
  19674. # Check whether --enable-mangling was given.
  19675. if test "${enable_mangling+set}" = set; then :
  19676.   enableval=$enable_mangling; enable_mangling="${enableval}"
  19677. else
  19678.   enable_mangling=no
  19679.  
  19680. fi
  19681.  
  19682. if test "x${enable_mangling}" = "xyes" ; then
  19683.   DEFINES="${DEFINES} -DUSE_MGL_NAMESPACE"
  19684.   GL_LIB="Mangled${GL_LIB}"
  19685.   OSMESA_LIB="Mangled${OSMESA_LIB}"
  19686. fi
  19687.  
  19688.  
  19689.  
  19690. # Check whether --enable-texture-float was given.
  19691. if test "${enable_texture_float+set}" = set; then :
  19692.   enableval=$enable_texture_float; enable_texture_float="$enableval"
  19693. else
  19694.   enable_texture_float=no
  19695.  
  19696. fi
  19697.  
  19698. if test "x$enable_texture_float" = xyes; then
  19699.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Floating-point textures enabled." >&5
  19700. $as_echo "$as_me: WARNING: Floating-point textures enabled." >&2;}
  19701.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please consult docs/patents.txt with your lawyer before building Mesa." >&5
  19702. $as_echo "$as_me: WARNING: Please consult docs/patents.txt with your lawyer before building Mesa." >&2;}
  19703.     DEFINES="$DEFINES -DTEXTURE_FLOAT_ENABLED"
  19704. fi
  19705.  
  19706. GL_LIB_NAME='lib$(GL_LIB).'${LIB_EXTENSION}
  19707. OSMESA_LIB_NAME='lib$(OSMESA_LIB).'${LIB_EXTENSION}
  19708. EGL_LIB_NAME='lib$(EGL_LIB).'${LIB_EXTENSION}
  19709. GLESv1_CM_LIB_NAME='lib$(GLESv1_CM_LIB).'${LIB_EXTENSION}
  19710. GLESv2_LIB_NAME='lib$(GLESv2_LIB).'${LIB_EXTENSION}
  19711. VG_LIB_NAME='lib$(VG_LIB).'${LIB_EXTENSION}
  19712. GLAPI_LIB_NAME='lib$(GLAPI_LIB).'${LIB_EXTENSION}
  19713.  
  19714. GL_LIB_GLOB=${LIB_PREFIX_GLOB}'$(GL_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
  19715. EGL_LIB_GLOB=${LIB_PREFIX_GLOB}'$(EGL_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
  19716. EGL_LIB_GLOB=${LIB_PREFIX_GLOB}'$(EGL_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
  19717. GLESv1_CM_LIB_GLOB=${LIB_PREFIX_GLOB}'$(GLESv1_CM_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
  19718. GLESv2_LIB_GLOB=${LIB_PREFIX_GLOB}'$(GLESv2_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
  19719. VG_LIB_GLOB=${LIB_PREFIX_GLOB}'$(VG_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
  19720. GLAPI_LIB_GLOB=${LIB_PREFIX_GLOB}'$(GLAPI_LIB)'${LIB_VERSION_SEPARATOR}'*'${LIB_EXTENSION}'*'
  19721.  
  19722.  
  19723.  
  19724.  
  19725.  
  19726.  
  19727.  
  19728.  
  19729.  
  19730.  
  19731.  
  19732.  
  19733.  
  19734.  
  19735.  
  19736.  
  19737. # Check whether --enable-asm was given.
  19738. if test "${enable_asm+set}" = set; then :
  19739.   enableval=$enable_asm; enable_asm="$enableval"
  19740. else
  19741.   enable_asm=yes
  19742.  
  19743. fi
  19744.  
  19745. asm_arch=""
  19746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assembly" >&5
  19747. $as_echo_n "checking whether to enable assembly... " >&6; }
  19748. test "x$enable_asm" = xno && { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19749. $as_echo "no" >&6; }
  19750. # disable if cross compiling on x86/x86_64 since we must run gen_matypes
  19751. if test "x$enable_asm" = xyes && test "x$cross_compiling" = xyes; then
  19752.     case "$host_cpu" in
  19753.     i?86 | x86_64 | amd64)
  19754.         enable_asm=no
  19755.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cross compiling" >&5
  19756. $as_echo "no, cross compiling" >&6; }
  19757.         ;;
  19758.     esac
  19759. fi
  19760. # check for supported arches
  19761. if test "x$enable_asm" = xyes; then
  19762.     case "$host_cpu" in
  19763.     i?86)
  19764.         case "$host_os" in
  19765.         linux* | *freebsd* | dragonfly* | *netbsd* | openbsd*)
  19766.             test "x$enable_64bit" = xyes && asm_arch=x86_64 || asm_arch=x86
  19767.             ;;
  19768.         gnu*)
  19769.             asm_arch=x86
  19770.             ;;
  19771.         esac
  19772.         ;;
  19773.     x86_64|amd64)
  19774.         case "$host_os" in
  19775.         linux* | *freebsd* | dragonfly* | *netbsd* | openbsd*)
  19776.             test "x$enable_32bit" = xyes && asm_arch=x86 || asm_arch=x86_64
  19777.             ;;
  19778.         esac
  19779.         ;;
  19780.     sparc*)
  19781.         case "$host_os" in
  19782.         linux*)
  19783.             asm_arch=sparc
  19784.             ;;
  19785.         esac
  19786.         ;;
  19787.     esac
  19788.  
  19789.     case "$asm_arch" in
  19790.     x86)
  19791.         DEFINES="$DEFINES -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM"
  19792.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, x86" >&5
  19793. $as_echo "yes, x86" >&6; }
  19794.         ;;
  19795.     x86_64|amd64)
  19796.         DEFINES="$DEFINES -DUSE_X86_64_ASM"
  19797.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, x86_64" >&5
  19798. $as_echo "yes, x86_64" >&6; }
  19799.         ;;
  19800.     sparc)
  19801.         DEFINES="$DEFINES -DUSE_SPARC_ASM"
  19802.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, sparc" >&5
  19803. $as_echo "yes, sparc" >&6; }
  19804.         ;;
  19805.     *)
  19806.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, platform not supported" >&5
  19807. $as_echo "no, platform not supported" >&6; }
  19808.         ;;
  19809.     esac
  19810. fi
  19811.  
  19812. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  19813. if test "x$ac_cv_func_dlopen" = xyes; then :
  19814.   DEFINES="$DEFINES -DHAVE_DLOPEN"
  19815. else
  19816.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19817. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19818. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19819.   $as_echo_n "(cached) " >&6
  19820. else
  19821.   ac_check_lib_save_LIBS=$LIBS
  19822. LIBS="-ldl  $LIBS"
  19823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19824. /* end confdefs.h.  */
  19825.  
  19826. /* Override any GCC internal prototype to avoid an error.
  19827.    Use char because int might match the return type of a GCC
  19828.    builtin and then its argument prototype would still apply.  */
  19829. #ifdef __cplusplus
  19830. extern "C"
  19831. #endif
  19832. char dlopen ();
  19833. int
  19834. main ()
  19835. {
  19836. return dlopen ();
  19837.   ;
  19838.   return 0;
  19839. }
  19840. _ACEOF
  19841. if ac_fn_c_try_link "$LINENO"; then :
  19842.   ac_cv_lib_dl_dlopen=yes
  19843. else
  19844.   ac_cv_lib_dl_dlopen=no
  19845. fi
  19846. rm -f core conftest.err conftest.$ac_objext \
  19847.     conftest$ac_exeext conftest.$ac_ext
  19848. LIBS=$ac_check_lib_save_LIBS
  19849. fi
  19850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19851. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19852. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19853.   DEFINES="$DEFINES -DHAVE_DLOPEN"; DLOPEN_LIBS="-ldl"
  19854. fi
  19855.  
  19856. fi
  19857.  
  19858.  
  19859.  
  19860. case "$host_os" in
  19861. darwin*|mingw*)
  19862.     ;;
  19863. *)
  19864.     for ac_func in clock_gettime
  19865. do :
  19866.   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
  19867. if test "x$ac_cv_func_clock_gettime" = xyes; then :
  19868.   cat >>confdefs.h <<_ACEOF
  19869. #define HAVE_CLOCK_GETTIME 1
  19870. _ACEOF
  19871.  CLOCK_LIB=
  19872. else
  19873.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  19874. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  19875. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  19876.   $as_echo_n "(cached) " >&6
  19877. else
  19878.   ac_check_lib_save_LIBS=$LIBS
  19879. LIBS="-lrt  $LIBS"
  19880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19881. /* end confdefs.h.  */
  19882.  
  19883. /* Override any GCC internal prototype to avoid an error.
  19884.    Use char because int might match the return type of a GCC
  19885.    builtin and then its argument prototype would still apply.  */
  19886. #ifdef __cplusplus
  19887. extern "C"
  19888. #endif
  19889. char clock_gettime ();
  19890. int
  19891. main ()
  19892. {
  19893. return clock_gettime ();
  19894.   ;
  19895.   return 0;
  19896. }
  19897. _ACEOF
  19898. if ac_fn_c_try_link "$LINENO"; then :
  19899.   ac_cv_lib_rt_clock_gettime=yes
  19900. else
  19901.   ac_cv_lib_rt_clock_gettime=no
  19902. fi
  19903. rm -f core conftest.err conftest.$ac_objext \
  19904.     conftest$ac_exeext conftest.$ac_ext
  19905. LIBS=$ac_check_lib_save_LIBS
  19906. fi
  19907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  19908. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  19909. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  19910.   CLOCK_LIB=-lrt
  19911. else
  19912.   as_fn_error $? "Couldn't find clock_gettime" "$LINENO" 5
  19913. fi
  19914.  
  19915. fi
  19916. done
  19917.  
  19918.  
  19919.     ;;
  19920. esac
  19921.  
  19922. ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
  19923. if test "x$ac_cv_func_posix_memalign" = xyes; then :
  19924.   DEFINES="$DEFINES -DHAVE_POSIX_MEMALIGN"
  19925. fi
  19926.  
  19927.  
  19928.  
  19929.  
  19930. ac_ext=c
  19931. ac_cpp='$CPP $CPPFLAGS'
  19932. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19933. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19934. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19935.  
  19936. ax_pthread_ok=no
  19937.  
  19938. # We used to check for pthread.h first, but this fails if pthread.h
  19939. # requires special compiler flags (e.g. on True64 or Sequent).
  19940. # It gets checked for in the link test anyway.
  19941.  
  19942. # First of all, check if the user has set any of the PTHREAD_LIBS,
  19943. # etcetera environment variables, and if threads linking works using
  19944. # them:
  19945. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  19946.         save_CFLAGS="$CFLAGS"
  19947.         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  19948.         save_LIBS="$LIBS"
  19949.         LIBS="$PTHREAD_LIBS $LIBS"
  19950.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  19951. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  19952.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19953. /* end confdefs.h.  */
  19954.  
  19955. /* Override any GCC internal prototype to avoid an error.
  19956.    Use char because int might match the return type of a GCC
  19957.    builtin and then its argument prototype would still apply.  */
  19958. #ifdef __cplusplus
  19959. extern "C"
  19960. #endif
  19961. char pthread_join ();
  19962. int
  19963. main ()
  19964. {
  19965. return pthread_join ();
  19966.   ;
  19967.   return 0;
  19968. }
  19969. _ACEOF
  19970. if ac_fn_c_try_link "$LINENO"; then :
  19971.   ax_pthread_ok=yes
  19972. fi
  19973. rm -f core conftest.err conftest.$ac_objext \
  19974.     conftest$ac_exeext conftest.$ac_ext
  19975.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  19976. $as_echo "$ax_pthread_ok" >&6; }
  19977.         if test x"$ax_pthread_ok" = xno; then
  19978.                 PTHREAD_LIBS=""
  19979.                 PTHREAD_CFLAGS=""
  19980.         fi
  19981.         LIBS="$save_LIBS"
  19982.         CFLAGS="$save_CFLAGS"
  19983. fi
  19984.  
  19985. # We must check for the threads library under a number of different
  19986. # names; the ordering is very important because some systems
  19987. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  19988. # libraries is broken (non-POSIX).
  19989.  
  19990. # Create a list of thread flags to try.  Items starting with a "-" are
  19991. # C compiler flags, and other items are library names, except for "none"
  19992. # which indicates that we try without any flags at all, and "pthread-config"
  19993. # which is a program returning the flags for the Pth emulation library.
  19994.  
  19995. ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  19996.  
  19997. # The ordering *is* (sometimes) important.  Some notes on the
  19998. # individual items follow:
  19999.  
  20000. # pthreads: AIX (must check this before -lpthread)
  20001. # none: in case threads are in libc; should be tried before -Kthread and
  20002. #       other compiler flags to prevent continual compiler warnings
  20003. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  20004. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  20005. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  20006. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  20007. # -pthreads: Solaris/gcc
  20008. # -mthreads: Mingw32/gcc, Lynx/gcc
  20009. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  20010. #      doesn't hurt to check since this sometimes defines pthreads too;
  20011. #      also defines -D_REENTRANT)
  20012. #      ... -mt is also the pthreads flag for HP/aCC
  20013. # pthread: Linux, etcetera
  20014. # --thread-safe: KAI C++
  20015. # pthread-config: use pthread-config program (for GNU Pth library)
  20016.  
  20017. case ${host_os} in
  20018.         solaris*)
  20019.  
  20020.         # On Solaris (at least, for some versions), libc contains stubbed
  20021.         # (non-functional) versions of the pthreads routines, so link-based
  20022.         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
  20023.         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
  20024.         # a function called by this macro, so we could check for that, but
  20025.         # who knows whether they'll stub that too in a future libc.)  So,
  20026.         # we'll just look for -pthreads and -lpthread first:
  20027.  
  20028.         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
  20029.         ;;
  20030.  
  20031.         darwin*)
  20032.         ax_pthread_flags="-pthread $ax_pthread_flags"
  20033.         ;;
  20034. esac
  20035.  
  20036. if test x"$ax_pthread_ok" = xno; then
  20037. for flag in $ax_pthread_flags; do
  20038.  
  20039.         case $flag in
  20040.                 none)
  20041.                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  20042. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  20043.                 ;;
  20044.  
  20045.                 -*)
  20046.                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  20047. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  20048.                 PTHREAD_CFLAGS="$flag"
  20049.                 ;;
  20050.  
  20051.                 pthread-config)
  20052.                 # Extract the first word of "pthread-config", so it can be a program name with args.
  20053. set dummy pthread-config; ac_word=$2
  20054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20055. $as_echo_n "checking for $ac_word... " >&6; }
  20056. if ${ac_cv_prog_ax_pthread_config+:} false; then :
  20057.   $as_echo_n "(cached) " >&6
  20058. else
  20059.   if test -n "$ax_pthread_config"; then
  20060.   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  20061. else
  20062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20063. for as_dir in $PATH
  20064. do
  20065.   IFS=$as_save_IFS
  20066.   test -z "$as_dir" && as_dir=.
  20067.     for ac_exec_ext in '' $ac_executable_extensions; do
  20068.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20069.     ac_cv_prog_ax_pthread_config="yes"
  20070.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20071.     break 2
  20072.   fi
  20073. done
  20074.   done
  20075. IFS=$as_save_IFS
  20076.  
  20077.   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  20078. fi
  20079. fi
  20080. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  20081. if test -n "$ax_pthread_config"; then
  20082.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  20083. $as_echo "$ax_pthread_config" >&6; }
  20084. else
  20085.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20086. $as_echo "no" >&6; }
  20087. fi
  20088.  
  20089.  
  20090.                 if test x"$ax_pthread_config" = xno; then continue; fi
  20091.                 PTHREAD_CFLAGS="`pthread-config --cflags`"
  20092.                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  20093.                 ;;
  20094.  
  20095.                 *)
  20096.                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  20097. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  20098.                 PTHREAD_LIBS="-l$flag"
  20099.                 ;;
  20100.         esac
  20101.  
  20102.         save_LIBS="$LIBS"
  20103.         save_CFLAGS="$CFLAGS"
  20104.         LIBS="$PTHREAD_LIBS $LIBS"
  20105.         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  20106.  
  20107.         # Check for various functions.  We must include pthread.h,
  20108.         # since some functions may be macros.  (On the Sequent, we
  20109.         # need a special flag -Kthread to make this header compile.)
  20110.         # We check for pthread_join because it is in -lpthread on IRIX
  20111.         # while pthread_create is in libc.  We check for pthread_attr_init
  20112.         # due to DEC craziness with -lpthreads.  We check for
  20113.         # pthread_cleanup_push because it is one of the few pthread
  20114.         # functions on Solaris that doesn't have a non-functional libc stub.
  20115.         # We try pthread_create on general principles.
  20116.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20117. /* end confdefs.h.  */
  20118. #include <pthread.h>
  20119.                         static void routine(void *a) { a = 0; }
  20120.                         static void *start_routine(void *a) { return a; }
  20121. int
  20122. main ()
  20123. {
  20124. pthread_t th; pthread_attr_t attr;
  20125.                         pthread_create(&th, 0, start_routine, 0);
  20126.                         pthread_join(th, 0);
  20127.                         pthread_attr_init(&attr);
  20128.                         pthread_cleanup_push(routine, 0);
  20129.                         pthread_cleanup_pop(0) /* ; */
  20130.   ;
  20131.   return 0;
  20132. }
  20133. _ACEOF
  20134. if ac_fn_c_try_link "$LINENO"; then :
  20135.   ax_pthread_ok=yes
  20136. fi
  20137. rm -f core conftest.err conftest.$ac_objext \
  20138.     conftest$ac_exeext conftest.$ac_ext
  20139.  
  20140.         LIBS="$save_LIBS"
  20141.         CFLAGS="$save_CFLAGS"
  20142.  
  20143.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  20144. $as_echo "$ax_pthread_ok" >&6; }
  20145.         if test "x$ax_pthread_ok" = xyes; then
  20146.                 break;
  20147.         fi
  20148.  
  20149.         PTHREAD_LIBS=""
  20150.         PTHREAD_CFLAGS=""
  20151. done
  20152. fi
  20153.  
  20154. # Various other checks:
  20155. if test "x$ax_pthread_ok" = xyes; then
  20156.         save_LIBS="$LIBS"
  20157.         LIBS="$PTHREAD_LIBS $LIBS"
  20158.         save_CFLAGS="$CFLAGS"
  20159.         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  20160.  
  20161.         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  20162.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  20163. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  20164.         attr_name=unknown
  20165.         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  20166.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20167. /* end confdefs.h.  */
  20168. #include <pthread.h>
  20169. int
  20170. main ()
  20171. {
  20172. int attr = $attr; return attr /* ; */
  20173.   ;
  20174.   return 0;
  20175. }
  20176. _ACEOF
  20177. if ac_fn_c_try_link "$LINENO"; then :
  20178.   attr_name=$attr; break
  20179. fi
  20180. rm -f core conftest.err conftest.$ac_objext \
  20181.     conftest$ac_exeext conftest.$ac_ext
  20182.         done
  20183.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  20184. $as_echo "$attr_name" >&6; }
  20185.         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  20186.  
  20187. cat >>confdefs.h <<_ACEOF
  20188. #define PTHREAD_CREATE_JOINABLE $attr_name
  20189. _ACEOF
  20190.  
  20191.         fi
  20192.  
  20193.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  20194. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  20195.         flag=no
  20196.         case ${host_os} in
  20197.             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
  20198.             osf* | hpux*) flag="-D_REENTRANT";;
  20199.             solaris*)
  20200.             if test "$GCC" = "yes"; then
  20201.                 flag="-D_REENTRANT"
  20202.             else
  20203.                 flag="-mt -D_REENTRANT"
  20204.             fi
  20205.             ;;
  20206.         esac
  20207.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  20208. $as_echo "${flag}" >&6; }
  20209.         if test "x$flag" != xno; then
  20210.             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  20211.         fi
  20212.  
  20213.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  20214. $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  20215. if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
  20216.   $as_echo_n "(cached) " >&6
  20217. else
  20218.  
  20219.                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20220. /* end confdefs.h.  */
  20221.  
  20222.                     #include <pthread.h>
  20223. int
  20224. main ()
  20225. {
  20226. int i = PTHREAD_PRIO_INHERIT;
  20227.   ;
  20228.   return 0;
  20229. }
  20230. _ACEOF
  20231. if ac_fn_c_try_link "$LINENO"; then :
  20232.   ax_cv_PTHREAD_PRIO_INHERIT=yes
  20233. else
  20234.   ax_cv_PTHREAD_PRIO_INHERIT=no
  20235. fi
  20236. rm -f core conftest.err conftest.$ac_objext \
  20237.     conftest$ac_exeext conftest.$ac_ext
  20238.  
  20239. fi
  20240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  20241. $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  20242.         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
  20243.  
  20244. $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  20245.  
  20246. fi
  20247.  
  20248.         LIBS="$save_LIBS"
  20249.         CFLAGS="$save_CFLAGS"
  20250.  
  20251.         # More AIX lossage: must compile with xlc_r or cc_r
  20252.         if test x"$GCC" != xyes; then
  20253.           for ac_prog in xlc_r cc_r
  20254. do
  20255.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  20256. set dummy $ac_prog; ac_word=$2
  20257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20258. $as_echo_n "checking for $ac_word... " >&6; }
  20259. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  20260.   $as_echo_n "(cached) " >&6
  20261. else
  20262.   if test -n "$PTHREAD_CC"; then
  20263.   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  20264. else
  20265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20266. for as_dir in $PATH
  20267. do
  20268.   IFS=$as_save_IFS
  20269.   test -z "$as_dir" && as_dir=.
  20270.     for ac_exec_ext in '' $ac_executable_extensions; do
  20271.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20272.     ac_cv_prog_PTHREAD_CC="$ac_prog"
  20273.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20274.     break 2
  20275.   fi
  20276. done
  20277.   done
  20278. IFS=$as_save_IFS
  20279.  
  20280. fi
  20281. fi
  20282. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  20283. if test -n "$PTHREAD_CC"; then
  20284.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  20285. $as_echo "$PTHREAD_CC" >&6; }
  20286. else
  20287.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20288. $as_echo "no" >&6; }
  20289. fi
  20290.  
  20291.  
  20292.   test -n "$PTHREAD_CC" && break
  20293. done
  20294. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  20295.  
  20296.         else
  20297.           PTHREAD_CC=$CC
  20298.         fi
  20299. else
  20300.         PTHREAD_CC="$CC"
  20301. fi
  20302.  
  20303.  
  20304.  
  20305.  
  20306.  
  20307. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  20308. if test x"$ax_pthread_ok" = xyes; then
  20309.  
  20310. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  20311.  
  20312.         :
  20313. else
  20314.         ax_pthread_ok=no
  20315.  
  20316. fi
  20317. ac_ext=c
  20318. ac_cpp='$CPP $CPPFLAGS'
  20319. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20320. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20321. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20322.  
  20323.  
  20324. test -z "$PTHREAD_LIBS" && PTHREAD_LIBS="-lpthread"
  20325.  
  20326. # Check whether --enable-selinux was given.
  20327. if test "${enable_selinux+set}" = set; then :
  20328.   enableval=$enable_selinux; MESA_SELINUX="$enableval"
  20329. else
  20330.   MESA_SELINUX=no
  20331. fi
  20332.  
  20333. if test "x$enable_selinux" = "xyes"; then
  20334.     ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
  20335. if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
  20336.  
  20337. else
  20338.   as_fn_error $? "SELinux headers not found" "$LINENO" 5
  20339. fi
  20340.  
  20341.  
  20342.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
  20343. $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
  20344. if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
  20345.   $as_echo_n "(cached) " >&6
  20346. else
  20347.   ac_check_lib_save_LIBS=$LIBS
  20348. LIBS="-lselinux  $LIBS"
  20349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20350. /* end confdefs.h.  */
  20351.  
  20352. /* Override any GCC internal prototype to avoid an error.
  20353.    Use char because int might match the return type of a GCC
  20354.    builtin and then its argument prototype would still apply.  */
  20355. #ifdef __cplusplus
  20356. extern "C"
  20357. #endif
  20358. char is_selinux_enabled ();
  20359. int
  20360. main ()
  20361. {
  20362. return is_selinux_enabled ();
  20363.   ;
  20364.   return 0;
  20365. }
  20366. _ACEOF
  20367. if ac_fn_c_try_link "$LINENO"; then :
  20368.   ac_cv_lib_selinux_is_selinux_enabled=yes
  20369. else
  20370.   ac_cv_lib_selinux_is_selinux_enabled=no
  20371. fi
  20372. rm -f core conftest.err conftest.$ac_objext \
  20373.     conftest$ac_exeext conftest.$ac_ext
  20374. LIBS=$ac_check_lib_save_LIBS
  20375. fi
  20376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
  20377. $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
  20378. if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
  20379.   cat >>confdefs.h <<_ACEOF
  20380. #define HAVE_LIBSELINUX 1
  20381. _ACEOF
  20382.  
  20383.   LIBS="-lselinux $LIBS"
  20384.  
  20385. else
  20386.   as_fn_error $? "SELinux library not found" "$LINENO" 5
  20387. fi
  20388.  
  20389.     SELINUX_LIBS="-lselinux"
  20390.     DEFINES="$DEFINES -DMESA_SELINUX"
  20391. fi
  20392.  
  20393.  
  20394. # Check whether --enable-opengl was given.
  20395. if test "${enable_opengl+set}" = set; then :
  20396.   enableval=$enable_opengl; enable_opengl="$enableval"
  20397. else
  20398.   enable_opengl=yes
  20399. fi
  20400.  
  20401. # Check whether --enable-gles1 was given.
  20402. if test "${enable_gles1+set}" = set; then :
  20403.   enableval=$enable_gles1; enable_gles1="$enableval"
  20404. else
  20405.   enable_gles1=no
  20406. fi
  20407.  
  20408. # Check whether --enable-gles2 was given.
  20409. if test "${enable_gles2+set}" = set; then :
  20410.   enableval=$enable_gles2; enable_gles2="$enableval"
  20411. else
  20412.   enable_gles2=no
  20413. fi
  20414.  
  20415. # Check whether --enable-openvg was given.
  20416. if test "${enable_openvg+set}" = set; then :
  20417.   enableval=$enable_openvg; enable_openvg="$enableval"
  20418. else
  20419.   enable_openvg=no
  20420. fi
  20421.  
  20422.  
  20423. # Check whether --enable-dri was given.
  20424. if test "${enable_dri+set}" = set; then :
  20425.   enableval=$enable_dri; enable_dri="$enableval"
  20426. else
  20427.   enable_dri=yes
  20428. fi
  20429.  
  20430. # Check whether --enable-glx was given.
  20431. if test "${enable_glx+set}" = set; then :
  20432.   enableval=$enable_glx; enable_glx="$enableval"
  20433. else
  20434.   enable_glx=yes
  20435. fi
  20436.  
  20437. # Check whether --enable-osmesa was given.
  20438. if test "${enable_osmesa+set}" = set; then :
  20439.   enableval=$enable_osmesa; enable_osmesa="$enableval"
  20440. else
  20441.   enable_osmesa=no
  20442. fi
  20443.  
  20444. # Check whether --enable-gallium-osmesa was given.
  20445. if test "${enable_gallium_osmesa+set}" = set; then :
  20446.   enableval=$enable_gallium_osmesa; enable_gallium_osmesa="$enableval"
  20447. else
  20448.   enable_gallium_osmesa=no
  20449. fi
  20450.  
  20451. # Check whether --enable-egl was given.
  20452. if test "${enable_egl+set}" = set; then :
  20453.   enableval=$enable_egl; enable_egl="$enableval"
  20454. else
  20455.   enable_egl=yes
  20456. fi
  20457.  
  20458.  
  20459. # Check whether --enable-xorg was given.
  20460. if test "${enable_xorg+set}" = set; then :
  20461.   enableval=$enable_xorg; enable_xorg="$enableval"
  20462. else
  20463.   enable_xorg=no
  20464. fi
  20465.  
  20466. # Check whether --enable-xa was given.
  20467. if test "${enable_xa+set}" = set; then :
  20468.   enableval=$enable_xa; enable_xa="$enableval"
  20469. else
  20470.   enable_xa=no
  20471. fi
  20472.  
  20473. # Check whether --enable-gbm was given.
  20474. if test "${enable_gbm+set}" = set; then :
  20475.   enableval=$enable_gbm; enable_gbm="$enableval"
  20476. else
  20477.   enable_gbm=auto
  20478. fi
  20479.  
  20480.  
  20481. # Check whether --enable-xvmc was given.
  20482. if test "${enable_xvmc+set}" = set; then :
  20483.   enableval=$enable_xvmc; enable_xvmc="$enableval"
  20484. else
  20485.   enable_xvmc=auto
  20486. fi
  20487.  
  20488. # Check whether --enable-vdpau was given.
  20489. if test "${enable_vdpau+set}" = set; then :
  20490.   enableval=$enable_vdpau; enable_vdpau="$enableval"
  20491. else
  20492.   enable_vdpau=auto
  20493. fi
  20494.  
  20495. # Check whether --enable-opencl was given.
  20496. if test "${enable_opencl+set}" = set; then :
  20497.   enableval=$enable_opencl;
  20498. else
  20499.   enable_opencl=no
  20500. fi
  20501.  
  20502. # Check whether --enable-xlib_glx was given.
  20503. if test "${enable_xlib_glx+set}" = set; then :
  20504.   enableval=$enable_xlib_glx; enable_xlib_glx="$enableval"
  20505. else
  20506.   enable_xlib_glx=no
  20507. fi
  20508.  
  20509. # Check whether --enable-gallium_egl was given.
  20510. if test "${enable_gallium_egl+set}" = set; then :
  20511.   enableval=$enable_gallium_egl; enable_gallium_egl="$enableval"
  20512. else
  20513.   enable_gallium_egl=no
  20514. fi
  20515.  
  20516. # Check whether --enable-gallium_gbm was given.
  20517. if test "${enable_gallium_gbm+set}" = set; then :
  20518.   enableval=$enable_gallium_gbm; enable_gallium_gbm="$enableval"
  20519. else
  20520.   enable_gallium_gbm=auto
  20521. fi
  20522.  
  20523.  
  20524. # Check whether --enable-r600-llvm-compiler was given.
  20525. if test "${enable_r600_llvm_compiler+set}" = set; then :
  20526.   enableval=$enable_r600_llvm_compiler; enable_r600_llvm="$enableval"
  20527. else
  20528.   enable_r600_llvm=no
  20529. fi
  20530.  
  20531.  
  20532. # Check whether --enable-gallium_tests was given.
  20533. if test "${enable_gallium_tests+set}" = set; then :
  20534.   enableval=$enable_gallium_tests; enable_gallium_tests="$enableval"
  20535. else
  20536.   enable_gallium_tests=no
  20537. fi
  20538.  
  20539.  
  20540. # Option for Gallium drivers
  20541.  
  20542. # Keep this in sync with the --with-gallium-drivers help string default value
  20543. GALLIUM_DRIVERS_DEFAULT="r300,r600,svga,swrast"
  20544.  
  20545.  
  20546. # Check whether --with-gallium-drivers was given.
  20547. if test "${with_gallium_drivers+set}" = set; then :
  20548.   withval=$with_gallium_drivers; with_gallium_drivers="$withval"
  20549. else
  20550.   with_gallium_drivers="$GALLIUM_DRIVERS_DEFAULT"
  20551. fi
  20552.  
  20553.  
  20554. # Doing '--without-gallium-drivers' will set this variable to 'no'.  Clear it
  20555. # here so that the script doesn't choke on an unknown driver name later.
  20556. case "$with_gallium_drivers" in
  20557.     yes) with_gallium_drivers="$GALLIUM_DRIVERS_DEFAULT" ;;
  20558.     no) with_gallium_drivers='' ;;
  20559. esac
  20560.  
  20561. if test "x$enable_opengl" = xno -a \
  20562.         "x$enable_gles1" = xno -a \
  20563.         "x$enable_gles2" = xno -a \
  20564.         "x$enable_openvg" = xno -a \
  20565.         "x$enable_xorg" = xno -a \
  20566.         "x$enable_xa" = xno -a \
  20567.         "x$enable_xvmc" = xno -a \
  20568.         "x$enable_vdpau" = xno -a \
  20569.         "x$enable_opencl" = xno; then
  20570.     as_fn_error $? "at least one API should be enabled" "$LINENO" 5
  20571. fi
  20572.  
  20573. # Building OpenGL ES1 and/or ES2 without OpenGL is not supported on mesa 9.0.x
  20574. if test "x$enable_opengl" = xno -a \
  20575.         "x$enable_gles1" = xyes; then
  20576.     as_fn_error $? "Building OpenGL ES1 without OpenGL is not supported" "$LINENO" 5
  20577. fi
  20578.  
  20579. if test "x$enable_opengl" = xno -a \
  20580.         "x$enable_gles2" = xyes; then
  20581.     as_fn_error $? "Building OpenGL ES2 without OpenGL is not supported" "$LINENO" 5
  20582. fi
  20583.  
  20584.  if test "x$enable_opengl" = xyes; then
  20585.   HAVE_OPENGL_TRUE=
  20586.   HAVE_OPENGL_FALSE='#'
  20587. else
  20588.   HAVE_OPENGL_TRUE='#'
  20589.   HAVE_OPENGL_FALSE=
  20590. fi
  20591.  
  20592.  if test "x$enable_gles1" = xyes; then
  20593.   HAVE_OPENGL_ES1_TRUE=
  20594.   HAVE_OPENGL_ES1_FALSE='#'
  20595. else
  20596.   HAVE_OPENGL_ES1_TRUE='#'
  20597.   HAVE_OPENGL_ES1_FALSE=
  20598. fi
  20599.  
  20600.  if test "x$enable_gles2" = xyes; then
  20601.   HAVE_OPENGL_ES2_TRUE=
  20602.   HAVE_OPENGL_ES2_FALSE='#'
  20603. else
  20604.   HAVE_OPENGL_ES2_TRUE='#'
  20605.   HAVE_OPENGL_ES2_FALSE=
  20606. fi
  20607.  
  20608.  if test "x$enable_opengl" = xyes -o \
  20609.                                         "x$enable_gles1" = xyes -o \
  20610.                                         "x$enable_gles2" = xyes; then
  20611.   NEED_OPENGL_COMMON_TRUE=
  20612.   NEED_OPENGL_COMMON_FALSE='#'
  20613. else
  20614.   NEED_OPENGL_COMMON_TRUE='#'
  20615.   NEED_OPENGL_COMMON_FALSE=
  20616. fi
  20617.  
  20618.  
  20619. if test "x$enable_glx" = xno; then
  20620.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GLX disabled, disabling Xlib-GLX" >&5
  20621. $as_echo "$as_me: WARNING: GLX disabled, disabling Xlib-GLX" >&2;}
  20622.     enable_xlib_glx=no
  20623. fi
  20624.  
  20625. if test "x$enable_dri$enable_xlib_glx" = xyesyes; then
  20626.     as_fn_error $? "DRI and Xlib-GLX cannot be built together" "$LINENO" 5
  20627. fi
  20628.  
  20629. if test "x$enable_opengl$enable_xlib_glx" = xnoyes; then
  20630.     as_fn_error $? "Xlib-GLX cannot be built without OpenGL" "$LINENO" 5
  20631. fi
  20632.  
  20633. # Disable GLX if OpenGL is not enabled
  20634. if test "x$enable_glx$enable_opengl" = xyesno; then
  20635.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenGL not enabled, disabling GLX" >&5
  20636. $as_echo "$as_me: WARNING: OpenGL not enabled, disabling GLX" >&2;}
  20637.     enable_glx=no
  20638. fi
  20639.  
  20640. # Disable GLX if DRI and Xlib-GLX are not enabled
  20641. if test "x$enable_glx" = xyes -a \
  20642.         "x$enable_dri" = xno -a \
  20643.         "x$enable_xlib_glx" = xno; then
  20644.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Neither DRI nor Xlib-GLX enabled, disabling GLX" >&5
  20645. $as_echo "$as_me: WARNING: Neither DRI nor Xlib-GLX enabled, disabling GLX" >&2;}
  20646.     enable_glx=no
  20647. fi
  20648.  
  20649.  if test "x$enable_glx" = xyes -a \
  20650.                                   "x$enable_dri" = xyes; then
  20651.   HAVE_DRI_GLX_TRUE=
  20652.   HAVE_DRI_GLX_FALSE='#'
  20653. else
  20654.   HAVE_DRI_GLX_TRUE='#'
  20655.   HAVE_DRI_GLX_FALSE=
  20656. fi
  20657.  
  20658.  if test "x$enable_dri" = xyes; then
  20659.   HAVE_DRI_TRUE=
  20660.   HAVE_DRI_FALSE='#'
  20661. else
  20662.   HAVE_DRI_TRUE='#'
  20663.   HAVE_DRI_FALSE=
  20664. fi
  20665.  
  20666.  if test "x$enable_xlib_glx" = xyes -o \
  20667.                                   "x$enable_osmesa" = xyes; then
  20668.   NEED_LIBMESA_TRUE=
  20669.   NEED_LIBMESA_FALSE='#'
  20670. else
  20671.   NEED_LIBMESA_TRUE='#'
  20672.   NEED_LIBMESA_FALSE=
  20673. fi
  20674.  
  20675.  
  20676. # Check whether --enable-shared-glapi was given.
  20677. if test "${enable_shared_glapi+set}" = set; then :
  20678.   enableval=$enable_shared_glapi; enable_shared_glapi="$enableval"
  20679. else
  20680.   enable_shared_glapi="$enable_dri"
  20681. fi
  20682.  
  20683.  
  20684. # Shared GLAPI is only useful for DRI
  20685. if test "x$enable_dri" = xno; then
  20686.     { $as_echo "$as_me:${as_lineno-$LINENO}: Shared GLAPI is only useful for DRI, disabling" >&5
  20687. $as_echo "$as_me: Shared GLAPI is only useful for DRI, disabling" >&6;}
  20688.     enable_shared_glapi=no
  20689. fi
  20690.  
  20691.  if test "x$enable_shared_glapi" = xyes; then
  20692.   HAVE_SHARED_GLAPI_TRUE=
  20693.   HAVE_SHARED_GLAPI_FALSE='#'
  20694. else
  20695.   HAVE_SHARED_GLAPI_TRUE='#'
  20696.   HAVE_SHARED_GLAPI_FALSE=
  20697. fi
  20698.  
  20699.  
  20700. GALLIUM_TARGET_DIRS=""
  20701. GALLIUM_WINSYS_DIRS="sw"
  20702. GALLIUM_DRIVERS_DIRS="galahad trace rbug noop identity"
  20703. GALLIUM_STATE_TRACKERS_DIRS=""
  20704.  
  20705. case "x$enable_glx$enable_xlib_glx" in
  20706. xyesyes)
  20707.     GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS sw/xlib"
  20708.     GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS libgl-xlib"
  20709.     GALLIUM_STATE_TRACKERS_DIRS="glx $GALLIUM_STATE_TRACKERS_DIRS"
  20710.     NEED_WINSYS_XLIB="yes"
  20711.     ;;
  20712. esac
  20713.  
  20714. if test "x$enable_dri" = xyes; then
  20715.     GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS sw/dri"
  20716.     GALLIUM_STATE_TRACKERS_DIRS="dri $GALLIUM_STATE_TRACKERS_DIRS"
  20717. fi
  20718.  
  20719. if test "x$enable_gallium_osmesa" = xyes; then
  20720.     if test -z "$with_gallium_drivers"; then
  20721.         as_fn_error $? "Cannot enable gallium_osmesa without Gallium" "$LINENO" 5
  20722.     fi
  20723.     if test "x$enable_osmesa" = xyes; then
  20724.         as_fn_error $? "Cannot enable both classic and Gallium OSMesa implementations" "$LINENO" 5
  20725.     fi
  20726.     GALLIUM_STATE_TRACKERS_DIRS="osmesa $GALLIUM_STATE_TRACKERS_DIRS"
  20727.     GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS osmesa"
  20728. fi
  20729.  
  20730.  
  20731.  
  20732. # Check for libdrm
  20733.  
  20734. pkg_failed=no
  20735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
  20736. $as_echo_n "checking for LIBDRM... " >&6; }
  20737.  
  20738. if test -n "$LIBDRM_CFLAGS"; then
  20739.     pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  20740.  elif test -n "$PKG_CONFIG"; then
  20741.     if test -n "$PKG_CONFIG" && \
  20742.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= \$LIBDRM_REQUIRED\""; } >&5
  20743.   ($PKG_CONFIG --exists --print-errors "libdrm >= $LIBDRM_REQUIRED") 2>&5
  20744.   ac_status=$?
  20745.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20746.   test $ac_status = 0; }; then
  20747.   pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= $LIBDRM_REQUIRED" 2>/dev/null`
  20748.                       test "x$?" != "x0" && pkg_failed=yes
  20749. else
  20750.   pkg_failed=yes
  20751. fi
  20752.  else
  20753.     pkg_failed=untried
  20754. fi
  20755. if test -n "$LIBDRM_LIBS"; then
  20756.     pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  20757.  elif test -n "$PKG_CONFIG"; then
  20758.     if test -n "$PKG_CONFIG" && \
  20759.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= \$LIBDRM_REQUIRED\""; } >&5
  20760.   ($PKG_CONFIG --exists --print-errors "libdrm >= $LIBDRM_REQUIRED") 2>&5
  20761.   ac_status=$?
  20762.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20763.   test $ac_status = 0; }; then
  20764.   pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= $LIBDRM_REQUIRED" 2>/dev/null`
  20765.                       test "x$?" != "x0" && pkg_failed=yes
  20766. else
  20767.   pkg_failed=yes
  20768. fi
  20769.  else
  20770.     pkg_failed=untried
  20771. fi
  20772.  
  20773.  
  20774.  
  20775. if test $pkg_failed = yes; then
  20776.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20777. $as_echo "no" >&6; }
  20778.  
  20779. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20780.         _pkg_short_errors_supported=yes
  20781. else
  20782.         _pkg_short_errors_supported=no
  20783. fi
  20784.         if test $_pkg_short_errors_supported = yes; then
  20785.                 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= $LIBDRM_REQUIRED" 2>&1`
  20786.         else
  20787.                 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= $LIBDRM_REQUIRED" 2>&1`
  20788.         fi
  20789.         # Put the nasty error message in config.log where it belongs
  20790.         echo "$LIBDRM_PKG_ERRORS" >&5
  20791.  
  20792.         have_libdrm=no
  20793. elif test $pkg_failed = untried; then
  20794.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20795. $as_echo "no" >&6; }
  20796.         have_libdrm=no
  20797. else
  20798.         LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  20799.         LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  20800.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20801. $as_echo "yes" >&6; }
  20802.         have_libdrm=yes
  20803. fi
  20804.  
  20805. if test "x$enable_dri" = xyes; then
  20806.     # DRI must be shared, I think
  20807.     if test "$enable_static" = yes; then
  20808.         as_fn_error $? "Cannot use static libraries for DRI drivers" "$LINENO" 5
  20809.     fi
  20810.  
  20811.     # not a hard requirement as swrast does not depend on it
  20812.     if test "x$have_libdrm" = xyes; then
  20813.         DRI_PC_REQ_PRIV="libdrm >= $LIBDRM_REQUIRED"
  20814.     fi
  20815. fi
  20816.  
  20817. case "$host_os" in
  20818. gnu*)
  20819.         driglx_direct_default="no"
  20820.     ;;
  20821. cygwin*)
  20822.         driglx_direct_default="no"
  20823.     ;;
  20824. *)
  20825.     driglx_direct_default="yes"
  20826.     ;;
  20827. esac
  20828. # Check whether --enable-driglx-direct was given.
  20829. if test "${enable_driglx_direct+set}" = set; then :
  20830.   enableval=$enable_driglx_direct; driglx_direct="$enableval"
  20831. else
  20832.   driglx_direct="$driglx_direct_default"
  20833. fi
  20834.  
  20835.  
  20836. case "x$enable_glx$enable_xlib_glx" in
  20837. xyesyes)
  20838.     # Xlib-based GLX
  20839.  
  20840. pkg_failed=no
  20841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIBGL" >&5
  20842. $as_echo_n "checking for XLIBGL... " >&6; }
  20843.  
  20844. if test -n "$XLIBGL_CFLAGS"; then
  20845.     pkg_cv_XLIBGL_CFLAGS="$XLIBGL_CFLAGS"
  20846.  elif test -n "$PKG_CONFIG"; then
  20847.     if test -n "$PKG_CONFIG" && \
  20848.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext\""; } >&5
  20849.   ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5
  20850.   ac_status=$?
  20851.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20852.   test $ac_status = 0; }; then
  20853.   pkg_cv_XLIBGL_CFLAGS=`$PKG_CONFIG --cflags "x11 xext" 2>/dev/null`
  20854.                       test "x$?" != "x0" && pkg_failed=yes
  20855. else
  20856.   pkg_failed=yes
  20857. fi
  20858.  else
  20859.     pkg_failed=untried
  20860. fi
  20861. if test -n "$XLIBGL_LIBS"; then
  20862.     pkg_cv_XLIBGL_LIBS="$XLIBGL_LIBS"
  20863.  elif test -n "$PKG_CONFIG"; then
  20864.     if test -n "$PKG_CONFIG" && \
  20865.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext\""; } >&5
  20866.   ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5
  20867.   ac_status=$?
  20868.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20869.   test $ac_status = 0; }; then
  20870.   pkg_cv_XLIBGL_LIBS=`$PKG_CONFIG --libs "x11 xext" 2>/dev/null`
  20871.                       test "x$?" != "x0" && pkg_failed=yes
  20872. else
  20873.   pkg_failed=yes
  20874. fi
  20875.  else
  20876.     pkg_failed=untried
  20877. fi
  20878.  
  20879.  
  20880.  
  20881. if test $pkg_failed = yes; then
  20882.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20883. $as_echo "no" >&6; }
  20884.  
  20885. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20886.         _pkg_short_errors_supported=yes
  20887. else
  20888.         _pkg_short_errors_supported=no
  20889. fi
  20890.         if test $_pkg_short_errors_supported = yes; then
  20891.                 XLIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext" 2>&1`
  20892.         else
  20893.                 XLIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext" 2>&1`
  20894.         fi
  20895.         # Put the nasty error message in config.log where it belongs
  20896.         echo "$XLIBGL_PKG_ERRORS" >&5
  20897.  
  20898.         as_fn_error $? "Package requirements (x11 xext) were not met:
  20899.  
  20900. $XLIBGL_PKG_ERRORS
  20901.  
  20902. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  20903. installed software in a non-standard prefix.
  20904.  
  20905. Alternatively, you may set the environment variables XLIBGL_CFLAGS
  20906. and XLIBGL_LIBS to avoid the need to call pkg-config.
  20907. See the pkg-config man page for more details." "$LINENO" 5
  20908. elif test $pkg_failed = untried; then
  20909.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20910. $as_echo "no" >&6; }
  20911.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20912. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20913. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  20914. is in your PATH or set the PKG_CONFIG environment variable to the full
  20915. path to pkg-config.
  20916.  
  20917. Alternatively, you may set the environment variables XLIBGL_CFLAGS
  20918. and XLIBGL_LIBS to avoid the need to call pkg-config.
  20919. See the pkg-config man page for more details.
  20920.  
  20921. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  20922. See \`config.log' for more details" "$LINENO" 5; }
  20923. else
  20924.         XLIBGL_CFLAGS=$pkg_cv_XLIBGL_CFLAGS
  20925.         XLIBGL_LIBS=$pkg_cv_XLIBGL_LIBS
  20926.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20927. $as_echo "yes" >&6; }
  20928.  
  20929. fi
  20930.     GL_PC_REQ_PRIV="x11 xext"
  20931.     X11_INCLUDES="$X11_INCLUDES $XLIBGL_CFLAGS"
  20932.     GL_LIB_DEPS="$XLIBGL_LIBS"
  20933.     GL_LIB_DEPS="$GL_LIB_DEPS $SELINUX_LIBS -lm $PTHREAD_LIBS $DLOPEN_LIBS"
  20934.     GL_PC_LIB_PRIV="$GL_PC_LIB_PRIV $SELINUX_LIBS -lm $PTHREAD_LIBS"
  20935.     ;;
  20936. xyesno)
  20937.     # DRI-based GLX
  20938.  
  20939. pkg_failed=no
  20940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLPROTO" >&5
  20941. $as_echo_n "checking for GLPROTO... " >&6; }
  20942.  
  20943. if test -n "$GLPROTO_CFLAGS"; then
  20944.     pkg_cv_GLPROTO_CFLAGS="$GLPROTO_CFLAGS"
  20945.  elif test -n "$PKG_CONFIG"; then
  20946.     if test -n "$PKG_CONFIG" && \
  20947.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glproto >= \$GLPROTO_REQUIRED\""; } >&5
  20948.   ($PKG_CONFIG --exists --print-errors "glproto >= $GLPROTO_REQUIRED") 2>&5
  20949.   ac_status=$?
  20950.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20951.   test $ac_status = 0; }; then
  20952.   pkg_cv_GLPROTO_CFLAGS=`$PKG_CONFIG --cflags "glproto >= $GLPROTO_REQUIRED" 2>/dev/null`
  20953.                       test "x$?" != "x0" && pkg_failed=yes
  20954. else
  20955.   pkg_failed=yes
  20956. fi
  20957.  else
  20958.     pkg_failed=untried
  20959. fi
  20960. if test -n "$GLPROTO_LIBS"; then
  20961.     pkg_cv_GLPROTO_LIBS="$GLPROTO_LIBS"
  20962.  elif test -n "$PKG_CONFIG"; then
  20963.     if test -n "$PKG_CONFIG" && \
  20964.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glproto >= \$GLPROTO_REQUIRED\""; } >&5
  20965.   ($PKG_CONFIG --exists --print-errors "glproto >= $GLPROTO_REQUIRED") 2>&5
  20966.   ac_status=$?
  20967.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20968.   test $ac_status = 0; }; then
  20969.   pkg_cv_GLPROTO_LIBS=`$PKG_CONFIG --libs "glproto >= $GLPROTO_REQUIRED" 2>/dev/null`
  20970.                       test "x$?" != "x0" && pkg_failed=yes
  20971. else
  20972.   pkg_failed=yes
  20973. fi
  20974.  else
  20975.     pkg_failed=untried
  20976. fi
  20977.  
  20978.  
  20979.  
  20980. if test $pkg_failed = yes; then
  20981.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20982. $as_echo "no" >&6; }
  20983.  
  20984. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20985.         _pkg_short_errors_supported=yes
  20986. else
  20987.         _pkg_short_errors_supported=no
  20988. fi
  20989.         if test $_pkg_short_errors_supported = yes; then
  20990.                 GLPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glproto >= $GLPROTO_REQUIRED" 2>&1`
  20991.         else
  20992.                 GLPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glproto >= $GLPROTO_REQUIRED" 2>&1`
  20993.         fi
  20994.         # Put the nasty error message in config.log where it belongs
  20995.         echo "$GLPROTO_PKG_ERRORS" >&5
  20996.  
  20997.         as_fn_error $? "Package requirements (glproto >= $GLPROTO_REQUIRED) were not met:
  20998.  
  20999. $GLPROTO_PKG_ERRORS
  21000.  
  21001. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  21002. installed software in a non-standard prefix.
  21003.  
  21004. Alternatively, you may set the environment variables GLPROTO_CFLAGS
  21005. and GLPROTO_LIBS to avoid the need to call pkg-config.
  21006. See the pkg-config man page for more details." "$LINENO" 5
  21007. elif test $pkg_failed = untried; then
  21008.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21009. $as_echo "no" >&6; }
  21010.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21011. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21012. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  21013. is in your PATH or set the PKG_CONFIG environment variable to the full
  21014. path to pkg-config.
  21015.  
  21016. Alternatively, you may set the environment variables GLPROTO_CFLAGS
  21017. and GLPROTO_LIBS to avoid the need to call pkg-config.
  21018. See the pkg-config man page for more details.
  21019.  
  21020. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  21021. See \`config.log' for more details" "$LINENO" 5; }
  21022. else
  21023.         GLPROTO_CFLAGS=$pkg_cv_GLPROTO_CFLAGS
  21024.         GLPROTO_LIBS=$pkg_cv_GLPROTO_LIBS
  21025.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21026. $as_echo "yes" >&6; }
  21027.  
  21028. fi
  21029.     if test x"$driglx_direct" = xyes; then
  21030.         if test "x$have_libdrm" != xyes; then
  21031.             as_fn_error $? "Direct rendering requires libdrm >= $LIBDRM_REQUIRED" "$LINENO" 5
  21032.         fi
  21033.  
  21034. pkg_failed=no
  21035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2PROTO" >&5
  21036. $as_echo_n "checking for DRI2PROTO... " >&6; }
  21037.  
  21038. if test -n "$DRI2PROTO_CFLAGS"; then
  21039.     pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS"
  21040.  elif test -n "$PKG_CONFIG"; then
  21041.     if test -n "$PKG_CONFIG" && \
  21042.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= \$DRI2PROTO_REQUIRED\""; } >&5
  21043.   ($PKG_CONFIG --exists --print-errors "dri2proto >= $DRI2PROTO_REQUIRED") 2>&5
  21044.   ac_status=$?
  21045.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21046.   test $ac_status = 0; }; then
  21047.   pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "dri2proto >= $DRI2PROTO_REQUIRED" 2>/dev/null`
  21048.                       test "x$?" != "x0" && pkg_failed=yes
  21049. else
  21050.   pkg_failed=yes
  21051. fi
  21052.  else
  21053.     pkg_failed=untried
  21054. fi
  21055. if test -n "$DRI2PROTO_LIBS"; then
  21056.     pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS"
  21057.  elif test -n "$PKG_CONFIG"; then
  21058.     if test -n "$PKG_CONFIG" && \
  21059.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= \$DRI2PROTO_REQUIRED\""; } >&5
  21060.   ($PKG_CONFIG --exists --print-errors "dri2proto >= $DRI2PROTO_REQUIRED") 2>&5
  21061.   ac_status=$?
  21062.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21063.   test $ac_status = 0; }; then
  21064.   pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "dri2proto >= $DRI2PROTO_REQUIRED" 2>/dev/null`
  21065.                       test "x$?" != "x0" && pkg_failed=yes
  21066. else
  21067.   pkg_failed=yes
  21068. fi
  21069.  else
  21070.     pkg_failed=untried
  21071. fi
  21072.  
  21073.  
  21074.  
  21075. if test $pkg_failed = yes; then
  21076.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21077. $as_echo "no" >&6; }
  21078.  
  21079. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21080.         _pkg_short_errors_supported=yes
  21081. else
  21082.         _pkg_short_errors_supported=no
  21083. fi
  21084.         if test $_pkg_short_errors_supported = yes; then
  21085.                 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri2proto >= $DRI2PROTO_REQUIRED" 2>&1`
  21086.         else
  21087.                 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri2proto >= $DRI2PROTO_REQUIRED" 2>&1`
  21088.         fi
  21089.         # Put the nasty error message in config.log where it belongs
  21090.         echo "$DRI2PROTO_PKG_ERRORS" >&5
  21091.  
  21092.         as_fn_error $? "Package requirements (dri2proto >= $DRI2PROTO_REQUIRED) were not met:
  21093.  
  21094. $DRI2PROTO_PKG_ERRORS
  21095.  
  21096. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  21097. installed software in a non-standard prefix.
  21098.  
  21099. Alternatively, you may set the environment variables DRI2PROTO_CFLAGS
  21100. and DRI2PROTO_LIBS to avoid the need to call pkg-config.
  21101. See the pkg-config man page for more details." "$LINENO" 5
  21102. elif test $pkg_failed = untried; then
  21103.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21104. $as_echo "no" >&6; }
  21105.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21106. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21107. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  21108. is in your PATH or set the PKG_CONFIG environment variable to the full
  21109. path to pkg-config.
  21110.  
  21111. Alternatively, you may set the environment variables DRI2PROTO_CFLAGS
  21112. and DRI2PROTO_LIBS to avoid the need to call pkg-config.
  21113. See the pkg-config man page for more details.
  21114.  
  21115. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  21116. See \`config.log' for more details" "$LINENO" 5; }
  21117. else
  21118.         DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS
  21119.         DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS
  21120.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21121. $as_echo "yes" >&6; }
  21122.  
  21123. fi
  21124.         GL_PC_REQ_PRIV="$GL_PC_REQ_PRIV libdrm >= $LIBDRM_REQUIRED"
  21125.     fi
  21126.  
  21127.     # find the DRI deps for libGL
  21128.     dri_modules="x11 xext xdamage xfixes x11-xcb xcb-glx >= 1.8.1 xcb-dri2 >= 1.8"
  21129.  
  21130.     # add xf86vidmode if available
  21131.  
  21132. pkg_failed=no
  21133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VIDMODE" >&5
  21134. $as_echo_n "checking for XF86VIDMODE... " >&6; }
  21135.  
  21136. if test -n "$XF86VIDMODE_CFLAGS"; then
  21137.     pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS"
  21138.  elif test -n "$PKG_CONFIG"; then
  21139.     if test -n "$PKG_CONFIG" && \
  21140.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
  21141.   ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
  21142.   ac_status=$?
  21143.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21144.   test $ac_status = 0; }; then
  21145.   pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm" 2>/dev/null`
  21146.                       test "x$?" != "x0" && pkg_failed=yes
  21147. else
  21148.   pkg_failed=yes
  21149. fi
  21150.  else
  21151.     pkg_failed=untried
  21152. fi
  21153. if test -n "$XF86VIDMODE_LIBS"; then
  21154.     pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS"
  21155.  elif test -n "$PKG_CONFIG"; then
  21156.     if test -n "$PKG_CONFIG" && \
  21157.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
  21158.   ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
  21159.   ac_status=$?
  21160.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21161.   test $ac_status = 0; }; then
  21162.   pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "xxf86vm" 2>/dev/null`
  21163.                       test "x$?" != "x0" && pkg_failed=yes
  21164. else
  21165.   pkg_failed=yes
  21166. fi
  21167.  else
  21168.     pkg_failed=untried
  21169. fi
  21170.  
  21171.  
  21172.  
  21173. if test $pkg_failed = yes; then
  21174.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21175. $as_echo "no" >&6; }
  21176.  
  21177. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21178.         _pkg_short_errors_supported=yes
  21179. else
  21180.         _pkg_short_errors_supported=no
  21181. fi
  21182.         if test $_pkg_short_errors_supported = yes; then
  21183.                 XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86vm" 2>&1`
  21184.         else
  21185.                 XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86vm" 2>&1`
  21186.         fi
  21187.         # Put the nasty error message in config.log where it belongs
  21188.         echo "$XF86VIDMODE_PKG_ERRORS" >&5
  21189.  
  21190.         HAVE_XF86VIDMODE=no
  21191. elif test $pkg_failed = untried; then
  21192.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21193. $as_echo "no" >&6; }
  21194.         HAVE_XF86VIDMODE=no
  21195. else
  21196.         XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS
  21197.         XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS
  21198.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21199. $as_echo "yes" >&6; }
  21200.         HAVE_XF86VIDMODE=yes
  21201. fi
  21202.     if test "$HAVE_XF86VIDMODE" = yes ; then
  21203.         dri_modules="$dri_modules xxf86vm"
  21204.     fi
  21205.  
  21206.  
  21207. pkg_failed=no
  21208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRIGL" >&5
  21209. $as_echo_n "checking for DRIGL... " >&6; }
  21210.  
  21211. if test -n "$DRIGL_CFLAGS"; then
  21212.     pkg_cv_DRIGL_CFLAGS="$DRIGL_CFLAGS"
  21213.  elif test -n "$PKG_CONFIG"; then
  21214.     if test -n "$PKG_CONFIG" && \
  21215.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$dri_modules\""; } >&5
  21216.   ($PKG_CONFIG --exists --print-errors "$dri_modules") 2>&5
  21217.   ac_status=$?
  21218.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21219.   test $ac_status = 0; }; then
  21220.   pkg_cv_DRIGL_CFLAGS=`$PKG_CONFIG --cflags "$dri_modules" 2>/dev/null`
  21221.                       test "x$?" != "x0" && pkg_failed=yes
  21222. else
  21223.   pkg_failed=yes
  21224. fi
  21225.  else
  21226.     pkg_failed=untried
  21227. fi
  21228. if test -n "$DRIGL_LIBS"; then
  21229.     pkg_cv_DRIGL_LIBS="$DRIGL_LIBS"
  21230.  elif test -n "$PKG_CONFIG"; then
  21231.     if test -n "$PKG_CONFIG" && \
  21232.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$dri_modules\""; } >&5
  21233.   ($PKG_CONFIG --exists --print-errors "$dri_modules") 2>&5
  21234.   ac_status=$?
  21235.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21236.   test $ac_status = 0; }; then
  21237.   pkg_cv_DRIGL_LIBS=`$PKG_CONFIG --libs "$dri_modules" 2>/dev/null`
  21238.                       test "x$?" != "x0" && pkg_failed=yes
  21239. else
  21240.   pkg_failed=yes
  21241. fi
  21242.  else
  21243.     pkg_failed=untried
  21244. fi
  21245.  
  21246.  
  21247.  
  21248. if test $pkg_failed = yes; then
  21249.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21250. $as_echo "no" >&6; }
  21251.  
  21252. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21253.         _pkg_short_errors_supported=yes
  21254. else
  21255.         _pkg_short_errors_supported=no
  21256. fi
  21257.         if test $_pkg_short_errors_supported = yes; then
  21258.                 DRIGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$dri_modules" 2>&1`
  21259.         else
  21260.                 DRIGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$dri_modules" 2>&1`
  21261.         fi
  21262.         # Put the nasty error message in config.log where it belongs
  21263.         echo "$DRIGL_PKG_ERRORS" >&5
  21264.  
  21265.         as_fn_error $? "Package requirements ($dri_modules) were not met:
  21266.  
  21267. $DRIGL_PKG_ERRORS
  21268.  
  21269. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  21270. installed software in a non-standard prefix.
  21271.  
  21272. Alternatively, you may set the environment variables DRIGL_CFLAGS
  21273. and DRIGL_LIBS to avoid the need to call pkg-config.
  21274. See the pkg-config man page for more details." "$LINENO" 5
  21275. elif test $pkg_failed = untried; then
  21276.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21277. $as_echo "no" >&6; }
  21278.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21279. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21280. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  21281. is in your PATH or set the PKG_CONFIG environment variable to the full
  21282. path to pkg-config.
  21283.  
  21284. Alternatively, you may set the environment variables DRIGL_CFLAGS
  21285. and DRIGL_LIBS to avoid the need to call pkg-config.
  21286. See the pkg-config man page for more details.
  21287.  
  21288. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  21289. See \`config.log' for more details" "$LINENO" 5; }
  21290. else
  21291.         DRIGL_CFLAGS=$pkg_cv_DRIGL_CFLAGS
  21292.         DRIGL_LIBS=$pkg_cv_DRIGL_LIBS
  21293.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21294. $as_echo "yes" >&6; }
  21295.  
  21296. fi
  21297.     GL_PC_REQ_PRIV="$GL_PC_REQ_PRIV $dri_modules"
  21298.     X11_INCLUDES="$X11_INCLUDES $DRIGL_CFLAGS"
  21299.     GL_LIB_DEPS="$DRIGL_LIBS"
  21300.  
  21301.     # need DRM libs, $PTHREAD_LIBS, etc.
  21302.     GL_LIB_DEPS="$GL_LIB_DEPS $LIBDRM_LIBS -lm $PTHREAD_LIBS $DLOPEN_LIBS"
  21303.     GL_PC_LIB_PRIV="-lm $PTHREAD_LIBS $DLOPEN_LIBS"
  21304.     ;;
  21305. esac
  21306.  
  21307. # This is outside the case (above) so that it is invoked even for non-GLX
  21308. # builds.
  21309.  if test "x$HAVE_XF86VIDMODE" = xyes; then
  21310.   HAVE_XF86VIDMODE_TRUE=
  21311.   HAVE_XF86VIDMODE_FALSE='#'
  21312. else
  21313.   HAVE_XF86VIDMODE_TRUE='#'
  21314.   HAVE_XF86VIDMODE_FALSE=
  21315. fi
  21316.  
  21317.  
  21318. GLESv1_CM_LIB_DEPS="$LIBDRM_LIBS -lm $PTHREAD_LIBS $DLOPEN_LIBS"
  21319. GLESv1_CM_PC_LIB_PRIV="-lm $PTHREAD_LIBS $DLOPEN_LIBS"
  21320. GLESv2_LIB_DEPS="$LIBDRM_LIBS -lm $PTHREAD_LIBS $DLOPEN_LIBS"
  21321. GLESv2_PC_LIB_PRIV="-lm $PTHREAD_LIBS $DLOPEN_LIBS"
  21322.  
  21323.  
  21324.  
  21325.  
  21326.  
  21327.  
  21328.  
  21329.  
  21330.  
  21331.  
  21332.  
  21333.  
  21334. DRI_LIB_DEPS="\$(top_builddir)/src/mesa/libdricore/libdricore${VERSION}.la"
  21335.  
  21336.  
  21337.  
  21338. case "x$enable_glx$enable_xlib_glx" in
  21339. xyesyes)
  21340.     DEFINES="$DEFINES -DUSE_XSHM"
  21341.     ;;
  21342. xyesno)
  21343.     DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING"
  21344.     if test "x$driglx_direct" = xyes; then
  21345.         DEFINES="$DEFINES -DGLX_DIRECT_RENDERING"
  21346.     fi
  21347.     ;;
  21348. esac
  21349.  
  21350.  
  21351. # Check whether --enable-glx-tls was given.
  21352. if test "${enable_glx_tls+set}" = set; then :
  21353.   enableval=$enable_glx_tls; GLX_USE_TLS="$enableval"
  21354. else
  21355.   GLX_USE_TLS=no
  21356. fi
  21357.  
  21358. GLX_TLS=${GLX_USE_TLS}
  21359.  
  21360.  
  21361. if test "x$GLX_USE_TLS" = xyes -a "x$ax_pthread_ok" = xyes; then :
  21362.   DEFINES="${DEFINES} -DGLX_USE_TLS -DHAVE_PTHREAD"
  21363. fi
  21364.  
  21365.  
  21366. # Check whether --with-dri-driverdir was given.
  21367. if test "${with_dri_driverdir+set}" = set; then :
  21368.   withval=$with_dri_driverdir; DRI_DRIVER_INSTALL_DIR="$withval"
  21369. else
  21370.   DRI_DRIVER_INSTALL_DIR='${libdir}/dri'
  21371. fi
  21372.  
  21373.  
  21374.  
  21375. # Check whether --with-dri-searchpath was given.
  21376. if test "${with_dri_searchpath+set}" = set; then :
  21377.   withval=$with_dri_searchpath; DRI_DRIVER_SEARCH_DIR="$withval"
  21378. else
  21379.   DRI_DRIVER_SEARCH_DIR='${DRI_DRIVER_INSTALL_DIR}'
  21380. fi
  21381.  
  21382.  
  21383.  
  21384. # Check whether --with-dri-drivers was given.
  21385. if test "${with_dri_drivers+set}" = set; then :
  21386.   withval=$with_dri_drivers; with_dri_drivers="$withval"
  21387. else
  21388.   with_dri_drivers=yes
  21389. fi
  21390.  
  21391. if test "x$with_dri_drivers" = x; then
  21392.     with_dri_drivers=no
  21393. fi
  21394.  
  21395. DRI_DIRS=""
  21396. case "$with_dri_drivers" in
  21397. no) ;;
  21398. yes)
  21399.     # classic DRI drivers
  21400.     if test "x$enable_opengl" = xyes; then
  21401.         DRI_DIRS="yes"
  21402.     fi
  21403.     ;;
  21404. *)
  21405.     # verify the requested driver directories exist
  21406.     dri_drivers=`IFS=', '; echo $with_dri_drivers`
  21407.     for driver in $dri_drivers; do
  21408.         test -d "$srcdir/src/mesa/drivers/dri/$driver" || \
  21409.             as_fn_error $? "DRI driver directory '$driver' does not exist" "$LINENO" 5
  21410.     done
  21411.     DRI_DIRS="$dri_drivers"
  21412.     if test -n "$DRI_DIRS" -a "x$enable_opengl" != xyes; then
  21413.         as_fn_error $? "--with-dri-drivers requires OpenGL" "$LINENO" 5
  21414.     fi
  21415.     ;;
  21416. esac
  21417.  
  21418. if test "x$enable_dri" = xyes; then
  21419.     # Platform specific settings and drivers to build
  21420.     case "$host_os" in
  21421.     linux*)
  21422.         DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1"
  21423.         DEFINES="$DEFINES -DHAVE_ALIAS"
  21424.  
  21425.         case "$host_cpu" in
  21426.         x86_64|amd64)
  21427.             if test "x$DRI_DIRS" = "xyes"; then
  21428.                 DRI_DIRS="i915 i965 nouveau r200 radeon swrast"
  21429.             fi
  21430.             ;;
  21431.         powerpc*)
  21432.             # Build only the drivers for cards that exist on PowerPC.
  21433.             if test "x$DRI_DIRS" = "xyes"; then
  21434.                 DRI_DIRS="r200 radeon swrast"
  21435.             fi
  21436.             ;;
  21437.         sparc*)
  21438.             # Build only the drivers for cards that exist on sparc
  21439.             if test "x$DRI_DIRS" = "xyes"; then
  21440.                 DRI_DIRS="r200 radeon swrast"
  21441.             fi
  21442.             ;;
  21443.         esac
  21444.         ;;
  21445.     freebsd* | dragonfly* | *netbsd* | openbsd*)
  21446.         DEFINES="$DEFINES -DHAVE_PTHREAD -DUSE_EXTERNAL_DXTN_LIB=1"
  21447.         DEFINES="$DEFINES -DHAVE_ALIAS"
  21448.  
  21449.         if test "x$DRI_DIRS" = "xyes"; then
  21450.             DRI_DIRS="i915 i965 nouveau r200 radeon swrast"
  21451.         fi
  21452.         ;;
  21453.     gnu*)
  21454.         DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1"
  21455.         DEFINES="$DEFINES -DHAVE_ALIAS"
  21456.         ;;
  21457.     solaris*)
  21458.         DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1"
  21459.         ;;
  21460.     cygwin*)
  21461.         DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1"
  21462.         if test "x$DRI_DIRS" = "xyes"; then
  21463.             DRI_DIRS="swrast"
  21464.         fi
  21465.         ;;
  21466.     esac
  21467.  
  21468.     # default drivers
  21469.     if test "x$DRI_DIRS" = "xyes"; then
  21470.         DRI_DIRS="i915 i965 nouveau r200 radeon swrast"
  21471.     fi
  21472.  
  21473.     DRI_DIRS=`echo "$DRI_DIRS" | $SED 's/  */ /g'`
  21474.  
  21475.     # Check for expat
  21476.     EXPAT_INCLUDES=""
  21477.     EXPAT_LIB=-lexpat
  21478.  
  21479. # Check whether --with-expat was given.
  21480. if test "${with_expat+set}" = set; then :
  21481.   withval=$with_expat;
  21482.         EXPAT_INCLUDES="-I$withval/include"
  21483.         CPPFLAGS="$CPPFLAGS $EXPAT_INCLUDES"
  21484.         LDFLAGS="$LDFLAGS -L$withval/$LIB_DIR"
  21485.         EXPAT_LIB="-L$withval/$LIB_DIR -lexpat"
  21486.  
  21487. fi
  21488.  
  21489.     ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  21490. if test "x$ac_cv_header_expat_h" = xyes; then :
  21491.  
  21492. else
  21493.   as_fn_error $? "Expat required for DRI." "$LINENO" 5
  21494. fi
  21495.  
  21496.  
  21497.     save_LIBS="$LIBS"
  21498.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  21499. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  21500. if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
  21501.   $as_echo_n "(cached) " >&6
  21502. else
  21503.   ac_check_lib_save_LIBS=$LIBS
  21504. LIBS="-lexpat  $LIBS"
  21505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21506. /* end confdefs.h.  */
  21507.  
  21508. /* Override any GCC internal prototype to avoid an error.
  21509.    Use char because int might match the return type of a GCC
  21510.    builtin and then its argument prototype would still apply.  */
  21511. #ifdef __cplusplus
  21512. extern "C"
  21513. #endif
  21514. char XML_ParserCreate ();
  21515. int
  21516. main ()
  21517. {
  21518. return XML_ParserCreate ();
  21519.   ;
  21520.   return 0;
  21521. }
  21522. _ACEOF
  21523. if ac_fn_c_try_link "$LINENO"; then :
  21524.   ac_cv_lib_expat_XML_ParserCreate=yes
  21525. else
  21526.   ac_cv_lib_expat_XML_ParserCreate=no
  21527. fi
  21528. rm -f core conftest.err conftest.$ac_objext \
  21529.     conftest$ac_exeext conftest.$ac_ext
  21530. LIBS=$ac_check_lib_save_LIBS
  21531. fi
  21532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  21533. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  21534. if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
  21535.   cat >>confdefs.h <<_ACEOF
  21536. #define HAVE_LIBEXPAT 1
  21537. _ACEOF
  21538.  
  21539.   LIBS="-lexpat $LIBS"
  21540.  
  21541. else
  21542.   as_fn_error $? "Expat required for DRI." "$LINENO" 5
  21543. fi
  21544.  
  21545.     LIBS="$save_LIBS"
  21546.  
  21547.     # If we are building any DRI driver other than swrast.
  21548.     if test -n "$DRI_DIRS" -a x"$DRI_DIRS" != xswrast; then
  21549.         # ... libdrm is required
  21550.         if test "x$have_libdrm" != xyes; then
  21551.             as_fn_error $? "DRI drivers requires libdrm >= $LIBDRM_REQUIRED" "$LINENO" 5
  21552.         fi
  21553.         # ... and build dricommon
  21554.         HAVE_COMMON_DRI=yes
  21555.     fi
  21556.  
  21557.     # put all the necessary libs together
  21558.     DRI_LIB_DEPS="$DRI_LIB_DEPS $SELINUX_LIBS $LIBDRM_LIBS $EXPAT_LIB -lm $PTHREAD_LIBS $DLOPEN_LIBS"
  21559.     GALLIUM_DRI_LIB_DEPS="$GALLIUM_DRI_LIB_DEPS $SELINUX_LIBS $LIBDRM_LIBS $EXPAT_LIB -lm $CLOCK_LIB $PTHREAD_LIBS $DLOPEN_LIBS"
  21560. fi
  21561.  if test -n "$DRI_DIRS"; then
  21562.   NEED_LIBDRICORE_TRUE=
  21563.   NEED_LIBDRICORE_FALSE='#'
  21564. else
  21565.   NEED_LIBDRICORE_TRUE='#'
  21566.   NEED_LIBDRICORE_FALSE=
  21567. fi
  21568.  
  21569.  
  21570.  
  21571.  
  21572.  
  21573. case $DRI_DIRS in
  21574. *i915*|*i965*)
  21575.  
  21576. pkg_failed=no
  21577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INTEL" >&5
  21578. $as_echo_n "checking for INTEL... " >&6; }
  21579.  
  21580. if test -n "$INTEL_CFLAGS"; then
  21581.     pkg_cv_INTEL_CFLAGS="$INTEL_CFLAGS"
  21582.  elif test -n "$PKG_CONFIG"; then
  21583.     if test -n "$PKG_CONFIG" && \
  21584.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$LIBDRM_INTEL_REQUIRED\""; } >&5
  21585.   ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $LIBDRM_INTEL_REQUIRED") 2>&5
  21586.   ac_status=$?
  21587.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21588.   test $ac_status = 0; }; then
  21589.   pkg_cv_INTEL_CFLAGS=`$PKG_CONFIG --cflags "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>/dev/null`
  21590.                       test "x$?" != "x0" && pkg_failed=yes
  21591. else
  21592.   pkg_failed=yes
  21593. fi
  21594.  else
  21595.     pkg_failed=untried
  21596. fi
  21597. if test -n "$INTEL_LIBS"; then
  21598.     pkg_cv_INTEL_LIBS="$INTEL_LIBS"
  21599.  elif test -n "$PKG_CONFIG"; then
  21600.     if test -n "$PKG_CONFIG" && \
  21601.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$LIBDRM_INTEL_REQUIRED\""; } >&5
  21602.   ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $LIBDRM_INTEL_REQUIRED") 2>&5
  21603.   ac_status=$?
  21604.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21605.   test $ac_status = 0; }; then
  21606.   pkg_cv_INTEL_LIBS=`$PKG_CONFIG --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>/dev/null`
  21607.                       test "x$?" != "x0" && pkg_failed=yes
  21608. else
  21609.   pkg_failed=yes
  21610. fi
  21611.  else
  21612.     pkg_failed=untried
  21613. fi
  21614.  
  21615.  
  21616.  
  21617. if test $pkg_failed = yes; then
  21618.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21619. $as_echo "no" >&6; }
  21620.  
  21621. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21622.         _pkg_short_errors_supported=yes
  21623. else
  21624.         _pkg_short_errors_supported=no
  21625. fi
  21626.         if test $_pkg_short_errors_supported = yes; then
  21627.                 INTEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>&1`
  21628.         else
  21629.                 INTEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>&1`
  21630.         fi
  21631.         # Put the nasty error message in config.log where it belongs
  21632.         echo "$INTEL_PKG_ERRORS" >&5
  21633.  
  21634.         as_fn_error $? "Package requirements (libdrm_intel >= $LIBDRM_INTEL_REQUIRED) were not met:
  21635.  
  21636. $INTEL_PKG_ERRORS
  21637.  
  21638. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  21639. installed software in a non-standard prefix.
  21640.  
  21641. Alternatively, you may set the environment variables INTEL_CFLAGS
  21642. and INTEL_LIBS to avoid the need to call pkg-config.
  21643. See the pkg-config man page for more details." "$LINENO" 5
  21644. elif test $pkg_failed = untried; then
  21645.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21646. $as_echo "no" >&6; }
  21647.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21648. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21649. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  21650. is in your PATH or set the PKG_CONFIG environment variable to the full
  21651. path to pkg-config.
  21652.  
  21653. Alternatively, you may set the environment variables INTEL_CFLAGS
  21654. and INTEL_LIBS to avoid the need to call pkg-config.
  21655. See the pkg-config man page for more details.
  21656.  
  21657. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  21658. See \`config.log' for more details" "$LINENO" 5; }
  21659. else
  21660.         INTEL_CFLAGS=$pkg_cv_INTEL_CFLAGS
  21661.         INTEL_LIBS=$pkg_cv_INTEL_LIBS
  21662.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21663. $as_echo "yes" >&6; }
  21664.  
  21665. fi
  21666.  
  21667.     for d in $(echo $DRI_DIRS | sed 's/,/ /g'); do
  21668.         case $d in
  21669.         i915)
  21670.             HAVE_I915_DRI=yes;
  21671.             ;;
  21672.         i965)
  21673.             HAVE_I965_DRI=yes;
  21674.             ;;
  21675.         esac
  21676.     done
  21677.  
  21678.     ;;
  21679. esac
  21680.  
  21681. case $DRI_DIRS in
  21682. *nouveau*)
  21683.  
  21684. pkg_failed=no
  21685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NOUVEAU" >&5
  21686. $as_echo_n "checking for NOUVEAU... " >&6; }
  21687.  
  21688. if test -n "$NOUVEAU_CFLAGS"; then
  21689.     pkg_cv_NOUVEAU_CFLAGS="$NOUVEAU_CFLAGS"
  21690.  elif test -n "$PKG_CONFIG"; then
  21691.     if test -n "$PKG_CONFIG" && \
  21692.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= \$LIBDRM_NVVIEUX_REQUIRED\""; } >&5
  21693.   ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= $LIBDRM_NVVIEUX_REQUIRED") 2>&5
  21694.   ac_status=$?
  21695.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21696.   test $ac_status = 0; }; then
  21697.   pkg_cv_NOUVEAU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_nouveau >= $LIBDRM_NVVIEUX_REQUIRED" 2>/dev/null`
  21698.                       test "x$?" != "x0" && pkg_failed=yes
  21699. else
  21700.   pkg_failed=yes
  21701. fi
  21702.  else
  21703.     pkg_failed=untried
  21704. fi
  21705. if test -n "$NOUVEAU_LIBS"; then
  21706.     pkg_cv_NOUVEAU_LIBS="$NOUVEAU_LIBS"
  21707.  elif test -n "$PKG_CONFIG"; then
  21708.     if test -n "$PKG_CONFIG" && \
  21709.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= \$LIBDRM_NVVIEUX_REQUIRED\""; } >&5
  21710.   ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= $LIBDRM_NVVIEUX_REQUIRED") 2>&5
  21711.   ac_status=$?
  21712.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21713.   test $ac_status = 0; }; then
  21714.   pkg_cv_NOUVEAU_LIBS=`$PKG_CONFIG --libs "libdrm_nouveau >= $LIBDRM_NVVIEUX_REQUIRED" 2>/dev/null`
  21715.                       test "x$?" != "x0" && pkg_failed=yes
  21716. else
  21717.   pkg_failed=yes
  21718. fi
  21719.  else
  21720.     pkg_failed=untried
  21721. fi
  21722.  
  21723.  
  21724.  
  21725. if test $pkg_failed = yes; then
  21726.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21727. $as_echo "no" >&6; }
  21728.  
  21729. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21730.         _pkg_short_errors_supported=yes
  21731. else
  21732.         _pkg_short_errors_supported=no
  21733. fi
  21734.         if test $_pkg_short_errors_supported = yes; then
  21735.                 NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_nouveau >= $LIBDRM_NVVIEUX_REQUIRED" 2>&1`
  21736.         else
  21737.                 NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_nouveau >= $LIBDRM_NVVIEUX_REQUIRED" 2>&1`
  21738.         fi
  21739.         # Put the nasty error message in config.log where it belongs
  21740.         echo "$NOUVEAU_PKG_ERRORS" >&5
  21741.  
  21742.         as_fn_error $? "Package requirements (libdrm_nouveau >= $LIBDRM_NVVIEUX_REQUIRED) were not met:
  21743.  
  21744. $NOUVEAU_PKG_ERRORS
  21745.  
  21746. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  21747. installed software in a non-standard prefix.
  21748.  
  21749. Alternatively, you may set the environment variables NOUVEAU_CFLAGS
  21750. and NOUVEAU_LIBS to avoid the need to call pkg-config.
  21751. See the pkg-config man page for more details." "$LINENO" 5
  21752. elif test $pkg_failed = untried; then
  21753.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21754. $as_echo "no" >&6; }
  21755.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21756. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21757. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  21758. is in your PATH or set the PKG_CONFIG environment variable to the full
  21759. path to pkg-config.
  21760.  
  21761. Alternatively, you may set the environment variables NOUVEAU_CFLAGS
  21762. and NOUVEAU_LIBS to avoid the need to call pkg-config.
  21763. See the pkg-config man page for more details.
  21764.  
  21765. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  21766. See \`config.log' for more details" "$LINENO" 5; }
  21767. else
  21768.         NOUVEAU_CFLAGS=$pkg_cv_NOUVEAU_CFLAGS
  21769.         NOUVEAU_LIBS=$pkg_cv_NOUVEAU_LIBS
  21770.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21771. $as_echo "yes" >&6; }
  21772.  
  21773. fi
  21774.     HAVE_NOUVEAU_DRI=yes;
  21775.     ;;
  21776. esac
  21777.  
  21778. case $DRI_DIRS in
  21779. *radeon*|*r200*)
  21780.  
  21781. pkg_failed=no
  21782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RADEON" >&5
  21783. $as_echo_n "checking for RADEON... " >&6; }
  21784.  
  21785. if test -n "$RADEON_CFLAGS"; then
  21786.     pkg_cv_RADEON_CFLAGS="$RADEON_CFLAGS"
  21787.  elif test -n "$PKG_CONFIG"; then
  21788.     if test -n "$PKG_CONFIG" && \
  21789.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  21790.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  21791.   ac_status=$?
  21792.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21793.   test $ac_status = 0; }; then
  21794.   pkg_cv_RADEON_CFLAGS=`$PKG_CONFIG --cflags "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  21795.                       test "x$?" != "x0" && pkg_failed=yes
  21796. else
  21797.   pkg_failed=yes
  21798. fi
  21799.  else
  21800.     pkg_failed=untried
  21801. fi
  21802. if test -n "$RADEON_LIBS"; then
  21803.     pkg_cv_RADEON_LIBS="$RADEON_LIBS"
  21804.  elif test -n "$PKG_CONFIG"; then
  21805.     if test -n "$PKG_CONFIG" && \
  21806.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  21807.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  21808.   ac_status=$?
  21809.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21810.   test $ac_status = 0; }; then
  21811.   pkg_cv_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  21812.                       test "x$?" != "x0" && pkg_failed=yes
  21813. else
  21814.   pkg_failed=yes
  21815. fi
  21816.  else
  21817.     pkg_failed=untried
  21818. fi
  21819.  
  21820.  
  21821.  
  21822. if test $pkg_failed = yes; then
  21823.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21824. $as_echo "no" >&6; }
  21825.  
  21826. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21827.         _pkg_short_errors_supported=yes
  21828. else
  21829.         _pkg_short_errors_supported=no
  21830. fi
  21831.         if test $_pkg_short_errors_supported = yes; then
  21832.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  21833.         else
  21834.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  21835.         fi
  21836.         # Put the nasty error message in config.log where it belongs
  21837.         echo "$RADEON_PKG_ERRORS" >&5
  21838.  
  21839.         as_fn_error $? "Package requirements (libdrm_radeon >= $LIBDRM_RADEON_REQUIRED) were not met:
  21840.  
  21841. $RADEON_PKG_ERRORS
  21842.  
  21843. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  21844. installed software in a non-standard prefix.
  21845.  
  21846. Alternatively, you may set the environment variables RADEON_CFLAGS
  21847. and RADEON_LIBS to avoid the need to call pkg-config.
  21848. See the pkg-config man page for more details." "$LINENO" 5
  21849. elif test $pkg_failed = untried; then
  21850.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21851. $as_echo "no" >&6; }
  21852.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21853. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21854. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  21855. is in your PATH or set the PKG_CONFIG environment variable to the full
  21856. path to pkg-config.
  21857.  
  21858. Alternatively, you may set the environment variables RADEON_CFLAGS
  21859. and RADEON_LIBS to avoid the need to call pkg-config.
  21860. See the pkg-config man page for more details.
  21861.  
  21862. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  21863. See \`config.log' for more details" "$LINENO" 5; }
  21864. else
  21865.         RADEON_CFLAGS=$pkg_cv_RADEON_CFLAGS
  21866.         RADEON_LIBS=$pkg_cv_RADEON_LIBS
  21867.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21868. $as_echo "yes" >&6; }
  21869.  
  21870. fi
  21871.  
  21872.     for d in $(echo $DRI_DIRS | sed 's/,/ /g'); do
  21873.         case $d in
  21874.         radeon)
  21875.             HAVE_RADEON_DRI=yes;
  21876.             ;;
  21877.         r200)
  21878.             HAVE_R200_DRI=yes;
  21879.             ;;
  21880.         esac
  21881.     done
  21882.  
  21883.     ;;
  21884. esac
  21885.  
  21886. case $DRI_DIRS in
  21887. *swrast*)
  21888.     HAVE_SWRAST_DRI=yes;
  21889.     ;;
  21890. esac
  21891.  
  21892.  
  21893.  
  21894. # Check whether --with-osmesa-bits was given.
  21895. if test "${with_osmesa_bits+set}" = set; then :
  21896.   withval=$with_osmesa_bits; osmesa_bits="$withval"
  21897. else
  21898.   osmesa_bits=8
  21899. fi
  21900.  
  21901. if test "x$osmesa_bits" != x8; then
  21902.     if test "x$enable_dri" = xyes -o "x$enable_glx" = xyes; then
  21903.         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring OSMesa channel bits because of non-OSMesa driver" >&5
  21904. $as_echo "$as_me: WARNING: Ignoring OSMesa channel bits because of non-OSMesa driver" >&2;}
  21905.         osmesa_bits=8
  21906.     fi
  21907. fi
  21908. case "x$osmesa_bits" in
  21909. x8)
  21910.     OSMESA_LIB="${OSMESA_LIB}"
  21911.     ;;
  21912. x16|x32)
  21913.     OSMESA_LIB="${OSMESA_LIB}$osmesa_bits"
  21914.     DEFINES="$DEFINES -DCHAN_BITS=$osmesa_bits -DDEFAULT_SOFTWARE_DEPTH_BITS=31"
  21915.     ;;
  21916. *)
  21917.     as_fn_error $? "OSMesa bits '$osmesa_bits' is not a valid option" "$LINENO" 5
  21918.     ;;
  21919. esac
  21920.  
  21921. if test "x$enable_osmesa" = xyes -o "x$enable_gallium_osmesa" = xyes; then
  21922.     # only link libraries with osmesa if shared
  21923.     if test "$enable_static" = no; then
  21924.         OSMESA_LIB_DEPS="-lm $PTHREAD_LIBS $SELINUX_LIBS $DLOPEN_LIBS"
  21925.     else
  21926.         OSMESA_LIB_DEPS=""
  21927.     fi
  21928.     OSMESA_MESA_DEPS=""
  21929.     OSMESA_PC_LIB_PRIV="-lm $PTHREAD_LIBS $SELINUX_LIBS $DLOPEN_LIBS"
  21930. fi
  21931.  
  21932.  
  21933.  
  21934.  
  21935.  
  21936.  
  21937. if test "x$enable_gbm" = xauto; then
  21938.     case "$with_egl_platforms" in
  21939.         *drm*)
  21940.             enable_gbm=yes ;;
  21941.          *)
  21942.             enable_gbm=no ;;
  21943.     esac
  21944. fi
  21945. if test "x$enable_gbm" = xyes; then
  21946.  
  21947. pkg_failed=no
  21948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
  21949. $as_echo_n "checking for LIBUDEV... " >&6; }
  21950.  
  21951. if test -n "$LIBUDEV_CFLAGS"; then
  21952.     pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
  21953.  elif test -n "$PKG_CONFIG"; then
  21954.     if test -n "$PKG_CONFIG" && \
  21955.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
  21956.   ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
  21957.   ac_status=$?
  21958.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21959.   test $ac_status = 0; }; then
  21960.   pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
  21961.                       test "x$?" != "x0" && pkg_failed=yes
  21962. else
  21963.   pkg_failed=yes
  21964. fi
  21965.  else
  21966.     pkg_failed=untried
  21967. fi
  21968. if test -n "$LIBUDEV_LIBS"; then
  21969.     pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
  21970.  elif test -n "$PKG_CONFIG"; then
  21971.     if test -n "$PKG_CONFIG" && \
  21972.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
  21973.   ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
  21974.   ac_status=$?
  21975.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21976.   test $ac_status = 0; }; then
  21977.   pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
  21978.                       test "x$?" != "x0" && pkg_failed=yes
  21979. else
  21980.   pkg_failed=yes
  21981. fi
  21982.  else
  21983.     pkg_failed=untried
  21984. fi
  21985.  
  21986.  
  21987.  
  21988. if test $pkg_failed = yes; then
  21989.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21990. $as_echo "no" >&6; }
  21991.  
  21992. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21993.         _pkg_short_errors_supported=yes
  21994. else
  21995.         _pkg_short_errors_supported=no
  21996. fi
  21997.         if test $_pkg_short_errors_supported = yes; then
  21998.                 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
  21999.         else
  22000.                 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
  22001.         fi
  22002.         # Put the nasty error message in config.log where it belongs
  22003.         echo "$LIBUDEV_PKG_ERRORS" >&5
  22004.  
  22005.         as_fn_error $? "gbm needs udev" "$LINENO" 5
  22006. elif test $pkg_failed = untried; then
  22007.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22008. $as_echo "no" >&6; }
  22009.         as_fn_error $? "gbm needs udev" "$LINENO" 5
  22010. else
  22011.         LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
  22012.         LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
  22013.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22014. $as_echo "yes" >&6; }
  22015.  
  22016. fi
  22017.  
  22018.     if test "x$enable_dri" = xyes; then
  22019.         GBM_BACKEND_DIRS="$GBM_BACKEND_DIRS dri"
  22020.         if test "x$enable_shared_glapi" = xno; then
  22021.             as_fn_error $? "gbm_dri requires --enable-shared-glapi" "$LINENO" 5
  22022.         fi
  22023.     fi
  22024. fi
  22025.  if test "x$enable_gbm" = xyes; then
  22026.   HAVE_GBM_TRUE=
  22027.   HAVE_GBM_FALSE='#'
  22028. else
  22029.   HAVE_GBM_TRUE='#'
  22030.   HAVE_GBM_FALSE=
  22031. fi
  22032.  
  22033. GBM_PC_REQ_PRIV="libudev"
  22034. GBM_PC_LIB_PRIV="$DLOPEN_LIBS"
  22035.  
  22036.  
  22037.  
  22038. EGL_CLIENT_APIS=""
  22039.  
  22040. if test "x$enable_egl" = xyes; then
  22041.     EGL_LIB_DEPS="$DLOPEN_LIBS $SELINUX_LIBS $PTHREAD_LIBS"
  22042.  
  22043.     ac_fn_c_check_func "$LINENO" "mincore" "ac_cv_func_mincore"
  22044. if test "x$ac_cv_func_mincore" = xyes; then :
  22045.   DEFINES="$DEFINES -DHAVE_MINCORE"
  22046. fi
  22047.  
  22048.  
  22049.     if test "$enable_static" != yes; then
  22050.         # build egl_glx when libGL is built
  22051.  
  22052. pkg_failed=no
  22053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
  22054. $as_echo_n "checking for LIBUDEV... " >&6; }
  22055.  
  22056. if test -n "$LIBUDEV_CFLAGS"; then
  22057.     pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
  22058.  elif test -n "$PKG_CONFIG"; then
  22059.     if test -n "$PKG_CONFIG" && \
  22060.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev > 150\""; } >&5
  22061.   ($PKG_CONFIG --exists --print-errors "libudev > 150") 2>&5
  22062.   ac_status=$?
  22063.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22064.   test $ac_status = 0; }; then
  22065.   pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev > 150" 2>/dev/null`
  22066.                       test "x$?" != "x0" && pkg_failed=yes
  22067. else
  22068.   pkg_failed=yes
  22069. fi
  22070.  else
  22071.     pkg_failed=untried
  22072. fi
  22073. if test -n "$LIBUDEV_LIBS"; then
  22074.     pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
  22075.  elif test -n "$PKG_CONFIG"; then
  22076.     if test -n "$PKG_CONFIG" && \
  22077.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev > 150\""; } >&5
  22078.   ($PKG_CONFIG --exists --print-errors "libudev > 150") 2>&5
  22079.   ac_status=$?
  22080.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22081.   test $ac_status = 0; }; then
  22082.   pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev > 150" 2>/dev/null`
  22083.                       test "x$?" != "x0" && pkg_failed=yes
  22084. else
  22085.   pkg_failed=yes
  22086. fi
  22087.  else
  22088.     pkg_failed=untried
  22089. fi
  22090.  
  22091.  
  22092.  
  22093. if test $pkg_failed = yes; then
  22094.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22095. $as_echo "no" >&6; }
  22096.  
  22097. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22098.         _pkg_short_errors_supported=yes
  22099. else
  22100.         _pkg_short_errors_supported=no
  22101. fi
  22102.         if test $_pkg_short_errors_supported = yes; then
  22103.                 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev > 150" 2>&1`
  22104.         else
  22105.                 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev > 150" 2>&1`
  22106.         fi
  22107.         # Put the nasty error message in config.log where it belongs
  22108.         echo "$LIBUDEV_PKG_ERRORS" >&5
  22109.  
  22110.         have_libudev=no
  22111. elif test $pkg_failed = untried; then
  22112.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22113. $as_echo "no" >&6; }
  22114.         have_libudev=no
  22115. else
  22116.         LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
  22117.         LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
  22118.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22119. $as_echo "yes" >&6; }
  22120.         have_libudev=yes
  22121. fi
  22122.         if test "$have_libudev" = yes; then
  22123.             DEFINES="$DEFINES -DHAVE_LIBUDEV"
  22124.         fi
  22125.  
  22126.         if test "x$enable_dri" = xyes; then
  22127.             HAVE_EGL_DRIVER_DRI2=1
  22128.         fi
  22129.  
  22130.     fi
  22131. fi
  22132.  if test "x$enable_egl" = xyes; then
  22133.   HAVE_EGL_TRUE=
  22134.   HAVE_EGL_FALSE='#'
  22135. else
  22136.   HAVE_EGL_TRUE='#'
  22137.   HAVE_EGL_FALSE=
  22138. fi
  22139.  
  22140.  
  22141.  
  22142. if test "x$enable_gallium_egl" = xyes; then
  22143.     if test "x$with_gallium_drivers" = x; then
  22144.         as_fn_error $? "cannot enable egl_gallium without Gallium" "$LINENO" 5
  22145.     fi
  22146.     if test "x$enable_egl" = xno; then
  22147.         as_fn_error $? "cannot enable egl_gallium without EGL" "$LINENO" 5
  22148.     fi
  22149.     if test "x$have_libdrm" != xyes; then
  22150.         as_fn_error $? "egl_gallium requires libdrm >= $LIBDRM_REQUIRED" "$LINENO" 5
  22151.     fi
  22152.  
  22153.     GALLIUM_STATE_TRACKERS_DIRS="egl $GALLIUM_STATE_TRACKERS_DIRS"
  22154.     GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS egl-static"
  22155. fi
  22156.  if test "x$enable_gallium_egl" = xyes; then
  22157.   HAVE_GALLIUM_EGL_TRUE=
  22158.   HAVE_GALLIUM_EGL_FALSE='#'
  22159. else
  22160.   HAVE_GALLIUM_EGL_TRUE='#'
  22161.   HAVE_GALLIUM_EGL_FALSE=
  22162. fi
  22163.  
  22164.  
  22165. if test "x$enable_gallium_gbm" = xauto; then
  22166.     case "$enable_gbm$enable_gallium_egl$enable_dri$with_egl_platforms" in
  22167.         yesyesyes*drm*)
  22168.             enable_gallium_gbm=yes ;;
  22169.          *)
  22170.             enable_gallium_gbm=no ;;
  22171.     esac
  22172. fi
  22173. if test "x$enable_gallium_gbm" = xyes; then
  22174.     if test "x$with_gallium_drivers" = x; then
  22175.         as_fn_error $? "cannot enable gbm_gallium without Gallium" "$LINENO" 5
  22176.     fi
  22177.     if test "x$enable_gbm" = xno; then
  22178.         as_fn_error $? "cannot enable gbm_gallium without gbm" "$LINENO" 5
  22179.     fi
  22180.     # gbm_gallium abuses DRI_LIB_DEPS to link.  Make sure it is set.
  22181.     if test "x$enable_dri" = xno; then
  22182.         as_fn_error $? "gbm_gallium requires --enable-dri to build" "$LINENO" 5
  22183.     fi
  22184.  
  22185.     GALLIUM_STATE_TRACKERS_DIRS="gbm $GALLIUM_STATE_TRACKERS_DIRS"
  22186.     GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS gbm"
  22187.     enable_gallium_loader=yes
  22188. fi
  22189.  if test "x$enable_gallium_gbm" = xyes; then
  22190.   HAVE_GALLIUM_GBM_TRUE=
  22191.   HAVE_GALLIUM_GBM_FALSE='#'
  22192. else
  22193.   HAVE_GALLIUM_GBM_TRUE='#'
  22194.   HAVE_GALLIUM_GBM_FALSE=
  22195. fi
  22196.  
  22197.  
  22198. if test "x$enable_xorg" = xyes; then
  22199.  
  22200. pkg_failed=no
  22201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
  22202. $as_echo_n "checking for XORG... " >&6; }
  22203.  
  22204. if test -n "$XORG_CFLAGS"; then
  22205.     pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
  22206.  elif test -n "$PKG_CONFIG"; then
  22207.     if test -n "$PKG_CONFIG" && \
  22208.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.0\""; } >&5
  22209.   ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.0") 2>&5
  22210.   ac_status=$?
  22211.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22212.   test $ac_status = 0; }; then
  22213.   pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6.0" 2>/dev/null`
  22214.                       test "x$?" != "x0" && pkg_failed=yes
  22215. else
  22216.   pkg_failed=yes
  22217. fi
  22218.  else
  22219.     pkg_failed=untried
  22220. fi
  22221. if test -n "$XORG_LIBS"; then
  22222.     pkg_cv_XORG_LIBS="$XORG_LIBS"
  22223.  elif test -n "$PKG_CONFIG"; then
  22224.     if test -n "$PKG_CONFIG" && \
  22225.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6.0\""; } >&5
  22226.   ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6.0") 2>&5
  22227.   ac_status=$?
  22228.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22229.   test $ac_status = 0; }; then
  22230.   pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6.0" 2>/dev/null`
  22231.                       test "x$?" != "x0" && pkg_failed=yes
  22232. else
  22233.   pkg_failed=yes
  22234. fi
  22235.  else
  22236.     pkg_failed=untried
  22237. fi
  22238.  
  22239.  
  22240.  
  22241. if test $pkg_failed = yes; then
  22242.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22243. $as_echo "no" >&6; }
  22244.  
  22245. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22246.         _pkg_short_errors_supported=yes
  22247. else
  22248.         _pkg_short_errors_supported=no
  22249. fi
  22250.         if test $_pkg_short_errors_supported = yes; then
  22251.                 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.6.0" 2>&1`
  22252.         else
  22253.                 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.6.0" 2>&1`
  22254.         fi
  22255.         # Put the nasty error message in config.log where it belongs
  22256.         echo "$XORG_PKG_ERRORS" >&5
  22257.  
  22258.         as_fn_error $? "Package requirements (xorg-server >= 1.6.0) were not met:
  22259.  
  22260. $XORG_PKG_ERRORS
  22261.  
  22262. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  22263. installed software in a non-standard prefix.
  22264.  
  22265. Alternatively, you may set the environment variables XORG_CFLAGS
  22266. and XORG_LIBS to avoid the need to call pkg-config.
  22267. See the pkg-config man page for more details." "$LINENO" 5
  22268. elif test $pkg_failed = untried; then
  22269.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22270. $as_echo "no" >&6; }
  22271.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22272. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22273. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  22274. is in your PATH or set the PKG_CONFIG environment variable to the full
  22275. path to pkg-config.
  22276.  
  22277. Alternatively, you may set the environment variables XORG_CFLAGS
  22278. and XORG_LIBS to avoid the need to call pkg-config.
  22279. See the pkg-config man page for more details.
  22280.  
  22281. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  22282. See \`config.log' for more details" "$LINENO" 5; }
  22283. else
  22284.         XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
  22285.         XORG_LIBS=$pkg_cv_XORG_LIBS
  22286.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22287. $as_echo "yes" >&6; }
  22288.  
  22289. fi
  22290.  
  22291. pkg_failed=no
  22292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_XORG" >&5
  22293. $as_echo_n "checking for LIBDRM_XORG... " >&6; }
  22294.  
  22295. if test -n "$LIBDRM_XORG_CFLAGS"; then
  22296.     pkg_cv_LIBDRM_XORG_CFLAGS="$LIBDRM_XORG_CFLAGS"
  22297.  elif test -n "$PKG_CONFIG"; then
  22298.     if test -n "$PKG_CONFIG" && \
  22299.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= \$LIBDRM_XORG_REQUIRED\""; } >&5
  22300.   ($PKG_CONFIG --exists --print-errors "libdrm >= $LIBDRM_XORG_REQUIRED") 2>&5
  22301.   ac_status=$?
  22302.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22303.   test $ac_status = 0; }; then
  22304.   pkg_cv_LIBDRM_XORG_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= $LIBDRM_XORG_REQUIRED" 2>/dev/null`
  22305.                       test "x$?" != "x0" && pkg_failed=yes
  22306. else
  22307.   pkg_failed=yes
  22308. fi
  22309.  else
  22310.     pkg_failed=untried
  22311. fi
  22312. if test -n "$LIBDRM_XORG_LIBS"; then
  22313.     pkg_cv_LIBDRM_XORG_LIBS="$LIBDRM_XORG_LIBS"
  22314.  elif test -n "$PKG_CONFIG"; then
  22315.     if test -n "$PKG_CONFIG" && \
  22316.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= \$LIBDRM_XORG_REQUIRED\""; } >&5
  22317.   ($PKG_CONFIG --exists --print-errors "libdrm >= $LIBDRM_XORG_REQUIRED") 2>&5
  22318.   ac_status=$?
  22319.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22320.   test $ac_status = 0; }; then
  22321.   pkg_cv_LIBDRM_XORG_LIBS=`$PKG_CONFIG --libs "libdrm >= $LIBDRM_XORG_REQUIRED" 2>/dev/null`
  22322.                       test "x$?" != "x0" && pkg_failed=yes
  22323. else
  22324.   pkg_failed=yes
  22325. fi
  22326.  else
  22327.     pkg_failed=untried
  22328. fi
  22329.  
  22330.  
  22331.  
  22332. if test $pkg_failed = yes; then
  22333.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22334. $as_echo "no" >&6; }
  22335.  
  22336. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22337.         _pkg_short_errors_supported=yes
  22338. else
  22339.         _pkg_short_errors_supported=no
  22340. fi
  22341.         if test $_pkg_short_errors_supported = yes; then
  22342.                 LIBDRM_XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= $LIBDRM_XORG_REQUIRED" 2>&1`
  22343.         else
  22344.                 LIBDRM_XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= $LIBDRM_XORG_REQUIRED" 2>&1`
  22345.         fi
  22346.         # Put the nasty error message in config.log where it belongs
  22347.         echo "$LIBDRM_XORG_PKG_ERRORS" >&5
  22348.  
  22349.         as_fn_error $? "Package requirements (libdrm >= $LIBDRM_XORG_REQUIRED) were not met:
  22350.  
  22351. $LIBDRM_XORG_PKG_ERRORS
  22352.  
  22353. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  22354. installed software in a non-standard prefix.
  22355.  
  22356. Alternatively, you may set the environment variables LIBDRM_XORG_CFLAGS
  22357. and LIBDRM_XORG_LIBS to avoid the need to call pkg-config.
  22358. See the pkg-config man page for more details." "$LINENO" 5
  22359. elif test $pkg_failed = untried; then
  22360.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22361. $as_echo "no" >&6; }
  22362.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22363. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22364. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  22365. is in your PATH or set the PKG_CONFIG environment variable to the full
  22366. path to pkg-config.
  22367.  
  22368. Alternatively, you may set the environment variables LIBDRM_XORG_CFLAGS
  22369. and LIBDRM_XORG_LIBS to avoid the need to call pkg-config.
  22370. See the pkg-config man page for more details.
  22371.  
  22372. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  22373. See \`config.log' for more details" "$LINENO" 5; }
  22374. else
  22375.         LIBDRM_XORG_CFLAGS=$pkg_cv_LIBDRM_XORG_CFLAGS
  22376.         LIBDRM_XORG_LIBS=$pkg_cv_LIBDRM_XORG_LIBS
  22377.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22378. $as_echo "yes" >&6; }
  22379.  
  22380. fi
  22381.  
  22382. pkg_failed=no
  22383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBKMS_XORG" >&5
  22384. $as_echo_n "checking for LIBKMS_XORG... " >&6; }
  22385.  
  22386. if test -n "$LIBKMS_XORG_CFLAGS"; then
  22387.     pkg_cv_LIBKMS_XORG_CFLAGS="$LIBKMS_XORG_CFLAGS"
  22388.  elif test -n "$PKG_CONFIG"; then
  22389.     if test -n "$PKG_CONFIG" && \
  22390.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libkms >= \$LIBKMS_XORG_REQUIRED\""; } >&5
  22391.   ($PKG_CONFIG --exists --print-errors "libkms >= $LIBKMS_XORG_REQUIRED") 2>&5
  22392.   ac_status=$?
  22393.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22394.   test $ac_status = 0; }; then
  22395.   pkg_cv_LIBKMS_XORG_CFLAGS=`$PKG_CONFIG --cflags "libkms >= $LIBKMS_XORG_REQUIRED" 2>/dev/null`
  22396.                       test "x$?" != "x0" && pkg_failed=yes
  22397. else
  22398.   pkg_failed=yes
  22399. fi
  22400.  else
  22401.     pkg_failed=untried
  22402. fi
  22403. if test -n "$LIBKMS_XORG_LIBS"; then
  22404.     pkg_cv_LIBKMS_XORG_LIBS="$LIBKMS_XORG_LIBS"
  22405.  elif test -n "$PKG_CONFIG"; then
  22406.     if test -n "$PKG_CONFIG" && \
  22407.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libkms >= \$LIBKMS_XORG_REQUIRED\""; } >&5
  22408.   ($PKG_CONFIG --exists --print-errors "libkms >= $LIBKMS_XORG_REQUIRED") 2>&5
  22409.   ac_status=$?
  22410.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22411.   test $ac_status = 0; }; then
  22412.   pkg_cv_LIBKMS_XORG_LIBS=`$PKG_CONFIG --libs "libkms >= $LIBKMS_XORG_REQUIRED" 2>/dev/null`
  22413.                       test "x$?" != "x0" && pkg_failed=yes
  22414. else
  22415.   pkg_failed=yes
  22416. fi
  22417.  else
  22418.     pkg_failed=untried
  22419. fi
  22420.  
  22421.  
  22422.  
  22423. if test $pkg_failed = yes; then
  22424.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22425. $as_echo "no" >&6; }
  22426.  
  22427. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22428.         _pkg_short_errors_supported=yes
  22429. else
  22430.         _pkg_short_errors_supported=no
  22431. fi
  22432.         if test $_pkg_short_errors_supported = yes; then
  22433.                 LIBKMS_XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libkms >= $LIBKMS_XORG_REQUIRED" 2>&1`
  22434.         else
  22435.                 LIBKMS_XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libkms >= $LIBKMS_XORG_REQUIRED" 2>&1`
  22436.         fi
  22437.         # Put the nasty error message in config.log where it belongs
  22438.         echo "$LIBKMS_XORG_PKG_ERRORS" >&5
  22439.  
  22440.         as_fn_error $? "Package requirements (libkms >= $LIBKMS_XORG_REQUIRED) were not met:
  22441.  
  22442. $LIBKMS_XORG_PKG_ERRORS
  22443.  
  22444. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  22445. installed software in a non-standard prefix.
  22446.  
  22447. Alternatively, you may set the environment variables LIBKMS_XORG_CFLAGS
  22448. and LIBKMS_XORG_LIBS to avoid the need to call pkg-config.
  22449. See the pkg-config man page for more details." "$LINENO" 5
  22450. elif test $pkg_failed = untried; then
  22451.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22452. $as_echo "no" >&6; }
  22453.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22454. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22455. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  22456. is in your PATH or set the PKG_CONFIG environment variable to the full
  22457. path to pkg-config.
  22458.  
  22459. Alternatively, you may set the environment variables LIBKMS_XORG_CFLAGS
  22460. and LIBKMS_XORG_LIBS to avoid the need to call pkg-config.
  22461. See the pkg-config man page for more details.
  22462.  
  22463. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  22464. See \`config.log' for more details" "$LINENO" 5; }
  22465. else
  22466.         LIBKMS_XORG_CFLAGS=$pkg_cv_LIBKMS_XORG_CFLAGS
  22467.         LIBKMS_XORG_LIBS=$pkg_cv_LIBKMS_XORG_LIBS
  22468.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22469. $as_echo "yes" >&6; }
  22470.  
  22471. fi
  22472.  
  22473. pkg_failed=no
  22474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
  22475. $as_echo_n "checking for XEXT... " >&6; }
  22476.  
  22477. if test -n "$XEXT_CFLAGS"; then
  22478.     pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
  22479.  elif test -n "$PKG_CONFIG"; then
  22480.     if test -n "$PKG_CONFIG" && \
  22481.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
  22482.   ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
  22483.   ac_status=$?
  22484.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22485.   test $ac_status = 0; }; then
  22486.   pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
  22487.                       test "x$?" != "x0" && pkg_failed=yes
  22488. else
  22489.   pkg_failed=yes
  22490. fi
  22491.  else
  22492.     pkg_failed=untried
  22493. fi
  22494. if test -n "$XEXT_LIBS"; then
  22495.     pkg_cv_XEXT_LIBS="$XEXT_LIBS"
  22496.  elif test -n "$PKG_CONFIG"; then
  22497.     if test -n "$PKG_CONFIG" && \
  22498.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
  22499.   ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
  22500.   ac_status=$?
  22501.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22502.   test $ac_status = 0; }; then
  22503.   pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
  22504.                       test "x$?" != "x0" && pkg_failed=yes
  22505. else
  22506.   pkg_failed=yes
  22507. fi
  22508.  else
  22509.     pkg_failed=untried
  22510. fi
  22511.  
  22512.  
  22513.  
  22514. if test $pkg_failed = yes; then
  22515.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22516. $as_echo "no" >&6; }
  22517.  
  22518. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22519.         _pkg_short_errors_supported=yes
  22520. else
  22521.         _pkg_short_errors_supported=no
  22522. fi
  22523.         if test $_pkg_short_errors_supported = yes; then
  22524.                 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
  22525.         else
  22526.                 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
  22527.         fi
  22528.         # Put the nasty error message in config.log where it belongs
  22529.         echo "$XEXT_PKG_ERRORS" >&5
  22530.  
  22531.         HAVE_XEXTPROTO_71="no"
  22532. elif test $pkg_failed = untried; then
  22533.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22534. $as_echo "no" >&6; }
  22535.         HAVE_XEXTPROTO_71="no"
  22536. else
  22537.         XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
  22538.         XEXT_LIBS=$pkg_cv_XEXT_LIBS
  22539.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22540. $as_echo "yes" >&6; }
  22541.         HAVE_XEXTPROTO_71="yes"; DEFINES="$DEFINES -DHAVE_XEXTPROTO_71"
  22542. fi
  22543.     GALLIUM_STATE_TRACKERS_DIRS="xorg $GALLIUM_STATE_TRACKERS_DIRS"
  22544. fi
  22545.  if test "x$enable_xorg" = xyes; then
  22546.   HAVE_ST_XORG_TRUE=
  22547.   HAVE_ST_XORG_FALSE='#'
  22548. else
  22549.   HAVE_ST_XORG_TRUE='#'
  22550.   HAVE_ST_XORG_FALSE=
  22551. fi
  22552.  
  22553.  
  22554. if test "x$enable_xa" = xyes; then
  22555. for ac_prog in gawk mawk nawk awk
  22556. do
  22557.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  22558. set dummy $ac_prog; ac_word=$2
  22559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22560. $as_echo_n "checking for $ac_word... " >&6; }
  22561. if ${ac_cv_prog_AWK+:} false; then :
  22562.   $as_echo_n "(cached) " >&6
  22563. else
  22564.   if test -n "$AWK"; then
  22565.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  22566. else
  22567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22568. for as_dir in $PATH
  22569. do
  22570.   IFS=$as_save_IFS
  22571.   test -z "$as_dir" && as_dir=.
  22572.     for ac_exec_ext in '' $ac_executable_extensions; do
  22573.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22574.     ac_cv_prog_AWK="$ac_prog"
  22575.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22576.     break 2
  22577.   fi
  22578. done
  22579.   done
  22580. IFS=$as_save_IFS
  22581.  
  22582. fi
  22583. fi
  22584. AWK=$ac_cv_prog_AWK
  22585. if test -n "$AWK"; then
  22586.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  22587. $as_echo "$AWK" >&6; }
  22588. else
  22589.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22590. $as_echo "no" >&6; }
  22591. fi
  22592.  
  22593.  
  22594.   test -n "$AWK" && break
  22595. done
  22596.  
  22597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  22598. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  22599. if ${ac_cv_path_GREP+:} false; then :
  22600.   $as_echo_n "(cached) " >&6
  22601. else
  22602.   if test -z "$GREP"; then
  22603.   ac_path_GREP_found=false
  22604.   # Loop through the user's path and test for each of PROGNAME-LIST
  22605.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22606. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  22607. do
  22608.   IFS=$as_save_IFS
  22609.   test -z "$as_dir" && as_dir=.
  22610.     for ac_prog in grep ggrep; do
  22611.     for ac_exec_ext in '' $ac_executable_extensions; do
  22612.       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  22613.       as_fn_executable_p "$ac_path_GREP" || continue
  22614. # Check for GNU ac_path_GREP and select it if it is found.
  22615.   # Check for GNU $ac_path_GREP
  22616. case `"$ac_path_GREP" --version 2>&1` in
  22617. *GNU*)
  22618.   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  22619. *)
  22620.   ac_count=0
  22621.   $as_echo_n 0123456789 >"conftest.in"
  22622.   while :
  22623.   do
  22624.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  22625.     mv "conftest.tmp" "conftest.in"
  22626.     cp "conftest.in" "conftest.nl"
  22627.     $as_echo 'GREP' >> "conftest.nl"
  22628.     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  22629.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  22630.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  22631.     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  22632.       # Best one so far, save it but keep looking for a better one
  22633.       ac_cv_path_GREP="$ac_path_GREP"
  22634.       ac_path_GREP_max=$ac_count
  22635.     fi
  22636.     # 10*(2^10) chars as input seems more than enough
  22637.     test $ac_count -gt 10 && break
  22638.   done
  22639.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  22640. esac
  22641.  
  22642.       $ac_path_GREP_found && break 3
  22643.     done
  22644.   done
  22645.   done
  22646. IFS=$as_save_IFS
  22647.   if test -z "$ac_cv_path_GREP"; then
  22648.     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  22649.   fi
  22650. else
  22651.   ac_cv_path_GREP=$GREP
  22652. fi
  22653.  
  22654. fi
  22655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  22656. $as_echo "$ac_cv_path_GREP" >&6; }
  22657.  GREP="$ac_cv_path_GREP"
  22658.  
  22659.  
  22660. # Extract the first word of "nm", so it can be a program name with args.
  22661. set dummy nm; ac_word=$2
  22662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22663. $as_echo_n "checking for $ac_word... " >&6; }
  22664. if ${ac_cv_prog_NM+:} false; then :
  22665.   $as_echo_n "(cached) " >&6
  22666. else
  22667.   if test -n "$NM"; then
  22668.   ac_cv_prog_NM="$NM" # Let the user override the test.
  22669. else
  22670. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22671. for as_dir in $PATH
  22672. do
  22673.   IFS=$as_save_IFS
  22674.   test -z "$as_dir" && as_dir=.
  22675.     for ac_exec_ext in '' $ac_executable_extensions; do
  22676.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22677.     ac_cv_prog_NM=""nm""
  22678.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22679.     break 2
  22680.   fi
  22681. done
  22682.   done
  22683. IFS=$as_save_IFS
  22684.  
  22685. fi
  22686. fi
  22687. NM=$ac_cv_prog_NM
  22688. if test -n "$NM"; then
  22689.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  22690. $as_echo "$NM" >&6; }
  22691. else
  22692.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22693. $as_echo "no" >&6; }
  22694. fi
  22695.  
  22696.  
  22697. if test "x$AWK" = x || test "x$GREP" = x || test "x$NM" = x; then
  22698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing one of nm, grep or awk. Disabling xa." >&5
  22699. $as_echo "$as_me: WARNING: Missing one of nm, grep or awk. Disabling xa." >&2;}
  22700. enable_xa=no
  22701. fi
  22702. fi
  22703. if test "x$enable_xa" = xyes; then
  22704.     GALLIUM_STATE_TRACKERS_DIRS="xa $GALLIUM_STATE_TRACKERS_DIRS"
  22705.  
  22706.  
  22707.  
  22708. fi
  22709.  if test "x$enable_xa" = xyes; then
  22710.   HAVE_ST_XA_TRUE=
  22711.   HAVE_ST_XA_FALSE='#'
  22712. else
  22713.   HAVE_ST_XA_TRUE='#'
  22714.   HAVE_ST_XA_FALSE=
  22715. fi
  22716.  
  22717.  
  22718. VG_LIB_DEPS=""
  22719.  
  22720. if test "x$enable_openvg" = xyes; then
  22721.     if test "x$enable_egl" = xno; then
  22722.         as_fn_error $? "cannot enable OpenVG without EGL" "$LINENO" 5
  22723.     fi
  22724.     if test "x$with_gallium_drivers" = x; then
  22725.         as_fn_error $? "cannot enable OpenVG without Gallium" "$LINENO" 5
  22726.     fi
  22727.     if test "x$enable_gallium_egl" = xno; then
  22728.         as_fn_error $? "cannot enable OpenVG without egl_gallium" "$LINENO" 5
  22729.     fi
  22730.  
  22731.     EGL_CLIENT_APIS="$EGL_CLIENT_APIS "'$(VG_LIB)'
  22732.     VG_LIB_DEPS="$VG_LIB_DEPS $SELINUX_LIBS $PTHREAD_LIBS"
  22733.     GALLIUM_STATE_TRACKERS_DIRS="vega $GALLIUM_STATE_TRACKERS_DIRS"
  22734.     VG_PC_LIB_PRIV="-lm $CLOCK_LIB $PTHREAD_LIBS $DLOPEN_LIBS"
  22735.  
  22736. fi
  22737.  if test "x$enable_openvg" = xyes; then
  22738.   HAVE_OPENVG_TRUE=
  22739.   HAVE_OPENVG_FALSE='#'
  22740. else
  22741.   HAVE_OPENVG_TRUE='#'
  22742.   HAVE_OPENVG_FALSE=
  22743. fi
  22744.  
  22745.  
  22746. if test -n "$with_gallium_drivers"; then
  22747.     if test "x$enable_xvmc" = xauto; then
  22748.         if test -n "$PKG_CONFIG" && \
  22749.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc\""; } >&5
  22750.   ($PKG_CONFIG --exists --print-errors "xvmc") 2>&5
  22751.   ac_status=$?
  22752.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22753.   test $ac_status = 0; }; then
  22754.   enable_xvmc=yes
  22755. else
  22756.   enable_xvmc=no
  22757. fi
  22758.     fi
  22759.  
  22760.     if test "x$enable_vdpau" = xauto; then
  22761.         if test -n "$PKG_CONFIG" && \
  22762.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vdpau\""; } >&5
  22763.   ($PKG_CONFIG --exists --print-errors "vdpau") 2>&5
  22764.   ac_status=$?
  22765.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22766.   test $ac_status = 0; }; then
  22767.   enable_vdpau=yes
  22768. else
  22769.   enable_vdpau=no
  22770. fi
  22771.     fi
  22772. fi
  22773.  
  22774. if test "x$enable_xvmc" = xyes; then
  22775.  
  22776. pkg_failed=no
  22777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMC" >&5
  22778. $as_echo_n "checking for XVMC... " >&6; }
  22779.  
  22780. if test -n "$XVMC_CFLAGS"; then
  22781.     pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS"
  22782.  elif test -n "$PKG_CONFIG"; then
  22783.     if test -n "$PKG_CONFIG" && \
  22784.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc >= 1.0.6 x11-xcb xcb-dri2 >= 1.8\""; } >&5
  22785.   ($PKG_CONFIG --exists --print-errors "xvmc >= 1.0.6 x11-xcb xcb-dri2 >= 1.8") 2>&5
  22786.   ac_status=$?
  22787.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22788.   test $ac_status = 0; }; then
  22789.   pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "xvmc >= 1.0.6 x11-xcb xcb-dri2 >= 1.8" 2>/dev/null`
  22790.                       test "x$?" != "x0" && pkg_failed=yes
  22791. else
  22792.   pkg_failed=yes
  22793. fi
  22794.  else
  22795.     pkg_failed=untried
  22796. fi
  22797. if test -n "$XVMC_LIBS"; then
  22798.     pkg_cv_XVMC_LIBS="$XVMC_LIBS"
  22799.  elif test -n "$PKG_CONFIG"; then
  22800.     if test -n "$PKG_CONFIG" && \
  22801.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc >= 1.0.6 x11-xcb xcb-dri2 >= 1.8\""; } >&5
  22802.   ($PKG_CONFIG --exists --print-errors "xvmc >= 1.0.6 x11-xcb xcb-dri2 >= 1.8") 2>&5
  22803.   ac_status=$?
  22804.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22805.   test $ac_status = 0; }; then
  22806.   pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "xvmc >= 1.0.6 x11-xcb xcb-dri2 >= 1.8" 2>/dev/null`
  22807.                       test "x$?" != "x0" && pkg_failed=yes
  22808. else
  22809.   pkg_failed=yes
  22810. fi
  22811.  else
  22812.     pkg_failed=untried
  22813. fi
  22814.  
  22815.  
  22816.  
  22817. if test $pkg_failed = yes; then
  22818.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22819. $as_echo "no" >&6; }
  22820.  
  22821. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22822.         _pkg_short_errors_supported=yes
  22823. else
  22824.         _pkg_short_errors_supported=no
  22825. fi
  22826.         if test $_pkg_short_errors_supported = yes; then
  22827.                 XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xvmc >= 1.0.6 x11-xcb xcb-dri2 >= 1.8" 2>&1`
  22828.         else
  22829.                 XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xvmc >= 1.0.6 x11-xcb xcb-dri2 >= 1.8" 2>&1`
  22830.         fi
  22831.         # Put the nasty error message in config.log where it belongs
  22832.         echo "$XVMC_PKG_ERRORS" >&5
  22833.  
  22834.         as_fn_error $? "Package requirements (xvmc >= 1.0.6 x11-xcb xcb-dri2 >= 1.8) were not met:
  22835.  
  22836. $XVMC_PKG_ERRORS
  22837.  
  22838. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  22839. installed software in a non-standard prefix.
  22840.  
  22841. Alternatively, you may set the environment variables XVMC_CFLAGS
  22842. and XVMC_LIBS to avoid the need to call pkg-config.
  22843. See the pkg-config man page for more details." "$LINENO" 5
  22844. elif test $pkg_failed = untried; then
  22845.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22846. $as_echo "no" >&6; }
  22847.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22848. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22849. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  22850. is in your PATH or set the PKG_CONFIG environment variable to the full
  22851. path to pkg-config.
  22852.  
  22853. Alternatively, you may set the environment variables XVMC_CFLAGS
  22854. and XVMC_LIBS to avoid the need to call pkg-config.
  22855. See the pkg-config man page for more details.
  22856.  
  22857. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  22858. See \`config.log' for more details" "$LINENO" 5; }
  22859. else
  22860.         XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS
  22861.         XVMC_LIBS=$pkg_cv_XVMC_LIBS
  22862.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22863. $as_echo "yes" >&6; }
  22864.  
  22865. fi
  22866.     GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS xvmc"
  22867. fi
  22868.  if test "x$enable_xvmc" = xyes; then
  22869.   HAVE_ST_XVMC_TRUE=
  22870.   HAVE_ST_XVMC_FALSE='#'
  22871. else
  22872.   HAVE_ST_XVMC_TRUE='#'
  22873.   HAVE_ST_XVMC_FALSE=
  22874. fi
  22875.  
  22876.  
  22877. if test "x$enable_vdpau" = xyes; then
  22878.  
  22879. pkg_failed=no
  22880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VDPAU" >&5
  22881. $as_echo_n "checking for VDPAU... " >&6; }
  22882.  
  22883. if test -n "$VDPAU_CFLAGS"; then
  22884.     pkg_cv_VDPAU_CFLAGS="$VDPAU_CFLAGS"
  22885.  elif test -n "$PKG_CONFIG"; then
  22886.     if test -n "$PKG_CONFIG" && \
  22887.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vdpau >= 0.4.1 x11-xcb xcb-dri2 >= 1.8\""; } >&5
  22888.   ($PKG_CONFIG --exists --print-errors "vdpau >= 0.4.1 x11-xcb xcb-dri2 >= 1.8") 2>&5
  22889.   ac_status=$?
  22890.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22891.   test $ac_status = 0; }; then
  22892.   pkg_cv_VDPAU_CFLAGS=`$PKG_CONFIG --cflags "vdpau >= 0.4.1 x11-xcb xcb-dri2 >= 1.8" 2>/dev/null`
  22893.                       test "x$?" != "x0" && pkg_failed=yes
  22894. else
  22895.   pkg_failed=yes
  22896. fi
  22897.  else
  22898.     pkg_failed=untried
  22899. fi
  22900. if test -n "$VDPAU_LIBS"; then
  22901.     pkg_cv_VDPAU_LIBS="$VDPAU_LIBS"
  22902.  elif test -n "$PKG_CONFIG"; then
  22903.     if test -n "$PKG_CONFIG" && \
  22904.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vdpau >= 0.4.1 x11-xcb xcb-dri2 >= 1.8\""; } >&5
  22905.   ($PKG_CONFIG --exists --print-errors "vdpau >= 0.4.1 x11-xcb xcb-dri2 >= 1.8") 2>&5
  22906.   ac_status=$?
  22907.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22908.   test $ac_status = 0; }; then
  22909.   pkg_cv_VDPAU_LIBS=`$PKG_CONFIG --libs "vdpau >= 0.4.1 x11-xcb xcb-dri2 >= 1.8" 2>/dev/null`
  22910.                       test "x$?" != "x0" && pkg_failed=yes
  22911. else
  22912.   pkg_failed=yes
  22913. fi
  22914.  else
  22915.     pkg_failed=untried
  22916. fi
  22917.  
  22918.  
  22919.  
  22920. if test $pkg_failed = yes; then
  22921.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22922. $as_echo "no" >&6; }
  22923.  
  22924. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22925.         _pkg_short_errors_supported=yes
  22926. else
  22927.         _pkg_short_errors_supported=no
  22928. fi
  22929.         if test $_pkg_short_errors_supported = yes; then
  22930.                 VDPAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "vdpau >= 0.4.1 x11-xcb xcb-dri2 >= 1.8" 2>&1`
  22931.         else
  22932.                 VDPAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "vdpau >= 0.4.1 x11-xcb xcb-dri2 >= 1.8" 2>&1`
  22933.         fi
  22934.         # Put the nasty error message in config.log where it belongs
  22935.         echo "$VDPAU_PKG_ERRORS" >&5
  22936.  
  22937.         as_fn_error $? "Package requirements (vdpau >= 0.4.1 x11-xcb xcb-dri2 >= 1.8) were not met:
  22938.  
  22939. $VDPAU_PKG_ERRORS
  22940.  
  22941. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  22942. installed software in a non-standard prefix.
  22943.  
  22944. Alternatively, you may set the environment variables VDPAU_CFLAGS
  22945. and VDPAU_LIBS to avoid the need to call pkg-config.
  22946. See the pkg-config man page for more details." "$LINENO" 5
  22947. elif test $pkg_failed = untried; then
  22948.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22949. $as_echo "no" >&6; }
  22950.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22951. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22952. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  22953. is in your PATH or set the PKG_CONFIG environment variable to the full
  22954. path to pkg-config.
  22955.  
  22956. Alternatively, you may set the environment variables VDPAU_CFLAGS
  22957. and VDPAU_LIBS to avoid the need to call pkg-config.
  22958. See the pkg-config man page for more details.
  22959.  
  22960. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  22961. See \`config.log' for more details" "$LINENO" 5; }
  22962. else
  22963.         VDPAU_CFLAGS=$pkg_cv_VDPAU_CFLAGS
  22964.         VDPAU_LIBS=$pkg_cv_VDPAU_LIBS
  22965.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22966. $as_echo "yes" >&6; }
  22967.  
  22968. fi
  22969.     GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS vdpau"
  22970. fi
  22971.  if test "x$enable_vdpau" = xyes; then
  22972.   HAVE_ST_VDPAU_TRUE=
  22973.   HAVE_ST_VDPAU_FALSE='#'
  22974. else
  22975.   HAVE_ST_VDPAU_TRUE='#'
  22976.   HAVE_ST_VDPAU_FALSE=
  22977. fi
  22978.  
  22979.  
  22980.  
  22981.  
  22982. # Check whether --with-libclc-path was given.
  22983. if test "${with_libclc_path+set}" = set; then :
  22984.   withval=$with_libclc_path; LIBCLC_PATH="$withval"
  22985. else
  22986.   LIBCLC_PATH=""
  22987. fi
  22988.  
  22989.  
  22990. if test "x$LIBCLC_PATH" != x; then
  22991.    as_fn_error $? "The --with-libclc-path option has been deprecated.
  22992.                   Please review the updated build instructions for clover:
  22993.                   http://dri.freedesktop.org/wiki/GalliumCompute" "$LINENO" 5
  22994. fi
  22995.  
  22996.  
  22997.  
  22998. # Check whether --with-clang-libdir was given.
  22999. if test "${with_clang_libdir+set}" = set; then :
  23000.   withval=$with_clang_libdir; CLANG_LIBDIR="$withval"
  23001. else
  23002.   CLANG_LIBDIR=""
  23003. fi
  23004.  
  23005.  
  23006. LIBCLC_INCLUDEDIR=`pkg-config --variable=includedir libclc`
  23007. LIBCLC_LIBEXECDIR=`pkg-config --variable=libexecdir libclc`
  23008.  
  23009.  
  23010.  
  23011. if test "x$enable_opencl" = xyes; then
  23012.     if test "x$with_gallium_drivers" = x; then
  23013.         as_fn_error $? "cannot enable OpenCL without Gallium" "$LINENO" 5
  23014.     fi
  23015.  
  23016.     if test $GCC_VERSION_MAJOR -lt 4 -o $GCC_VERSION_MAJOR -eq 4 -a $GCC_VERSION_MINOR -lt 6; then
  23017.         as_fn_error $? "gcc >= 4.6 is required to build clover" "$LINENO" 5
  23018.     fi
  23019.  
  23020.     if test "x$LIBCLC_INCLUDEDIR" == x || test "x$LIBCLC_LIBEXECDIR" == x; then
  23021.         as_fn_error $? "pkg-config cannot use libclc.pc which is required to build clover" "$LINENO" 5
  23022.     fi
  23023.  
  23024.     GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS clover"
  23025.     GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS opencl"
  23026.     enable_gallium_loader=yes
  23027. fi
  23028.  if test "x$enable_opencl" = xyes; then
  23029.   HAVE_CLOVER_TRUE=
  23030.   HAVE_CLOVER_FALSE='#'
  23031. else
  23032.   HAVE_CLOVER_TRUE='#'
  23033.   HAVE_CLOVER_FALSE=
  23034. fi
  23035.  
  23036.  
  23037.  if test -n "$with_gallium_drivers"; then
  23038.   HAVE_GALLIUM_TRUE=
  23039.   HAVE_GALLIUM_FALSE='#'
  23040. else
  23041.   HAVE_GALLIUM_TRUE='#'
  23042.   HAVE_GALLIUM_FALSE=
  23043. fi
  23044.  
  23045.  
  23046.  
  23047.  
  23048.  
  23049.  
  23050.  
  23051.  
  23052.  
  23053.  
  23054.  
  23055.  
  23056.  
  23057. case "x$enable_opengl$enable_gles1$enable_gles2" in
  23058. x*yes*)
  23059.     EGL_CLIENT_APIS="$EGL_CLIENT_APIS "'$(GL_LIB)'
  23060.     ;;
  23061. esac
  23062.  
  23063.  
  23064.  
  23065.  
  23066.  
  23067. # Check whether --with-egl-platforms was given.
  23068. if test "${with_egl_platforms+set}" = set; then :
  23069.   withval=$with_egl_platforms; with_egl_platforms="$withval"
  23070. else
  23071.   if test "x$enable_egl" = xyes; then
  23072.         with_egl_platforms="x11"
  23073.     else
  23074.         with_egl_platforms=""
  23075.     fi
  23076. fi
  23077.  
  23078.  
  23079. EGL_PLATFORMS=""
  23080.  
  23081. if test "x$with_egl_platforms" != "x" -a "x$enable_egl" != xyes; then
  23082.     as_fn_error $? "cannot build egl state tracker without EGL library" "$LINENO" 5
  23083. fi
  23084.  
  23085. # Do per-EGL platform setups and checks
  23086. egl_platforms=`IFS=', '; echo $with_egl_platforms`
  23087. for plat in $egl_platforms; do
  23088.         case "$plat" in
  23089.         wayland)
  23090.  
  23091. pkg_failed=no
  23092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND" >&5
  23093. $as_echo_n "checking for WAYLAND... " >&6; }
  23094.  
  23095. if test -n "$WAYLAND_CFLAGS"; then
  23096.     pkg_cv_WAYLAND_CFLAGS="$WAYLAND_CFLAGS"
  23097.  elif test -n "$PKG_CONFIG"; then
  23098.     if test -n "$PKG_CONFIG" && \
  23099.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.0.2 wayland-server >= 1.0.2\""; } >&5
  23100.   ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.0.2 wayland-server >= 1.0.2") 2>&5
  23101.   ac_status=$?
  23102.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23103.   test $ac_status = 0; }; then
  23104.   pkg_cv_WAYLAND_CFLAGS=`$PKG_CONFIG --cflags "wayland-client >= 1.0.2 wayland-server >= 1.0.2" 2>/dev/null`
  23105.                       test "x$?" != "x0" && pkg_failed=yes
  23106. else
  23107.   pkg_failed=yes
  23108. fi
  23109.  else
  23110.     pkg_failed=untried
  23111. fi
  23112. if test -n "$WAYLAND_LIBS"; then
  23113.     pkg_cv_WAYLAND_LIBS="$WAYLAND_LIBS"
  23114.  elif test -n "$PKG_CONFIG"; then
  23115.     if test -n "$PKG_CONFIG" && \
  23116.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= 1.0.2 wayland-server >= 1.0.2\""; } >&5
  23117.   ($PKG_CONFIG --exists --print-errors "wayland-client >= 1.0.2 wayland-server >= 1.0.2") 2>&5
  23118.   ac_status=$?
  23119.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23120.   test $ac_status = 0; }; then
  23121.   pkg_cv_WAYLAND_LIBS=`$PKG_CONFIG --libs "wayland-client >= 1.0.2 wayland-server >= 1.0.2" 2>/dev/null`
  23122.                       test "x$?" != "x0" && pkg_failed=yes
  23123. else
  23124.   pkg_failed=yes
  23125. fi
  23126.  else
  23127.     pkg_failed=untried
  23128. fi
  23129.  
  23130.  
  23131.  
  23132. if test $pkg_failed = yes; then
  23133.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23134. $as_echo "no" >&6; }
  23135.  
  23136. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23137.         _pkg_short_errors_supported=yes
  23138. else
  23139.         _pkg_short_errors_supported=no
  23140. fi
  23141.         if test $_pkg_short_errors_supported = yes; then
  23142.                 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-client >= 1.0.2 wayland-server >= 1.0.2" 2>&1`
  23143.         else
  23144.                 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-client >= 1.0.2 wayland-server >= 1.0.2" 2>&1`
  23145.         fi
  23146.         # Put the nasty error message in config.log where it belongs
  23147.         echo "$WAYLAND_PKG_ERRORS" >&5
  23148.  
  23149.         as_fn_error $? "Package requirements (wayland-client >= 1.0.2 wayland-server >= 1.0.2) were not met:
  23150.  
  23151. $WAYLAND_PKG_ERRORS
  23152.  
  23153. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  23154. installed software in a non-standard prefix.
  23155.  
  23156. Alternatively, you may set the environment variables WAYLAND_CFLAGS
  23157. and WAYLAND_LIBS to avoid the need to call pkg-config.
  23158. See the pkg-config man page for more details." "$LINENO" 5
  23159. elif test $pkg_failed = untried; then
  23160.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23161. $as_echo "no" >&6; }
  23162.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23163. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23164. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  23165. is in your PATH or set the PKG_CONFIG environment variable to the full
  23166. path to pkg-config.
  23167.  
  23168. Alternatively, you may set the environment variables WAYLAND_CFLAGS
  23169. and WAYLAND_LIBS to avoid the need to call pkg-config.
  23170. See the pkg-config man page for more details.
  23171.  
  23172. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  23173. See \`config.log' for more details" "$LINENO" 5; }
  23174. else
  23175.         WAYLAND_CFLAGS=$pkg_cv_WAYLAND_CFLAGS
  23176.         WAYLAND_LIBS=$pkg_cv_WAYLAND_LIBS
  23177.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23178. $as_echo "yes" >&6; }
  23179.  
  23180. fi
  23181.                 GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS sw/wayland"
  23182.  
  23183.                 WAYLAND_PREFIX=`$PKG_CONFIG --variable=prefix wayland-client`
  23184.                 # Extract the first word of "wayland-scanner", so it can be a program name with args.
  23185. set dummy wayland-scanner; ac_word=$2
  23186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23187. $as_echo_n "checking for $ac_word... " >&6; }
  23188. if ${ac_cv_path_WAYLAND_SCANNER+:} false; then :
  23189.   $as_echo_n "(cached) " >&6
  23190. else
  23191.   case $WAYLAND_SCANNER in
  23192.   [\\/]* | ?:[\\/]*)
  23193.   ac_cv_path_WAYLAND_SCANNER="$WAYLAND_SCANNER" # Let the user override the test with a path.
  23194.   ;;
  23195.   *)
  23196.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23197. for as_dir in ${WAYLAND_PREFIX}/bin$PATH_SEPARATOR$PATH
  23198. do
  23199.   IFS=$as_save_IFS
  23200.   test -z "$as_dir" && as_dir=.
  23201.     for ac_exec_ext in '' $ac_executable_extensions; do
  23202.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23203.     ac_cv_path_WAYLAND_SCANNER="$as_dir/$ac_word$ac_exec_ext"
  23204.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23205.     break 2
  23206.   fi
  23207. done
  23208.   done
  23209. IFS=$as_save_IFS
  23210.  
  23211.   ;;
  23212. esac
  23213. fi
  23214. WAYLAND_SCANNER=$ac_cv_path_WAYLAND_SCANNER
  23215. if test -n "$WAYLAND_SCANNER"; then
  23216.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WAYLAND_SCANNER" >&5
  23217. $as_echo "$WAYLAND_SCANNER" >&6; }
  23218. else
  23219.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23220. $as_echo "no" >&6; }
  23221. fi
  23222.  
  23223.  
  23224.                 ;;
  23225.  
  23226.         x11)
  23227.  
  23228. pkg_failed=no
  23229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_DRI2" >&5
  23230. $as_echo_n "checking for XCB_DRI2... " >&6; }
  23231.  
  23232. if test -n "$XCB_DRI2_CFLAGS"; then
  23233.     pkg_cv_XCB_DRI2_CFLAGS="$XCB_DRI2_CFLAGS"
  23234.  elif test -n "$PKG_CONFIG"; then
  23235.     if test -n "$PKG_CONFIG" && \
  23236.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-dri2 >= 1.8 xcb-xfixes\""; } >&5
  23237.   ($PKG_CONFIG --exists --print-errors "x11-xcb xcb-dri2 >= 1.8 xcb-xfixes") 2>&5
  23238.   ac_status=$?
  23239.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23240.   test $ac_status = 0; }; then
  23241.   pkg_cv_XCB_DRI2_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb-dri2 >= 1.8 xcb-xfixes" 2>/dev/null`
  23242.                       test "x$?" != "x0" && pkg_failed=yes
  23243. else
  23244.   pkg_failed=yes
  23245. fi
  23246.  else
  23247.     pkg_failed=untried
  23248. fi
  23249. if test -n "$XCB_DRI2_LIBS"; then
  23250.     pkg_cv_XCB_DRI2_LIBS="$XCB_DRI2_LIBS"
  23251.  elif test -n "$PKG_CONFIG"; then
  23252.     if test -n "$PKG_CONFIG" && \
  23253.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-dri2 >= 1.8 xcb-xfixes\""; } >&5
  23254.   ($PKG_CONFIG --exists --print-errors "x11-xcb xcb-dri2 >= 1.8 xcb-xfixes") 2>&5
  23255.   ac_status=$?
  23256.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23257.   test $ac_status = 0; }; then
  23258.   pkg_cv_XCB_DRI2_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb-dri2 >= 1.8 xcb-xfixes" 2>/dev/null`
  23259.                       test "x$?" != "x0" && pkg_failed=yes
  23260. else
  23261.   pkg_failed=yes
  23262. fi
  23263.  else
  23264.     pkg_failed=untried
  23265. fi
  23266.  
  23267.  
  23268.  
  23269. if test $pkg_failed = yes; then
  23270.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23271. $as_echo "no" >&6; }
  23272.  
  23273. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23274.         _pkg_short_errors_supported=yes
  23275. else
  23276.         _pkg_short_errors_supported=no
  23277. fi
  23278.         if test $_pkg_short_errors_supported = yes; then
  23279.                 XCB_DRI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11-xcb xcb-dri2 >= 1.8 xcb-xfixes" 2>&1`
  23280.         else
  23281.                 XCB_DRI2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11-xcb xcb-dri2 >= 1.8 xcb-xfixes" 2>&1`
  23282.         fi
  23283.         # Put the nasty error message in config.log where it belongs
  23284.         echo "$XCB_DRI2_PKG_ERRORS" >&5
  23285.  
  23286.         as_fn_error $? "Package requirements (x11-xcb xcb-dri2 >= 1.8 xcb-xfixes) were not met:
  23287.  
  23288. $XCB_DRI2_PKG_ERRORS
  23289.  
  23290. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  23291. installed software in a non-standard prefix.
  23292.  
  23293. Alternatively, you may set the environment variables XCB_DRI2_CFLAGS
  23294. and XCB_DRI2_LIBS to avoid the need to call pkg-config.
  23295. See the pkg-config man page for more details." "$LINENO" 5
  23296. elif test $pkg_failed = untried; then
  23297.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23298. $as_echo "no" >&6; }
  23299.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23300. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23301. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  23302. is in your PATH or set the PKG_CONFIG environment variable to the full
  23303. path to pkg-config.
  23304.  
  23305. Alternatively, you may set the environment variables XCB_DRI2_CFLAGS
  23306. and XCB_DRI2_LIBS to avoid the need to call pkg-config.
  23307. See the pkg-config man page for more details.
  23308.  
  23309. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  23310. See \`config.log' for more details" "$LINENO" 5; }
  23311. else
  23312.         XCB_DRI2_CFLAGS=$pkg_cv_XCB_DRI2_CFLAGS
  23313.         XCB_DRI2_LIBS=$pkg_cv_XCB_DRI2_LIBS
  23314.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23315. $as_echo "yes" >&6; }
  23316.  
  23317. fi
  23318.  
  23319.                 if test "x$enable_glx" = xyes; then
  23320.                         HAVE_EGL_DRIVER_GLX=1
  23321.                 fi
  23322.                 ;;
  23323.  
  23324.         drm)
  23325.                 test "x$enable_gbm" = "xno" &&
  23326.                         as_fn_error $? "EGL platform drm needs gbm" "$LINENO" 5
  23327.                 ;;
  23328.  
  23329.         android|fbdev|gdi|null)
  23330.                 ;;
  23331.  
  23332.         *)
  23333.                 as_fn_error $? "EGL platform '$plat' does not exist" "$LINENO" 5
  23334.                 ;;
  23335.         esac
  23336.  
  23337.         case "$plat$have_libudev" in
  23338.                 waylandno|drmno)
  23339.                     as_fn_error $? "cannot build $plat platfrom without udev" "$LINENO" 5 ;;
  23340.         esac
  23341. done
  23342.  
  23343. # libEGL wants to default to the first platform specified in
  23344. # ./configure.  parse that here.
  23345. if test "x$egl_platforms" != "x"; then
  23346.     FIRST_PLATFORM_CAPS=`echo $egl_platforms | sed 's| .*||' | tr 'a-z' 'A-Z'`
  23347.     EGL_NATIVE_PLATFORM="_EGL_PLATFORM_$FIRST_PLATFORM_CAPS"
  23348. else
  23349.     EGL_NATIVE_PLATFORM="_EGL_INVALID_PLATFORM"
  23350. fi
  23351.  
  23352. EGL_PLATFORMS="$egl_platforms"
  23353.  
  23354. if echo "$egl_platforms" | grep 'x11' >/dev/null 2>&1; then
  23355.     NEED_WINSYS_XLIB=yes
  23356. fi
  23357.  if echo "$egl_platforms" | grep 'x11' >/dev/null 2>&1; then
  23358.   HAVE_EGL_PLATFORM_X11_TRUE=
  23359.   HAVE_EGL_PLATFORM_X11_FALSE='#'
  23360. else
  23361.   HAVE_EGL_PLATFORM_X11_TRUE='#'
  23362.   HAVE_EGL_PLATFORM_X11_FALSE=
  23363. fi
  23364.  
  23365.  if echo "$egl_platforms" | grep 'wayland' >/dev/null 2>&1; then
  23366.   HAVE_EGL_PLATFORM_WAYLAND_TRUE=
  23367.   HAVE_EGL_PLATFORM_WAYLAND_FALSE='#'
  23368. else
  23369.   HAVE_EGL_PLATFORM_WAYLAND_TRUE='#'
  23370.   HAVE_EGL_PLATFORM_WAYLAND_FALSE=
  23371. fi
  23372.  
  23373.  if echo "$egl_platforms" | grep 'drm' >/dev/null 2>&1; then
  23374.   HAVE_EGL_PLATFORM_DRM_TRUE=
  23375.   HAVE_EGL_PLATFORM_DRM_FALSE='#'
  23376. else
  23377.   HAVE_EGL_PLATFORM_DRM_TRUE='#'
  23378.   HAVE_EGL_PLATFORM_DRM_FALSE=
  23379. fi
  23380.  
  23381.  if echo "$egl_platforms" | grep 'fbdev' >/dev/null 2>&1; then
  23382.   HAVE_EGL_PLATFORM_FBDEV_TRUE=
  23383.   HAVE_EGL_PLATFORM_FBDEV_FALSE='#'
  23384. else
  23385.   HAVE_EGL_PLATFORM_FBDEV_TRUE='#'
  23386.   HAVE_EGL_PLATFORM_FBDEV_FALSE=
  23387. fi
  23388.  
  23389.  if echo "$egl_platforms" | grep 'null' >/dev/null 2>&1; then
  23390.   HAVE_EGL_PLATFORM_NULL_TRUE=
  23391.   HAVE_EGL_PLATFORM_NULL_FALSE='#'
  23392. else
  23393.   HAVE_EGL_PLATFORM_NULL_TRUE='#'
  23394.   HAVE_EGL_PLATFORM_NULL_FALSE=
  23395. fi
  23396.  
  23397.  
  23398.  if test "x$HAVE_EGL_DRIVER_DRI2" != "x"; then
  23399.   HAVE_EGL_DRIVER_DRI2_TRUE=
  23400.   HAVE_EGL_DRIVER_DRI2_FALSE='#'
  23401. else
  23402.   HAVE_EGL_DRIVER_DRI2_TRUE='#'
  23403.   HAVE_EGL_DRIVER_DRI2_FALSE=
  23404. fi
  23405.  
  23406.  if test "x$HAVE_EGL_DRIVER_GLX" != "x"; then
  23407.   HAVE_EGL_DRIVER_GLX_TRUE=
  23408.   HAVE_EGL_DRIVER_GLX_FALSE='#'
  23409. else
  23410.   HAVE_EGL_DRIVER_GLX_TRUE='#'
  23411.   HAVE_EGL_DRIVER_GLX_FALSE=
  23412. fi
  23413.  
  23414.  
  23415.  
  23416.  
  23417.  
  23418.  
  23419. # If we don't have the X11 platform, set this define so we don't try to include
  23420. # the X11 headers.
  23421. if ! echo "$egl_platforms" | grep -q 'x11'; then
  23422.     DEFINES="$DEFINES -DMESA_EGL_NO_X11_HEADERS"
  23423.     GL_PC_CFLAGS="$GL_PC_CFLAGS -DMESA_EGL_NO_X11_HEADERS"
  23424. fi
  23425.  
  23426.  
  23427. # Check whether --with-egl-driver-dir was given.
  23428. if test "${with_egl_driver_dir+set}" = set; then :
  23429.   withval=$with_egl_driver_dir; EGL_DRIVER_INSTALL_DIR="$withval"
  23430. else
  23431.   EGL_DRIVER_INSTALL_DIR='${libdir}/egl'
  23432. fi
  23433.  
  23434.  
  23435.  
  23436.  
  23437. # Check whether --with-xorg-driver-dir was given.
  23438. if test "${with_xorg_driver_dir+set}" = set; then :
  23439.   withval=$with_xorg_driver_dir; XORG_DRIVER_INSTALL_DIR="$withval"
  23440. else
  23441.   XORG_DRIVER_INSTALL_DIR="${libdir}/xorg/modules/drivers"
  23442. fi
  23443.  
  23444.  
  23445.  
  23446.  
  23447. # Check whether --with-max-width was given.
  23448. if test "${with_max_width+set}" = set; then :
  23449.   withval=$with_max_width; DEFINES="${DEFINES} -DMAX_WIDTH=${withval}";
  23450.      if test "${withval}" -gt "4096"; then :
  23451.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Large framebuffer: see s_tritemp.h comments." >&5
  23452. $as_echo "$as_me: WARNING: Large framebuffer: see s_tritemp.h comments." >&2;}
  23453. fi
  23454.  
  23455. fi
  23456.  
  23457.  
  23458. # Check whether --with-max-height was given.
  23459. if test "${with_max_height+set}" = set; then :
  23460.   withval=$with_max_height; DEFINES="${DEFINES} -DMAX_HEIGHT=${withval}";
  23461.      if test "${withval}" -gt "4096"; then :
  23462.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Large framebuffer: see s_tritemp.h comments." >&5
  23463. $as_echo "$as_me: WARNING: Large framebuffer: see s_tritemp.h comments." >&2;}
  23464. fi
  23465.  
  23466. fi
  23467.  
  23468.  
  23469. # Check whether --enable-gallium-llvm was given.
  23470. if test "${enable_gallium_llvm+set}" = set; then :
  23471.   enableval=$enable_gallium_llvm; enable_gallium_llvm="$enableval"
  23472. else
  23473.   enable_gallium_llvm=auto
  23474. fi
  23475.  
  23476.  
  23477.  
  23478. # Check whether --with-llvm-shared-libs was given.
  23479. if test "${with_llvm_shared_libs+set}" = set; then :
  23480.   withval=$with_llvm_shared_libs;
  23481. else
  23482.   with_llvm_shared_libs=no
  23483. fi
  23484.  
  23485. if test x$enable_opencl = xyes; then :
  23486.  
  23487.         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenCL required, forcing LLVM shared libraries" >&5
  23488. $as_echo "$as_me: WARNING: OpenCL required, forcing LLVM shared libraries" >&2;}
  23489.         with_llvm_shared_libs=yes
  23490.  
  23491. fi
  23492.  
  23493.  
  23494. # Check whether --with-llvm-prefix was given.
  23495. if test "${with_llvm_prefix+set}" = set; then :
  23496.   withval=$with_llvm_prefix; llvm_prefix="$withval"
  23497. else
  23498.   llvm_prefix=""
  23499. fi
  23500.  
  23501.  
  23502.  
  23503. # Call this inside ` ` to get the return value.
  23504. # $1 is the llvm-config command with arguments.
  23505. strip_unwanted_llvm_flags() {
  23506.     # Use \> (marks the end of the word)
  23507.     echo `$1` | sed \
  23508.         -e 's/-DNDEBUG\>//g' \
  23509.         -e 's/-pedantic\>//g' \
  23510.         -e 's/-Wcovered-switch-default\>//g' \
  23511.         -e 's/-O.\>//g' \
  23512.         -e 's/-g\>//g' \
  23513.         -e 's/-Wall\>//g' \
  23514.         -e 's/-fomit-frame-pointer\>//g'
  23515. }
  23516.  
  23517.  
  23518. if test "x$with_gallium_drivers" = x; then
  23519.     enable_gallium_llvm=no
  23520. fi
  23521. if test "x$enable_gallium_llvm" = xauto; then
  23522.     case "$host_cpu" in
  23523.     i*86|x86_64|amd64) enable_gallium_llvm=yes;;
  23524.     esac
  23525. fi
  23526. if test "x$enable_gallium_llvm" = xyes; then
  23527.     if test "x$llvm_prefix" != x; then
  23528.         # Extract the first word of "llvm-config", so it can be a program name with args.
  23529. set dummy llvm-config; ac_word=$2
  23530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23531. $as_echo_n "checking for $ac_word... " >&6; }
  23532. if ${ac_cv_path_LLVM_CONFIG+:} false; then :
  23533.   $as_echo_n "(cached) " >&6
  23534. else
  23535.   case $LLVM_CONFIG in
  23536.   [\\/]* | ?:[\\/]*)
  23537.   ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test with a path.
  23538.   ;;
  23539.   *)
  23540.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23541. for as_dir in "$llvm_prefix/bin"
  23542. do
  23543.   IFS=$as_save_IFS
  23544.   test -z "$as_dir" && as_dir=.
  23545.     for ac_exec_ext in '' $ac_executable_extensions; do
  23546.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23547.     ac_cv_path_LLVM_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23548.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23549.     break 2
  23550.   fi
  23551. done
  23552.   done
  23553. IFS=$as_save_IFS
  23554.  
  23555.   test -z "$ac_cv_path_LLVM_CONFIG" && ac_cv_path_LLVM_CONFIG="no"
  23556.   ;;
  23557. esac
  23558. fi
  23559. LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG
  23560. if test -n "$LLVM_CONFIG"; then
  23561.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
  23562. $as_echo "$LLVM_CONFIG" >&6; }
  23563. else
  23564.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23565. $as_echo "no" >&6; }
  23566. fi
  23567.  
  23568.  
  23569.     else
  23570.         # Extract the first word of "llvm-config", so it can be a program name with args.
  23571. set dummy llvm-config; ac_word=$2
  23572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23573. $as_echo_n "checking for $ac_word... " >&6; }
  23574. if ${ac_cv_path_LLVM_CONFIG+:} false; then :
  23575.   $as_echo_n "(cached) " >&6
  23576. else
  23577.   case $LLVM_CONFIG in
  23578.   [\\/]* | ?:[\\/]*)
  23579.   ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test with a path.
  23580.   ;;
  23581.   *)
  23582.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23583. for as_dir in $PATH
  23584. do
  23585.   IFS=$as_save_IFS
  23586.   test -z "$as_dir" && as_dir=.
  23587.     for ac_exec_ext in '' $ac_executable_extensions; do
  23588.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23589.     ac_cv_path_LLVM_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23590.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23591.     break 2
  23592.   fi
  23593. done
  23594.   done
  23595. IFS=$as_save_IFS
  23596.  
  23597.   test -z "$ac_cv_path_LLVM_CONFIG" && ac_cv_path_LLVM_CONFIG="no"
  23598.   ;;
  23599. esac
  23600. fi
  23601. LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG
  23602. if test -n "$LLVM_CONFIG"; then
  23603.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
  23604. $as_echo "$LLVM_CONFIG" >&6; }
  23605. else
  23606.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23607. $as_echo "no" >&6; }
  23608. fi
  23609.  
  23610.  
  23611.     fi
  23612.  
  23613.     if test "x$LLVM_CONFIG" != xno; then
  23614.         LLVM_VERSION=`$LLVM_CONFIG --version | sed 's/svn.*//g'`
  23615.         LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags`
  23616.         LLVM_BINDIR=`$LLVM_CONFIG --bindir`
  23617.         LLVM_CPPFLAGS=`strip_unwanted_llvm_flags "$LLVM_CONFIG --cppflags"`
  23618.         LLVM_CFLAGS=$LLVM_CPPFLAGS   # CPPFLAGS seem to be sufficient
  23619.         LLVM_CXXFLAGS=`strip_unwanted_llvm_flags "$LLVM_CONFIG --cxxflags"`
  23620.         LLVM_INCLUDEDIR=`$LLVM_CONFIG --includedir`
  23621.         LLVM_LIBDIR=`$LLVM_CONFIG --libdir`
  23622.  
  23623.         if ac_fn_c_compute_int "$LINENO" "LLVM_VERSION_MAJOR" "LLVM_VERSION_MAJOR"        "#include \"${LLVM_INCLUDEDIR}/llvm/Config/llvm-config.h\""; then :
  23624.  
  23625. fi
  23626.  
  23627.         if ac_fn_c_compute_int "$LINENO" "LLVM_VERSION_MINOR" "LLVM_VERSION_MINOR"        "#include \"${LLVM_INCLUDEDIR}/llvm/Config/llvm-config.h\""; then :
  23628.  
  23629. fi
  23630.  
  23631.  
  23632.         if test "x${LLVM_VERSION_MAJOR}" != x; then
  23633.             LLVM_VERSION_INT="${LLVM_VERSION_MAJOR}0${LLVM_VERSION_MINOR}"
  23634.         else
  23635.             LLVM_VERSION_INT=`echo $LLVM_VERSION | sed -e 's/\([0-9]\)\.\([0-9]\)/\10\2/g'`
  23636.         fi
  23637.  
  23638.         LLVM_COMPONENTS="engine bitwriter"
  23639.         if $LLVM_CONFIG --components | grep -qw 'mcjit'; then
  23640.             LLVM_COMPONENTS="${LLVM_COMPONENTS} mcjit"
  23641.         fi
  23642.  
  23643.         if test "x$enable_opencl" = xyes; then
  23644.             LLVM_COMPONENTS="${LLVM_COMPONENTS} ipo linker instrumentation"
  23645.             # LLVM 3.3 >= 177971 requires IRReader
  23646.             if $LLVM_CONFIG --components | grep -qw 'irreader'; then
  23647.                 LLVM_COMPONENTS="${LLVM_COMPONENTS} irreader"
  23648.             fi
  23649.         fi
  23650.         DEFINES="${DEFINES} -DHAVE_LLVM=0x0$LLVM_VERSION_INT"
  23651.         MESA_LLVM=1
  23652.  
  23653.                 if test "x$enable_opencl" = xyes; then
  23654.             if test "x$CLANG_LIBDIR" = x; then
  23655.                 CLANG_LIBDIR=${LLVM_LIBDIR}
  23656.             fi
  23657.             CLANG_RESOURCE_DIR=$CLANG_LIBDIR/clang/${LLVM_VERSION}
  23658.             if test ! -f "$CLANG_RESOURCE_DIR/include/stddef.h"; then :
  23659.   as_fn_error $? "Could not find clang internal header stddef.h in $CLANG_RESOURCE_DIR Use --with-clang-libdir to specify the correct path to the clang libraries." "$LINENO" 5
  23660. fi
  23661.         fi
  23662.     else
  23663.         MESA_LLVM=0
  23664.         LLVM_VERSION_INT=0
  23665.     fi
  23666. else
  23667.     MESA_LLVM=0
  23668.     LLVM_VERSION_INT=0
  23669. fi
  23670.  
  23671.  
  23672. # Check whether --with-xvmc-libdir was given.
  23673. if test "${with_xvmc_libdir+set}" = set; then :
  23674.   withval=$with_xvmc_libdir; XVMC_LIB_INSTALL_DIR="$withval"
  23675. else
  23676.   XVMC_LIB_INSTALL_DIR='${libdir}'
  23677. fi
  23678.  
  23679.  
  23680.  
  23681. if test "x$enable_gallium_tests" = xyes; then
  23682.     enable_gallium_loader=yes
  23683. fi
  23684.  if test "x$enable_gallium_tests" = xyes; then
  23685.   HAVE_GALLIUM_TESTS_TRUE=
  23686.   HAVE_GALLIUM_TESTS_FALSE='#'
  23687. else
  23688.   HAVE_GALLIUM_TESTS_TRUE='#'
  23689.   HAVE_GALLIUM_TESTS_FALSE=
  23690. fi
  23691.  
  23692.  
  23693. if test "x$enable_gallium_loader" = xyes; then
  23694.     GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS pipe-loader"
  23695. fi
  23696.  if test "x$enable_gallium_loader" = xyes; then
  23697.   NEED_GALLIUM_LOADER_TRUE=
  23698.   NEED_GALLIUM_LOADER_FALSE='#'
  23699. else
  23700.   NEED_GALLIUM_LOADER_TRUE='#'
  23701.   NEED_GALLIUM_LOADER_FALSE=
  23702. fi
  23703.  
  23704.  
  23705.  
  23706. # Check whether --with-vdpau-libdir was given.
  23707. if test "${with_vdpau_libdir+set}" = set; then :
  23708.   withval=$with_vdpau_libdir; VDPAU_LIB_INSTALL_DIR="$withval"
  23709. else
  23710.   VDPAU_LIB_INSTALL_DIR='${libdir}/vdpau'
  23711. fi
  23712.  
  23713.  
  23714.  
  23715.  
  23716. # Check whether --with-opencl-libdir was given.
  23717. if test "${with_opencl_libdir+set}" = set; then :
  23718.   withval=$with_opencl_libdir; OPENCL_LIB_INSTALL_DIR="$withval"
  23719. else
  23720.   OPENCL_LIB_INSTALL_DIR='${libdir}/opencl'
  23721. fi
  23722.  
  23723.  
  23724.  
  23725. gallium_check_st() {
  23726.     if test "x$NEED_NONNULL_WINSYS" = xyes; then
  23727.          if test "x$have_libdrm" != xyes; then
  23728.             as_fn_error $? "DRI or Xorg DDX requires libdrm >= $LIBDRM_REQUIRED" "$LINENO" 5
  23729.          fi
  23730.          GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS $1"
  23731.     fi
  23732.     if test "x$enable_dri" = xyes && test "x$2" != x; then
  23733.          GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS $2"
  23734.          HAVE_COMMON_DRI=yes
  23735.     fi
  23736.     if test "x$enable_xorg" = xyes && test "x$3" != x; then
  23737.          GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS $3"
  23738.     fi
  23739.     if test "x$enable_xa" = xyes && test "x$4" != x; then
  23740.          GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS $4"
  23741.     fi
  23742.     if test "x$enable_xvmc" = xyes && test "x$5" != x; then
  23743.          GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS $5"
  23744.     fi
  23745.     if test "x$enable_vdpau" = xyes && test "x$6" != x; then
  23746.          GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS $6"
  23747.     fi
  23748. }
  23749.  
  23750. gallium_require_llvm() {
  23751.     if test "x$MESA_LLVM" = x0; then
  23752.         case "$host_cpu" in
  23753.         i*86|x86_64|amd64) as_fn_error $? "LLVM is required to build $1 on x86 and x86_64" "$LINENO" 5;;
  23754.         esac
  23755.     fi
  23756. }
  23757.  
  23758. gallium_require_drm_loader() {
  23759.     if test "x$enable_gallium_loader" = xyes; then
  23760.  
  23761. pkg_failed=no
  23762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
  23763. $as_echo_n "checking for LIBUDEV... " >&6; }
  23764.  
  23765. if test -n "$LIBUDEV_CFLAGS"; then
  23766.     pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
  23767.  elif test -n "$PKG_CONFIG"; then
  23768.     if test -n "$PKG_CONFIG" && \
  23769.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
  23770.   ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
  23771.   ac_status=$?
  23772.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23773.   test $ac_status = 0; }; then
  23774.   pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
  23775.                       test "x$?" != "x0" && pkg_failed=yes
  23776. else
  23777.   pkg_failed=yes
  23778. fi
  23779.  else
  23780.     pkg_failed=untried
  23781. fi
  23782. if test -n "$LIBUDEV_LIBS"; then
  23783.     pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
  23784.  elif test -n "$PKG_CONFIG"; then
  23785.     if test -n "$PKG_CONFIG" && \
  23786.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
  23787.   ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
  23788.   ac_status=$?
  23789.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23790.   test $ac_status = 0; }; then
  23791.   pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
  23792.                       test "x$?" != "x0" && pkg_failed=yes
  23793. else
  23794.   pkg_failed=yes
  23795. fi
  23796.  else
  23797.     pkg_failed=untried
  23798. fi
  23799.  
  23800.  
  23801.  
  23802. if test $pkg_failed = yes; then
  23803.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23804. $as_echo "no" >&6; }
  23805.  
  23806. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23807.         _pkg_short_errors_supported=yes
  23808. else
  23809.         _pkg_short_errors_supported=no
  23810. fi
  23811.         if test $_pkg_short_errors_supported = yes; then
  23812.                 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
  23813.         else
  23814.                 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
  23815.         fi
  23816.         # Put the nasty error message in config.log where it belongs
  23817.         echo "$LIBUDEV_PKG_ERRORS" >&5
  23818.  
  23819.         as_fn_error $? "Gallium drm loader requires libudev" "$LINENO" 5
  23820. elif test $pkg_failed = untried; then
  23821.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23822. $as_echo "no" >&6; }
  23823.         as_fn_error $? "Gallium drm loader requires libudev" "$LINENO" 5
  23824. else
  23825.         LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
  23826.         LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
  23827.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23828. $as_echo "yes" >&6; }
  23829.  
  23830. fi
  23831.         if test "x$have_libdrm" != xyes; then
  23832.             as_fn_error $? "Gallium drm loader requires libdrm >= $LIBDRM_REQUIRED" "$LINENO" 5
  23833.         fi
  23834.         enable_gallium_drm_loader=yes
  23835.     fi
  23836. }
  23837.  
  23838. radeon_llvm_check() {
  23839.     LLVM_REQUIRED_VERSION_MAJOR="3"
  23840.     LLVM_REQUIRED_VERSION_MINOR="3"
  23841.     if test "$LLVM_VERSION_INT" -lt "${LLVM_REQUIRED_VERSION_MAJOR}0${LLVM_REQUIRED_VERSION_MINOR}"; then
  23842.         as_fn_error $? "LLVM $LLVM_REQUIRED_VERSION_MAJOR.$LLVM_REQUIRED_VERSION_MINOR or newer is required for r600g and radeonsi." "$LINENO" 5
  23843.     fi
  23844.     if test true && $LLVM_CONFIG --targets-built | grep -qvw 'R600' ; then
  23845.         as_fn_error $? "LLVM R600 Target not enabled.  You can enable it when building the LLVM
  23846.                       sources with the --enable-experimental-targets=R600
  23847.                       configure flag" "$LINENO" 5
  23848.     fi
  23849.     LLVM_COMPONENTS="${LLVM_COMPONENTS} r600 bitreader ipo"
  23850.     NEED_RADEON_LLVM=yes
  23851.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_memory in -lelf" >&5
  23852. $as_echo_n "checking for elf_memory in -lelf... " >&6; }
  23853. if ${ac_cv_lib_elf_elf_memory+:} false; then :
  23854.   $as_echo_n "(cached) " >&6
  23855. else
  23856.   ac_check_lib_save_LIBS=$LIBS
  23857. LIBS="-lelf  $LIBS"
  23858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23859. /* end confdefs.h.  */
  23860.  
  23861. /* Override any GCC internal prototype to avoid an error.
  23862.    Use char because int might match the return type of a GCC
  23863.    builtin and then its argument prototype would still apply.  */
  23864. #ifdef __cplusplus
  23865. extern "C"
  23866. #endif
  23867. char elf_memory ();
  23868. int
  23869. main ()
  23870. {
  23871. return elf_memory ();
  23872.   ;
  23873.   return 0;
  23874. }
  23875. _ACEOF
  23876. if ac_fn_c_try_link "$LINENO"; then :
  23877.   ac_cv_lib_elf_elf_memory=yes
  23878. else
  23879.   ac_cv_lib_elf_elf_memory=no
  23880. fi
  23881. rm -f core conftest.err conftest.$ac_objext \
  23882.     conftest$ac_exeext conftest.$ac_ext
  23883. LIBS=$ac_check_lib_save_LIBS
  23884. fi
  23885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_memory" >&5
  23886. $as_echo "$ac_cv_lib_elf_elf_memory" >&6; }
  23887. if test "x$ac_cv_lib_elf_elf_memory" = xyes; then :
  23888.   ELF_LIB=-lelf
  23889. else
  23890.   as_fn_error $? "radeonsi and r600g require libelf when using LLVM" "$LINENO" 5
  23891. fi
  23892.  
  23893. }
  23894.  
  23895. if test "x$enable_dri" = xyes -o "x$enable_xorg" = xyes -o \
  23896.         "x$enable_xa" = xyes -o "x$enable_xvmc" = xyes -o \
  23897.         "x$enable_vdpau" = xyes; then
  23898.     NEED_NONNULL_WINSYS=yes
  23899. fi
  23900.  if test "x$NEED_NONNULL_WINSYS" = xyes; then
  23901.   NEED_NONNULL_WINSYS_TRUE=
  23902.   NEED_NONNULL_WINSYS_FALSE='#'
  23903. else
  23904.   NEED_NONNULL_WINSYS_TRUE='#'
  23905.   NEED_NONNULL_WINSYS_FALSE=
  23906. fi
  23907.  
  23908.  
  23909. if test "x$with_gallium_drivers" != x; then
  23910.     gallium_drivers=`IFS=', '; echo $with_gallium_drivers`
  23911.     for driver in $gallium_drivers; do
  23912.         case "x$driver" in
  23913.         xsvga)
  23914.             HAVE_GALLIUM_SVGA=yes
  23915.             GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS svga softpipe"
  23916.             gallium_check_st "svga/drm" "dri-vmwgfx" "" "xa-vmwgfx"
  23917.             ;;
  23918.         xi915)
  23919.             HAVE_GALLIUM_I915=yes
  23920.  
  23921. pkg_failed=no
  23922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INTEL" >&5
  23923. $as_echo_n "checking for INTEL... " >&6; }
  23924.  
  23925. if test -n "$INTEL_CFLAGS"; then
  23926.     pkg_cv_INTEL_CFLAGS="$INTEL_CFLAGS"
  23927.  elif test -n "$PKG_CONFIG"; then
  23928.     if test -n "$PKG_CONFIG" && \
  23929.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$LIBDRM_INTEL_REQUIRED\""; } >&5
  23930.   ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $LIBDRM_INTEL_REQUIRED") 2>&5
  23931.   ac_status=$?
  23932.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23933.   test $ac_status = 0; }; then
  23934.   pkg_cv_INTEL_CFLAGS=`$PKG_CONFIG --cflags "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>/dev/null`
  23935.                       test "x$?" != "x0" && pkg_failed=yes
  23936. else
  23937.   pkg_failed=yes
  23938. fi
  23939.  else
  23940.     pkg_failed=untried
  23941. fi
  23942. if test -n "$INTEL_LIBS"; then
  23943.     pkg_cv_INTEL_LIBS="$INTEL_LIBS"
  23944.  elif test -n "$PKG_CONFIG"; then
  23945.     if test -n "$PKG_CONFIG" && \
  23946.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$LIBDRM_INTEL_REQUIRED\""; } >&5
  23947.   ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $LIBDRM_INTEL_REQUIRED") 2>&5
  23948.   ac_status=$?
  23949.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23950.   test $ac_status = 0; }; then
  23951.   pkg_cv_INTEL_LIBS=`$PKG_CONFIG --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>/dev/null`
  23952.                       test "x$?" != "x0" && pkg_failed=yes
  23953. else
  23954.   pkg_failed=yes
  23955. fi
  23956.  else
  23957.     pkg_failed=untried
  23958. fi
  23959.  
  23960.  
  23961.  
  23962. if test $pkg_failed = yes; then
  23963.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23964. $as_echo "no" >&6; }
  23965.  
  23966. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23967.         _pkg_short_errors_supported=yes
  23968. else
  23969.         _pkg_short_errors_supported=no
  23970. fi
  23971.         if test $_pkg_short_errors_supported = yes; then
  23972.                 INTEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>&1`
  23973.         else
  23974.                 INTEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>&1`
  23975.         fi
  23976.         # Put the nasty error message in config.log where it belongs
  23977.         echo "$INTEL_PKG_ERRORS" >&5
  23978.  
  23979.         as_fn_error $? "Package requirements (libdrm_intel >= $LIBDRM_INTEL_REQUIRED) were not met:
  23980.  
  23981. $INTEL_PKG_ERRORS
  23982.  
  23983. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  23984. installed software in a non-standard prefix.
  23985.  
  23986. Alternatively, you may set the environment variables INTEL_CFLAGS
  23987. and INTEL_LIBS to avoid the need to call pkg-config.
  23988. See the pkg-config man page for more details." "$LINENO" 5
  23989. elif test $pkg_failed = untried; then
  23990.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23991. $as_echo "no" >&6; }
  23992.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23993. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23994. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  23995. is in your PATH or set the PKG_CONFIG environment variable to the full
  23996. path to pkg-config.
  23997.  
  23998. Alternatively, you may set the environment variables INTEL_CFLAGS
  23999. and INTEL_LIBS to avoid the need to call pkg-config.
  24000. See the pkg-config man page for more details.
  24001.  
  24002. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  24003. See \`config.log' for more details" "$LINENO" 5; }
  24004. else
  24005.         INTEL_CFLAGS=$pkg_cv_INTEL_CFLAGS
  24006.         INTEL_LIBS=$pkg_cv_INTEL_LIBS
  24007.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24008. $as_echo "yes" >&6; }
  24009.  
  24010. fi
  24011.             GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS i915 softpipe"
  24012.             if test "x$MESA_LLVM" = x1; then
  24013.                 GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS llvmpipe"
  24014.             fi
  24015.             GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS i915/sw"
  24016.             gallium_check_st "i915/drm" "dri-i915" "xorg-i915"
  24017.             ;;
  24018.         xilo)
  24019.             HAVE_GALLIUM_ILO=yes
  24020.  
  24021. pkg_failed=no
  24022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INTEL" >&5
  24023. $as_echo_n "checking for INTEL... " >&6; }
  24024.  
  24025. if test -n "$INTEL_CFLAGS"; then
  24026.     pkg_cv_INTEL_CFLAGS="$INTEL_CFLAGS"
  24027.  elif test -n "$PKG_CONFIG"; then
  24028.     if test -n "$PKG_CONFIG" && \
  24029.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$LIBDRM_INTEL_REQUIRED\""; } >&5
  24030.   ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $LIBDRM_INTEL_REQUIRED") 2>&5
  24031.   ac_status=$?
  24032.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24033.   test $ac_status = 0; }; then
  24034.   pkg_cv_INTEL_CFLAGS=`$PKG_CONFIG --cflags "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>/dev/null`
  24035.                       test "x$?" != "x0" && pkg_failed=yes
  24036. else
  24037.   pkg_failed=yes
  24038. fi
  24039.  else
  24040.     pkg_failed=untried
  24041. fi
  24042. if test -n "$INTEL_LIBS"; then
  24043.     pkg_cv_INTEL_LIBS="$INTEL_LIBS"
  24044.  elif test -n "$PKG_CONFIG"; then
  24045.     if test -n "$PKG_CONFIG" && \
  24046.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$LIBDRM_INTEL_REQUIRED\""; } >&5
  24047.   ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $LIBDRM_INTEL_REQUIRED") 2>&5
  24048.   ac_status=$?
  24049.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24050.   test $ac_status = 0; }; then
  24051.   pkg_cv_INTEL_LIBS=`$PKG_CONFIG --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>/dev/null`
  24052.                       test "x$?" != "x0" && pkg_failed=yes
  24053. else
  24054.   pkg_failed=yes
  24055. fi
  24056.  else
  24057.     pkg_failed=untried
  24058. fi
  24059.  
  24060.  
  24061.  
  24062. if test $pkg_failed = yes; then
  24063.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24064. $as_echo "no" >&6; }
  24065.  
  24066. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24067.         _pkg_short_errors_supported=yes
  24068. else
  24069.         _pkg_short_errors_supported=no
  24070. fi
  24071.         if test $_pkg_short_errors_supported = yes; then
  24072.                 INTEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>&1`
  24073.         else
  24074.                 INTEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>&1`
  24075.         fi
  24076.         # Put the nasty error message in config.log where it belongs
  24077.         echo "$INTEL_PKG_ERRORS" >&5
  24078.  
  24079.         as_fn_error $? "Package requirements (libdrm_intel >= $LIBDRM_INTEL_REQUIRED) were not met:
  24080.  
  24081. $INTEL_PKG_ERRORS
  24082.  
  24083. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  24084. installed software in a non-standard prefix.
  24085.  
  24086. Alternatively, you may set the environment variables INTEL_CFLAGS
  24087. and INTEL_LIBS to avoid the need to call pkg-config.
  24088. See the pkg-config man page for more details." "$LINENO" 5
  24089. elif test $pkg_failed = untried; then
  24090.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24091. $as_echo "no" >&6; }
  24092.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24093. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24094. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  24095. is in your PATH or set the PKG_CONFIG environment variable to the full
  24096. path to pkg-config.
  24097.  
  24098. Alternatively, you may set the environment variables INTEL_CFLAGS
  24099. and INTEL_LIBS to avoid the need to call pkg-config.
  24100. See the pkg-config man page for more details.
  24101.  
  24102. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  24103. See \`config.log' for more details" "$LINENO" 5; }
  24104. else
  24105.         INTEL_CFLAGS=$pkg_cv_INTEL_CFLAGS
  24106.         INTEL_LIBS=$pkg_cv_INTEL_LIBS
  24107.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24108. $as_echo "yes" >&6; }
  24109.  
  24110. fi
  24111.             gallium_require_drm_loader
  24112.             GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS ilo"
  24113.             gallium_check_st "intel/drm" "dri-ilo"
  24114.             ;;
  24115.         xr300)
  24116.             HAVE_GALLIUM_R300=yes
  24117.  
  24118. pkg_failed=no
  24119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RADEON" >&5
  24120. $as_echo_n "checking for RADEON... " >&6; }
  24121.  
  24122. if test -n "$RADEON_CFLAGS"; then
  24123.     pkg_cv_RADEON_CFLAGS="$RADEON_CFLAGS"
  24124.  elif test -n "$PKG_CONFIG"; then
  24125.     if test -n "$PKG_CONFIG" && \
  24126.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  24127.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  24128.   ac_status=$?
  24129.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24130.   test $ac_status = 0; }; then
  24131.   pkg_cv_RADEON_CFLAGS=`$PKG_CONFIG --cflags "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  24132.                       test "x$?" != "x0" && pkg_failed=yes
  24133. else
  24134.   pkg_failed=yes
  24135. fi
  24136.  else
  24137.     pkg_failed=untried
  24138. fi
  24139. if test -n "$RADEON_LIBS"; then
  24140.     pkg_cv_RADEON_LIBS="$RADEON_LIBS"
  24141.  elif test -n "$PKG_CONFIG"; then
  24142.     if test -n "$PKG_CONFIG" && \
  24143.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  24144.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  24145.   ac_status=$?
  24146.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24147.   test $ac_status = 0; }; then
  24148.   pkg_cv_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  24149.                       test "x$?" != "x0" && pkg_failed=yes
  24150. else
  24151.   pkg_failed=yes
  24152. fi
  24153.  else
  24154.     pkg_failed=untried
  24155. fi
  24156.  
  24157.  
  24158.  
  24159. if test $pkg_failed = yes; then
  24160.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24161. $as_echo "no" >&6; }
  24162.  
  24163. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24164.         _pkg_short_errors_supported=yes
  24165. else
  24166.         _pkg_short_errors_supported=no
  24167. fi
  24168.         if test $_pkg_short_errors_supported = yes; then
  24169.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  24170.         else
  24171.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  24172.         fi
  24173.         # Put the nasty error message in config.log where it belongs
  24174.         echo "$RADEON_PKG_ERRORS" >&5
  24175.  
  24176.         as_fn_error $? "Package requirements (libdrm_radeon >= $LIBDRM_RADEON_REQUIRED) were not met:
  24177.  
  24178. $RADEON_PKG_ERRORS
  24179.  
  24180. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  24181. installed software in a non-standard prefix.
  24182.  
  24183. Alternatively, you may set the environment variables RADEON_CFLAGS
  24184. and RADEON_LIBS to avoid the need to call pkg-config.
  24185. See the pkg-config man page for more details." "$LINENO" 5
  24186. elif test $pkg_failed = untried; then
  24187.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24188. $as_echo "no" >&6; }
  24189.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24190. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24191. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  24192. is in your PATH or set the PKG_CONFIG environment variable to the full
  24193. path to pkg-config.
  24194.  
  24195. Alternatively, you may set the environment variables RADEON_CFLAGS
  24196. and RADEON_LIBS to avoid the need to call pkg-config.
  24197. See the pkg-config man page for more details.
  24198.  
  24199. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  24200. See \`config.log' for more details" "$LINENO" 5; }
  24201. else
  24202.         RADEON_CFLAGS=$pkg_cv_RADEON_CFLAGS
  24203.         RADEON_LIBS=$pkg_cv_RADEON_LIBS
  24204.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24205. $as_echo "yes" >&6; }
  24206.  
  24207. fi
  24208.             gallium_require_llvm "Gallium R300"
  24209.             GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS r300"
  24210.             gallium_check_st "radeon/drm" "dri-r300" "" "" "xvmc-r300" "vdpau-r300"
  24211.             ;;
  24212.         xr600)
  24213.             HAVE_GALLIUM_R600=yes
  24214.  
  24215. pkg_failed=no
  24216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RADEON" >&5
  24217. $as_echo_n "checking for RADEON... " >&6; }
  24218.  
  24219. if test -n "$RADEON_CFLAGS"; then
  24220.     pkg_cv_RADEON_CFLAGS="$RADEON_CFLAGS"
  24221.  elif test -n "$PKG_CONFIG"; then
  24222.     if test -n "$PKG_CONFIG" && \
  24223.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  24224.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  24225.   ac_status=$?
  24226.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24227.   test $ac_status = 0; }; then
  24228.   pkg_cv_RADEON_CFLAGS=`$PKG_CONFIG --cflags "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  24229.                       test "x$?" != "x0" && pkg_failed=yes
  24230. else
  24231.   pkg_failed=yes
  24232. fi
  24233.  else
  24234.     pkg_failed=untried
  24235. fi
  24236. if test -n "$RADEON_LIBS"; then
  24237.     pkg_cv_RADEON_LIBS="$RADEON_LIBS"
  24238.  elif test -n "$PKG_CONFIG"; then
  24239.     if test -n "$PKG_CONFIG" && \
  24240.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  24241.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  24242.   ac_status=$?
  24243.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24244.   test $ac_status = 0; }; then
  24245.   pkg_cv_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  24246.                       test "x$?" != "x0" && pkg_failed=yes
  24247. else
  24248.   pkg_failed=yes
  24249. fi
  24250.  else
  24251.     pkg_failed=untried
  24252. fi
  24253.  
  24254.  
  24255.  
  24256. if test $pkg_failed = yes; then
  24257.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24258. $as_echo "no" >&6; }
  24259.  
  24260. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24261.         _pkg_short_errors_supported=yes
  24262. else
  24263.         _pkg_short_errors_supported=no
  24264. fi
  24265.         if test $_pkg_short_errors_supported = yes; then
  24266.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  24267.         else
  24268.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  24269.         fi
  24270.         # Put the nasty error message in config.log where it belongs
  24271.         echo "$RADEON_PKG_ERRORS" >&5
  24272.  
  24273.         as_fn_error $? "Package requirements (libdrm_radeon >= $LIBDRM_RADEON_REQUIRED) were not met:
  24274.  
  24275. $RADEON_PKG_ERRORS
  24276.  
  24277. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  24278. installed software in a non-standard prefix.
  24279.  
  24280. Alternatively, you may set the environment variables RADEON_CFLAGS
  24281. and RADEON_LIBS to avoid the need to call pkg-config.
  24282. See the pkg-config man page for more details." "$LINENO" 5
  24283. elif test $pkg_failed = untried; then
  24284.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24285. $as_echo "no" >&6; }
  24286.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24288. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  24289. is in your PATH or set the PKG_CONFIG environment variable to the full
  24290. path to pkg-config.
  24291.  
  24292. Alternatively, you may set the environment variables RADEON_CFLAGS
  24293. and RADEON_LIBS to avoid the need to call pkg-config.
  24294. See the pkg-config man page for more details.
  24295.  
  24296. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  24297. See \`config.log' for more details" "$LINENO" 5; }
  24298. else
  24299.         RADEON_CFLAGS=$pkg_cv_RADEON_CFLAGS
  24300.         RADEON_LIBS=$pkg_cv_RADEON_LIBS
  24301.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24302. $as_echo "yes" >&6; }
  24303.  
  24304. fi
  24305.             gallium_require_drm_loader
  24306.             GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS r600"
  24307.             if test "x$enable_r600_llvm" = xyes -o "x$enable_opencl" = xyes; then
  24308.                 radeon_llvm_check
  24309.                 R600_NEED_RADEON_GALLIUM=yes;
  24310.                 LLVM_COMPONENTS="${LLVM_COMPONENTS} bitreader asmparser"
  24311.             fi
  24312.             if test "x$enable_r600_llvm" = xyes; then
  24313.                 USE_R600_LLVM_COMPILER=yes;
  24314.             fi
  24315.             if test "x$enable_opencl" = xyes; then
  24316.                 LLVM_COMPONENTS="${LLVM_COMPONENTS} bitreader asmparser"
  24317.             fi
  24318.             gallium_check_st "radeon/drm" "dri-r600" "xorg-r600" "" "xvmc-r600" "vdpau-r600"
  24319.             ;;
  24320.         xradeonsi)
  24321.             HAVE_GALLIUM_RADEONSI=yes
  24322.  
  24323. pkg_failed=no
  24324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RADEON" >&5
  24325. $as_echo_n "checking for RADEON... " >&6; }
  24326.  
  24327. if test -n "$RADEON_CFLAGS"; then
  24328.     pkg_cv_RADEON_CFLAGS="$RADEON_CFLAGS"
  24329.  elif test -n "$PKG_CONFIG"; then
  24330.     if test -n "$PKG_CONFIG" && \
  24331.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  24332.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  24333.   ac_status=$?
  24334.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24335.   test $ac_status = 0; }; then
  24336.   pkg_cv_RADEON_CFLAGS=`$PKG_CONFIG --cflags "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  24337.                       test "x$?" != "x0" && pkg_failed=yes
  24338. else
  24339.   pkg_failed=yes
  24340. fi
  24341.  else
  24342.     pkg_failed=untried
  24343. fi
  24344. if test -n "$RADEON_LIBS"; then
  24345.     pkg_cv_RADEON_LIBS="$RADEON_LIBS"
  24346.  elif test -n "$PKG_CONFIG"; then
  24347.     if test -n "$PKG_CONFIG" && \
  24348.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  24349.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  24350.   ac_status=$?
  24351.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24352.   test $ac_status = 0; }; then
  24353.   pkg_cv_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  24354.                       test "x$?" != "x0" && pkg_failed=yes
  24355. else
  24356.   pkg_failed=yes
  24357. fi
  24358.  else
  24359.     pkg_failed=untried
  24360. fi
  24361.  
  24362.  
  24363.  
  24364. if test $pkg_failed = yes; then
  24365.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24366. $as_echo "no" >&6; }
  24367.  
  24368. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24369.         _pkg_short_errors_supported=yes
  24370. else
  24371.         _pkg_short_errors_supported=no
  24372. fi
  24373.         if test $_pkg_short_errors_supported = yes; then
  24374.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  24375.         else
  24376.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  24377.         fi
  24378.         # Put the nasty error message in config.log where it belongs
  24379.         echo "$RADEON_PKG_ERRORS" >&5
  24380.  
  24381.         as_fn_error $? "Package requirements (libdrm_radeon >= $LIBDRM_RADEON_REQUIRED) were not met:
  24382.  
  24383. $RADEON_PKG_ERRORS
  24384.  
  24385. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  24386. installed software in a non-standard prefix.
  24387.  
  24388. Alternatively, you may set the environment variables RADEON_CFLAGS
  24389. and RADEON_LIBS to avoid the need to call pkg-config.
  24390. See the pkg-config man page for more details." "$LINENO" 5
  24391. elif test $pkg_failed = untried; then
  24392.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24393. $as_echo "no" >&6; }
  24394.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24395. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24396. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  24397. is in your PATH or set the PKG_CONFIG environment variable to the full
  24398. path to pkg-config.
  24399.  
  24400. Alternatively, you may set the environment variables RADEON_CFLAGS
  24401. and RADEON_LIBS to avoid the need to call pkg-config.
  24402. See the pkg-config man page for more details.
  24403.  
  24404. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  24405. See \`config.log' for more details" "$LINENO" 5; }
  24406. else
  24407.         RADEON_CFLAGS=$pkg_cv_RADEON_CFLAGS
  24408.         RADEON_LIBS=$pkg_cv_RADEON_LIBS
  24409.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24410. $as_echo "yes" >&6; }
  24411.  
  24412. fi
  24413.             gallium_require_drm_loader
  24414.             GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS radeonsi"
  24415.             radeon_llvm_check
  24416.             gallium_check_st "radeon/drm" "dri-radeonsi" "xorg-radeonsi" "" "" "vdpau-radeonsi" ""
  24417.             ;;
  24418.         xnouveau)
  24419.             HAVE_GALLIUM_NOUVEAU=yes
  24420.  
  24421. pkg_failed=no
  24422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NOUVEAU" >&5
  24423. $as_echo_n "checking for NOUVEAU... " >&6; }
  24424.  
  24425. if test -n "$NOUVEAU_CFLAGS"; then
  24426.     pkg_cv_NOUVEAU_CFLAGS="$NOUVEAU_CFLAGS"
  24427.  elif test -n "$PKG_CONFIG"; then
  24428.     if test -n "$PKG_CONFIG" && \
  24429.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= \$LIBDRM_NOUVEAU_REQUIRED\""; } >&5
  24430.   ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= $LIBDRM_NOUVEAU_REQUIRED") 2>&5
  24431.   ac_status=$?
  24432.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24433.   test $ac_status = 0; }; then
  24434.   pkg_cv_NOUVEAU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_nouveau >= $LIBDRM_NOUVEAU_REQUIRED" 2>/dev/null`
  24435.                       test "x$?" != "x0" && pkg_failed=yes
  24436. else
  24437.   pkg_failed=yes
  24438. fi
  24439.  else
  24440.     pkg_failed=untried
  24441. fi
  24442. if test -n "$NOUVEAU_LIBS"; then
  24443.     pkg_cv_NOUVEAU_LIBS="$NOUVEAU_LIBS"
  24444.  elif test -n "$PKG_CONFIG"; then
  24445.     if test -n "$PKG_CONFIG" && \
  24446.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= \$LIBDRM_NOUVEAU_REQUIRED\""; } >&5
  24447.   ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= $LIBDRM_NOUVEAU_REQUIRED") 2>&5
  24448.   ac_status=$?
  24449.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24450.   test $ac_status = 0; }; then
  24451.   pkg_cv_NOUVEAU_LIBS=`$PKG_CONFIG --libs "libdrm_nouveau >= $LIBDRM_NOUVEAU_REQUIRED" 2>/dev/null`
  24452.                       test "x$?" != "x0" && pkg_failed=yes
  24453. else
  24454.   pkg_failed=yes
  24455. fi
  24456.  else
  24457.     pkg_failed=untried
  24458. fi
  24459.  
  24460.  
  24461.  
  24462. if test $pkg_failed = yes; then
  24463.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24464. $as_echo "no" >&6; }
  24465.  
  24466. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24467.         _pkg_short_errors_supported=yes
  24468. else
  24469.         _pkg_short_errors_supported=no
  24470. fi
  24471.         if test $_pkg_short_errors_supported = yes; then
  24472.                 NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_nouveau >= $LIBDRM_NOUVEAU_REQUIRED" 2>&1`
  24473.         else
  24474.                 NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_nouveau >= $LIBDRM_NOUVEAU_REQUIRED" 2>&1`
  24475.         fi
  24476.         # Put the nasty error message in config.log where it belongs
  24477.         echo "$NOUVEAU_PKG_ERRORS" >&5
  24478.  
  24479.         as_fn_error $? "Package requirements (libdrm_nouveau >= $LIBDRM_NOUVEAU_REQUIRED) were not met:
  24480.  
  24481. $NOUVEAU_PKG_ERRORS
  24482.  
  24483. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  24484. installed software in a non-standard prefix.
  24485.  
  24486. Alternatively, you may set the environment variables NOUVEAU_CFLAGS
  24487. and NOUVEAU_LIBS to avoid the need to call pkg-config.
  24488. See the pkg-config man page for more details." "$LINENO" 5
  24489. elif test $pkg_failed = untried; then
  24490.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24491. $as_echo "no" >&6; }
  24492.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24493. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24494. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  24495. is in your PATH or set the PKG_CONFIG environment variable to the full
  24496. path to pkg-config.
  24497.  
  24498. Alternatively, you may set the environment variables NOUVEAU_CFLAGS
  24499. and NOUVEAU_LIBS to avoid the need to call pkg-config.
  24500. See the pkg-config man page for more details.
  24501.  
  24502. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  24503. See \`config.log' for more details" "$LINENO" 5; }
  24504. else
  24505.         NOUVEAU_CFLAGS=$pkg_cv_NOUVEAU_CFLAGS
  24506.         NOUVEAU_LIBS=$pkg_cv_NOUVEAU_LIBS
  24507.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24508. $as_echo "yes" >&6; }
  24509.  
  24510. fi
  24511.             gallium_require_drm_loader
  24512.             GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS nouveau nv30 nv50 nvc0"
  24513.             gallium_check_st "nouveau/drm" "dri-nouveau" "xorg-nouveau" "" "xvmc-nouveau" "vdpau-nouveau"
  24514.             ;;
  24515.         xfreedreno)
  24516.             HAVE_GALLIUM_FREEDRENO=yes
  24517.  
  24518. pkg_failed=no
  24519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREEDRENO" >&5
  24520. $as_echo_n "checking for FREEDRENO... " >&6; }
  24521.  
  24522. if test -n "$FREEDRENO_CFLAGS"; then
  24523.     pkg_cv_FREEDRENO_CFLAGS="$FREEDRENO_CFLAGS"
  24524.  elif test -n "$PKG_CONFIG"; then
  24525.     if test -n "$PKG_CONFIG" && \
  24526.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_freedreno >= \$LIBDRM_FREEDRENO_REQUIRED\""; } >&5
  24527.   ($PKG_CONFIG --exists --print-errors "libdrm_freedreno >= $LIBDRM_FREEDRENO_REQUIRED") 2>&5
  24528.   ac_status=$?
  24529.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24530.   test $ac_status = 0; }; then
  24531.   pkg_cv_FREEDRENO_CFLAGS=`$PKG_CONFIG --cflags "libdrm_freedreno >= $LIBDRM_FREEDRENO_REQUIRED" 2>/dev/null`
  24532.                       test "x$?" != "x0" && pkg_failed=yes
  24533. else
  24534.   pkg_failed=yes
  24535. fi
  24536.  else
  24537.     pkg_failed=untried
  24538. fi
  24539. if test -n "$FREEDRENO_LIBS"; then
  24540.     pkg_cv_FREEDRENO_LIBS="$FREEDRENO_LIBS"
  24541.  elif test -n "$PKG_CONFIG"; then
  24542.     if test -n "$PKG_CONFIG" && \
  24543.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_freedreno >= \$LIBDRM_FREEDRENO_REQUIRED\""; } >&5
  24544.   ($PKG_CONFIG --exists --print-errors "libdrm_freedreno >= $LIBDRM_FREEDRENO_REQUIRED") 2>&5
  24545.   ac_status=$?
  24546.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24547.   test $ac_status = 0; }; then
  24548.   pkg_cv_FREEDRENO_LIBS=`$PKG_CONFIG --libs "libdrm_freedreno >= $LIBDRM_FREEDRENO_REQUIRED" 2>/dev/null`
  24549.                       test "x$?" != "x0" && pkg_failed=yes
  24550. else
  24551.   pkg_failed=yes
  24552. fi
  24553.  else
  24554.     pkg_failed=untried
  24555. fi
  24556.  
  24557.  
  24558.  
  24559. if test $pkg_failed = yes; then
  24560.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24561. $as_echo "no" >&6; }
  24562.  
  24563. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24564.         _pkg_short_errors_supported=yes
  24565. else
  24566.         _pkg_short_errors_supported=no
  24567. fi
  24568.         if test $_pkg_short_errors_supported = yes; then
  24569.                 FREEDRENO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_freedreno >= $LIBDRM_FREEDRENO_REQUIRED" 2>&1`
  24570.         else
  24571.                 FREEDRENO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_freedreno >= $LIBDRM_FREEDRENO_REQUIRED" 2>&1`
  24572.         fi
  24573.         # Put the nasty error message in config.log where it belongs
  24574.         echo "$FREEDRENO_PKG_ERRORS" >&5
  24575.  
  24576.         as_fn_error $? "Package requirements (libdrm_freedreno >= $LIBDRM_FREEDRENO_REQUIRED) were not met:
  24577.  
  24578. $FREEDRENO_PKG_ERRORS
  24579.  
  24580. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  24581. installed software in a non-standard prefix.
  24582.  
  24583. Alternatively, you may set the environment variables FREEDRENO_CFLAGS
  24584. and FREEDRENO_LIBS to avoid the need to call pkg-config.
  24585. See the pkg-config man page for more details." "$LINENO" 5
  24586. elif test $pkg_failed = untried; then
  24587.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24588. $as_echo "no" >&6; }
  24589.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24590. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24591. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  24592. is in your PATH or set the PKG_CONFIG environment variable to the full
  24593. path to pkg-config.
  24594.  
  24595. Alternatively, you may set the environment variables FREEDRENO_CFLAGS
  24596. and FREEDRENO_LIBS to avoid the need to call pkg-config.
  24597. See the pkg-config man page for more details.
  24598.  
  24599. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  24600. See \`config.log' for more details" "$LINENO" 5; }
  24601. else
  24602.         FREEDRENO_CFLAGS=$pkg_cv_FREEDRENO_CFLAGS
  24603.         FREEDRENO_LIBS=$pkg_cv_FREEDRENO_LIBS
  24604.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24605. $as_echo "yes" >&6; }
  24606.  
  24607. fi
  24608.             gallium_require_drm_loader
  24609.             GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS freedreno"
  24610.             gallium_check_st "freedreno/drm" "dri-freedreno" "" "" "" ""
  24611.             ;;
  24612.         xswrast)
  24613.             HAVE_GALLIUM_SOFTPIPE=yes
  24614.             GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS softpipe"
  24615.             if test "x$MESA_LLVM" = x1; then
  24616.                 HAVE_GALLIUM_LLVMPIPE=yes
  24617.                 GALLIUM_DRIVERS_DIRS="$GALLIUM_DRIVERS_DIRS llvmpipe"
  24618.             fi
  24619.  
  24620.             if test "x$enable_dri" = xyes; then
  24621.                 GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS dri-swrast"
  24622.                 HAVE_COMMON_DRI=yes
  24623.             fi
  24624.             if test "x$enable_vdpau" = xyes; then
  24625.                 GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS vdpau-softpipe"
  24626.             fi
  24627.             if test "x$enable_xvmc" = xyes; then
  24628.                 GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS xvmc-softpipe"
  24629.             fi
  24630.             if test "x$enable_vdpau" = xyes -o "x$enable_xvmc" = xyes; then
  24631.                 NEED_WINSYS_XLIB=yes
  24632.                 GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS sw/xlib"
  24633.             fi
  24634.             ;;
  24635.         *)
  24636.             as_fn_error $? "Unknown Gallium driver: $driver" "$LINENO" 5
  24637.             ;;
  24638.         esac
  24639.     done
  24640. fi
  24641.  
  24642.  
  24643. if test "x$MESA_LLVM" != x0; then
  24644.  
  24645.     LLVM_LIBS="`$LLVM_CONFIG --libs ${LLVM_COMPONENTS}`"
  24646.  
  24647.     if test "x$with_llvm_shared_libs" = xyes; then
  24648.                 LLVM_SO_NAME=LLVM-`$LLVM_CONFIG --version`
  24649.         if test -f "$LLVM_LIBDIR/lib$LLVM_SO_NAME.so"; then :
  24650.   llvm_have_one_so=yes
  24651. fi
  24652.  
  24653.         if test "x$llvm_have_one_so" = xyes; then
  24654.                         LLVM_LIBS="-l$LLVM_SO_NAME"
  24655.         else
  24656.                                     if test ! -f "$LLVM_LIBDIR/libLLVMTarget.so"; then :
  24657.   as_fn_error $? "Could not find llvm shared libraries:
  24658.         Please make sure you have built llvm with the --enable-shared option
  24659.         and that your llvm libraries are installed in $LLVM_LIBDIR
  24660.         If you have installed your llvm libraries to a different directory you
  24661.         can use the --with-llvm-prefix= configure flag to specify this directory.
  24662.         NOTE: Mesa is attempting to use llvm shared libraries because you have
  24663.         passed one of the following options to configure:
  24664.                 --with-llvm-shared-libs
  24665.                 --enable-opencl
  24666.         If you do not want to build with llvm shared libraries and instead want to
  24667.         use llvm static libraries then remove these options from your configure
  24668.         invocation and reconfigure." "$LINENO" 5
  24669. fi
  24670.  
  24671.                                          fi
  24672.     fi
  24673. fi
  24674.  
  24675.  if test "x$HAVE_GALLIUM_SVGA" = xyes; then
  24676.   HAVE_GALLIUM_SVGA_TRUE=
  24677.   HAVE_GALLIUM_SVGA_FALSE='#'
  24678. else
  24679.   HAVE_GALLIUM_SVGA_TRUE='#'
  24680.   HAVE_GALLIUM_SVGA_FALSE=
  24681. fi
  24682.  
  24683.  if test "x$HAVE_GALLIUM_I915" = xyes; then
  24684.   HAVE_GALLIUM_I915_TRUE=
  24685.   HAVE_GALLIUM_I915_FALSE='#'
  24686. else
  24687.   HAVE_GALLIUM_I915_TRUE='#'
  24688.   HAVE_GALLIUM_I915_FALSE=
  24689. fi
  24690.  
  24691.  if test "x$HAVE_GALLIUM_ILO" = xyes; then
  24692.   HAVE_GALLIUM_ILO_TRUE=
  24693.   HAVE_GALLIUM_ILO_FALSE='#'
  24694. else
  24695.   HAVE_GALLIUM_ILO_TRUE='#'
  24696.   HAVE_GALLIUM_ILO_FALSE=
  24697. fi
  24698.  
  24699.  if test "x$HAVE_GALLIUM_R300" = xyes; then
  24700.   HAVE_GALLIUM_R300_TRUE=
  24701.   HAVE_GALLIUM_R300_FALSE='#'
  24702. else
  24703.   HAVE_GALLIUM_R300_TRUE='#'
  24704.   HAVE_GALLIUM_R300_FALSE=
  24705. fi
  24706.  
  24707.  if test "x$HAVE_GALLIUM_R600" = xyes; then
  24708.   HAVE_GALLIUM_R600_TRUE=
  24709.   HAVE_GALLIUM_R600_FALSE='#'
  24710. else
  24711.   HAVE_GALLIUM_R600_TRUE='#'
  24712.   HAVE_GALLIUM_R600_FALSE=
  24713. fi
  24714.  
  24715.  if test "x$HAVE_GALLIUM_RADEONSI" = xyes; then
  24716.   HAVE_GALLIUM_RADEONSI_TRUE=
  24717.   HAVE_GALLIUM_RADEONSI_FALSE='#'
  24718. else
  24719.   HAVE_GALLIUM_RADEONSI_TRUE='#'
  24720.   HAVE_GALLIUM_RADEONSI_FALSE=
  24721. fi
  24722.  
  24723.  if test "x$HAVE_GALLIUM_NOUVEAU" = xyes; then
  24724.   HAVE_GALLIUM_NOUVEAU_TRUE=
  24725.   HAVE_GALLIUM_NOUVEAU_FALSE='#'
  24726. else
  24727.   HAVE_GALLIUM_NOUVEAU_TRUE='#'
  24728.   HAVE_GALLIUM_NOUVEAU_FALSE=
  24729. fi
  24730.  
  24731.  if test "x$HAVE_GALLIUM_FREEDRENO" = xyes; then
  24732.   HAVE_GALLIUM_FREEDRENO_TRUE=
  24733.   HAVE_GALLIUM_FREEDRENO_FALSE='#'
  24734. else
  24735.   HAVE_GALLIUM_FREEDRENO_TRUE='#'
  24736.   HAVE_GALLIUM_FREEDRENO_FALSE=
  24737. fi
  24738.  
  24739.  if test "x$HAVE_GALLIUM_SOFTPIPE" = xyes; then
  24740.   HAVE_GALLIUM_SOFTPIPE_TRUE=
  24741.   HAVE_GALLIUM_SOFTPIPE_FALSE='#'
  24742. else
  24743.   HAVE_GALLIUM_SOFTPIPE_TRUE='#'
  24744.   HAVE_GALLIUM_SOFTPIPE_FALSE=
  24745. fi
  24746.  
  24747.  if test "x$HAVE_GALLIUM_LLVMPIPE" = xyes; then
  24748.   HAVE_GALLIUM_LLVMPIPE_TRUE=
  24749.   HAVE_GALLIUM_LLVMPIPE_FALSE='#'
  24750. else
  24751.   HAVE_GALLIUM_LLVMPIPE_TRUE='#'
  24752.   HAVE_GALLIUM_LLVMPIPE_FALSE=
  24753. fi
  24754.  
  24755.  
  24756.  if test "x$HAVE_GALLIUM_SVGA" = xyes -o \
  24757.                                                   "x$HAVE_GALLIUM_I915" = xyes -o \
  24758.                                                   "x$HAVE_GALLIUM_SOFTPIPE" = xyes; then
  24759.   NEED_GALLIUM_SOFTPIPE_DRIVER_TRUE=
  24760.   NEED_GALLIUM_SOFTPIPE_DRIVER_FALSE='#'
  24761. else
  24762.   NEED_GALLIUM_SOFTPIPE_DRIVER_TRUE='#'
  24763.   NEED_GALLIUM_SOFTPIPE_DRIVER_FALSE=
  24764. fi
  24765.  
  24766.  if test "x$HAVE_GALLIUM_I915" = xyes -o \
  24767.                                                   "x$HAVE_GALLIUM_SOFTPIPE" = xyes \
  24768.                                                   && test "x$MESA_LLVM" = x1; then
  24769.   NEED_GALLIUM_LLVMPIPE_DRIVER_TRUE=
  24770.   NEED_GALLIUM_LLVMPIPE_DRIVER_FALSE='#'
  24771. else
  24772.   NEED_GALLIUM_LLVMPIPE_DRIVER_TRUE='#'
  24773.   NEED_GALLIUM_LLVMPIPE_DRIVER_FALSE=
  24774. fi
  24775.  
  24776.  
  24777. if test "x$enable_gallium_loader" = xyes; then
  24778.     GALLIUM_WINSYS_DIRS="$GALLIUM_WINSYS_DIRS sw/null"
  24779.  
  24780.     if test "x$enable_gallium_drm_loader" = xyes; then
  24781.         GALLIUM_PIPE_LOADER_DEFINES="$GALLIUM_PIPE_LOADER_DEFINES -DHAVE_PIPE_LOADER_DRM"
  24782.  
  24783. pkg_failed=no
  24784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GALLIUM_PIPE_LOADER_XCB" >&5
  24785. $as_echo_n "checking for GALLIUM_PIPE_LOADER_XCB... " >&6; }
  24786.  
  24787. if test -n "$GALLIUM_PIPE_LOADER_XCB_CFLAGS"; then
  24788.     pkg_cv_GALLIUM_PIPE_LOADER_XCB_CFLAGS="$GALLIUM_PIPE_LOADER_XCB_CFLAGS"
  24789.  elif test -n "$PKG_CONFIG"; then
  24790.     if test -n "$PKG_CONFIG" && \
  24791.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-dri2\""; } >&5
  24792.   ($PKG_CONFIG --exists --print-errors "xcb xcb-dri2") 2>&5
  24793.   ac_status=$?
  24794.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24795.   test $ac_status = 0; }; then
  24796.   pkg_cv_GALLIUM_PIPE_LOADER_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb xcb-dri2" 2>/dev/null`
  24797.                       test "x$?" != "x0" && pkg_failed=yes
  24798. else
  24799.   pkg_failed=yes
  24800. fi
  24801.  else
  24802.     pkg_failed=untried
  24803. fi
  24804. if test -n "$GALLIUM_PIPE_LOADER_XCB_LIBS"; then
  24805.     pkg_cv_GALLIUM_PIPE_LOADER_XCB_LIBS="$GALLIUM_PIPE_LOADER_XCB_LIBS"
  24806.  elif test -n "$PKG_CONFIG"; then
  24807.     if test -n "$PKG_CONFIG" && \
  24808.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-dri2\""; } >&5
  24809.   ($PKG_CONFIG --exists --print-errors "xcb xcb-dri2") 2>&5
  24810.   ac_status=$?
  24811.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24812.   test $ac_status = 0; }; then
  24813.   pkg_cv_GALLIUM_PIPE_LOADER_XCB_LIBS=`$PKG_CONFIG --libs "xcb xcb-dri2" 2>/dev/null`
  24814.                       test "x$?" != "x0" && pkg_failed=yes
  24815. else
  24816.   pkg_failed=yes
  24817. fi
  24818.  else
  24819.     pkg_failed=untried
  24820. fi
  24821.  
  24822.  
  24823.  
  24824. if test $pkg_failed = yes; then
  24825.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24826. $as_echo "no" >&6; }
  24827.  
  24828. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24829.         _pkg_short_errors_supported=yes
  24830. else
  24831.         _pkg_short_errors_supported=no
  24832. fi
  24833.         if test $_pkg_short_errors_supported = yes; then
  24834.                 GALLIUM_PIPE_LOADER_XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb xcb-dri2" 2>&1`
  24835.         else
  24836.                 GALLIUM_PIPE_LOADER_XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb xcb-dri2" 2>&1`
  24837.         fi
  24838.         # Put the nasty error message in config.log where it belongs
  24839.         echo "$GALLIUM_PIPE_LOADER_XCB_PKG_ERRORS" >&5
  24840.  
  24841.         pipe_loader_have_xcb=no
  24842. elif test $pkg_failed = untried; then
  24843.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24844. $as_echo "no" >&6; }
  24845.         pipe_loader_have_xcb=no
  24846. else
  24847.         GALLIUM_PIPE_LOADER_XCB_CFLAGS=$pkg_cv_GALLIUM_PIPE_LOADER_XCB_CFLAGS
  24848.         GALLIUM_PIPE_LOADER_XCB_LIBS=$pkg_cv_GALLIUM_PIPE_LOADER_XCB_LIBS
  24849.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24850. $as_echo "yes" >&6; }
  24851.         pipe_loader_have_xcb=yes
  24852. fi
  24853.         if test "x$pipe_loader_have_xcb" = xyes; then
  24854.             GALLIUM_PIPE_LOADER_DEFINES="$GALLIUM_PIPE_LOADER_DEFINES -DHAVE_PIPE_LOADER_XCB"
  24855.             GALLIUM_PIPE_LOADER_LIBS="$GALLIUM_PIPE_LOADER_LIBS $GALLIUM_PIPE_LOADER_XCB_LIBS $LIBDRM_LIBS"
  24856.         fi
  24857.     fi
  24858.  
  24859.  
  24860.  
  24861. fi
  24862.  
  24863.  if test x$HAVE_I915_DRI = xyes; then
  24864.   HAVE_I915_DRI_TRUE=
  24865.   HAVE_I915_DRI_FALSE='#'
  24866. else
  24867.   HAVE_I915_DRI_TRUE='#'
  24868.   HAVE_I915_DRI_FALSE=
  24869. fi
  24870.  
  24871.  if test x$HAVE_I965_DRI = xyes; then
  24872.   HAVE_I965_DRI_TRUE=
  24873.   HAVE_I965_DRI_FALSE='#'
  24874. else
  24875.   HAVE_I965_DRI_TRUE='#'
  24876.   HAVE_I965_DRI_FALSE=
  24877. fi
  24878.  
  24879.  if test x$HAVE_NOUVEAU_DRI = xyes; then
  24880.   HAVE_NOUVEAU_DRI_TRUE=
  24881.   HAVE_NOUVEAU_DRI_FALSE='#'
  24882. else
  24883.   HAVE_NOUVEAU_DRI_TRUE='#'
  24884.   HAVE_NOUVEAU_DRI_FALSE=
  24885. fi
  24886.  
  24887.  if test x$HAVE_R200_DRI = xyes; then
  24888.   HAVE_R200_DRI_TRUE=
  24889.   HAVE_R200_DRI_FALSE='#'
  24890. else
  24891.   HAVE_R200_DRI_TRUE='#'
  24892.   HAVE_R200_DRI_FALSE=
  24893. fi
  24894.  
  24895.  if test x$HAVE_RADEON_DRI = xyes; then
  24896.   HAVE_RADEON_DRI_TRUE=
  24897.   HAVE_RADEON_DRI_FALSE='#'
  24898. else
  24899.   HAVE_RADEON_DRI_TRUE='#'
  24900.   HAVE_RADEON_DRI_FALSE=
  24901. fi
  24902.  
  24903.  if test x$HAVE_SWRAST_DRI = xyes; then
  24904.   HAVE_SWRAST_DRI_TRUE=
  24905.   HAVE_SWRAST_DRI_FALSE='#'
  24906. else
  24907.   HAVE_SWRAST_DRI_TRUE='#'
  24908.   HAVE_SWRAST_DRI_FALSE=
  24909. fi
  24910.  
  24911.  if test x$HAVE_COMMON_DRI = xyes; then
  24912.   HAVE_COMMON_DRI_TRUE=
  24913.   HAVE_COMMON_DRI_FALSE='#'
  24914. else
  24915.   HAVE_COMMON_DRI_TRUE='#'
  24916.   HAVE_COMMON_DRI_FALSE=
  24917. fi
  24918.  
  24919.  
  24920.  if test "x$NEED_NONNULL_WINSYS" = xyes -a \
  24921.                                             "x$HAVE_GALLIUM_R300" = xyes -o \
  24922.                                             "x$HAVE_GALLIUM_R600" = xyes -o \
  24923.                                             "x$HAVE_GALLIUM_RADEONSI" = xyes; then
  24924.   NEED_RADEON_DRM_WINSYS_TRUE=
  24925.   NEED_RADEON_DRM_WINSYS_FALSE='#'
  24926. else
  24927.   NEED_RADEON_DRM_WINSYS_TRUE='#'
  24928.   NEED_RADEON_DRM_WINSYS_FALSE=
  24929. fi
  24930.  
  24931.  if test "x$HAVE_GALLIUM_I915" = xyes -o \
  24932.                                          "x$HAVE_GALLIUM_SVGA" = xyes; then
  24933.   NEED_WINSYS_WRAPPER_TRUE=
  24934.   NEED_WINSYS_WRAPPER_FALSE='#'
  24935. else
  24936.   NEED_WINSYS_WRAPPER_TRUE='#'
  24937.   NEED_WINSYS_WRAPPER_FALSE=
  24938. fi
  24939.  
  24940.  if test "x$NEED_WINSYS_XLIB" = xyes; then
  24941.   NEED_WINSYS_XLIB_TRUE=
  24942.   NEED_WINSYS_XLIB_FALSE='#'
  24943. else
  24944.   NEED_WINSYS_XLIB_TRUE='#'
  24945.   NEED_WINSYS_XLIB_FALSE=
  24946. fi
  24947.  
  24948.  if test x$NEED_RADEON_LLVM = xyes; then
  24949.   NEED_RADEON_LLVM_TRUE=
  24950.   NEED_RADEON_LLVM_FALSE='#'
  24951. else
  24952.   NEED_RADEON_LLVM_TRUE='#'
  24953.   NEED_RADEON_LLVM_FALSE=
  24954. fi
  24955.  
  24956.  if test x$R600_NEED_RADEON_GALLIUM = xyes; then
  24957.   R600_NEED_RADEON_GALLIUM_TRUE=
  24958.   R600_NEED_RADEON_GALLIUM_FALSE='#'
  24959. else
  24960.   R600_NEED_RADEON_GALLIUM_TRUE='#'
  24961.   R600_NEED_RADEON_GALLIUM_FALSE=
  24962. fi
  24963.  
  24964.  if test x$USE_R600_LLVM_COMPILER = xyes; then
  24965.   USE_R600_LLVM_COMPILER_TRUE=
  24966.   USE_R600_LLVM_COMPILER_FALSE='#'
  24967. else
  24968.   USE_R600_LLVM_COMPILER_TRUE='#'
  24969.   USE_R600_LLVM_COMPILER_FALSE=
  24970. fi
  24971.  
  24972.  if test x$enable_gallium_loader = xyes; then
  24973.   HAVE_LOADER_GALLIUM_TRUE=
  24974.   HAVE_LOADER_GALLIUM_FALSE='#'
  24975. else
  24976.   HAVE_LOADER_GALLIUM_TRUE='#'
  24977.   HAVE_LOADER_GALLIUM_FALSE=
  24978. fi
  24979.  
  24980.  if test x$enable_gallium_drm_loader = xyes; then
  24981.   HAVE_DRM_LOADER_GALLIUM_TRUE=
  24982.   HAVE_DRM_LOADER_GALLIUM_FALSE='#'
  24983. else
  24984.   HAVE_DRM_LOADER_GALLIUM_TRUE='#'
  24985.   HAVE_DRM_LOADER_GALLIUM_FALSE=
  24986. fi
  24987.  
  24988.  if test x$enable_opencl = xyes; then
  24989.   HAVE_GALLIUM_COMPUTE_TRUE=
  24990.   HAVE_GALLIUM_COMPUTE_FALSE='#'
  24991. else
  24992.   HAVE_GALLIUM_COMPUTE_TRUE='#'
  24993.   HAVE_GALLIUM_COMPUTE_FALSE=
  24994. fi
  24995.  
  24996.  if test x$MESA_LLVM = x1; then
  24997.   HAVE_MESA_LLVM_TRUE=
  24998.   HAVE_MESA_LLVM_FALSE='#'
  24999. else
  25000.   HAVE_MESA_LLVM_TRUE='#'
  25001.   HAVE_MESA_LLVM_FALSE=
  25002. fi
  25003.  
  25004.  if test $LLVM_VERSION_INT -ge 302; then
  25005.   LLVM_NEEDS_FNORTTI_TRUE=
  25006.   LLVM_NEEDS_FNORTTI_FALSE='#'
  25007. else
  25008.   LLVM_NEEDS_FNORTTI_TRUE='#'
  25009.   LLVM_NEEDS_FNORTTI_FALSE=
  25010. fi
  25011.  
  25012.  
  25013.  
  25014.  
  25015.  if test "x$with_gallium_drivers" != x -o \
  25016.                                      "x$enable_xlib_glx" = xyes -o \
  25017.                                      "x$enable_osmesa" = xyes -o \
  25018.                                      "x$enable_gallium_osmesa" = xyes; then
  25019.   NEED_LIBPROGRAM_TRUE=
  25020.   NEED_LIBPROGRAM_FALSE='#'
  25021. else
  25022.   NEED_LIBPROGRAM_TRUE='#'
  25023.   NEED_LIBPROGRAM_FALSE=
  25024. fi
  25025.  
  25026.  if test "x$enable_xlib_glx" = xyes; then
  25027.   HAVE_X11_DRIVER_TRUE=
  25028.   HAVE_X11_DRIVER_FALSE='#'
  25029. else
  25030.   HAVE_X11_DRIVER_TRUE='#'
  25031.   HAVE_X11_DRIVER_FALSE=
  25032. fi
  25033.  
  25034.  if test "x$enable_osmesa" = xyes; then
  25035.   HAVE_OSMESA_TRUE=
  25036.   HAVE_OSMESA_FALSE='#'
  25037. else
  25038.   HAVE_OSMESA_TRUE='#'
  25039.   HAVE_OSMESA_FALSE=
  25040. fi
  25041.  
  25042.  if test "x$enable_gallium_osmesa" = xyes; then
  25043.   HAVE_GALLIUM_OSMESA_TRUE=
  25044.   HAVE_GALLIUM_OSMESA_FALSE='#'
  25045. else
  25046.   HAVE_GALLIUM_OSMESA_TRUE='#'
  25047.   HAVE_GALLIUM_OSMESA_FALSE=
  25048. fi
  25049.  
  25050.  
  25051.  if echo "$DEFINES" | grep 'X86_ASM' >/dev/null 2>&1; then
  25052.   HAVE_X86_ASM_TRUE=
  25053.   HAVE_X86_ASM_FALSE='#'
  25054. else
  25055.   HAVE_X86_ASM_TRUE='#'
  25056.   HAVE_X86_ASM_FALSE=
  25057. fi
  25058.  
  25059.  if echo "$DEFINES" | grep 'X86_64_ASM' >/dev/null 2>&1; then
  25060.   HAVE_X86_64_ASM_TRUE=
  25061.   HAVE_X86_64_ASM_FALSE='#'
  25062. else
  25063.   HAVE_X86_64_ASM_TRUE='#'
  25064.   HAVE_X86_64_ASM_FALSE=
  25065. fi
  25066.  
  25067.  if echo "$DEFINES" | grep 'SPARC_ASM' >/dev/null 2>&1; then
  25068.   HAVE_SPARC_ASM_TRUE=
  25069.   HAVE_SPARC_ASM_FALSE='#'
  25070. else
  25071.   HAVE_SPARC_ASM_TRUE='#'
  25072.   HAVE_SPARC_ASM_FALSE=
  25073. fi
  25074.  
  25075.  
  25076.  if test "x$cross_compiling" = xyes; then
  25077.   CROSS_COMPILING_TRUE=
  25078.   CROSS_COMPILING_FALSE='#'
  25079. else
  25080.   CROSS_COMPILING_TRUE='#'
  25081.   CROSS_COMPILING_FALSE=
  25082. fi
  25083.  
  25084.  
  25085. VDPAU_MAJOR=1
  25086.  
  25087. VDPAU_MINOR=0
  25088.  
  25089.  
  25090. XVMC_MAJOR=1
  25091.  
  25092. XVMC_MINOR=0
  25093.  
  25094.  
  25095. XA_MAJOR=1
  25096.  
  25097. XA_MINOR=0
  25098.  
  25099. XA_TINY=0
  25100.  
  25101. XA_VERSION="$XA_MAJOR.$XA_MINOR.$XA_TINY"
  25102.  
  25103.  
  25104. LDFLAGS="$_SAVE_LDFLAGS"
  25105. CPPFLAGS="$_SAVE_CPPFLAGS"
  25106.  
  25107. CFLAGS="$CFLAGS $USER_CFLAGS"
  25108. CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS"
  25109.  
  25110. ac_config_files="$ac_config_files Makefile src/Makefile src/egl/Makefile src/egl/drivers/Makefile src/egl/drivers/dri2/Makefile src/egl/drivers/glx/Makefile src/egl/main/Makefile src/egl/main/egl.pc src/egl/wayland/Makefile src/egl/wayland/wayland-drm/Makefile src/egl/wayland/wayland-egl/Makefile src/egl/wayland/wayland-egl/wayland-egl.pc src/gallium/auxiliary/Makefile src/gallium/auxiliary/pipe-loader/Makefile src/gallium/drivers/Makefile src/gallium/drivers/freedreno/Makefile src/gallium/drivers/freedreno/a2xx/Makefile src/gallium/drivers/freedreno/a3xx/Makefile src/gallium/drivers/i915/Makefile src/gallium/drivers/ilo/Makefile src/gallium/drivers/llvmpipe/Makefile src/gallium/drivers/nouveau/Makefile src/gallium/drivers/nv30/Makefile src/gallium/drivers/nv50/Makefile src/gallium/drivers/nvc0/Makefile src/gallium/drivers/r300/Makefile src/gallium/drivers/r600/Makefile src/gallium/drivers/radeon/Makefile src/gallium/drivers/radeonsi/Makefile src/gallium/drivers/rbug/Makefile src/gallium/drivers/softpipe/Makefile src/gallium/drivers/svga/Makefile src/gallium/drivers/trace/Makefile src/gallium/state_trackers/Makefile src/gallium/state_trackers/clover/Makefile src/gallium/state_trackers/dri/Makefile src/gallium/state_trackers/dri/drm/Makefile src/gallium/state_trackers/dri/sw/Makefile src/gallium/state_trackers/egl/Makefile src/gallium/state_trackers/gbm/Makefile src/gallium/state_trackers/glx/Makefile src/gallium/state_trackers/osmesa/Makefile src/gallium/state_trackers/vdpau/Makefile src/gallium/state_trackers/vega/Makefile src/gallium/state_trackers/xa/Makefile src/gallium/state_trackers/xorg/Makefile src/gallium/state_trackers/xvmc/Makefile src/gallium/targets/Makefile src/gallium/targets/dri-freedreno/Makefile src/gallium/targets/dri-i915/Makefile src/gallium/targets/dri-ilo/Makefile src/gallium/targets/dri-nouveau/Makefile src/gallium/targets/dri-r300/Makefile src/gallium/targets/dri-r600/Makefile src/gallium/targets/dri-radeonsi/Makefile src/gallium/targets/dri-swrast/Makefile src/gallium/targets/dri-vmwgfx/Makefile src/gallium/targets/egl-static/Makefile src/gallium/targets/gbm/Makefile src/gallium/targets/opencl/Makefile src/gallium/targets/osmesa/Makefile src/gallium/targets/osmesa/osmesa.pc src/gallium/targets/pipe-loader/Makefile src/gallium/targets/libgl-xlib/Makefile src/gallium/targets/vdpau-nouveau/Makefile src/gallium/targets/vdpau-r300/Makefile src/gallium/targets/vdpau-r600/Makefile src/gallium/targets/vdpau-radeonsi/Makefile src/gallium/targets/vdpau-softpipe/Makefile src/gallium/targets/xa-vmwgfx/Makefile src/gallium/targets/xa-vmwgfx/xatracker.pc src/gallium/targets/xorg-i915/Makefile src/gallium/targets/xorg-nouveau/Makefile src/gallium/targets/xorg-r600/Makefile src/gallium/targets/xorg-radeonsi/Makefile src/gallium/targets/xvmc-nouveau/Makefile src/gallium/targets/xvmc-r300/Makefile src/gallium/targets/xvmc-r600/Makefile src/gallium/targets/xvmc-softpipe/Makefile src/gallium/tests/trivial/Makefile src/gallium/tests/unit/Makefile src/gallium/winsys/Makefile src/gallium/winsys/freedreno/drm/Makefile src/gallium/winsys/i915/drm/Makefile src/gallium/winsys/i915/sw/Makefile src/gallium/winsys/intel/drm/Makefile src/gallium/winsys/nouveau/drm/Makefile src/gallium/winsys/radeon/drm/Makefile src/gallium/winsys/svga/drm/Makefile src/gallium/winsys/sw/dri/Makefile src/gallium/winsys/sw/fbdev/Makefile src/gallium/winsys/sw/null/Makefile src/gallium/winsys/sw/wayland/Makefile src/gallium/winsys/sw/wrapper/Makefile src/gallium/winsys/sw/xlib/Makefile src/gbm/Makefile src/gbm/main/gbm.pc src/glsl/Makefile src/glsl/builtin_compiler/Makefile src/glx/Makefile src/glx/tests/Makefile src/gtest/Makefile src/mapi/Makefile src/mapi/es1api/Makefile src/mapi/es1api/glesv1_cm.pc src/mapi/es2api/Makefile src/mapi/es2api/glesv2.pc src/mapi/glapi/Makefile src/mapi/glapi/gen/Makefile src/mapi/glapi/tests/Makefile src/mapi/shared-glapi/Makefile src/mapi/shared-glapi/tests/Makefile src/mapi/vgapi/Makefile src/mapi/vgapi/vg.pc src/mesa/Makefile src/mesa/gl.pc src/mesa/drivers/dri/dri.pc src/mesa/drivers/dri/common/Makefile src/mesa/drivers/dri/common/xmlpool/Makefile src/mesa/drivers/dri/i915/Makefile src/mesa/drivers/dri/i965/Makefile src/mesa/drivers/dri/Makefile src/mesa/drivers/dri/nouveau/Makefile src/mesa/drivers/dri/r200/Makefile src/mesa/drivers/dri/radeon/Makefile src/mesa/drivers/dri/swrast/Makefile src/mesa/drivers/osmesa/Makefile src/mesa/drivers/osmesa/osmesa.pc src/mesa/drivers/x11/Makefile src/mesa/libdricore/Makefile src/mesa/main/tests/Makefile src/mesa/main/tests/hash_table/Makefile src/mesa/program/Makefile src/mesa/x86-64/Makefile src/mesa/x86/Makefile"
  25111.  
  25112.  
  25113. GALLIUM_TARGET_DIRS=`echo $GALLIUM_TARGET_DIRS|tr " " "\n"|sort -u|tr "\n" " "`
  25114. GALLIUM_WINSYS_DIRS=`echo $GALLIUM_WINSYS_DIRS|tr " " "\n"|sort -u|tr "\n" " "`
  25115. GALLIUM_DRIVERS_DIRS=`echo $GALLIUM_DRIVERS_DIRS|tr " " "\n"|sort -u|tr "\n" " "`
  25116. GALLIUM_STATE_TRACKERS_DIRS=`echo $GALLIUM_STATE_TRACKERS_DIRS|tr " " "\n"|sort -u|tr "\n" " "`
  25117.  
  25118. cat >confcache <<\_ACEOF
  25119. # This file is a shell script that caches the results of configure
  25120. # tests run on this system so they can be shared between configure
  25121. # scripts and configure runs, see configure's option --config-cache.
  25122. # It is not useful on other systems.  If it contains results you don't
  25123. # want to keep, you may remove or edit it.
  25124. #
  25125. # config.status only pays attention to the cache file if you give it
  25126. # the --recheck option to rerun configure.
  25127. #
  25128. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  25129. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  25130. # following values.
  25131.  
  25132. _ACEOF
  25133.  
  25134. # The following way of writing the cache mishandles newlines in values,
  25135. # but we know of no workaround that is simple, portable, and efficient.
  25136. # So, we kill variables containing newlines.
  25137. # Ultrix sh set writes to stderr and can't be redirected directly,
  25138. # and sets the high bit in the cache file unless we assign to the vars.
  25139. (
  25140.   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25141.     eval ac_val=\$$ac_var
  25142.     case $ac_val in #(
  25143.     *${as_nl}*)
  25144.       case $ac_var in #(
  25145.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  25146. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  25147.       esac
  25148.       case $ac_var in #(
  25149.       _ | IFS | as_nl) ;; #(
  25150.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  25151.       *) { eval $ac_var=; unset $ac_var;} ;;
  25152.       esac ;;
  25153.     esac
  25154.   done
  25155.  
  25156.   (set) 2>&1 |
  25157.     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25158.     *${as_nl}ac_space=\ *)
  25159.       # `set' does not quote correctly, so add quotes: double-quote
  25160.       # substitution turns \\\\ into \\, and sed turns \\ into \.
  25161.       sed -n \
  25162.         "s/'/'\\\\''/g;
  25163.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25164.       ;; #(
  25165.     *)
  25166.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  25167.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25168.       ;;
  25169.     esac |
  25170.     sort
  25171. ) |
  25172.   sed '
  25173.      /^ac_cv_env_/b end
  25174.      t clear
  25175.      :clear
  25176.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  25177.      t end
  25178.      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25179.      :end' >>confcache
  25180. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25181.   if test -w "$cache_file"; then
  25182.     if test "x$cache_file" != "x/dev/null"; then
  25183.       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  25184. $as_echo "$as_me: updating cache $cache_file" >&6;}
  25185.       if test ! -f "$cache_file" || test -h "$cache_file"; then
  25186.         cat confcache >"$cache_file"
  25187.       else
  25188.         case $cache_file in #(
  25189.         */* | ?:*)
  25190.           mv -f confcache "$cache_file"$$ &&
  25191.           mv -f "$cache_file"$$ "$cache_file" ;; #(
  25192.         *)
  25193.           mv -f confcache "$cache_file" ;;
  25194.         esac
  25195.       fi
  25196.     fi
  25197.   else
  25198.     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  25199. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  25200.   fi
  25201. fi
  25202. rm -f confcache
  25203.  
  25204. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25205. # Let make expand exec_prefix.
  25206. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25207.  
  25208. # Transform confdefs.h into DEFS.
  25209. # Protect against shell expansion while executing Makefile rules.
  25210. # Protect against Makefile macro expansion.
  25211. #
  25212. # If the first sed substitution is executed (which looks for macros that
  25213. # take arguments), then branch to the quote section.  Otherwise,
  25214. # look for a macro that doesn't take arguments.
  25215. ac_script='
  25216. :mline
  25217. /\\$/{
  25218.  N
  25219.  s,\\\n,,
  25220.  b mline
  25221. }
  25222. t clear
  25223. :clear
  25224. s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
  25225. t quote
  25226. s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
  25227. t quote
  25228. b any
  25229. :quote
  25230. s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  25231. s/\[/\\&/g
  25232. s/\]/\\&/g
  25233. s/\$/$$/g
  25234. H
  25235. :any
  25236. ${
  25237.         g
  25238.         s/^\n//
  25239.         s/\n/ /g
  25240.         p
  25241. }
  25242. '
  25243. DEFS=`sed -n "$ac_script" confdefs.h`
  25244.  
  25245.  
  25246. ac_libobjs=
  25247. ac_ltlibobjs=
  25248. U=
  25249. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25250.   # 1. Remove the extension, and $U if already installed.
  25251.   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25252.   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  25253.   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  25254.   #    will be set to the directory where LIBOBJS objects are built.
  25255.   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25256.   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  25257. done
  25258. LIBOBJS=$ac_libobjs
  25259.  
  25260. LTLIBOBJS=$ac_ltlibobjs
  25261.  
  25262.  
  25263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  25264. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  25265.    if test -n "$am_sleep_pid"; then
  25266.      # Hide warnings about reused PIDs.
  25267.      wait $am_sleep_pid 2>/dev/null
  25268.    fi
  25269.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  25270. $as_echo "done" >&6; }
  25271.  if test -n "$EXEEXT"; then
  25272.   am__EXEEXT_TRUE=
  25273.   am__EXEEXT_FALSE='#'
  25274. else
  25275.   am__EXEEXT_TRUE='#'
  25276.   am__EXEEXT_FALSE=
  25277. fi
  25278.  
  25279. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  25280.   as_fn_error $? "conditional \"AMDEP\" was never defined.
  25281. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25282. fi
  25283. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  25284.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  25285. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25286. fi
  25287. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  25288.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  25289. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25290. fi
  25291. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  25292.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  25293. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25294. fi
  25295. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  25296.   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  25297. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25298. fi
  25299. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  25300.   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  25301. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25302. fi
  25303. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  25304.   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  25305. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25306. fi
  25307. if test -z "${GEN_ASM_OFFSETS_TRUE}" && test -z "${GEN_ASM_OFFSETS_FALSE}"; then
  25308.   as_fn_error $? "conditional \"GEN_ASM_OFFSETS\" was never defined.
  25309. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25310. fi
  25311. if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
  25312.   as_fn_error $? "conditional \"BUILD_SHARED\" was never defined.
  25313. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25314. fi
  25315. if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
  25316.   as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined.
  25317. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25318. fi
  25319. if test -z "${HAVE_OPENGL_ES1_TRUE}" && test -z "${HAVE_OPENGL_ES1_FALSE}"; then
  25320.   as_fn_error $? "conditional \"HAVE_OPENGL_ES1\" was never defined.
  25321. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25322. fi
  25323. if test -z "${HAVE_OPENGL_ES2_TRUE}" && test -z "${HAVE_OPENGL_ES2_FALSE}"; then
  25324.   as_fn_error $? "conditional \"HAVE_OPENGL_ES2\" was never defined.
  25325. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25326. fi
  25327. if test -z "${NEED_OPENGL_COMMON_TRUE}" && test -z "${NEED_OPENGL_COMMON_FALSE}"; then
  25328.   as_fn_error $? "conditional \"NEED_OPENGL_COMMON\" was never defined.
  25329. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25330. fi
  25331. if test -z "${HAVE_DRI_GLX_TRUE}" && test -z "${HAVE_DRI_GLX_FALSE}"; then
  25332.   as_fn_error $? "conditional \"HAVE_DRI_GLX\" was never defined.
  25333. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25334. fi
  25335. if test -z "${HAVE_DRI_TRUE}" && test -z "${HAVE_DRI_FALSE}"; then
  25336.   as_fn_error $? "conditional \"HAVE_DRI\" was never defined.
  25337. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25338. fi
  25339. if test -z "${NEED_LIBMESA_TRUE}" && test -z "${NEED_LIBMESA_FALSE}"; then
  25340.   as_fn_error $? "conditional \"NEED_LIBMESA\" was never defined.
  25341. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25342. fi
  25343. if test -z "${HAVE_SHARED_GLAPI_TRUE}" && test -z "${HAVE_SHARED_GLAPI_FALSE}"; then
  25344.   as_fn_error $? "conditional \"HAVE_SHARED_GLAPI\" was never defined.
  25345. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25346. fi
  25347. if test -z "${HAVE_XF86VIDMODE_TRUE}" && test -z "${HAVE_XF86VIDMODE_FALSE}"; then
  25348.   as_fn_error $? "conditional \"HAVE_XF86VIDMODE\" was never defined.
  25349. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25350. fi
  25351. if test -z "${NEED_LIBDRICORE_TRUE}" && test -z "${NEED_LIBDRICORE_FALSE}"; then
  25352.   as_fn_error $? "conditional \"NEED_LIBDRICORE\" was never defined.
  25353. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25354. fi
  25355. if test -z "${HAVE_GBM_TRUE}" && test -z "${HAVE_GBM_FALSE}"; then
  25356.   as_fn_error $? "conditional \"HAVE_GBM\" was never defined.
  25357. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25358. fi
  25359. if test -z "${HAVE_EGL_TRUE}" && test -z "${HAVE_EGL_FALSE}"; then
  25360.   as_fn_error $? "conditional \"HAVE_EGL\" was never defined.
  25361. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25362. fi
  25363. if test -z "${HAVE_GALLIUM_EGL_TRUE}" && test -z "${HAVE_GALLIUM_EGL_FALSE}"; then
  25364.   as_fn_error $? "conditional \"HAVE_GALLIUM_EGL\" was never defined.
  25365. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25366. fi
  25367. if test -z "${HAVE_GALLIUM_GBM_TRUE}" && test -z "${HAVE_GALLIUM_GBM_FALSE}"; then
  25368.   as_fn_error $? "conditional \"HAVE_GALLIUM_GBM\" was never defined.
  25369. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25370. fi
  25371. if test -z "${HAVE_ST_XORG_TRUE}" && test -z "${HAVE_ST_XORG_FALSE}"; then
  25372.   as_fn_error $? "conditional \"HAVE_ST_XORG\" was never defined.
  25373. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25374. fi
  25375. if test -z "${HAVE_ST_XA_TRUE}" && test -z "${HAVE_ST_XA_FALSE}"; then
  25376.   as_fn_error $? "conditional \"HAVE_ST_XA\" was never defined.
  25377. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25378. fi
  25379. if test -z "${HAVE_OPENVG_TRUE}" && test -z "${HAVE_OPENVG_FALSE}"; then
  25380.   as_fn_error $? "conditional \"HAVE_OPENVG\" was never defined.
  25381. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25382. fi
  25383. if test -z "${HAVE_ST_XVMC_TRUE}" && test -z "${HAVE_ST_XVMC_FALSE}"; then
  25384.   as_fn_error $? "conditional \"HAVE_ST_XVMC\" was never defined.
  25385. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25386. fi
  25387. if test -z "${HAVE_ST_VDPAU_TRUE}" && test -z "${HAVE_ST_VDPAU_FALSE}"; then
  25388.   as_fn_error $? "conditional \"HAVE_ST_VDPAU\" was never defined.
  25389. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25390. fi
  25391. if test -z "${HAVE_CLOVER_TRUE}" && test -z "${HAVE_CLOVER_FALSE}"; then
  25392.   as_fn_error $? "conditional \"HAVE_CLOVER\" was never defined.
  25393. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25394. fi
  25395. if test -z "${HAVE_GALLIUM_TRUE}" && test -z "${HAVE_GALLIUM_FALSE}"; then
  25396.   as_fn_error $? "conditional \"HAVE_GALLIUM\" was never defined.
  25397. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25398. fi
  25399. if test -z "${HAVE_EGL_PLATFORM_X11_TRUE}" && test -z "${HAVE_EGL_PLATFORM_X11_FALSE}"; then
  25400.   as_fn_error $? "conditional \"HAVE_EGL_PLATFORM_X11\" was never defined.
  25401. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25402. fi
  25403. if test -z "${HAVE_EGL_PLATFORM_WAYLAND_TRUE}" && test -z "${HAVE_EGL_PLATFORM_WAYLAND_FALSE}"; then
  25404.   as_fn_error $? "conditional \"HAVE_EGL_PLATFORM_WAYLAND\" was never defined.
  25405. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25406. fi
  25407. if test -z "${HAVE_EGL_PLATFORM_DRM_TRUE}" && test -z "${HAVE_EGL_PLATFORM_DRM_FALSE}"; then
  25408.   as_fn_error $? "conditional \"HAVE_EGL_PLATFORM_DRM\" was never defined.
  25409. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25410. fi
  25411. if test -z "${HAVE_EGL_PLATFORM_FBDEV_TRUE}" && test -z "${HAVE_EGL_PLATFORM_FBDEV_FALSE}"; then
  25412.   as_fn_error $? "conditional \"HAVE_EGL_PLATFORM_FBDEV\" was never defined.
  25413. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25414. fi
  25415. if test -z "${HAVE_EGL_PLATFORM_NULL_TRUE}" && test -z "${HAVE_EGL_PLATFORM_NULL_FALSE}"; then
  25416.   as_fn_error $? "conditional \"HAVE_EGL_PLATFORM_NULL\" was never defined.
  25417. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25418. fi
  25419. if test -z "${HAVE_EGL_DRIVER_DRI2_TRUE}" && test -z "${HAVE_EGL_DRIVER_DRI2_FALSE}"; then
  25420.   as_fn_error $? "conditional \"HAVE_EGL_DRIVER_DRI2\" was never defined.
  25421. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25422. fi
  25423. if test -z "${HAVE_EGL_DRIVER_GLX_TRUE}" && test -z "${HAVE_EGL_DRIVER_GLX_FALSE}"; then
  25424.   as_fn_error $? "conditional \"HAVE_EGL_DRIVER_GLX\" was never defined.
  25425. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25426. fi
  25427. if test -z "${HAVE_GALLIUM_TESTS_TRUE}" && test -z "${HAVE_GALLIUM_TESTS_FALSE}"; then
  25428.   as_fn_error $? "conditional \"HAVE_GALLIUM_TESTS\" was never defined.
  25429. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25430. fi
  25431. if test -z "${NEED_GALLIUM_LOADER_TRUE}" && test -z "${NEED_GALLIUM_LOADER_FALSE}"; then
  25432.   as_fn_error $? "conditional \"NEED_GALLIUM_LOADER\" was never defined.
  25433. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25434. fi
  25435. if test -z "${NEED_NONNULL_WINSYS_TRUE}" && test -z "${NEED_NONNULL_WINSYS_FALSE}"; then
  25436.   as_fn_error $? "conditional \"NEED_NONNULL_WINSYS\" was never defined.
  25437. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25438. fi
  25439. if test -z "${HAVE_GALLIUM_SVGA_TRUE}" && test -z "${HAVE_GALLIUM_SVGA_FALSE}"; then
  25440.   as_fn_error $? "conditional \"HAVE_GALLIUM_SVGA\" was never defined.
  25441. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25442. fi
  25443. if test -z "${HAVE_GALLIUM_I915_TRUE}" && test -z "${HAVE_GALLIUM_I915_FALSE}"; then
  25444.   as_fn_error $? "conditional \"HAVE_GALLIUM_I915\" was never defined.
  25445. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25446. fi
  25447. if test -z "${HAVE_GALLIUM_ILO_TRUE}" && test -z "${HAVE_GALLIUM_ILO_FALSE}"; then
  25448.   as_fn_error $? "conditional \"HAVE_GALLIUM_ILO\" was never defined.
  25449. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25450. fi
  25451. if test -z "${HAVE_GALLIUM_R300_TRUE}" && test -z "${HAVE_GALLIUM_R300_FALSE}"; then
  25452.   as_fn_error $? "conditional \"HAVE_GALLIUM_R300\" was never defined.
  25453. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25454. fi
  25455. if test -z "${HAVE_GALLIUM_R600_TRUE}" && test -z "${HAVE_GALLIUM_R600_FALSE}"; then
  25456.   as_fn_error $? "conditional \"HAVE_GALLIUM_R600\" was never defined.
  25457. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25458. fi
  25459. if test -z "${HAVE_GALLIUM_RADEONSI_TRUE}" && test -z "${HAVE_GALLIUM_RADEONSI_FALSE}"; then
  25460.   as_fn_error $? "conditional \"HAVE_GALLIUM_RADEONSI\" was never defined.
  25461. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25462. fi
  25463. if test -z "${HAVE_GALLIUM_NOUVEAU_TRUE}" && test -z "${HAVE_GALLIUM_NOUVEAU_FALSE}"; then
  25464.   as_fn_error $? "conditional \"HAVE_GALLIUM_NOUVEAU\" was never defined.
  25465. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25466. fi
  25467. if test -z "${HAVE_GALLIUM_FREEDRENO_TRUE}" && test -z "${HAVE_GALLIUM_FREEDRENO_FALSE}"; then
  25468.   as_fn_error $? "conditional \"HAVE_GALLIUM_FREEDRENO\" was never defined.
  25469. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25470. fi
  25471. if test -z "${HAVE_GALLIUM_SOFTPIPE_TRUE}" && test -z "${HAVE_GALLIUM_SOFTPIPE_FALSE}"; then
  25472.   as_fn_error $? "conditional \"HAVE_GALLIUM_SOFTPIPE\" was never defined.
  25473. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25474. fi
  25475. if test -z "${HAVE_GALLIUM_LLVMPIPE_TRUE}" && test -z "${HAVE_GALLIUM_LLVMPIPE_FALSE}"; then
  25476.   as_fn_error $? "conditional \"HAVE_GALLIUM_LLVMPIPE\" was never defined.
  25477. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25478. fi
  25479. if test -z "${NEED_GALLIUM_SOFTPIPE_DRIVER_TRUE}" && test -z "${NEED_GALLIUM_SOFTPIPE_DRIVER_FALSE}"; then
  25480.   as_fn_error $? "conditional \"NEED_GALLIUM_SOFTPIPE_DRIVER\" was never defined.
  25481. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25482. fi
  25483. if test -z "${NEED_GALLIUM_LLVMPIPE_DRIVER_TRUE}" && test -z "${NEED_GALLIUM_LLVMPIPE_DRIVER_FALSE}"; then
  25484.   as_fn_error $? "conditional \"NEED_GALLIUM_LLVMPIPE_DRIVER\" was never defined.
  25485. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25486. fi
  25487. if test -z "${HAVE_I915_DRI_TRUE}" && test -z "${HAVE_I915_DRI_FALSE}"; then
  25488.   as_fn_error $? "conditional \"HAVE_I915_DRI\" was never defined.
  25489. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25490. fi
  25491. if test -z "${HAVE_I965_DRI_TRUE}" && test -z "${HAVE_I965_DRI_FALSE}"; then
  25492.   as_fn_error $? "conditional \"HAVE_I965_DRI\" was never defined.
  25493. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25494. fi
  25495. if test -z "${HAVE_NOUVEAU_DRI_TRUE}" && test -z "${HAVE_NOUVEAU_DRI_FALSE}"; then
  25496.   as_fn_error $? "conditional \"HAVE_NOUVEAU_DRI\" was never defined.
  25497. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25498. fi
  25499. if test -z "${HAVE_R200_DRI_TRUE}" && test -z "${HAVE_R200_DRI_FALSE}"; then
  25500.   as_fn_error $? "conditional \"HAVE_R200_DRI\" was never defined.
  25501. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25502. fi
  25503. if test -z "${HAVE_RADEON_DRI_TRUE}" && test -z "${HAVE_RADEON_DRI_FALSE}"; then
  25504.   as_fn_error $? "conditional \"HAVE_RADEON_DRI\" was never defined.
  25505. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25506. fi
  25507. if test -z "${HAVE_SWRAST_DRI_TRUE}" && test -z "${HAVE_SWRAST_DRI_FALSE}"; then
  25508.   as_fn_error $? "conditional \"HAVE_SWRAST_DRI\" was never defined.
  25509. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25510. fi
  25511. if test -z "${HAVE_COMMON_DRI_TRUE}" && test -z "${HAVE_COMMON_DRI_FALSE}"; then
  25512.   as_fn_error $? "conditional \"HAVE_COMMON_DRI\" was never defined.
  25513. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25514. fi
  25515. if test -z "${NEED_RADEON_DRM_WINSYS_TRUE}" && test -z "${NEED_RADEON_DRM_WINSYS_FALSE}"; then
  25516.   as_fn_error $? "conditional \"NEED_RADEON_DRM_WINSYS\" was never defined.
  25517. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25518. fi
  25519. if test -z "${NEED_WINSYS_WRAPPER_TRUE}" && test -z "${NEED_WINSYS_WRAPPER_FALSE}"; then
  25520.   as_fn_error $? "conditional \"NEED_WINSYS_WRAPPER\" was never defined.
  25521. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25522. fi
  25523. if test -z "${NEED_WINSYS_XLIB_TRUE}" && test -z "${NEED_WINSYS_XLIB_FALSE}"; then
  25524.   as_fn_error $? "conditional \"NEED_WINSYS_XLIB\" was never defined.
  25525. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25526. fi
  25527. if test -z "${NEED_RADEON_LLVM_TRUE}" && test -z "${NEED_RADEON_LLVM_FALSE}"; then
  25528.   as_fn_error $? "conditional \"NEED_RADEON_LLVM\" was never defined.
  25529. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25530. fi
  25531. if test -z "${R600_NEED_RADEON_GALLIUM_TRUE}" && test -z "${R600_NEED_RADEON_GALLIUM_FALSE}"; then
  25532.   as_fn_error $? "conditional \"R600_NEED_RADEON_GALLIUM\" was never defined.
  25533. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25534. fi
  25535. if test -z "${USE_R600_LLVM_COMPILER_TRUE}" && test -z "${USE_R600_LLVM_COMPILER_FALSE}"; then
  25536.   as_fn_error $? "conditional \"USE_R600_LLVM_COMPILER\" was never defined.
  25537. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25538. fi
  25539. if test -z "${HAVE_LOADER_GALLIUM_TRUE}" && test -z "${HAVE_LOADER_GALLIUM_FALSE}"; then
  25540.   as_fn_error $? "conditional \"HAVE_LOADER_GALLIUM\" was never defined.
  25541. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25542. fi
  25543. if test -z "${HAVE_DRM_LOADER_GALLIUM_TRUE}" && test -z "${HAVE_DRM_LOADER_GALLIUM_FALSE}"; then
  25544.   as_fn_error $? "conditional \"HAVE_DRM_LOADER_GALLIUM\" was never defined.
  25545. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25546. fi
  25547. if test -z "${HAVE_GALLIUM_COMPUTE_TRUE}" && test -z "${HAVE_GALLIUM_COMPUTE_FALSE}"; then
  25548.   as_fn_error $? "conditional \"HAVE_GALLIUM_COMPUTE\" was never defined.
  25549. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25550. fi
  25551. if test -z "${HAVE_MESA_LLVM_TRUE}" && test -z "${HAVE_MESA_LLVM_FALSE}"; then
  25552.   as_fn_error $? "conditional \"HAVE_MESA_LLVM\" was never defined.
  25553. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25554. fi
  25555. if test -z "${LLVM_NEEDS_FNORTTI_TRUE}" && test -z "${LLVM_NEEDS_FNORTTI_FALSE}"; then
  25556.   as_fn_error $? "conditional \"LLVM_NEEDS_FNORTTI\" was never defined.
  25557. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25558. fi
  25559. if test -z "${NEED_LIBPROGRAM_TRUE}" && test -z "${NEED_LIBPROGRAM_FALSE}"; then
  25560.   as_fn_error $? "conditional \"NEED_LIBPROGRAM\" was never defined.
  25561. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25562. fi
  25563. if test -z "${HAVE_X11_DRIVER_TRUE}" && test -z "${HAVE_X11_DRIVER_FALSE}"; then
  25564.   as_fn_error $? "conditional \"HAVE_X11_DRIVER\" was never defined.
  25565. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25566. fi
  25567. if test -z "${HAVE_OSMESA_TRUE}" && test -z "${HAVE_OSMESA_FALSE}"; then
  25568.   as_fn_error $? "conditional \"HAVE_OSMESA\" was never defined.
  25569. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25570. fi
  25571. if test -z "${HAVE_GALLIUM_OSMESA_TRUE}" && test -z "${HAVE_GALLIUM_OSMESA_FALSE}"; then
  25572.   as_fn_error $? "conditional \"HAVE_GALLIUM_OSMESA\" was never defined.
  25573. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25574. fi
  25575. if test -z "${HAVE_X86_ASM_TRUE}" && test -z "${HAVE_X86_ASM_FALSE}"; then
  25576.   as_fn_error $? "conditional \"HAVE_X86_ASM\" was never defined.
  25577. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25578. fi
  25579. if test -z "${HAVE_X86_64_ASM_TRUE}" && test -z "${HAVE_X86_64_ASM_FALSE}"; then
  25580.   as_fn_error $? "conditional \"HAVE_X86_64_ASM\" was never defined.
  25581. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25582. fi
  25583. if test -z "${HAVE_SPARC_ASM_TRUE}" && test -z "${HAVE_SPARC_ASM_FALSE}"; then
  25584.   as_fn_error $? "conditional \"HAVE_SPARC_ASM\" was never defined.
  25585. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25586. fi
  25587. if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
  25588.   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
  25589. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  25590. fi
  25591.  
  25592. : "${CONFIG_STATUS=./config.status}"
  25593. ac_write_fail=0
  25594. ac_clean_files_save=$ac_clean_files
  25595. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25596. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  25597. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  25598. as_write_fail=0
  25599. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  25600. #! $SHELL
  25601. # Generated by $as_me.
  25602. # Run this file to recreate the current configuration.
  25603. # Compiler output produced by configure, useful for debugging
  25604. # configure, is in config.log if it exists.
  25605.  
  25606. debug=false
  25607. ac_cs_recheck=false
  25608. ac_cs_silent=false
  25609.  
  25610. SHELL=\${CONFIG_SHELL-$SHELL}
  25611. export SHELL
  25612. _ASEOF
  25613. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  25614. ## -------------------- ##
  25615. ## M4sh Initialization. ##
  25616. ## -------------------- ##
  25617.  
  25618. # Be more Bourne compatible
  25619. DUALCASE=1; export DUALCASE # for MKS sh
  25620. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  25621.   emulate sh
  25622.   NULLCMD=:
  25623.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25624.   # is contrary to our usage.  Disable this feature.
  25625.   alias -g '${1+"$@"}'='"$@"'
  25626.   setopt NO_GLOB_SUBST
  25627. else
  25628.   case `(set -o) 2>/dev/null` in #(
  25629.   *posix*) :
  25630.     set -o posix ;; #(
  25631.   *) :
  25632.      ;;
  25633. esac
  25634. fi
  25635.  
  25636.  
  25637. as_nl='
  25638. '
  25639. export as_nl
  25640. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  25641. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  25642. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  25643. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  25644. # Prefer a ksh shell builtin over an external printf program on Solaris,
  25645. # but without wasting forks for bash or zsh.
  25646. if test -z "$BASH_VERSION$ZSH_VERSION" \
  25647.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  25648.   as_echo='print -r --'
  25649.   as_echo_n='print -rn --'
  25650. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  25651.   as_echo='printf %s\n'
  25652.   as_echo_n='printf %s'
  25653. else
  25654.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  25655.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  25656.     as_echo_n='/usr/ucb/echo -n'
  25657.   else
  25658.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  25659.     as_echo_n_body='eval
  25660.       arg=$1;
  25661.       case $arg in #(
  25662.       *"$as_nl"*)
  25663.         expr "X$arg" : "X\\(.*\\)$as_nl";
  25664.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  25665.       esac;
  25666.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  25667.     '
  25668.     export as_echo_n_body
  25669.     as_echo_n='sh -c $as_echo_n_body as_echo'
  25670.   fi
  25671.   export as_echo_body
  25672.   as_echo='sh -c $as_echo_body as_echo'
  25673. fi
  25674.  
  25675. # The user is always right.
  25676. if test "${PATH_SEPARATOR+set}" != set; then
  25677.   PATH_SEPARATOR=:
  25678.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  25679.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  25680.       PATH_SEPARATOR=';'
  25681.   }
  25682. fi
  25683.  
  25684.  
  25685. # IFS
  25686. # We need space, tab and new line, in precisely that order.  Quoting is
  25687. # there to prevent editors from complaining about space-tab.
  25688. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  25689. # splitting by setting IFS to empty value.)
  25690. IFS=" ""        $as_nl"
  25691.  
  25692. # Find who we are.  Look in the path if we contain no directory separator.
  25693. as_myself=
  25694. case $0 in #((
  25695.   *[\\/]* ) as_myself=$0 ;;
  25696.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25697. for as_dir in $PATH
  25698. do
  25699.   IFS=$as_save_IFS
  25700.   test -z "$as_dir" && as_dir=.
  25701.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  25702.   done
  25703. IFS=$as_save_IFS
  25704.  
  25705.      ;;
  25706. esac
  25707. # We did not find ourselves, most probably we were run as `sh COMMAND'
  25708. # in which case we are not to be found in the path.
  25709. if test "x$as_myself" = x; then
  25710.   as_myself=$0
  25711. fi
  25712. if test ! -f "$as_myself"; then
  25713.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25714.   exit 1
  25715. fi
  25716.  
  25717. # Unset variables that we do not need and which cause bugs (e.g. in
  25718. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  25719. # suppresses any "Segmentation fault" message there.  '((' could
  25720. # trigger a bug in pdksh 5.2.14.
  25721. for as_var in BASH_ENV ENV MAIL MAILPATH
  25722. do eval test x\${$as_var+set} = xset \
  25723.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  25724. done
  25725. PS1='$ '
  25726. PS2='> '
  25727. PS4='+ '
  25728.  
  25729. # NLS nuisances.
  25730. LC_ALL=C
  25731. export LC_ALL
  25732. LANGUAGE=C
  25733. export LANGUAGE
  25734.  
  25735. # CDPATH.
  25736. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  25737.  
  25738.  
  25739. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  25740. # ----------------------------------------
  25741. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  25742. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  25743. # script with STATUS, using 1 if that was 0.
  25744. as_fn_error ()
  25745. {
  25746.   as_status=$1; test $as_status -eq 0 && as_status=1
  25747.   if test "$4"; then
  25748.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  25749.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  25750.   fi
  25751.   $as_echo "$as_me: error: $2" >&2
  25752.   as_fn_exit $as_status
  25753. } # as_fn_error
  25754.  
  25755.  
  25756. # as_fn_set_status STATUS
  25757. # -----------------------
  25758. # Set $? to STATUS, without forking.
  25759. as_fn_set_status ()
  25760. {
  25761.   return $1
  25762. } # as_fn_set_status
  25763.  
  25764. # as_fn_exit STATUS
  25765. # -----------------
  25766. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  25767. as_fn_exit ()
  25768. {
  25769.   set +e
  25770.   as_fn_set_status $1
  25771.   exit $1
  25772. } # as_fn_exit
  25773.  
  25774. # as_fn_unset VAR
  25775. # ---------------
  25776. # Portably unset VAR.
  25777. as_fn_unset ()
  25778. {
  25779.   { eval $1=; unset $1;}
  25780. }
  25781. as_unset=as_fn_unset
  25782. # as_fn_append VAR VALUE
  25783. # ----------------------
  25784. # Append the text in VALUE to the end of the definition contained in VAR. Take
  25785. # advantage of any shell optimizations that allow amortized linear growth over
  25786. # repeated appends, instead of the typical quadratic growth present in naive
  25787. # implementations.
  25788. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  25789.   eval 'as_fn_append ()
  25790.   {
  25791.     eval $1+=\$2
  25792.   }'
  25793. else
  25794.   as_fn_append ()
  25795.   {
  25796.     eval $1=\$$1\$2
  25797.   }
  25798. fi # as_fn_append
  25799.  
  25800. # as_fn_arith ARG...
  25801. # ------------------
  25802. # Perform arithmetic evaluation on the ARGs, and store the result in the
  25803. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  25804. # must be portable across $(()) and expr.
  25805. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  25806.   eval 'as_fn_arith ()
  25807.   {
  25808.     as_val=$(( $* ))
  25809.   }'
  25810. else
  25811.   as_fn_arith ()
  25812.   {
  25813.     as_val=`expr "$@" || test $? -eq 1`
  25814.   }
  25815. fi # as_fn_arith
  25816.  
  25817.  
  25818. if expr a : '\(a\)' >/dev/null 2>&1 &&
  25819.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25820.   as_expr=expr
  25821. else
  25822.   as_expr=false
  25823. fi
  25824.  
  25825. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  25826.   as_basename=basename
  25827. else
  25828.   as_basename=false
  25829. fi
  25830.  
  25831. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  25832.   as_dirname=dirname
  25833. else
  25834.   as_dirname=false
  25835. fi
  25836.  
  25837. as_me=`$as_basename -- "$0" ||
  25838. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25839.          X"$0" : 'X\(//\)$' \| \
  25840.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  25841. $as_echo X/"$0" |
  25842.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  25843.             s//\1/
  25844.             q
  25845.           }
  25846.           /^X\/\(\/\/\)$/{
  25847.             s//\1/
  25848.             q
  25849.           }
  25850.           /^X\/\(\/\).*/{
  25851.             s//\1/
  25852.             q
  25853.           }
  25854.           s/.*/./; q'`
  25855.  
  25856. # Avoid depending upon Character Ranges.
  25857. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25858. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25859. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25860. as_cr_digits='0123456789'
  25861. as_cr_alnum=$as_cr_Letters$as_cr_digits
  25862.  
  25863. ECHO_C= ECHO_N= ECHO_T=
  25864. case `echo -n x` in #(((((
  25865. -n*)
  25866.   case `echo 'xy\c'` in
  25867.   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
  25868.   xy)  ECHO_C='\c';;
  25869.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  25870.        ECHO_T=' ';;
  25871.   esac;;
  25872. *)
  25873.   ECHO_N='-n';;
  25874. esac
  25875.  
  25876. rm -f conf$$ conf$$.exe conf$$.file
  25877. if test -d conf$$.dir; then
  25878.   rm -f conf$$.dir/conf$$.file
  25879. else
  25880.   rm -f conf$$.dir
  25881.   mkdir conf$$.dir 2>/dev/null
  25882. fi
  25883. if (echo >conf$$.file) 2>/dev/null; then
  25884.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  25885.     as_ln_s='ln -s'
  25886.     # ... but there are two gotchas:
  25887.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  25888.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  25889.     # In both cases, we have to default to `cp -pR'.
  25890.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  25891.       as_ln_s='cp -pR'
  25892.   elif ln conf$$.file conf$$ 2>/dev/null; then
  25893.     as_ln_s=ln
  25894.   else
  25895.     as_ln_s='cp -pR'
  25896.   fi
  25897. else
  25898.   as_ln_s='cp -pR'
  25899. fi
  25900. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  25901. rmdir conf$$.dir 2>/dev/null
  25902.  
  25903.  
  25904. # as_fn_mkdir_p
  25905. # -------------
  25906. # Create "$as_dir" as a directory, including parents if necessary.
  25907. as_fn_mkdir_p ()
  25908. {
  25909.  
  25910.   case $as_dir in #(
  25911.   -*) as_dir=./$as_dir;;
  25912.   esac
  25913.   test -d "$as_dir" || eval $as_mkdir_p || {
  25914.     as_dirs=
  25915.     while :; do
  25916.       case $as_dir in #(
  25917.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  25918.       *) as_qdir=$as_dir;;
  25919.       esac
  25920.       as_dirs="'$as_qdir' $as_dirs"
  25921.       as_dir=`$as_dirname -- "$as_dir" ||
  25922. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  25923.          X"$as_dir" : 'X\(//\)[^/]' \| \
  25924.          X"$as_dir" : 'X\(//\)$' \| \
  25925.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  25926. $as_echo X"$as_dir" |
  25927.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  25928.             s//\1/
  25929.             q
  25930.           }
  25931.           /^X\(\/\/\)[^/].*/{
  25932.             s//\1/
  25933.             q
  25934.           }
  25935.           /^X\(\/\/\)$/{
  25936.             s//\1/
  25937.             q
  25938.           }
  25939.           /^X\(\/\).*/{
  25940.             s//\1/
  25941.             q
  25942.           }
  25943.           s/.*/./; q'`
  25944.       test -d "$as_dir" && break
  25945.     done
  25946.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  25947.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  25948.  
  25949.  
  25950. } # as_fn_mkdir_p
  25951. if mkdir -p . 2>/dev/null; then
  25952.   as_mkdir_p='mkdir -p "$as_dir"'
  25953. else
  25954.   test -d ./-p && rmdir ./-p
  25955.   as_mkdir_p=false
  25956. fi
  25957.  
  25958.  
  25959. # as_fn_executable_p FILE
  25960. # -----------------------
  25961. # Test if FILE is an executable regular file.
  25962. as_fn_executable_p ()
  25963. {
  25964.   test -f "$1" && test -x "$1"
  25965. } # as_fn_executable_p
  25966. as_test_x='test -x'
  25967. as_executable_p=as_fn_executable_p
  25968.  
  25969. # Sed expression to map a string onto a valid CPP name.
  25970. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  25971.  
  25972. # Sed expression to map a string onto a valid variable name.
  25973. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  25974.  
  25975.  
  25976. exec 6>&1
  25977. ## ----------------------------------- ##
  25978. ## Main body of $CONFIG_STATUS script. ##
  25979. ## ----------------------------------- ##
  25980. _ASEOF
  25981. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  25982.  
  25983. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  25984. # Save the log message, to keep $0 and so on meaningful, and to
  25985. # report actual input values of CONFIG_FILES etc. instead of their
  25986. # values after options handling.
  25987. ac_log="
  25988. This file was extended by Mesa $as_me 9.2.5, which was
  25989. generated by GNU Autoconf 2.69.  Invocation command line was
  25990.  
  25991.   CONFIG_FILES    = $CONFIG_FILES
  25992.   CONFIG_HEADERS  = $CONFIG_HEADERS
  25993.   CONFIG_LINKS    = $CONFIG_LINKS
  25994.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  25995.   $ $0 $@
  25996.  
  25997. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  25998. "
  25999.  
  26000. _ACEOF
  26001.  
  26002. case $ac_config_files in *"
  26003. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  26004. esac
  26005.  
  26006.  
  26007.  
  26008. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26009. # Files that config.status was made for.
  26010. config_files="$ac_config_files"
  26011. config_commands="$ac_config_commands"
  26012.  
  26013. _ACEOF
  26014.  
  26015. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26016. ac_cs_usage="\
  26017. \`$as_me' instantiates files and other configuration actions
  26018. from templates according to the current configuration.  Unless the files
  26019. and actions are specified as TAGs, all are instantiated by default.
  26020.  
  26021. Usage: $0 [OPTION]... [TAG]...
  26022.  
  26023.   -h, --help       print this help, then exit
  26024.   -V, --version    print version number and configuration settings, then exit
  26025.       --config     print configuration, then exit
  26026.   -q, --quiet, --silent
  26027.                    do not print progress messages
  26028.   -d, --debug      don't remove temporary files
  26029.       --recheck    update $as_me by reconfiguring in the same conditions
  26030.       --file=FILE[:TEMPLATE]
  26031.                    instantiate the configuration file FILE
  26032.  
  26033. Configuration files:
  26034. $config_files
  26035.  
  26036. Configuration commands:
  26037. $config_commands
  26038.  
  26039. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa>."
  26040.  
  26041. _ACEOF
  26042. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26043. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  26044. ac_cs_version="\\
  26045. Mesa config.status 9.2.5
  26046. configured by $0, generated by GNU Autoconf 2.69,
  26047.   with options \\"\$ac_cs_config\\"
  26048.  
  26049. Copyright (C) 2012 Free Software Foundation, Inc.
  26050. This config.status script is free software; the Free Software Foundation
  26051. gives unlimited permission to copy, distribute and modify it."
  26052.  
  26053. ac_pwd='$ac_pwd'
  26054. srcdir='$srcdir'
  26055. INSTALL='$INSTALL'
  26056. MKDIR_P='$MKDIR_P'
  26057. AWK='$AWK'
  26058. test -n "\$AWK" || AWK=awk
  26059. _ACEOF
  26060.  
  26061. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26062. # The default lists apply if the user does not specify any file.
  26063. ac_need_defaults=:
  26064. while test $# != 0
  26065. do
  26066.   case $1 in
  26067.   --*=?*)
  26068.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26069.     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26070.     ac_shift=:
  26071.     ;;
  26072.   --*=)
  26073.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26074.     ac_optarg=
  26075.     ac_shift=:
  26076.     ;;
  26077.   *)
  26078.     ac_option=$1
  26079.     ac_optarg=$2
  26080.     ac_shift=shift
  26081.     ;;
  26082.   esac
  26083.  
  26084.   case $ac_option in
  26085.   # Handling of the options.
  26086.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26087.     ac_cs_recheck=: ;;
  26088.   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26089.     $as_echo "$ac_cs_version"; exit ;;
  26090.   --config | --confi | --conf | --con | --co | --c )
  26091.     $as_echo "$ac_cs_config"; exit ;;
  26092.   --debug | --debu | --deb | --de | --d | -d )
  26093.     debug=: ;;
  26094.   --file | --fil | --fi | --f )
  26095.     $ac_shift
  26096.     case $ac_optarg in
  26097.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  26098.     '') as_fn_error $? "missing file argument" ;;
  26099.     esac
  26100.     as_fn_append CONFIG_FILES " '$ac_optarg'"
  26101.     ac_need_defaults=false;;
  26102.   --he | --h |  --help | --hel | -h )
  26103.     $as_echo "$ac_cs_usage"; exit ;;
  26104.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26105.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26106.     ac_cs_silent=: ;;
  26107.  
  26108.   # This is an error.
  26109.   -*) as_fn_error $? "unrecognized option: \`$1'
  26110. Try \`$0 --help' for more information." ;;
  26111.  
  26112.   *) as_fn_append ac_config_targets " $1"
  26113.      ac_need_defaults=false ;;
  26114.  
  26115.   esac
  26116.   shift
  26117. done
  26118.  
  26119. ac_configure_extra_args=
  26120.  
  26121. if $ac_cs_silent; then
  26122.   exec 6>/dev/null
  26123.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  26124. fi
  26125.  
  26126. _ACEOF
  26127. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26128. if \$ac_cs_recheck; then
  26129.   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26130.   shift
  26131.   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  26132.   CONFIG_SHELL='$SHELL'
  26133.   export CONFIG_SHELL
  26134.   exec "\$@"
  26135. fi
  26136.  
  26137. _ACEOF
  26138. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26139. exec 5>>config.log
  26140. {
  26141.   echo
  26142.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26143. ## Running $as_me. ##
  26144. _ASBOX
  26145.   $as_echo "$ac_log"
  26146. } >&5
  26147.  
  26148. _ACEOF
  26149. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26150. #
  26151. # INIT-COMMANDS
  26152. #
  26153. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  26154.  
  26155.  
  26156. # The HP-UX ksh and POSIX shell print the target directory to stdout
  26157. # if CDPATH is set.
  26158. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26159.  
  26160. sed_quote_subst='$sed_quote_subst'
  26161. double_quote_subst='$double_quote_subst'
  26162. delay_variable_subst='$delay_variable_subst'
  26163. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  26164. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  26165. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  26166. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  26167. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  26168. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  26169. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  26170. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  26171. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  26172. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  26173. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  26174. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  26175. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  26176. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  26177. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  26178. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  26179. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  26180. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  26181. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  26182. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  26183. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  26184. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  26185. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  26186. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  26187. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  26188. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  26189. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  26190. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  26191. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  26192. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  26193. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  26194. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  26195. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  26196. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  26197. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  26198. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  26199. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  26200. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  26201. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  26202. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  26203. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  26204. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  26205. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  26206. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  26207. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  26208. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26209. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26210. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  26211. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  26212. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  26213. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  26214. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  26215. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  26216. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  26217. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  26218. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  26219. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26220. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  26221. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  26222. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  26223. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  26224. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  26225. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  26226. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  26227. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  26228. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  26229. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  26230. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  26231. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  26232. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  26233. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  26234. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  26235. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  26236. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  26237. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  26238. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26239. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  26240. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  26241. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  26242. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  26243. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  26244. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  26245. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  26246. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  26247. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26248. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  26249. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  26250. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  26251. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26252. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  26253. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  26254. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  26255. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  26256. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  26257. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  26258. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26259. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  26260. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  26261. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  26262. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  26263. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  26264. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  26265. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  26266. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  26267. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  26268. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  26269. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  26270. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  26271. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  26272. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  26273. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  26274. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  26275. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  26276. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  26277. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  26278. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  26279. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  26280. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  26281. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  26282. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  26283. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  26284. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  26285. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  26286. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  26287. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  26288. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  26289. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  26290. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  26291. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  26292. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  26293. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  26294. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  26295. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  26296. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  26297. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  26298. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  26299. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  26300. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26301. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26302. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26303. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  26304. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  26305. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26306. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  26307. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  26308. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  26309. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  26310. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  26311. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  26312. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26313. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26314. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  26315. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26316. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26317. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26318. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26319. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26320. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26321. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  26322. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26323. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  26324. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26325. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  26326. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  26327. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  26328. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  26329. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  26330. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  26331. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  26332. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  26333. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  26334. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26335. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26336. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  26337. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26338. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  26339. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  26340. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  26341. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  26342. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26343. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  26344. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  26345. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  26346. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  26347.  
  26348. LTCC='$LTCC'
  26349. LTCFLAGS='$LTCFLAGS'
  26350. compiler='$compiler_DEFAULT'
  26351.  
  26352. # A function that is used when there is no print builtin or printf.
  26353. func_fallback_echo ()
  26354. {
  26355.   eval 'cat <<_LTECHO_EOF
  26356. \$1
  26357. _LTECHO_EOF'
  26358. }
  26359.  
  26360. # Quote evaled strings.
  26361. for var in SHELL \
  26362. ECHO \
  26363. PATH_SEPARATOR \
  26364. SED \
  26365. GREP \
  26366. EGREP \
  26367. FGREP \
  26368. LD \
  26369. NM \
  26370. LN_S \
  26371. lt_SP2NL \
  26372. lt_NL2SP \
  26373. reload_flag \
  26374. OBJDUMP \
  26375. deplibs_check_method \
  26376. file_magic_cmd \
  26377. file_magic_glob \
  26378. want_nocaseglob \
  26379. DLLTOOL \
  26380. sharedlib_from_linklib_cmd \
  26381. AR \
  26382. AR_FLAGS \
  26383. archiver_list_spec \
  26384. STRIP \
  26385. RANLIB \
  26386. CC \
  26387. CFLAGS \
  26388. compiler \
  26389. lt_cv_sys_global_symbol_pipe \
  26390. lt_cv_sys_global_symbol_to_cdecl \
  26391. lt_cv_sys_global_symbol_to_c_name_address \
  26392. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  26393. nm_file_list_spec \
  26394. lt_prog_compiler_no_builtin_flag \
  26395. lt_prog_compiler_pic \
  26396. lt_prog_compiler_wl \
  26397. lt_prog_compiler_static \
  26398. lt_cv_prog_compiler_c_o \
  26399. need_locks \
  26400. MANIFEST_TOOL \
  26401. DSYMUTIL \
  26402. NMEDIT \
  26403. LIPO \
  26404. OTOOL \
  26405. OTOOL64 \
  26406. shrext_cmds \
  26407. export_dynamic_flag_spec \
  26408. whole_archive_flag_spec \
  26409. compiler_needs_object \
  26410. with_gnu_ld \
  26411. allow_undefined_flag \
  26412. no_undefined_flag \
  26413. hardcode_libdir_flag_spec \
  26414. hardcode_libdir_separator \
  26415. exclude_expsyms \
  26416. include_expsyms \
  26417. file_list_spec \
  26418. variables_saved_for_relink \
  26419. libname_spec \
  26420. library_names_spec \
  26421. soname_spec \
  26422. install_override_mode \
  26423. finish_eval \
  26424. old_striplib \
  26425. striplib \
  26426. compiler_lib_search_dirs \
  26427. predep_objects \
  26428. postdep_objects \
  26429. predeps \
  26430. postdeps \
  26431. compiler_lib_search_path \
  26432. LD_CXX \
  26433. reload_flag_CXX \
  26434. compiler_CXX \
  26435. lt_prog_compiler_no_builtin_flag_CXX \
  26436. lt_prog_compiler_pic_CXX \
  26437. lt_prog_compiler_wl_CXX \
  26438. lt_prog_compiler_static_CXX \
  26439. lt_cv_prog_compiler_c_o_CXX \
  26440. export_dynamic_flag_spec_CXX \
  26441. whole_archive_flag_spec_CXX \
  26442. compiler_needs_object_CXX \
  26443. with_gnu_ld_CXX \
  26444. allow_undefined_flag_CXX \
  26445. no_undefined_flag_CXX \
  26446. hardcode_libdir_flag_spec_CXX \
  26447. hardcode_libdir_separator_CXX \
  26448. exclude_expsyms_CXX \
  26449. include_expsyms_CXX \
  26450. file_list_spec_CXX \
  26451. compiler_lib_search_dirs_CXX \
  26452. predep_objects_CXX \
  26453. postdep_objects_CXX \
  26454. predeps_CXX \
  26455. postdeps_CXX \
  26456. compiler_lib_search_path_CXX; do
  26457.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26458.     *[\\\\\\\`\\"\\\$]*)
  26459.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  26460.       ;;
  26461.     *)
  26462.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26463.       ;;
  26464.     esac
  26465. done
  26466.  
  26467. # Double-quote double-evaled strings.
  26468. for var in reload_cmds \
  26469. old_postinstall_cmds \
  26470. old_postuninstall_cmds \
  26471. old_archive_cmds \
  26472. extract_expsyms_cmds \
  26473. old_archive_from_new_cmds \
  26474. old_archive_from_expsyms_cmds \
  26475. archive_cmds \
  26476. archive_expsym_cmds \
  26477. module_cmds \
  26478. module_expsym_cmds \
  26479. export_symbols_cmds \
  26480. prelink_cmds \
  26481. postlink_cmds \
  26482. postinstall_cmds \
  26483. postuninstall_cmds \
  26484. finish_cmds \
  26485. sys_lib_search_path_spec \
  26486. sys_lib_dlsearch_path_spec \
  26487. reload_cmds_CXX \
  26488. old_archive_cmds_CXX \
  26489. old_archive_from_new_cmds_CXX \
  26490. old_archive_from_expsyms_cmds_CXX \
  26491. archive_cmds_CXX \
  26492. archive_expsym_cmds_CXX \
  26493. module_cmds_CXX \
  26494. module_expsym_cmds_CXX \
  26495. export_symbols_cmds_CXX \
  26496. prelink_cmds_CXX \
  26497. postlink_cmds_CXX; do
  26498.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  26499.     *[\\\\\\\`\\"\\\$]*)
  26500.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  26501.       ;;
  26502.     *)
  26503.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26504.       ;;
  26505.     esac
  26506. done
  26507.  
  26508. ac_aux_dir='$ac_aux_dir'
  26509. xsi_shell='$xsi_shell'
  26510. lt_shell_append='$lt_shell_append'
  26511.  
  26512. # See if we are running on zsh, and set the options which allow our
  26513. # commands through without removal of \ escapes INIT.
  26514. if test -n "\${ZSH_VERSION+set}" ; then
  26515.    setopt NO_GLOB_SUBST
  26516. fi
  26517.  
  26518.  
  26519.     PACKAGE='$PACKAGE'
  26520.     VERSION='$VERSION'
  26521.     TIMESTAMP='$TIMESTAMP'
  26522.     RM='$RM'
  26523.     ofile='$ofile'
  26524.  
  26525.  
  26526.  
  26527.  
  26528.  
  26529.  
  26530. _ACEOF
  26531.  
  26532. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26533.  
  26534. # Handling of arguments.
  26535. for ac_config_target in $ac_config_targets
  26536. do
  26537.   case $ac_config_target in
  26538.     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  26539.     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26540.     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  26541.     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  26542.     "src/egl/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/Makefile" ;;
  26543.     "src/egl/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/drivers/Makefile" ;;
  26544.     "src/egl/drivers/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/drivers/dri2/Makefile" ;;
  26545.     "src/egl/drivers/glx/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/drivers/glx/Makefile" ;;
  26546.     "src/egl/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/main/Makefile" ;;
  26547.     "src/egl/main/egl.pc") CONFIG_FILES="$CONFIG_FILES src/egl/main/egl.pc" ;;
  26548.     "src/egl/wayland/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/wayland/Makefile" ;;
  26549.     "src/egl/wayland/wayland-drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/wayland/wayland-drm/Makefile" ;;
  26550.     "src/egl/wayland/wayland-egl/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/wayland/wayland-egl/Makefile" ;;
  26551.     "src/egl/wayland/wayland-egl/wayland-egl.pc") CONFIG_FILES="$CONFIG_FILES src/egl/wayland/wayland-egl/wayland-egl.pc" ;;
  26552.     "src/gallium/auxiliary/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/auxiliary/Makefile" ;;
  26553.     "src/gallium/auxiliary/pipe-loader/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/auxiliary/pipe-loader/Makefile" ;;
  26554.     "src/gallium/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/Makefile" ;;
  26555.     "src/gallium/drivers/freedreno/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/freedreno/Makefile" ;;
  26556.     "src/gallium/drivers/freedreno/a2xx/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/freedreno/a2xx/Makefile" ;;
  26557.     "src/gallium/drivers/freedreno/a3xx/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/freedreno/a3xx/Makefile" ;;
  26558.     "src/gallium/drivers/i915/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/i915/Makefile" ;;
  26559.     "src/gallium/drivers/ilo/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/ilo/Makefile" ;;
  26560.     "src/gallium/drivers/llvmpipe/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/llvmpipe/Makefile" ;;
  26561.     "src/gallium/drivers/nouveau/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/nouveau/Makefile" ;;
  26562.     "src/gallium/drivers/nv30/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/nv30/Makefile" ;;
  26563.     "src/gallium/drivers/nv50/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/nv50/Makefile" ;;
  26564.     "src/gallium/drivers/nvc0/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/nvc0/Makefile" ;;
  26565.     "src/gallium/drivers/r300/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/r300/Makefile" ;;
  26566.     "src/gallium/drivers/r600/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/r600/Makefile" ;;
  26567.     "src/gallium/drivers/radeon/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/radeon/Makefile" ;;
  26568.     "src/gallium/drivers/radeonsi/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/radeonsi/Makefile" ;;
  26569.     "src/gallium/drivers/rbug/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/rbug/Makefile" ;;
  26570.     "src/gallium/drivers/softpipe/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/softpipe/Makefile" ;;
  26571.     "src/gallium/drivers/svga/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/svga/Makefile" ;;
  26572.     "src/gallium/drivers/trace/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/trace/Makefile" ;;
  26573.     "src/gallium/state_trackers/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/Makefile" ;;
  26574.     "src/gallium/state_trackers/clover/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/clover/Makefile" ;;
  26575.     "src/gallium/state_trackers/dri/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/dri/Makefile" ;;
  26576.     "src/gallium/state_trackers/dri/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/dri/drm/Makefile" ;;
  26577.     "src/gallium/state_trackers/dri/sw/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/dri/sw/Makefile" ;;
  26578.     "src/gallium/state_trackers/egl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/egl/Makefile" ;;
  26579.     "src/gallium/state_trackers/gbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/gbm/Makefile" ;;
  26580.     "src/gallium/state_trackers/glx/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/glx/Makefile" ;;
  26581.     "src/gallium/state_trackers/osmesa/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/osmesa/Makefile" ;;
  26582.     "src/gallium/state_trackers/vdpau/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/vdpau/Makefile" ;;
  26583.     "src/gallium/state_trackers/vega/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/vega/Makefile" ;;
  26584.     "src/gallium/state_trackers/xa/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/xa/Makefile" ;;
  26585.     "src/gallium/state_trackers/xorg/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/xorg/Makefile" ;;
  26586.     "src/gallium/state_trackers/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/xvmc/Makefile" ;;
  26587.     "src/gallium/targets/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/Makefile" ;;
  26588.     "src/gallium/targets/dri-freedreno/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/dri-freedreno/Makefile" ;;
  26589.     "src/gallium/targets/dri-i915/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/dri-i915/Makefile" ;;
  26590.     "src/gallium/targets/dri-ilo/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/dri-ilo/Makefile" ;;
  26591.     "src/gallium/targets/dri-nouveau/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/dri-nouveau/Makefile" ;;
  26592.     "src/gallium/targets/dri-r300/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/dri-r300/Makefile" ;;
  26593.     "src/gallium/targets/dri-r600/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/dri-r600/Makefile" ;;
  26594.     "src/gallium/targets/dri-radeonsi/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/dri-radeonsi/Makefile" ;;
  26595.     "src/gallium/targets/dri-swrast/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/dri-swrast/Makefile" ;;
  26596.     "src/gallium/targets/dri-vmwgfx/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/dri-vmwgfx/Makefile" ;;
  26597.     "src/gallium/targets/egl-static/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/egl-static/Makefile" ;;
  26598.     "src/gallium/targets/gbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/gbm/Makefile" ;;
  26599.     "src/gallium/targets/opencl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/opencl/Makefile" ;;
  26600.     "src/gallium/targets/osmesa/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/osmesa/Makefile" ;;
  26601.     "src/gallium/targets/osmesa/osmesa.pc") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/osmesa/osmesa.pc" ;;
  26602.     "src/gallium/targets/pipe-loader/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/pipe-loader/Makefile" ;;
  26603.     "src/gallium/targets/libgl-xlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/libgl-xlib/Makefile" ;;
  26604.     "src/gallium/targets/vdpau-nouveau/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/vdpau-nouveau/Makefile" ;;
  26605.     "src/gallium/targets/vdpau-r300/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/vdpau-r300/Makefile" ;;
  26606.     "src/gallium/targets/vdpau-r600/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/vdpau-r600/Makefile" ;;
  26607.     "src/gallium/targets/vdpau-radeonsi/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/vdpau-radeonsi/Makefile" ;;
  26608.     "src/gallium/targets/vdpau-softpipe/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/vdpau-softpipe/Makefile" ;;
  26609.     "src/gallium/targets/xa-vmwgfx/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xa-vmwgfx/Makefile" ;;
  26610.     "src/gallium/targets/xa-vmwgfx/xatracker.pc") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xa-vmwgfx/xatracker.pc" ;;
  26611.     "src/gallium/targets/xorg-i915/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xorg-i915/Makefile" ;;
  26612.     "src/gallium/targets/xorg-nouveau/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xorg-nouveau/Makefile" ;;
  26613.     "src/gallium/targets/xorg-r600/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xorg-r600/Makefile" ;;
  26614.     "src/gallium/targets/xorg-radeonsi/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xorg-radeonsi/Makefile" ;;
  26615.     "src/gallium/targets/xvmc-nouveau/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xvmc-nouveau/Makefile" ;;
  26616.     "src/gallium/targets/xvmc-r300/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xvmc-r300/Makefile" ;;
  26617.     "src/gallium/targets/xvmc-r600/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xvmc-r600/Makefile" ;;
  26618.     "src/gallium/targets/xvmc-softpipe/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xvmc-softpipe/Makefile" ;;
  26619.     "src/gallium/tests/trivial/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/tests/trivial/Makefile" ;;
  26620.     "src/gallium/tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/tests/unit/Makefile" ;;
  26621.     "src/gallium/winsys/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/Makefile" ;;
  26622.     "src/gallium/winsys/freedreno/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/freedreno/drm/Makefile" ;;
  26623.     "src/gallium/winsys/i915/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/i915/drm/Makefile" ;;
  26624.     "src/gallium/winsys/i915/sw/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/i915/sw/Makefile" ;;
  26625.     "src/gallium/winsys/intel/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/intel/drm/Makefile" ;;
  26626.     "src/gallium/winsys/nouveau/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/nouveau/drm/Makefile" ;;
  26627.     "src/gallium/winsys/radeon/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/radeon/drm/Makefile" ;;
  26628.     "src/gallium/winsys/svga/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/svga/drm/Makefile" ;;
  26629.     "src/gallium/winsys/sw/dri/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/dri/Makefile" ;;
  26630.     "src/gallium/winsys/sw/fbdev/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/fbdev/Makefile" ;;
  26631.     "src/gallium/winsys/sw/null/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/null/Makefile" ;;
  26632.     "src/gallium/winsys/sw/wayland/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/wayland/Makefile" ;;
  26633.     "src/gallium/winsys/sw/wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/wrapper/Makefile" ;;
  26634.     "src/gallium/winsys/sw/xlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/xlib/Makefile" ;;
  26635.     "src/gbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gbm/Makefile" ;;
  26636.     "src/gbm/main/gbm.pc") CONFIG_FILES="$CONFIG_FILES src/gbm/main/gbm.pc" ;;
  26637.     "src/glsl/Makefile") CONFIG_FILES="$CONFIG_FILES src/glsl/Makefile" ;;
  26638.     "src/glsl/builtin_compiler/Makefile") CONFIG_FILES="$CONFIG_FILES src/glsl/builtin_compiler/Makefile" ;;
  26639.     "src/glx/Makefile") CONFIG_FILES="$CONFIG_FILES src/glx/Makefile" ;;
  26640.     "src/glx/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/glx/tests/Makefile" ;;
  26641.     "src/gtest/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtest/Makefile" ;;
  26642.     "src/mapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/mapi/Makefile" ;;
  26643.     "src/mapi/es1api/Makefile") CONFIG_FILES="$CONFIG_FILES src/mapi/es1api/Makefile" ;;
  26644.     "src/mapi/es1api/glesv1_cm.pc") CONFIG_FILES="$CONFIG_FILES src/mapi/es1api/glesv1_cm.pc" ;;
  26645.     "src/mapi/es2api/Makefile") CONFIG_FILES="$CONFIG_FILES src/mapi/es2api/Makefile" ;;
  26646.     "src/mapi/es2api/glesv2.pc") CONFIG_FILES="$CONFIG_FILES src/mapi/es2api/glesv2.pc" ;;
  26647.     "src/mapi/glapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/mapi/glapi/Makefile" ;;
  26648.     "src/mapi/glapi/gen/Makefile") CONFIG_FILES="$CONFIG_FILES src/mapi/glapi/gen/Makefile" ;;
  26649.     "src/mapi/glapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/mapi/glapi/tests/Makefile" ;;
  26650.     "src/mapi/shared-glapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/mapi/shared-glapi/Makefile" ;;
  26651.     "src/mapi/shared-glapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/mapi/shared-glapi/tests/Makefile" ;;
  26652.     "src/mapi/vgapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/mapi/vgapi/Makefile" ;;
  26653.     "src/mapi/vgapi/vg.pc") CONFIG_FILES="$CONFIG_FILES src/mapi/vgapi/vg.pc" ;;
  26654.     "src/mesa/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/Makefile" ;;
  26655.     "src/mesa/gl.pc") CONFIG_FILES="$CONFIG_FILES src/mesa/gl.pc" ;;
  26656.     "src/mesa/drivers/dri/dri.pc") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/dri.pc" ;;
  26657.     "src/mesa/drivers/dri/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/common/Makefile" ;;
  26658.     "src/mesa/drivers/dri/common/xmlpool/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/common/xmlpool/Makefile" ;;
  26659.     "src/mesa/drivers/dri/i915/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/i915/Makefile" ;;
  26660.     "src/mesa/drivers/dri/i965/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/i965/Makefile" ;;
  26661.     "src/mesa/drivers/dri/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/Makefile" ;;
  26662.     "src/mesa/drivers/dri/nouveau/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/nouveau/Makefile" ;;
  26663.     "src/mesa/drivers/dri/r200/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/r200/Makefile" ;;
  26664.     "src/mesa/drivers/dri/radeon/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/radeon/Makefile" ;;
  26665.     "src/mesa/drivers/dri/swrast/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/swrast/Makefile" ;;
  26666.     "src/mesa/drivers/osmesa/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/osmesa/Makefile" ;;
  26667.     "src/mesa/drivers/osmesa/osmesa.pc") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/osmesa/osmesa.pc" ;;
  26668.     "src/mesa/drivers/x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/x11/Makefile" ;;
  26669.     "src/mesa/libdricore/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/libdricore/Makefile" ;;
  26670.     "src/mesa/main/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/main/tests/Makefile" ;;
  26671.     "src/mesa/main/tests/hash_table/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/main/tests/hash_table/Makefile" ;;
  26672.     "src/mesa/program/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/program/Makefile" ;;
  26673.     "src/mesa/x86-64/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/x86-64/Makefile" ;;
  26674.     "src/mesa/x86/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/x86/Makefile" ;;
  26675.  
  26676.   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  26677.   esac
  26678. done
  26679.  
  26680.  
  26681. # If the user did not use the arguments to specify the items to instantiate,
  26682. # then the envvar interface is used.  Set only those that are not.
  26683. # We use the long form for the default assignment because of an extremely
  26684. # bizarre bug on SunOS 4.1.3.
  26685. if $ac_need_defaults; then
  26686.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  26687.   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  26688. fi
  26689.  
  26690. # Have a temporary directory for convenience.  Make it in the build tree
  26691. # simply because there is no reason against having it here, and in addition,
  26692. # creating and moving files from /tmp can sometimes cause problems.
  26693. # Hook for its removal unless debugging.
  26694. # Note that there is a small window in which the directory will not be cleaned:
  26695. # after its creation but before its name has been assigned to `$tmp'.
  26696. $debug ||
  26697. {
  26698.   tmp= ac_tmp=
  26699.   trap 'exit_status=$?
  26700.   : "${ac_tmp:=$tmp}"
  26701.   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  26702. ' 0
  26703.   trap 'as_fn_exit 1' 1 2 13 15
  26704. }
  26705. # Create a (secure) tmp directory for tmp files.
  26706.  
  26707. {
  26708.   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26709.   test -d "$tmp"
  26710. }  ||
  26711. {
  26712.   tmp=./conf$$-$RANDOM
  26713.   (umask 077 && mkdir "$tmp")
  26714. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  26715. ac_tmp=$tmp
  26716.  
  26717. # Set up the scripts for CONFIG_FILES section.
  26718. # No need to generate them if there are no CONFIG_FILES.
  26719. # This happens for instance with `./config.status config.h'.
  26720. if test -n "$CONFIG_FILES"; then
  26721.  
  26722.  
  26723. ac_cr=`echo X | tr X '\015'`
  26724. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  26725. # But we know of no other shell where ac_cr would be empty at this
  26726. # point, so we can use a bashism as a fallback.
  26727. if test "x$ac_cr" = x; then
  26728.   eval ac_cr=\$\'\\r\'
  26729. fi
  26730. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  26731. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  26732.   ac_cs_awk_cr='\\r'
  26733. else
  26734.   ac_cs_awk_cr=$ac_cr
  26735. fi
  26736.  
  26737. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  26738. _ACEOF
  26739.  
  26740.  
  26741. {
  26742.   echo "cat >conf$$subs.awk <<_ACEOF" &&
  26743.   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  26744.   echo "_ACEOF"
  26745. } >conf$$subs.sh ||
  26746.   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26747. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  26748. ac_delim='%!_!# '
  26749. for ac_last_try in false false false false false :; do
  26750.   . ./conf$$subs.sh ||
  26751.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26752.  
  26753.   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  26754.   if test $ac_delim_n = $ac_delim_num; then
  26755.     break
  26756.   elif $ac_last_try; then
  26757.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  26758.   else
  26759.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26760.   fi
  26761. done
  26762. rm -f conf$$subs.sh
  26763.  
  26764. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26765. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  26766. _ACEOF
  26767. sed -n '
  26768. h
  26769. s/^/S["/; s/!.*/"]=/
  26770. p
  26771. g
  26772. s/^[^!]*!//
  26773. :repl
  26774. t repl
  26775. s/'"$ac_delim"'$//
  26776. t delim
  26777. :nl
  26778. h
  26779. s/\(.\{148\}\)..*/\1/
  26780. t more1
  26781. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  26782. p
  26783. n
  26784. b repl
  26785. :more1
  26786. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26787. p
  26788. g
  26789. s/.\{148\}//
  26790. t nl
  26791. :delim
  26792. h
  26793. s/\(.\{148\}\)..*/\1/
  26794. t more2
  26795. s/["\\]/\\&/g; s/^/"/; s/$/"/
  26796. p
  26797. b
  26798. :more2
  26799. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  26800. p
  26801. g
  26802. s/.\{148\}//
  26803. t delim
  26804. ' <conf$$subs.awk | sed '
  26805. /^[^""]/{
  26806.   N
  26807.   s/\n//
  26808. }
  26809. ' >>$CONFIG_STATUS || ac_write_fail=1
  26810. rm -f conf$$subs.awk
  26811. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  26812. _ACAWK
  26813. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  26814.   for (key in S) S_is_set[key] = 1
  26815.   FS = ""
  26816.  
  26817. }
  26818. {
  26819.   line = $ 0
  26820.   nfields = split(line, field, "@")
  26821.   substed = 0
  26822.   len = length(field[1])
  26823.   for (i = 2; i < nfields; i++) {
  26824.     key = field[i]
  26825.     keylen = length(key)
  26826.     if (S_is_set[key]) {
  26827.       value = S[key]
  26828.       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  26829.       len += length(value) + length(field[++i])
  26830.       substed = 1
  26831.     } else
  26832.       len += 1 + keylen
  26833.   }
  26834.  
  26835.   print line
  26836. }
  26837.  
  26838. _ACAWK
  26839. _ACEOF
  26840. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26841. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  26842.   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  26843. else
  26844.   cat
  26845. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  26846.   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  26847. _ACEOF
  26848.  
  26849. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  26850. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  26851. # trailing colons and then remove the whole line if VPATH becomes empty
  26852. # (actually we leave an empty line to preserve line numbers).
  26853. if test "x$srcdir" = x.; then
  26854.   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
  26855. h
  26856. s///
  26857. s/^/:/
  26858. s/[      ]*$/:/
  26859. s/:\$(srcdir):/:/g
  26860. s/:\${srcdir}:/:/g
  26861. s/:@srcdir@:/:/g
  26862. s/^:*//
  26863. s/:*$//
  26864. x
  26865. s/\(=[   ]*\).*/\1/
  26866. G
  26867. s/\n//
  26868. s/^[^=]*=[       ]*$//
  26869. }'
  26870. fi
  26871.  
  26872. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  26873. fi # test -n "$CONFIG_FILES"
  26874.  
  26875.  
  26876. eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
  26877. shift
  26878. for ac_tag
  26879. do
  26880.   case $ac_tag in
  26881.   :[FHLC]) ac_mode=$ac_tag; continue;;
  26882.   esac
  26883.   case $ac_mode$ac_tag in
  26884.   :[FHL]*:*);;
  26885.   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  26886.   :[FH]-) ac_tag=-:-;;
  26887.   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  26888.   esac
  26889.   ac_save_IFS=$IFS
  26890.   IFS=:
  26891.   set x $ac_tag
  26892.   IFS=$ac_save_IFS
  26893.   shift
  26894.   ac_file=$1
  26895.   shift
  26896.  
  26897.   case $ac_mode in
  26898.   :L) ac_source=$1;;
  26899.   :[FH])
  26900.     ac_file_inputs=
  26901.     for ac_f
  26902.     do
  26903.       case $ac_f in
  26904.       -) ac_f="$ac_tmp/stdin";;
  26905.       *) # Look for the file first in the build tree, then in the source tree
  26906.          # (if the path is not absolute).  The absolute path cannot be DOS-style,
  26907.          # because $ac_f cannot contain `:'.
  26908.          test -f "$ac_f" ||
  26909.            case $ac_f in
  26910.            [\\/$]*) false;;
  26911.            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  26912.            esac ||
  26913.            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  26914.       esac
  26915.       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  26916.       as_fn_append ac_file_inputs " '$ac_f'"
  26917.     done
  26918.  
  26919.     # Let's still pretend it is `configure' which instantiates (i.e., don't
  26920.     # use $as_me), people would be surprised to read:
  26921.     #    /* config.h.  Generated by config.status.  */
  26922.     configure_input='Generated from '`
  26923.           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  26924.         `' by configure.'
  26925.     if test x"$ac_file" != x-; then
  26926.       configure_input="$ac_file.  $configure_input"
  26927.       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  26928. $as_echo "$as_me: creating $ac_file" >&6;}
  26929.     fi
  26930.     # Neutralize special characters interpreted by sed in replacement strings.
  26931.     case $configure_input in #(
  26932.     *\&* | *\|* | *\\* )
  26933.        ac_sed_conf_input=`$as_echo "$configure_input" |
  26934.        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  26935.     *) ac_sed_conf_input=$configure_input;;
  26936.     esac
  26937.  
  26938.     case $ac_tag in
  26939.     *:-:* | *:-) cat >"$ac_tmp/stdin" \
  26940.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  26941.     esac
  26942.     ;;
  26943.   esac
  26944.  
  26945.   ac_dir=`$as_dirname -- "$ac_file" ||
  26946. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26947.          X"$ac_file" : 'X\(//\)[^/]' \| \
  26948.          X"$ac_file" : 'X\(//\)$' \| \
  26949.          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  26950. $as_echo X"$ac_file" |
  26951.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26952.             s//\1/
  26953.             q
  26954.           }
  26955.           /^X\(\/\/\)[^/].*/{
  26956.             s//\1/
  26957.             q
  26958.           }
  26959.           /^X\(\/\/\)$/{
  26960.             s//\1/
  26961.             q
  26962.           }
  26963.           /^X\(\/\).*/{
  26964.             s//\1/
  26965.             q
  26966.           }
  26967.           s/.*/./; q'`
  26968.   as_dir="$ac_dir"; as_fn_mkdir_p
  26969.   ac_builddir=.
  26970.  
  26971. case "$ac_dir" in
  26972. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26973. *)
  26974.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  26975.   # A ".." for each directory in $ac_dir_suffix.
  26976.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  26977.   case $ac_top_builddir_sub in
  26978.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26979.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  26980.   esac ;;
  26981. esac
  26982. ac_abs_top_builddir=$ac_pwd
  26983. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  26984. # for backward compatibility:
  26985. ac_top_builddir=$ac_top_build_prefix
  26986.  
  26987. case $srcdir in
  26988.   .)  # We are building in place.
  26989.     ac_srcdir=.
  26990.     ac_top_srcdir=$ac_top_builddir_sub
  26991.     ac_abs_top_srcdir=$ac_pwd ;;
  26992.   [\\/]* | ?:[\\/]* )  # Absolute name.
  26993.     ac_srcdir=$srcdir$ac_dir_suffix;
  26994.     ac_top_srcdir=$srcdir
  26995.     ac_abs_top_srcdir=$srcdir ;;
  26996.   *) # Relative name.
  26997.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  26998.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  26999.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  27000. esac
  27001. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  27002.  
  27003.  
  27004.   case $ac_mode in
  27005.   :F)
  27006.   #
  27007.   # CONFIG_FILE
  27008.   #
  27009.  
  27010.   case $INSTALL in
  27011.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  27012.   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  27013.   esac
  27014.   ac_MKDIR_P=$MKDIR_P
  27015.   case $MKDIR_P in
  27016.   [\\/$]* | ?:[\\/]* ) ;;
  27017.   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  27018.   esac
  27019. _ACEOF
  27020.  
  27021. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27022. # If the template does not know about datarootdir, expand it.
  27023. # FIXME: This hack should be removed a few years after 2.60.
  27024. ac_datarootdir_hack=; ac_datarootdir_seen=
  27025. ac_sed_dataroot='
  27026. /datarootdir/ {
  27027.   p
  27028.   q
  27029. }
  27030. /@datadir@/p
  27031. /@docdir@/p
  27032. /@infodir@/p
  27033. /@localedir@/p
  27034. /@mandir@/p'
  27035. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  27036. *datarootdir*) ac_datarootdir_seen=yes;;
  27037. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  27038.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27039. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27040. _ACEOF
  27041. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27042.   ac_datarootdir_hack='
  27043.   s&@datadir@&$datadir&g
  27044.   s&@docdir@&$docdir&g
  27045.   s&@infodir@&$infodir&g
  27046.   s&@localedir@&$localedir&g
  27047.   s&@mandir@&$mandir&g
  27048.   s&\\\${datarootdir}&$datarootdir&g' ;;
  27049. esac
  27050. _ACEOF
  27051.  
  27052. # Neutralize VPATH when `$srcdir' = `.'.
  27053. # Shell code in configure.ac might set extrasub.
  27054. # FIXME: do we really want to maintain this feature?
  27055. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27056. ac_sed_extra="$ac_vpsub
  27057. $extrasub
  27058. _ACEOF
  27059. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27060. :t
  27061. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27062. s|@configure_input@|$ac_sed_conf_input|;t t
  27063. s&@top_builddir@&$ac_top_builddir_sub&;t t
  27064. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  27065. s&@srcdir@&$ac_srcdir&;t t
  27066. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27067. s&@top_srcdir@&$ac_top_srcdir&;t t
  27068. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27069. s&@builddir@&$ac_builddir&;t t
  27070. s&@abs_builddir@&$ac_abs_builddir&;t t
  27071. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27072. s&@INSTALL@&$ac_INSTALL&;t t
  27073. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  27074. $ac_datarootdir_hack
  27075. "
  27076. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  27077.   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27078.  
  27079. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27080.   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  27081.   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
  27082.       "$ac_tmp/out"`; test -z "$ac_out"; } &&
  27083.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27084. which seems to be undefined.  Please make sure it is defined" >&5
  27085. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27086. which seems to be undefined.  Please make sure it is defined" >&2;}
  27087.  
  27088.   rm -f "$ac_tmp/stdin"
  27089.   case $ac_file in
  27090.   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  27091.   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  27092.   esac \
  27093.   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  27094.  ;;
  27095.  
  27096.  
  27097.   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  27098. $as_echo "$as_me: executing $ac_file commands" >&6;}
  27099.  ;;
  27100.   esac
  27101.  
  27102.  
  27103.   case $ac_file$ac_mode in
  27104.     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  27105.   # Older Autoconf quotes --file arguments for eval, but not when files
  27106.   # are listed without --file.  Let's play safe and only enable the eval
  27107.   # if we detect the quoting.
  27108.   case $CONFIG_FILES in
  27109.   *\'*) eval set x "$CONFIG_FILES" ;;
  27110.   *)   set x $CONFIG_FILES ;;
  27111.   esac
  27112.   shift
  27113.   for mf
  27114.   do
  27115.     # Strip MF so we end up with the name of the file.
  27116.     mf=`echo "$mf" | sed -e 's/:.*$//'`
  27117.     # Check whether this is an Automake generated Makefile or not.
  27118.     # We used to match only the files named 'Makefile.in', but
  27119.     # some people rename them; so instead we look at the file content.
  27120.     # Grep'ing the first line is not enough: some people post-process
  27121.     # each Makefile.in and add a new line on top of each file to say so.
  27122.     # Grep'ing the whole file is not good either: AIX grep has a line
  27123.     # limit of 2048, but all sed's we know have understand at least 4000.
  27124.     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  27125.       dirpart=`$as_dirname -- "$mf" ||
  27126. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27127.          X"$mf" : 'X\(//\)[^/]' \| \
  27128.          X"$mf" : 'X\(//\)$' \| \
  27129.          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  27130. $as_echo X"$mf" |
  27131.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27132.             s//\1/
  27133.             q
  27134.           }
  27135.           /^X\(\/\/\)[^/].*/{
  27136.             s//\1/
  27137.             q
  27138.           }
  27139.           /^X\(\/\/\)$/{
  27140.             s//\1/
  27141.             q
  27142.           }
  27143.           /^X\(\/\).*/{
  27144.             s//\1/
  27145.             q
  27146.           }
  27147.           s/.*/./; q'`
  27148.     else
  27149.       continue
  27150.     fi
  27151.     # Extract the definition of DEPDIR, am__include, and am__quote
  27152.     # from the Makefile without running 'make'.
  27153.     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  27154.     test -z "$DEPDIR" && continue
  27155.     am__include=`sed -n 's/^am__include = //p' < "$mf"`
  27156.     test -z "$am__include" && continue
  27157.     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  27158.     # Find all dependency output files, they are included files with
  27159.     # $(DEPDIR) in their names.  We invoke sed twice because it is the
  27160.     # simplest approach to changing $(DEPDIR) to its actual value in the
  27161.     # expansion.
  27162.     for file in `sed -n "
  27163.       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  27164.          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  27165.       # Make sure the directory exists.
  27166.       test -f "$dirpart/$file" && continue
  27167.       fdir=`$as_dirname -- "$file" ||
  27168. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27169.          X"$file" : 'X\(//\)[^/]' \| \
  27170.          X"$file" : 'X\(//\)$' \| \
  27171.          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  27172. $as_echo X"$file" |
  27173.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27174.             s//\1/
  27175.             q
  27176.           }
  27177.           /^X\(\/\/\)[^/].*/{
  27178.             s//\1/
  27179.             q
  27180.           }
  27181.           /^X\(\/\/\)$/{
  27182.             s//\1/
  27183.             q
  27184.           }
  27185.           /^X\(\/\).*/{
  27186.             s//\1/
  27187.             q
  27188.           }
  27189.           s/.*/./; q'`
  27190.       as_dir=$dirpart/$fdir; as_fn_mkdir_p
  27191.       # echo "creating $dirpart/$file"
  27192.       echo '# dummy' > "$dirpart/$file"
  27193.     done
  27194.   done
  27195. }
  27196.  ;;
  27197.     "libtool":C)
  27198.  
  27199.     # See if we are running on zsh, and set the options which allow our
  27200.     # commands through without removal of \ escapes.
  27201.     if test -n "${ZSH_VERSION+set}" ; then
  27202.       setopt NO_GLOB_SUBST
  27203.     fi
  27204.  
  27205.     cfgfile="${ofile}T"
  27206.     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27207.     $RM "$cfgfile"
  27208.  
  27209.     cat <<_LT_EOF >> "$cfgfile"
  27210. #! $SHELL
  27211.  
  27212. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  27213. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  27214. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27215. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27216. #
  27217. #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  27218. #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  27219. #                 Foundation, Inc.
  27220. #   Written by Gordon Matzigkeit, 1996
  27221. #
  27222. #   This file is part of GNU Libtool.
  27223. #
  27224. # GNU Libtool is free software; you can redistribute it and/or
  27225. # modify it under the terms of the GNU General Public License as
  27226. # published by the Free Software Foundation; either version 2 of
  27227. # the License, or (at your option) any later version.
  27228. #
  27229. # As a special exception to the GNU General Public License,
  27230. # if you distribute this file as part of a program or library that
  27231. # is built using GNU Libtool, you may include this file under the
  27232. # same distribution terms that you use for the rest of that program.
  27233. #
  27234. # GNU Libtool is distributed in the hope that it will be useful,
  27235. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  27236. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  27237. # GNU General Public License for more details.
  27238. #
  27239. # You should have received a copy of the GNU General Public License
  27240. # along with GNU Libtool; see the file COPYING.  If not, a copy
  27241. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  27242. # obtained by writing to the Free Software Foundation, Inc.,
  27243. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  27244.  
  27245.  
  27246. # The names of the tagged configurations supported by this script.
  27247. available_tags="CXX "
  27248.  
  27249. # ### BEGIN LIBTOOL CONFIG
  27250.  
  27251. # Which release of libtool.m4 was used?
  27252. macro_version=$macro_version
  27253. macro_revision=$macro_revision
  27254.  
  27255. # Whether or not to build static libraries.
  27256. build_old_libs=$enable_static
  27257.  
  27258. # Whether or not to build shared libraries.
  27259. build_libtool_libs=$enable_shared
  27260.  
  27261. # What type of objects to build.
  27262. pic_mode=$pic_mode
  27263.  
  27264. # Whether or not to optimize for fast installation.
  27265. fast_install=$enable_fast_install
  27266.  
  27267. # Shell to use when invoking shell scripts.
  27268. SHELL=$lt_SHELL
  27269.  
  27270. # An echo program that protects backslashes.
  27271. ECHO=$lt_ECHO
  27272.  
  27273. # The PATH separator for the build system.
  27274. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  27275.  
  27276. # The host system.
  27277. host_alias=$host_alias
  27278. host=$host
  27279. host_os=$host_os
  27280.  
  27281. # The build system.
  27282. build_alias=$build_alias
  27283. build=$build
  27284. build_os=$build_os
  27285.  
  27286. # A sed program that does not truncate output.
  27287. SED=$lt_SED
  27288.  
  27289. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  27290. Xsed="\$SED -e 1s/^X//"
  27291.  
  27292. # A grep program that handles long lines.
  27293. GREP=$lt_GREP
  27294.  
  27295. # An ERE matcher.
  27296. EGREP=$lt_EGREP
  27297.  
  27298. # A literal string matcher.
  27299. FGREP=$lt_FGREP
  27300.  
  27301. # A BSD- or MS-compatible name lister.
  27302. NM=$lt_NM
  27303.  
  27304. # Whether we need soft or hard links.
  27305. LN_S=$lt_LN_S
  27306.  
  27307. # What is the maximum length of a command?
  27308. max_cmd_len=$max_cmd_len
  27309.  
  27310. # Object file suffix (normally "o").
  27311. objext=$ac_objext
  27312.  
  27313. # Executable file suffix (normally "").
  27314. exeext=$exeext
  27315.  
  27316. # whether the shell understands "unset".
  27317. lt_unset=$lt_unset
  27318.  
  27319. # turn spaces into newlines.
  27320. SP2NL=$lt_lt_SP2NL
  27321.  
  27322. # turn newlines into spaces.
  27323. NL2SP=$lt_lt_NL2SP
  27324.  
  27325. # convert \$build file names to \$host format.
  27326. to_host_file_cmd=$lt_cv_to_host_file_cmd
  27327.  
  27328. # convert \$build files to toolchain format.
  27329. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  27330.  
  27331. # An object symbol dumper.
  27332. OBJDUMP=$lt_OBJDUMP
  27333.  
  27334. # Method to check whether dependent libraries are shared objects.
  27335. deplibs_check_method=$lt_deplibs_check_method
  27336.  
  27337. # Command to use when deplibs_check_method = "file_magic".
  27338. file_magic_cmd=$lt_file_magic_cmd
  27339.  
  27340. # How to find potential files when deplibs_check_method = "file_magic".
  27341. file_magic_glob=$lt_file_magic_glob
  27342.  
  27343. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  27344. want_nocaseglob=$lt_want_nocaseglob
  27345.  
  27346. # DLL creation program.
  27347. DLLTOOL=$lt_DLLTOOL
  27348.  
  27349. # Command to associate shared and link libraries.
  27350. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  27351.  
  27352. # The archiver.
  27353. AR=$lt_AR
  27354.  
  27355. # Flags to create an archive.
  27356. AR_FLAGS=$lt_AR_FLAGS
  27357.  
  27358. # How to feed a file listing to the archiver.
  27359. archiver_list_spec=$lt_archiver_list_spec
  27360.  
  27361. # A symbol stripping program.
  27362. STRIP=$lt_STRIP
  27363.  
  27364. # Commands used to install an old-style archive.
  27365. RANLIB=$lt_RANLIB
  27366. old_postinstall_cmds=$lt_old_postinstall_cmds
  27367. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  27368.  
  27369. # Whether to use a lock for old archive extraction.
  27370. lock_old_archive_extraction=$lock_old_archive_extraction
  27371.  
  27372. # A C compiler.
  27373. LTCC=$lt_CC
  27374.  
  27375. # LTCC compiler flags.
  27376. LTCFLAGS=$lt_CFLAGS
  27377.  
  27378. # Take the output of nm and produce a listing of raw symbols and C names.
  27379. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  27380.  
  27381. # Transform the output of nm in a proper C declaration.
  27382. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  27383.  
  27384. # Transform the output of nm in a C name address pair.
  27385. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  27386.  
  27387. # Transform the output of nm in a C name address pair when lib prefix is needed.
  27388. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  27389.  
  27390. # Specify filename containing input files for \$NM.
  27391. nm_file_list_spec=$lt_nm_file_list_spec
  27392.  
  27393. # The root where to search for dependent libraries,and in which our libraries should be installed.
  27394. lt_sysroot=$lt_sysroot
  27395.  
  27396. # The name of the directory that contains temporary libtool files.
  27397. objdir=$objdir
  27398.  
  27399. # Used to examine libraries when file_magic_cmd begins with "file".
  27400. MAGIC_CMD=$MAGIC_CMD
  27401.  
  27402. # Must we lock files when doing compilation?
  27403. need_locks=$lt_need_locks
  27404.  
  27405. # Manifest tool.
  27406. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  27407.  
  27408. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  27409. DSYMUTIL=$lt_DSYMUTIL
  27410.  
  27411. # Tool to change global to local symbols on Mac OS X.
  27412. NMEDIT=$lt_NMEDIT
  27413.  
  27414. # Tool to manipulate fat objects and archives on Mac OS X.
  27415. LIPO=$lt_LIPO
  27416.  
  27417. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  27418. OTOOL=$lt_OTOOL
  27419.  
  27420. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  27421. OTOOL64=$lt_OTOOL64
  27422.  
  27423. # Old archive suffix (normally "a").
  27424. libext=$libext
  27425.  
  27426. # Shared library suffix (normally ".so").
  27427. shrext_cmds=$lt_shrext_cmds
  27428.  
  27429. # The commands to extract the exported symbol list from a shared archive.
  27430. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  27431.  
  27432. # Variables whose values should be saved in libtool wrapper scripts and
  27433. # restored at link time.
  27434. variables_saved_for_relink=$lt_variables_saved_for_relink
  27435.  
  27436. # Do we need the "lib" prefix for modules?
  27437. need_lib_prefix=$need_lib_prefix
  27438.  
  27439. # Do we need a version for libraries?
  27440. need_version=$need_version
  27441.  
  27442. # Library versioning type.
  27443. version_type=$version_type
  27444.  
  27445. # Shared library runtime path variable.
  27446. runpath_var=$runpath_var
  27447.  
  27448. # Shared library path variable.
  27449. shlibpath_var=$shlibpath_var
  27450.  
  27451. # Is shlibpath searched before the hard-coded library search path?
  27452. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  27453.  
  27454. # Format of library name prefix.
  27455. libname_spec=$lt_libname_spec
  27456.  
  27457. # List of archive names.  First name is the real one, the rest are links.
  27458. # The last name is the one that the linker finds with -lNAME
  27459. library_names_spec=$lt_library_names_spec
  27460.  
  27461. # The coded name of the library, if different from the real name.
  27462. soname_spec=$lt_soname_spec
  27463.  
  27464. # Permission mode override for installation of shared libraries.
  27465. install_override_mode=$lt_install_override_mode
  27466.  
  27467. # Command to use after installation of a shared archive.
  27468. postinstall_cmds=$lt_postinstall_cmds
  27469.  
  27470. # Command to use after uninstallation of a shared archive.
  27471. postuninstall_cmds=$lt_postuninstall_cmds
  27472.  
  27473. # Commands used to finish a libtool library installation in a directory.
  27474. finish_cmds=$lt_finish_cmds
  27475.  
  27476. # As "finish_cmds", except a single script fragment to be evaled but
  27477. # not shown.
  27478. finish_eval=$lt_finish_eval
  27479.  
  27480. # Whether we should hardcode library paths into libraries.
  27481. hardcode_into_libs=$hardcode_into_libs
  27482.  
  27483. # Compile-time system search path for libraries.
  27484. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  27485.  
  27486. # Run-time system search path for libraries.
  27487. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  27488.  
  27489. # Whether dlopen is supported.
  27490. dlopen_support=$enable_dlopen
  27491.  
  27492. # Whether dlopen of programs is supported.
  27493. dlopen_self=$enable_dlopen_self
  27494.  
  27495. # Whether dlopen of statically linked programs is supported.
  27496. dlopen_self_static=$enable_dlopen_self_static
  27497.  
  27498. # Commands to strip libraries.
  27499. old_striplib=$lt_old_striplib
  27500. striplib=$lt_striplib
  27501.  
  27502.  
  27503. # The linker used to build libraries.
  27504. LD=$lt_LD
  27505.  
  27506. # How to create reloadable object files.
  27507. reload_flag=$lt_reload_flag
  27508. reload_cmds=$lt_reload_cmds
  27509.  
  27510. # Commands used to build an old-style archive.
  27511. old_archive_cmds=$lt_old_archive_cmds
  27512.  
  27513. # A language specific compiler.
  27514. CC=$lt_compiler
  27515.  
  27516. # Is the compiler the GNU compiler?
  27517. with_gcc=$GCC
  27518.  
  27519. # Compiler flag to turn off builtin functions.
  27520. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  27521.  
  27522. # Additional compiler flags for building library objects.
  27523. pic_flag=$lt_lt_prog_compiler_pic
  27524.  
  27525. # How to pass a linker flag through the compiler.
  27526. wl=$lt_lt_prog_compiler_wl
  27527.  
  27528. # Compiler flag to prevent dynamic linking.
  27529. link_static_flag=$lt_lt_prog_compiler_static
  27530.  
  27531. # Does compiler simultaneously support -c and -o options?
  27532. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  27533.  
  27534. # Whether or not to add -lc for building shared libraries.
  27535. build_libtool_need_lc=$archive_cmds_need_lc
  27536.  
  27537. # Whether or not to disallow shared libs when runtime libs are static.
  27538. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  27539.  
  27540. # Compiler flag to allow reflexive dlopens.
  27541. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  27542.  
  27543. # Compiler flag to generate shared objects directly from archives.
  27544. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  27545.  
  27546. # Whether the compiler copes with passing no objects directly.
  27547. compiler_needs_object=$lt_compiler_needs_object
  27548.  
  27549. # Create an old-style archive from a shared archive.
  27550. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  27551.  
  27552. # Create a temporary old-style archive to link instead of a shared archive.
  27553. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  27554.  
  27555. # Commands used to build a shared archive.
  27556. archive_cmds=$lt_archive_cmds
  27557. archive_expsym_cmds=$lt_archive_expsym_cmds
  27558.  
  27559. # Commands used to build a loadable module if different from building
  27560. # a shared archive.
  27561. module_cmds=$lt_module_cmds
  27562. module_expsym_cmds=$lt_module_expsym_cmds
  27563.  
  27564. # Whether we are building with GNU ld or not.
  27565. with_gnu_ld=$lt_with_gnu_ld
  27566.  
  27567. # Flag that allows shared libraries with undefined symbols to be built.
  27568. allow_undefined_flag=$lt_allow_undefined_flag
  27569.  
  27570. # Flag that enforces no undefined symbols.
  27571. no_undefined_flag=$lt_no_undefined_flag
  27572.  
  27573. # Flag to hardcode \$libdir into a binary during linking.
  27574. # This must work even if \$libdir does not exist
  27575. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  27576.  
  27577. # Whether we need a single "-rpath" flag with a separated argument.
  27578. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  27579.  
  27580. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  27581. # DIR into the resulting binary.
  27582. hardcode_direct=$hardcode_direct
  27583.  
  27584. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  27585. # DIR into the resulting binary and the resulting library dependency is
  27586. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  27587. # library is relocated.
  27588. hardcode_direct_absolute=$hardcode_direct_absolute
  27589.  
  27590. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27591. # into the resulting binary.
  27592. hardcode_minus_L=$hardcode_minus_L
  27593.  
  27594. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27595. # into the resulting binary.
  27596. hardcode_shlibpath_var=$hardcode_shlibpath_var
  27597.  
  27598. # Set to "yes" if building a shared library automatically hardcodes DIR
  27599. # into the library and all subsequent libraries and executables linked
  27600. # against it.
  27601. hardcode_automatic=$hardcode_automatic
  27602.  
  27603. # Set to yes if linker adds runtime paths of dependent libraries
  27604. # to runtime path list.
  27605. inherit_rpath=$inherit_rpath
  27606.  
  27607. # Whether libtool must link a program against all its dependency libraries.
  27608. link_all_deplibs=$link_all_deplibs
  27609.  
  27610. # Set to "yes" if exported symbols are required.
  27611. always_export_symbols=$always_export_symbols
  27612.  
  27613. # The commands to list exported symbols.
  27614. export_symbols_cmds=$lt_export_symbols_cmds
  27615.  
  27616. # Symbols that should not be listed in the preloaded symbols.
  27617. exclude_expsyms=$lt_exclude_expsyms
  27618.  
  27619. # Symbols that must always be exported.
  27620. include_expsyms=$lt_include_expsyms
  27621.  
  27622. # Commands necessary for linking programs (against libraries) with templates.
  27623. prelink_cmds=$lt_prelink_cmds
  27624.  
  27625. # Commands necessary for finishing linking programs.
  27626. postlink_cmds=$lt_postlink_cmds
  27627.  
  27628. # Specify filename containing input files.
  27629. file_list_spec=$lt_file_list_spec
  27630.  
  27631. # How to hardcode a shared library path into an executable.
  27632. hardcode_action=$hardcode_action
  27633.  
  27634. # The directories searched by this compiler when creating a shared library.
  27635. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  27636.  
  27637. # Dependencies to place before and after the objects being linked to
  27638. # create a shared library.
  27639. predep_objects=$lt_predep_objects
  27640. postdep_objects=$lt_postdep_objects
  27641. predeps=$lt_predeps
  27642. postdeps=$lt_postdeps
  27643.  
  27644. # The library search path used internally by the compiler when linking
  27645. # a shared library.
  27646. compiler_lib_search_path=$lt_compiler_lib_search_path
  27647.  
  27648. # ### END LIBTOOL CONFIG
  27649.  
  27650. _LT_EOF
  27651.  
  27652.   case $host_os in
  27653.   aix3*)
  27654.     cat <<\_LT_EOF >> "$cfgfile"
  27655. # AIX sometimes has problems with the GCC collect2 program.  For some
  27656. # reason, if we set the COLLECT_NAMES environment variable, the problems
  27657. # vanish in a puff of smoke.
  27658. if test "X${COLLECT_NAMES+set}" != Xset; then
  27659.   COLLECT_NAMES=
  27660.   export COLLECT_NAMES
  27661. fi
  27662. _LT_EOF
  27663.     ;;
  27664.   esac
  27665.  
  27666.  
  27667. ltmain="$ac_aux_dir/ltmain.sh"
  27668.  
  27669.  
  27670.   # We use sed instead of cat because bash on DJGPP gets confused if
  27671.   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  27672.   # text mode, it properly converts lines to CR/LF.  This bash problem
  27673.   # is reportedly fixed, but why not run on old versions too?
  27674.   sed '$q' "$ltmain" >> "$cfgfile" \
  27675.      || (rm -f "$cfgfile"; exit 1)
  27676.  
  27677.   if test x"$xsi_shell" = xyes; then
  27678.   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  27679. func_dirname ()\
  27680. {\
  27681. \    case ${1} in\
  27682. \      */*) func_dirname_result="${1%/*}${2}" ;;\
  27683. \      *  ) func_dirname_result="${3}" ;;\
  27684. \    esac\
  27685. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  27686.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  27687.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  27688. test 0 -eq $? || _lt_function_replace_fail=:
  27689.  
  27690.  
  27691.   sed -e '/^func_basename ()$/,/^} # func_basename /c\
  27692. func_basename ()\
  27693. {\
  27694. \    func_basename_result="${1##*/}"\
  27695. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  27696.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  27697.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  27698. test 0 -eq $? || _lt_function_replace_fail=:
  27699.  
  27700.  
  27701.   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  27702. func_dirname_and_basename ()\
  27703. {\
  27704. \    case ${1} in\
  27705. \      */*) func_dirname_result="${1%/*}${2}" ;;\
  27706. \      *  ) func_dirname_result="${3}" ;;\
  27707. \    esac\
  27708. \    func_basename_result="${1##*/}"\
  27709. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  27710.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  27711.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  27712. test 0 -eq $? || _lt_function_replace_fail=:
  27713.  
  27714.  
  27715.   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  27716. func_stripname ()\
  27717. {\
  27718. \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  27719. \    # positional parameters, so assign one to ordinary parameter first.\
  27720. \    func_stripname_result=${3}\
  27721. \    func_stripname_result=${func_stripname_result#"${1}"}\
  27722. \    func_stripname_result=${func_stripname_result%"${2}"}\
  27723. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  27724.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  27725.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  27726. test 0 -eq $? || _lt_function_replace_fail=:
  27727.  
  27728.  
  27729.   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  27730. func_split_long_opt ()\
  27731. {\
  27732. \    func_split_long_opt_name=${1%%=*}\
  27733. \    func_split_long_opt_arg=${1#*=}\
  27734. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  27735.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  27736.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  27737. test 0 -eq $? || _lt_function_replace_fail=:
  27738.  
  27739.  
  27740.   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  27741. func_split_short_opt ()\
  27742. {\
  27743. \    func_split_short_opt_arg=${1#??}\
  27744. \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  27745. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  27746.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  27747.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  27748. test 0 -eq $? || _lt_function_replace_fail=:
  27749.  
  27750.  
  27751.   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  27752. func_lo2o ()\
  27753. {\
  27754. \    case ${1} in\
  27755. \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  27756. \      *)    func_lo2o_result=${1} ;;\
  27757. \    esac\
  27758. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  27759.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  27760.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  27761. test 0 -eq $? || _lt_function_replace_fail=:
  27762.  
  27763.  
  27764.   sed -e '/^func_xform ()$/,/^} # func_xform /c\
  27765. func_xform ()\
  27766. {\
  27767.     func_xform_result=${1%.*}.lo\
  27768. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  27769.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  27770.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  27771. test 0 -eq $? || _lt_function_replace_fail=:
  27772.  
  27773.  
  27774.   sed -e '/^func_arith ()$/,/^} # func_arith /c\
  27775. func_arith ()\
  27776. {\
  27777.     func_arith_result=$(( $* ))\
  27778. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  27779.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  27780.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  27781. test 0 -eq $? || _lt_function_replace_fail=:
  27782.  
  27783.  
  27784.   sed -e '/^func_len ()$/,/^} # func_len /c\
  27785. func_len ()\
  27786. {\
  27787.     func_len_result=${#1}\
  27788. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  27789.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  27790.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  27791. test 0 -eq $? || _lt_function_replace_fail=:
  27792.  
  27793. fi
  27794.  
  27795. if test x"$lt_shell_append" = xyes; then
  27796.   sed -e '/^func_append ()$/,/^} # func_append /c\
  27797. func_append ()\
  27798. {\
  27799.     eval "${1}+=\\${2}"\
  27800. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  27801.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  27802.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  27803. test 0 -eq $? || _lt_function_replace_fail=:
  27804.  
  27805.  
  27806.   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  27807. func_append_quoted ()\
  27808. {\
  27809. \    func_quote_for_eval "${2}"\
  27810. \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  27811. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  27812.   && mv -f "$cfgfile.tmp" "$cfgfile" \
  27813.     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  27814. test 0 -eq $? || _lt_function_replace_fail=:
  27815.  
  27816.  
  27817.   # Save a `func_append' function call where possible by direct use of '+='
  27818.   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  27819.     && mv -f "$cfgfile.tmp" "$cfgfile" \
  27820.       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  27821.   test 0 -eq $? || _lt_function_replace_fail=:
  27822. else
  27823.   # Save a `func_append' function call even when '+=' is not available
  27824.   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  27825.     && mv -f "$cfgfile.tmp" "$cfgfile" \
  27826.       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  27827.   test 0 -eq $? || _lt_function_replace_fail=:
  27828. fi
  27829.  
  27830. if test x"$_lt_function_replace_fail" = x":"; then
  27831.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  27832. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  27833. fi
  27834.  
  27835.  
  27836.    mv -f "$cfgfile" "$ofile" ||
  27837.     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  27838.   chmod +x "$ofile"
  27839.  
  27840.  
  27841.     cat <<_LT_EOF >> "$ofile"
  27842.  
  27843. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  27844.  
  27845. # The linker used to build libraries.
  27846. LD=$lt_LD_CXX
  27847.  
  27848. # How to create reloadable object files.
  27849. reload_flag=$lt_reload_flag_CXX
  27850. reload_cmds=$lt_reload_cmds_CXX
  27851.  
  27852. # Commands used to build an old-style archive.
  27853. old_archive_cmds=$lt_old_archive_cmds_CXX
  27854.  
  27855. # A language specific compiler.
  27856. CC=$lt_compiler_CXX
  27857.  
  27858. # Is the compiler the GNU compiler?
  27859. with_gcc=$GCC_CXX
  27860.  
  27861. # Compiler flag to turn off builtin functions.
  27862. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  27863.  
  27864. # Additional compiler flags for building library objects.
  27865. pic_flag=$lt_lt_prog_compiler_pic_CXX
  27866.  
  27867. # How to pass a linker flag through the compiler.
  27868. wl=$lt_lt_prog_compiler_wl_CXX
  27869.  
  27870. # Compiler flag to prevent dynamic linking.
  27871. link_static_flag=$lt_lt_prog_compiler_static_CXX
  27872.  
  27873. # Does compiler simultaneously support -c and -o options?
  27874. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  27875.  
  27876. # Whether or not to add -lc for building shared libraries.
  27877. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  27878.  
  27879. # Whether or not to disallow shared libs when runtime libs are static.
  27880. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  27881.  
  27882. # Compiler flag to allow reflexive dlopens.
  27883. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  27884.  
  27885. # Compiler flag to generate shared objects directly from archives.
  27886. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  27887.  
  27888. # Whether the compiler copes with passing no objects directly.
  27889. compiler_needs_object=$lt_compiler_needs_object_CXX
  27890.  
  27891. # Create an old-style archive from a shared archive.
  27892. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  27893.  
  27894. # Create a temporary old-style archive to link instead of a shared archive.
  27895. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  27896.  
  27897. # Commands used to build a shared archive.
  27898. archive_cmds=$lt_archive_cmds_CXX
  27899. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  27900.  
  27901. # Commands used to build a loadable module if different from building
  27902. # a shared archive.
  27903. module_cmds=$lt_module_cmds_CXX
  27904. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  27905.  
  27906. # Whether we are building with GNU ld or not.
  27907. with_gnu_ld=$lt_with_gnu_ld_CXX
  27908.  
  27909. # Flag that allows shared libraries with undefined symbols to be built.
  27910. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  27911.  
  27912. # Flag that enforces no undefined symbols.
  27913. no_undefined_flag=$lt_no_undefined_flag_CXX
  27914.  
  27915. # Flag to hardcode \$libdir into a binary during linking.
  27916. # This must work even if \$libdir does not exist
  27917. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  27918.  
  27919. # Whether we need a single "-rpath" flag with a separated argument.
  27920. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  27921.  
  27922. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  27923. # DIR into the resulting binary.
  27924. hardcode_direct=$hardcode_direct_CXX
  27925.  
  27926. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  27927. # DIR into the resulting binary and the resulting library dependency is
  27928. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  27929. # library is relocated.
  27930. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  27931.  
  27932. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  27933. # into the resulting binary.
  27934. hardcode_minus_L=$hardcode_minus_L_CXX
  27935.  
  27936. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  27937. # into the resulting binary.
  27938. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  27939.  
  27940. # Set to "yes" if building a shared library automatically hardcodes DIR
  27941. # into the library and all subsequent libraries and executables linked
  27942. # against it.
  27943. hardcode_automatic=$hardcode_automatic_CXX
  27944.  
  27945. # Set to yes if linker adds runtime paths of dependent libraries
  27946. # to runtime path list.
  27947. inherit_rpath=$inherit_rpath_CXX
  27948.  
  27949. # Whether libtool must link a program against all its dependency libraries.
  27950. link_all_deplibs=$link_all_deplibs_CXX
  27951.  
  27952. # Set to "yes" if exported symbols are required.
  27953. always_export_symbols=$always_export_symbols_CXX
  27954.  
  27955. # The commands to list exported symbols.
  27956. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  27957.  
  27958. # Symbols that should not be listed in the preloaded symbols.
  27959. exclude_expsyms=$lt_exclude_expsyms_CXX
  27960.  
  27961. # Symbols that must always be exported.
  27962. include_expsyms=$lt_include_expsyms_CXX
  27963.  
  27964. # Commands necessary for linking programs (against libraries) with templates.
  27965. prelink_cmds=$lt_prelink_cmds_CXX
  27966.  
  27967. # Commands necessary for finishing linking programs.
  27968. postlink_cmds=$lt_postlink_cmds_CXX
  27969.  
  27970. # Specify filename containing input files.
  27971. file_list_spec=$lt_file_list_spec_CXX
  27972.  
  27973. # How to hardcode a shared library path into an executable.
  27974. hardcode_action=$hardcode_action_CXX
  27975.  
  27976. # The directories searched by this compiler when creating a shared library.
  27977. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  27978.  
  27979. # Dependencies to place before and after the objects being linked to
  27980. # create a shared library.
  27981. predep_objects=$lt_predep_objects_CXX
  27982. postdep_objects=$lt_postdep_objects_CXX
  27983. predeps=$lt_predeps_CXX
  27984. postdeps=$lt_postdeps_CXX
  27985.  
  27986. # The library search path used internally by the compiler when linking
  27987. # a shared library.
  27988. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  27989.  
  27990. # ### END LIBTOOL TAG CONFIG: CXX
  27991. _LT_EOF
  27992.  
  27993.  ;;
  27994.  
  27995.   esac
  27996. done # for ac_tag
  27997.  
  27998.  
  27999. as_fn_exit 0
  28000. _ACEOF
  28001. ac_clean_files=$ac_clean_files_save
  28002.  
  28003. test $ac_write_fail = 0 ||
  28004.   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  28005.  
  28006.  
  28007. # configure is writing to config.log, and then calls config.status.
  28008. # config.status does its own redirection, appending to config.log.
  28009. # Unfortunately, on DOS this fails, as config.log is still kept open
  28010. # by configure, so config.status won't be able to write to it; its
  28011. # output is simply discarded.  So we exec the FD to /dev/null,
  28012. # effectively closing config.log, so it can be properly (re)opened and
  28013. # appended to by config.status.  When coming back to configure, we
  28014. # need to make the FD available again.
  28015. if test "$no_create" != yes; then
  28016.   ac_cs_success=:
  28017.   ac_config_status_args=
  28018.   test "$silent" = yes &&
  28019.     ac_config_status_args="$ac_config_status_args --quiet"
  28020.   exec 5>/dev/null
  28021.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  28022.   exec 5>>config.log
  28023.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  28024.   # would make configure fail if this is the last instruction.
  28025.   $ac_cs_success || as_fn_exit 1
  28026. fi
  28027. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  28028.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  28029. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  28030. fi
  28031.  
  28032.  
  28033. echo ""
  28034. echo "        prefix:          $prefix"
  28035. echo "        exec_prefix:     $exec_prefix"
  28036. echo "        libdir:          $libdir"
  28037. echo "        includedir:      $includedir"
  28038.  
  28039. echo ""
  28040. echo "        OpenGL:          $enable_opengl (ES1: $enable_gles1 ES2: $enable_gles2)"
  28041. echo "        OpenVG:          $enable_openvg"
  28042.  
  28043. echo ""
  28044. case "x$enable_osmesa$enable_gallium_osmesa" in
  28045. xnoyes)
  28046.         echo "        OSMesa:          lib$OSMESA_LIB (Gallium)"
  28047.         ;;
  28048. xyesno)
  28049.         echo "        OSMesa:          lib$OSMESA_LIB"
  28050.         ;;
  28051. xnono)
  28052.         echo "        OSMesa:          no"
  28053.         ;;
  28054. esac
  28055.  
  28056. if test "x$enable_dri" != xno; then
  28057.         # cleanup the drivers var
  28058.         dri_dirs=`echo $DRI_DIRS | $SED 's/^ *//;s/  */ /;s/ *$//'`
  28059.         if test "x$DRI_DIRS" = x; then
  28060.             echo "        DRI drivers:     no"
  28061.         else
  28062.             echo "        DRI drivers:     $dri_dirs"
  28063.         fi
  28064.         echo "        DRI driver dir:  $DRI_DRIVER_INSTALL_DIR"
  28065. fi
  28066.  
  28067. case "x$enable_glx$enable_xlib_glx" in
  28068. xyesyes)
  28069.     echo "        GLX:             Xlib-based"
  28070.     ;;
  28071. xyesno)
  28072.     echo "        GLX:             DRI-based"
  28073.     ;;
  28074. *)
  28075.     echo "        GLX:             $enable_glx"
  28076.     ;;
  28077. esac
  28078.  
  28079. echo ""
  28080. echo "        EGL:             $enable_egl"
  28081. if test "$enable_egl" = yes; then
  28082.     echo "        EGL platforms:   $EGL_PLATFORMS"
  28083.  
  28084.     egl_drivers=""
  28085.     if test "x$HAVE_EGL_DRIVER_GLX" != "x"; then
  28086.         egl_drivers="$egl_drivers builtin:egl_glx"
  28087.     fi
  28088.     if test "x$HAVE_EGL_DRIVER_DRI2" != "x"; then
  28089.         egl_drivers="$egl_drivers builtin:egl_dri2"
  28090.     fi
  28091.  
  28092.     if test "x$enable_gallium_egl" = xyes; then
  28093.         echo "        EGL drivers:    ${egl_drivers} egl_gallium"
  28094.         echo "        EGL Gallium STs:$EGL_CLIENT_APIS"
  28095.     else
  28096.         echo "        EGL drivers:    $egl_drivers"
  28097.     fi
  28098. fi
  28099.  
  28100. echo ""
  28101. if test "x$MESA_LLVM" = x1; then
  28102.     echo "        llvm:            yes"
  28103.     echo "        llvm-config:     $LLVM_CONFIG"
  28104.     echo "        llvm-version:    $LLVM_VERSION"
  28105. else
  28106.     echo "        llvm:            no"
  28107. fi
  28108.  
  28109. echo ""
  28110. if test -n "$with_gallium_drivers"; then
  28111.     echo "        Gallium:         yes"
  28112.     echo "        Target dirs:     $GALLIUM_TARGET_DIRS"
  28113.     echo "        Winsys dirs:     $GALLIUM_WINSYS_DIRS"
  28114.     echo "        Driver dirs:     $GALLIUM_DRIVERS_DIRS"
  28115.     echo "        Trackers dirs:   $GALLIUM_STATE_TRACKERS_DIRS"
  28116. else
  28117.     echo "        Gallium:         no"
  28118. fi
  28119.  
  28120.  
  28121. echo ""
  28122. echo "        Shared libs:     $enable_shared"
  28123. echo "        Static libs:     $enable_static"
  28124. echo "        Shared-glapi:    $enable_shared_glapi"
  28125.  
  28126. # cleanup the CFLAGS/CXXFLAGS/DEFINES vars
  28127. cflags=`echo $CFLAGS | \
  28128.     $SED 's/^ *//;s/  */ /;s/ *$//'`
  28129. cxxflags=`echo $CXXFLAGS | \
  28130.     $SED 's/^ *//;s/  */ /;s/ *$//'`
  28131. defines=`echo $DEFINES | $SED 's/^ *//;s/  */ /;s/ *$//'`
  28132. echo ""
  28133. echo "        CFLAGS:          $cflags"
  28134. echo "        CXXFLAGS:        $cxxflags"
  28135. echo "        Macros:          $defines"
  28136. echo ""
  28137. if test "x$MESA_LLVM" = x1; then
  28138.     echo "        LLVM_CFLAGS:     $LLVM_CFLAGS"
  28139.     echo "        LLVM_CXXFLAGS:   $LLVM_CXXFLAGS"
  28140.     echo "        LLVM_CPPFLAGS:   $LLVM_CPPFLAGS"
  28141.     echo ""
  28142. fi
  28143. echo "        PYTHON2:         $PYTHON2"
  28144.  
  28145. echo ""
  28146. echo "        Run '${MAKE-make}' to build Mesa"
  28147. echo ""
  28148.