Subversion Repositories Kolibri OS

Rev

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 10.6.0-rc2.
  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='10.6.0-rc2'
  595. PACKAGE_STRING='Mesa 10.6.0-rc2'
  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. VA_MINOR
  646. VA_MAJOR
  647. VDPAU_MINOR
  648. VDPAU_MAJOR
  649. NINE_VERSION
  650. NINE_TINY
  651. NINE_MINOR
  652. NINE_MAJOR
  653. HAVE_SPARC_ASM_FALSE
  654. HAVE_SPARC_ASM_TRUE
  655. HAVE_X86_64_ASM_FALSE
  656. HAVE_X86_64_ASM_TRUE
  657. HAVE_X86_ASM_FALSE
  658. HAVE_X86_ASM_TRUE
  659. HAVE_GALLIUM_OSMESA_FALSE
  660. HAVE_GALLIUM_OSMESA_TRUE
  661. HAVE_OSMESA_FALSE
  662. HAVE_OSMESA_TRUE
  663. HAVE_X11_DRIVER_FALSE
  664. HAVE_X11_DRIVER_TRUE
  665. HAVE_LIBDRM_FALSE
  666. HAVE_LIBDRM_TRUE
  667. DRICOMMON_NEED_LIBDRM_FALSE
  668. DRICOMMON_NEED_LIBDRM_TRUE
  669. ELF_LIB
  670. USE_VC4_SIMULATOR_FALSE
  671. USE_VC4_SIMULATOR_TRUE
  672. HAVE_MESA_LLVM_FALSE
  673. HAVE_MESA_LLVM_TRUE
  674. HAVE_GALLIUM_COMPUTE_FALSE
  675. HAVE_GALLIUM_COMPUTE_TRUE
  676. HAVE_DRM_LOADER_GALLIUM_FALSE
  677. HAVE_DRM_LOADER_GALLIUM_TRUE
  678. HAVE_LOADER_GALLIUM_FALSE
  679. HAVE_LOADER_GALLIUM_TRUE
  680. USE_R600_LLVM_COMPILER_FALSE
  681. USE_R600_LLVM_COMPILER_TRUE
  682. NEED_RADEON_LLVM_FALSE
  683. NEED_RADEON_LLVM_TRUE
  684. NEED_WINSYS_XLIB_FALSE
  685. NEED_WINSYS_XLIB_TRUE
  686. NEED_RADEON_DRM_WINSYS_FALSE
  687. NEED_RADEON_DRM_WINSYS_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_CLIENT_LIBS
  701. GALLIUM_PIPE_LOADER_CLIENT_DEFINES
  702. GALLIUM_PIPE_LOADER_LIBS
  703. GALLIUM_PIPE_LOADER_DEFINES
  704. GALLIUM_PIPE_LOADER_XCB_LIBS
  705. GALLIUM_PIPE_LOADER_XCB_CFLAGS
  706. HAVE_GALLIUM_STATIC_TARGETS_FALSE
  707. HAVE_GALLIUM_STATIC_TARGETS_TRUE
  708. HAVE_GALLIUM_VC4_FALSE
  709. HAVE_GALLIUM_VC4_TRUE
  710. HAVE_GALLIUM_LLVMPIPE_FALSE
  711. HAVE_GALLIUM_LLVMPIPE_TRUE
  712. HAVE_GALLIUM_SOFTPIPE_FALSE
  713. HAVE_GALLIUM_SOFTPIPE_TRUE
  714. HAVE_GALLIUM_FREEDRENO_FALSE
  715. HAVE_GALLIUM_FREEDRENO_TRUE
  716. HAVE_GALLIUM_NOUVEAU_FALSE
  717. HAVE_GALLIUM_NOUVEAU_TRUE
  718. HAVE_GALLIUM_RADEON_COMMON_FALSE
  719. HAVE_GALLIUM_RADEON_COMMON_TRUE
  720. HAVE_GALLIUM_RADEONSI_FALSE
  721. HAVE_GALLIUM_RADEONSI_TRUE
  722. HAVE_GALLIUM_R600_FALSE
  723. HAVE_GALLIUM_R600_TRUE
  724. HAVE_GALLIUM_R300_FALSE
  725. HAVE_GALLIUM_R300_TRUE
  726. HAVE_GALLIUM_ILO_FALSE
  727. HAVE_GALLIUM_ILO_TRUE
  728. HAVE_GALLIUM_I915_FALSE
  729. HAVE_GALLIUM_I915_TRUE
  730. HAVE_GALLIUM_SVGA_FALSE
  731. HAVE_GALLIUM_SVGA_TRUE
  732. FREEDRENO_LIBS
  733. FREEDRENO_CFLAGS
  734. D3D_DRIVER_INSTALL_DIR
  735. VA_LIB_INSTALL_DIR
  736. OMX_LIB_INSTALL_DIR
  737. VDPAU_LIB_INSTALL_DIR
  738. HAVE_GALLIUM_TESTS_FALSE
  739. HAVE_GALLIUM_TESTS_TRUE
  740. XVMC_LIB_INSTALL_DIR
  741. LLVM_CONFIG
  742. EGL_CFLAGS
  743. EGL_NATIVE_PLATFORM
  744. HAVE_EGL_DRIVER_DRI2_FALSE
  745. HAVE_EGL_DRIVER_DRI2_TRUE
  746. HAVE_EGL_PLATFORM_NULL_FALSE
  747. HAVE_EGL_PLATFORM_NULL_TRUE
  748. HAVE_EGL_PLATFORM_DRM_FALSE
  749. HAVE_EGL_PLATFORM_DRM_TRUE
  750. HAVE_EGL_PLATFORM_WAYLAND_FALSE
  751. HAVE_EGL_PLATFORM_WAYLAND_TRUE
  752. HAVE_EGL_PLATFORM_X11_FALSE
  753. HAVE_EGL_PLATFORM_X11_TRUE
  754. XCB_DRI2_LIBS
  755. XCB_DRI2_CFLAGS
  756. WAYLAND_LIBS
  757. WAYLAND_CFLAGS
  758. WAYLAND_SCANNER
  759. WAYLAND_SCANNER_LIBS
  760. WAYLAND_SCANNER_CFLAGS
  761. EGL_CLIENT_APIS
  762. VG_LIB_DEPS
  763. CLANG_RESOURCE_DIR
  764. LLVM_VERSION
  765. LLVM_INCLUDEDIR
  766. LLVM_LDFLAGS
  767. LLVM_LIBS
  768. LLVM_LIBDIR
  769. LLVM_CXXFLAGS
  770. LLVM_CPPFLAGS
  771. LLVM_CFLAGS
  772. LLVM_BINDIR
  773. HAVE_GALLIUM_FALSE
  774. HAVE_GALLIUM_TRUE
  775. OPENCL_LIBNAME
  776. HAVE_CLOVER_ICD_FALSE
  777. HAVE_CLOVER_ICD_TRUE
  778. HAVE_CLOVER_FALSE
  779. HAVE_CLOVER_TRUE
  780. LIBCLC_LIBEXECDIR
  781. LIBCLC_INCLUDEDIR
  782. HAVE_ST_NINE_FALSE
  783. HAVE_ST_NINE_TRUE
  784. HAVE_ST_VA_FALSE
  785. HAVE_ST_VA_TRUE
  786. VA_LIBS
  787. VA_CFLAGS
  788. HAVE_ST_OMX_FALSE
  789. HAVE_ST_OMX_TRUE
  790. OMX_LIBS
  791. OMX_CFLAGS
  792. HAVE_ST_VDPAU_FALSE
  793. HAVE_ST_VDPAU_TRUE
  794. VDPAU_LIBS
  795. VDPAU_CFLAGS
  796. HAVE_ST_XVMC_FALSE
  797. HAVE_ST_XVMC_TRUE
  798. XVMC_LIBS
  799. XVMC_CFLAGS
  800. NEED_GALLIUM_VL_WINSYS_FALSE
  801. NEED_GALLIUM_VL_WINSYS_TRUE
  802. VL_LIBS
  803. VL_CFLAGS
  804. NEED_GALLIUM_VL_FALSE
  805. NEED_GALLIUM_VL_TRUE
  806. HAVE_ST_XA_FALSE
  807. HAVE_ST_XA_TRUE
  808. EGL_LIB_DEPS
  809. HAVE_EGL_FALSE
  810. HAVE_EGL_TRUE
  811. GBM_PC_LIB_PRIV
  812. GBM_PC_REQ_PRIV
  813. HAVE_GBM_FALSE
  814. HAVE_GBM_TRUE
  815. OSMESA_PC_LIB_PRIV
  816. OSMESA_PC_REQ
  817. OSMESA_LIB_DEPS
  818. NEED_LIBMESA_FALSE
  819. NEED_LIBMESA_TRUE
  820. NEED_MEGADRIVER_FALSE
  821. NEED_MEGADRIVER_TRUE
  822. RADEON_LIBS
  823. RADEON_CFLAGS
  824. NOUVEAU_LIBS
  825. NOUVEAU_CFLAGS
  826. INTEL_LIBS
  827. INTEL_CFLAGS
  828. DRI_LIB_DEPS
  829. EXPAT_LIBS
  830. EXPAT_CFLAGS
  831. DRI_DRIVER_SEARCH_DIR
  832. DRI_DRIVER_INSTALL_DIR
  833. GLX_TLS
  834. HAVE_XF86VIDMODE
  835. GLESv2_PC_LIB_PRIV
  836. GLESv2_LIB_DEPS
  837. GLESv1_CM_PC_LIB_PRIV
  838. GLESv1_CM_LIB_DEPS
  839. DRI_PC_REQ_PRIV
  840. GL_PC_CFLAGS
  841. GL_PC_LIB_PRIV
  842. GL_PC_REQ_PRIV
  843. GL_LIB_DEPS
  844. X11_INCLUDES
  845. HAVE_XF86VIDMODE_FALSE
  846. HAVE_XF86VIDMODE_TRUE
  847. DRIGL_LIBS
  848. DRIGL_CFLAGS
  849. XF86VIDMODE_LIBS
  850. XF86VIDMODE_CFLAGS
  851. PRESENTPROTO_LIBS
  852. PRESENTPROTO_CFLAGS
  853. DRI3PROTO_LIBS
  854. DRI3PROTO_CFLAGS
  855. DRI2PROTO_LIBS
  856. DRI2PROTO_CFLAGS
  857. GLPROTO_LIBS
  858. GLPROTO_CFLAGS
  859. XLIBGL_LIBS
  860. XLIBGL_CFLAGS
  861. LIBUDEV_LIBS
  862. LIBUDEV_CFLAGS
  863. LIBDRM_LIBS
  864. LIBDRM_CFLAGS
  865. ENABLE_SHADER_CACHE_FALSE
  866. ENABLE_SHADER_CACHE_TRUE
  867. SHA1_CFLAGS
  868. SHA1_LIBS
  869. OPENSSL_LIBS
  870. OPENSSL_CFLAGS
  871. LIBSHA1_LIBS
  872. LIBSHA1_CFLAGS
  873. MESA_LLVM
  874. HAVE_SHARED_GLAPI_FALSE
  875. HAVE_SHARED_GLAPI_TRUE
  876. HAVE_APPLEDRI_FALSE
  877. HAVE_APPLEDRI_TRUE
  878. HAVE_DRI3_FALSE
  879. HAVE_DRI3_TRUE
  880. HAVE_DRI2_FALSE
  881. HAVE_DRI2_TRUE
  882. HAVE_DRISW_FALSE
  883. HAVE_DRISW_TRUE
  884. HAVE_DRICOMMON_FALSE
  885. HAVE_DRICOMMON_TRUE
  886. HAVE_DRI_GLX_FALSE
  887. HAVE_DRI_GLX_TRUE
  888. NEED_OPENGL_COMMON_FALSE
  889. NEED_OPENGL_COMMON_TRUE
  890. HAVE_OPENGL_ES2_FALSE
  891. HAVE_OPENGL_ES2_TRUE
  892. HAVE_OPENGL_ES1_FALSE
  893. HAVE_OPENGL_ES1_TRUE
  894. HAVE_OPENGL_FALSE
  895. HAVE_OPENGL_TRUE
  896. SELINUX_LIBS
  897. SELINUX_CFLAGS
  898. PTHREAD_CFLAGS
  899. PTHREAD_LIBS
  900. PTHREAD_CC
  901. ax_pthread_config
  902. CLOCK_LIB
  903. DLOPEN_LIBS
  904. OSMESA_LIB
  905. GL_LIB
  906. LIB_EXT
  907. HAVE_COMPAT_SYMLINKS_FALSE
  908. HAVE_COMPAT_SYMLINKS_TRUE
  909. HAVE_LD_DYNAMIC_LIST_FALSE
  910. HAVE_LD_DYNAMIC_LIST_TRUE
  911. HAVE_LD_VERSION_SCRIPT_FALSE
  912. HAVE_LD_VERSION_SCRIPT_TRUE
  913. LD_NO_UNDEFINED
  914. GC_SECTIONS
  915. BSYMBOLIC
  916. BUILD_SHARED_FALSE
  917. BUILD_SHARED_TRUE
  918. SSE41_CFLAGS
  919. SSE41_SUPPORTED_FALSE
  920. SSE41_SUPPORTED_TRUE
  921. VISIBILITY_CXXFLAGS
  922. VISIBILITY_CFLAGS
  923. MSVC2008_COMPAT_CXXFLAGS
  924. MSVC2008_COMPAT_CFLAGS
  925. MSVC2013_COMPAT_CXXFLAGS
  926. MSVC2013_COMPAT_CFLAGS
  927. DEFINES
  928. LIB_DIR
  929. PKG_CONFIG_LIBDIR
  930. PKG_CONFIG_PATH
  931. PKG_CONFIG
  932. GEN_ASM_OFFSETS_FALSE
  933. GEN_ASM_OFFSETS_TRUE
  934. POSIX_SHELL
  935. acv_mako_found
  936. INDENT_FLAGS
  937. INDENT
  938. LEXLIB
  939. LEX_OUTPUT_ROOT
  940. LEX
  941. YFLAGS
  942. YACC
  943. CXXCPP
  944. LT_SYS_LIBRARY_PATH
  945. OTOOL64
  946. OTOOL
  947. LIPO
  948. NMEDIT
  949. DSYMUTIL
  950. MANIFEST_TOOL
  951. RANLIB
  952. DLLTOOL
  953. OBJDUMP
  954. LN_S
  955. NM
  956. ac_ct_DUMPBIN
  957. DUMPBIN
  958. LD
  959. FGREP
  960. EGREP
  961. GREP
  962. LIBTOOL
  963. SED
  964. PYTHON2
  965. ifGNUmake
  966. am__fastdepCCAS_FALSE
  967. am__fastdepCCAS_TRUE
  968. CCASDEPMODE
  969. CCASFLAGS
  970. CCAS
  971. am__fastdepCXX_FALSE
  972. am__fastdepCXX_TRUE
  973. CXXDEPMODE
  974. ac_ct_CXX
  975. CXXFLAGS
  976. CXX
  977. CPP
  978. OSMESA_VERSION
  979. am__fastdepCC_FALSE
  980. am__fastdepCC_TRUE
  981. CCDEPMODE
  982. am__nodep
  983. AMDEPBACKSLASH
  984. AMDEP_FALSE
  985. AMDEP_TRUE
  986. am__quote
  987. am__include
  988. DEPDIR
  989. OBJEXT
  990. EXEEXT
  991. ac_ct_CC
  992. CPPFLAGS
  993. LDFLAGS
  994. CFLAGS
  995. CC
  996. ac_ct_AR
  997. AR
  998. AM_BACKSLASH
  999. AM_DEFAULT_VERBOSITY
  1000. AM_DEFAULT_V
  1001. AM_V
  1002. am__untar
  1003. am__tar
  1004. AMTAR
  1005. am__leading_dot
  1006. SET_MAKE
  1007. AWK
  1008. mkdir_p
  1009. MKDIR_P
  1010. INSTALL_STRIP_PROGRAM
  1011. STRIP
  1012. install_sh
  1013. MAKEINFO
  1014. AUTOHEADER
  1015. AUTOMAKE
  1016. AUTOCONF
  1017. ACLOCAL
  1018. VERSION
  1019. PACKAGE
  1020. CYGPATH_W
  1021. am__isrc
  1022. INSTALL_DATA
  1023. INSTALL_SCRIPT
  1024. INSTALL_PROGRAM
  1025. target_os
  1026. target_vendor
  1027. target_cpu
  1028. target
  1029. host_os
  1030. host_vendor
  1031. host_cpu
  1032. host
  1033. build_os
  1034. build_vendor
  1035. build_cpu
  1036. build
  1037. target_alias
  1038. host_alias
  1039. build_alias
  1040. LIBS
  1041. ECHO_T
  1042. ECHO_N
  1043. ECHO_C
  1044. DEFS
  1045. mandir
  1046. localedir
  1047. libdir
  1048. psdir
  1049. pdfdir
  1050. dvidir
  1051. htmldir
  1052. infodir
  1053. docdir
  1054. oldincludedir
  1055. includedir
  1056. localstatedir
  1057. sharedstatedir
  1058. sysconfdir
  1059. datadir
  1060. datarootdir
  1061. libexecdir
  1062. sbindir
  1063. bindir
  1064. program_transform_name
  1065. prefix
  1066. exec_prefix
  1067. PACKAGE_URL
  1068. PACKAGE_BUGREPORT
  1069. PACKAGE_STRING
  1070. PACKAGE_VERSION
  1071. PACKAGE_TARNAME
  1072. PACKAGE_NAME
  1073. PATH_SEPARATOR
  1074. SHELL'
  1075. ac_subst_files=''
  1076. ac_user_opts='
  1077. enable_option_checking
  1078. enable_silent_rules
  1079. enable_dependency_tracking
  1080. enable_largefile
  1081. enable_static
  1082. enable_shared
  1083. with_pic
  1084. enable_fast_install
  1085. with_aix_soname
  1086. with_gnu_ld
  1087. with_sysroot
  1088. enable_libtool_lock
  1089. enable_debug
  1090. with_gl_lib_name
  1091. with_osmesa_lib_name
  1092. enable_mangling
  1093. enable_texture_float
  1094. enable_asm
  1095. enable_selinux
  1096. enable_opengl
  1097. enable_gles1
  1098. enable_gles2
  1099. enable_dri
  1100. enable_dri3
  1101. enable_glx
  1102. enable_osmesa
  1103. enable_gallium_osmesa
  1104. enable_egl
  1105. enable_xa
  1106. enable_gbm
  1107. enable_nine
  1108. enable_xvmc
  1109. enable_vdpau
  1110. enable_omx
  1111. enable_va
  1112. enable_opencl
  1113. enable_opencl_icd
  1114. enable_xlib_glx
  1115. enable_r600_llvm_compiler
  1116. enable_gallium_tests
  1117. with_gallium_drivers
  1118. enable_shared_glapi
  1119. with_sha1
  1120. enable_shader_cache
  1121. enable_sysfs
  1122. enable_driglx_direct
  1123. enable_glx_tls
  1124. with_dri_driverdir
  1125. with_dri_searchpath
  1126. with_dri_drivers
  1127. with_osmesa_bits
  1128. with_clang_libdir
  1129. with_egl_platforms
  1130. enable_gallium_llvm
  1131. enable_llvm_shared_libs
  1132. with_llvm_prefix
  1133. with_xvmc_libdir
  1134. with_vdpau_libdir
  1135. with_omx_libdir
  1136. with_va_libdir
  1137. with_d3d_libdir
  1138. '
  1139.       ac_precious_vars='build_alias
  1140. host_alias
  1141. target_alias
  1142. CC
  1143. CFLAGS
  1144. LDFLAGS
  1145. LIBS
  1146. CPPFLAGS
  1147. CPP
  1148. CXX
  1149. CXXFLAGS
  1150. CCC
  1151. CCAS
  1152. CCASFLAGS
  1153. LT_SYS_LIBRARY_PATH
  1154. CXXCPP
  1155. YACC
  1156. YFLAGS
  1157. PKG_CONFIG
  1158. PKG_CONFIG_PATH
  1159. PKG_CONFIG_LIBDIR
  1160. SELINUX_CFLAGS
  1161. SELINUX_LIBS
  1162. LIBSHA1_CFLAGS
  1163. LIBSHA1_LIBS
  1164. OPENSSL_CFLAGS
  1165. OPENSSL_LIBS
  1166. LIBDRM_CFLAGS
  1167. LIBDRM_LIBS
  1168. LIBUDEV_CFLAGS
  1169. LIBUDEV_LIBS
  1170. XLIBGL_CFLAGS
  1171. XLIBGL_LIBS
  1172. GLPROTO_CFLAGS
  1173. GLPROTO_LIBS
  1174. DRI2PROTO_CFLAGS
  1175. DRI2PROTO_LIBS
  1176. DRI3PROTO_CFLAGS
  1177. DRI3PROTO_LIBS
  1178. PRESENTPROTO_CFLAGS
  1179. PRESENTPROTO_LIBS
  1180. XF86VIDMODE_CFLAGS
  1181. XF86VIDMODE_LIBS
  1182. DRIGL_CFLAGS
  1183. DRIGL_LIBS
  1184. EXPAT_CFLAGS
  1185. EXPAT_LIBS
  1186. INTEL_CFLAGS
  1187. INTEL_LIBS
  1188. NOUVEAU_CFLAGS
  1189. NOUVEAU_LIBS
  1190. RADEON_CFLAGS
  1191. RADEON_LIBS
  1192. VL_CFLAGS
  1193. VL_LIBS
  1194. XVMC_CFLAGS
  1195. XVMC_LIBS
  1196. VDPAU_CFLAGS
  1197. VDPAU_LIBS
  1198. OMX_CFLAGS
  1199. OMX_LIBS
  1200. VA_CFLAGS
  1201. VA_LIBS
  1202. WAYLAND_SCANNER_CFLAGS
  1203. WAYLAND_SCANNER_LIBS
  1204. WAYLAND_CFLAGS
  1205. WAYLAND_LIBS
  1206. XCB_DRI2_CFLAGS
  1207. XCB_DRI2_LIBS
  1208. FREEDRENO_CFLAGS
  1209. FREEDRENO_LIBS
  1210. GALLIUM_PIPE_LOADER_XCB_CFLAGS
  1211. GALLIUM_PIPE_LOADER_XCB_LIBS'
  1212.  
  1213.  
  1214. # Initialize some variables set by options.
  1215. ac_init_help=
  1216. ac_init_version=false
  1217. ac_unrecognized_opts=
  1218. ac_unrecognized_sep=
  1219. # The variables have the same names as the options, with
  1220. # dashes changed to underlines.
  1221. cache_file=/dev/null
  1222. exec_prefix=NONE
  1223. no_create=
  1224. no_recursion=
  1225. prefix=NONE
  1226. program_prefix=NONE
  1227. program_suffix=NONE
  1228. program_transform_name=s,x,x,
  1229. silent=
  1230. site=
  1231. srcdir=
  1232. verbose=
  1233. x_includes=NONE
  1234. x_libraries=NONE
  1235.  
  1236. # Installation directory options.
  1237. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1238. # and all the variables that are supposed to be based on exec_prefix
  1239. # by default will actually change.
  1240. # Use braces instead of parens because sh, perl, etc. also accept them.
  1241. # (The list follows the same order as the GNU Coding Standards.)
  1242. bindir='${exec_prefix}/bin'
  1243. sbindir='${exec_prefix}/sbin'
  1244. libexecdir='${exec_prefix}/libexec'
  1245. datarootdir='${prefix}/share'
  1246. datadir='${datarootdir}'
  1247. sysconfdir='${prefix}/etc'
  1248. sharedstatedir='${prefix}/com'
  1249. localstatedir='${prefix}/var'
  1250. includedir='${prefix}/include'
  1251. oldincludedir='/usr/include'
  1252. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1253. infodir='${datarootdir}/info'
  1254. htmldir='${docdir}'
  1255. dvidir='${docdir}'
  1256. pdfdir='${docdir}'
  1257. psdir='${docdir}'
  1258. libdir='${exec_prefix}/lib'
  1259. localedir='${datarootdir}/locale'
  1260. mandir='${datarootdir}/man'
  1261.  
  1262. ac_prev=
  1263. ac_dashdash=
  1264. for ac_option
  1265. do
  1266.   # If the previous option needs an argument, assign it.
  1267.   if test -n "$ac_prev"; then
  1268.     eval $ac_prev=\$ac_option
  1269.     ac_prev=
  1270.     continue
  1271.   fi
  1272.  
  1273.   case $ac_option in
  1274.   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1275.   *=)   ac_optarg= ;;
  1276.   *)    ac_optarg=yes ;;
  1277.   esac
  1278.  
  1279.   # Accept the important Cygnus configure options, so we can diagnose typos.
  1280.  
  1281.   case $ac_dashdash$ac_option in
  1282.   --)
  1283.     ac_dashdash=yes ;;
  1284.  
  1285.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1286.     ac_prev=bindir ;;
  1287.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1288.     bindir=$ac_optarg ;;
  1289.  
  1290.   -build | --build | --buil | --bui | --bu)
  1291.     ac_prev=build_alias ;;
  1292.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1293.     build_alias=$ac_optarg ;;
  1294.  
  1295.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  1296.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1297.     ac_prev=cache_file ;;
  1298.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1299.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1300.     cache_file=$ac_optarg ;;
  1301.  
  1302.   --config-cache | -C)
  1303.     cache_file=config.cache ;;
  1304.  
  1305.   -datadir | --datadir | --datadi | --datad)
  1306.     ac_prev=datadir ;;
  1307.   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1308.     datadir=$ac_optarg ;;
  1309.  
  1310.   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1311.   | --dataroo | --dataro | --datar)
  1312.     ac_prev=datarootdir ;;
  1313.   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1314.   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1315.     datarootdir=$ac_optarg ;;
  1316.  
  1317.   -disable-* | --disable-*)
  1318.     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1319.     # Reject names that are not valid shell variable names.
  1320.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1321.       as_fn_error $? "invalid feature name: $ac_useropt"
  1322.     ac_useropt_orig=$ac_useropt
  1323.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1324.     case $ac_user_opts in
  1325.       *"
  1326. "enable_$ac_useropt"
  1327. "*) ;;
  1328.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1329.          ac_unrecognized_sep=', ';;
  1330.     esac
  1331.     eval enable_$ac_useropt=no ;;
  1332.  
  1333.   -docdir | --docdir | --docdi | --doc | --do)
  1334.     ac_prev=docdir ;;
  1335.   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1336.     docdir=$ac_optarg ;;
  1337.  
  1338.   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1339.     ac_prev=dvidir ;;
  1340.   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1341.     dvidir=$ac_optarg ;;
  1342.  
  1343.   -enable-* | --enable-*)
  1344.     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1345.     # Reject names that are not valid shell variable names.
  1346.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1347.       as_fn_error $? "invalid feature name: $ac_useropt"
  1348.     ac_useropt_orig=$ac_useropt
  1349.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1350.     case $ac_user_opts in
  1351.       *"
  1352. "enable_$ac_useropt"
  1353. "*) ;;
  1354.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1355.          ac_unrecognized_sep=', ';;
  1356.     esac
  1357.     eval enable_$ac_useropt=\$ac_optarg ;;
  1358.  
  1359.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1360.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1361.   | --exec | --exe | --ex)
  1362.     ac_prev=exec_prefix ;;
  1363.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1364.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1365.   | --exec=* | --exe=* | --ex=*)
  1366.     exec_prefix=$ac_optarg ;;
  1367.  
  1368.   -gas | --gas | --ga | --g)
  1369.     # Obsolete; use --with-gas.
  1370.     with_gas=yes ;;
  1371.  
  1372.   -help | --help | --hel | --he | -h)
  1373.     ac_init_help=long ;;
  1374.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1375.     ac_init_help=recursive ;;
  1376.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1377.     ac_init_help=short ;;
  1378.  
  1379.   -host | --host | --hos | --ho)
  1380.     ac_prev=host_alias ;;
  1381.   -host=* | --host=* | --hos=* | --ho=*)
  1382.     host_alias=$ac_optarg ;;
  1383.  
  1384.   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1385.     ac_prev=htmldir ;;
  1386.   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1387.   | --ht=*)
  1388.     htmldir=$ac_optarg ;;
  1389.  
  1390.   -includedir | --includedir | --includedi | --included | --include \
  1391.   | --includ | --inclu | --incl | --inc)
  1392.     ac_prev=includedir ;;
  1393.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1394.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  1395.     includedir=$ac_optarg ;;
  1396.  
  1397.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  1398.     ac_prev=infodir ;;
  1399.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1400.     infodir=$ac_optarg ;;
  1401.  
  1402.   -libdir | --libdir | --libdi | --libd)
  1403.     ac_prev=libdir ;;
  1404.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1405.     libdir=$ac_optarg ;;
  1406.  
  1407.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1408.   | --libexe | --libex | --libe)
  1409.     ac_prev=libexecdir ;;
  1410.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1411.   | --libexe=* | --libex=* | --libe=*)
  1412.     libexecdir=$ac_optarg ;;
  1413.  
  1414.   -localedir | --localedir | --localedi | --localed | --locale)
  1415.     ac_prev=localedir ;;
  1416.   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1417.     localedir=$ac_optarg ;;
  1418.  
  1419.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  1420.   | --localstate | --localstat | --localsta | --localst | --locals)
  1421.     ac_prev=localstatedir ;;
  1422.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1423.   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1424.     localstatedir=$ac_optarg ;;
  1425.  
  1426.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1427.     ac_prev=mandir ;;
  1428.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1429.     mandir=$ac_optarg ;;
  1430.  
  1431.   -nfp | --nfp | --nf)
  1432.     # Obsolete; use --without-fp.
  1433.     with_fp=no ;;
  1434.  
  1435.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1436.   | --no-cr | --no-c | -n)
  1437.     no_create=yes ;;
  1438.  
  1439.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1440.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1441.     no_recursion=yes ;;
  1442.  
  1443.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1444.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1445.   | --oldin | --oldi | --old | --ol | --o)
  1446.     ac_prev=oldincludedir ;;
  1447.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1448.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1449.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1450.     oldincludedir=$ac_optarg ;;
  1451.  
  1452.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1453.     ac_prev=prefix ;;
  1454.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1455.     prefix=$ac_optarg ;;
  1456.  
  1457.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1458.   | --program-pre | --program-pr | --program-p)
  1459.     ac_prev=program_prefix ;;
  1460.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1461.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1462.     program_prefix=$ac_optarg ;;
  1463.  
  1464.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1465.   | --program-suf | --program-su | --program-s)
  1466.     ac_prev=program_suffix ;;
  1467.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1468.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1469.     program_suffix=$ac_optarg ;;
  1470.  
  1471.   -program-transform-name | --program-transform-name \
  1472.   | --program-transform-nam | --program-transform-na \
  1473.   | --program-transform-n | --program-transform- \
  1474.   | --program-transform | --program-transfor \
  1475.   | --program-transfo | --program-transf \
  1476.   | --program-trans | --program-tran \
  1477.   | --progr-tra | --program-tr | --program-t)
  1478.     ac_prev=program_transform_name ;;
  1479.   -program-transform-name=* | --program-transform-name=* \
  1480.   | --program-transform-nam=* | --program-transform-na=* \
  1481.   | --program-transform-n=* | --program-transform-=* \
  1482.   | --program-transform=* | --program-transfor=* \
  1483.   | --program-transfo=* | --program-transf=* \
  1484.   | --program-trans=* | --program-tran=* \
  1485.   | --progr-tra=* | --program-tr=* | --program-t=*)
  1486.     program_transform_name=$ac_optarg ;;
  1487.  
  1488.   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1489.     ac_prev=pdfdir ;;
  1490.   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1491.     pdfdir=$ac_optarg ;;
  1492.  
  1493.   -psdir | --psdir | --psdi | --psd | --ps)
  1494.     ac_prev=psdir ;;
  1495.   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1496.     psdir=$ac_optarg ;;
  1497.  
  1498.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1499.   | -silent | --silent | --silen | --sile | --sil)
  1500.     silent=yes ;;
  1501.  
  1502.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1503.     ac_prev=sbindir ;;
  1504.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1505.   | --sbi=* | --sb=*)
  1506.     sbindir=$ac_optarg ;;
  1507.  
  1508.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1509.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1510.   | --sharedst | --shareds | --shared | --share | --shar \
  1511.   | --sha | --sh)
  1512.     ac_prev=sharedstatedir ;;
  1513.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1514.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1515.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1516.   | --sha=* | --sh=*)
  1517.     sharedstatedir=$ac_optarg ;;
  1518.  
  1519.   -site | --site | --sit)
  1520.     ac_prev=site ;;
  1521.   -site=* | --site=* | --sit=*)
  1522.     site=$ac_optarg ;;
  1523.  
  1524.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1525.     ac_prev=srcdir ;;
  1526.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1527.     srcdir=$ac_optarg ;;
  1528.  
  1529.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1530.   | --syscon | --sysco | --sysc | --sys | --sy)
  1531.     ac_prev=sysconfdir ;;
  1532.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1533.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1534.     sysconfdir=$ac_optarg ;;
  1535.  
  1536.   -target | --target | --targe | --targ | --tar | --ta | --t)
  1537.     ac_prev=target_alias ;;
  1538.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1539.     target_alias=$ac_optarg ;;
  1540.  
  1541.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1542.     verbose=yes ;;
  1543.  
  1544.   -version | --version | --versio | --versi | --vers | -V)
  1545.     ac_init_version=: ;;
  1546.  
  1547.   -with-* | --with-*)
  1548.     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1549.     # Reject names that are not valid shell variable names.
  1550.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1551.       as_fn_error $? "invalid package name: $ac_useropt"
  1552.     ac_useropt_orig=$ac_useropt
  1553.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1554.     case $ac_user_opts in
  1555.       *"
  1556. "with_$ac_useropt"
  1557. "*) ;;
  1558.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1559.          ac_unrecognized_sep=', ';;
  1560.     esac
  1561.     eval with_$ac_useropt=\$ac_optarg ;;
  1562.  
  1563.   -without-* | --without-*)
  1564.     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1565.     # Reject names that are not valid shell variable names.
  1566.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1567.       as_fn_error $? "invalid package name: $ac_useropt"
  1568.     ac_useropt_orig=$ac_useropt
  1569.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1570.     case $ac_user_opts in
  1571.       *"
  1572. "with_$ac_useropt"
  1573. "*) ;;
  1574.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1575.          ac_unrecognized_sep=', ';;
  1576.     esac
  1577.     eval with_$ac_useropt=no ;;
  1578.  
  1579.   --x)
  1580.     # Obsolete; use --with-x.
  1581.     with_x=yes ;;
  1582.  
  1583.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1584.   | --x-incl | --x-inc | --x-in | --x-i)
  1585.     ac_prev=x_includes ;;
  1586.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1587.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1588.     x_includes=$ac_optarg ;;
  1589.  
  1590.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1591.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1592.     ac_prev=x_libraries ;;
  1593.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1594.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1595.     x_libraries=$ac_optarg ;;
  1596.  
  1597.   -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1598. Try \`$0 --help' for more information"
  1599.     ;;
  1600.  
  1601.   *=*)
  1602.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1603.     # Reject names that are not valid shell variable names.
  1604.     case $ac_envvar in #(
  1605.       '' | [0-9]* | *[!_$as_cr_alnum]* )
  1606.       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1607.     esac
  1608.     eval $ac_envvar=\$ac_optarg
  1609.     export $ac_envvar ;;
  1610.  
  1611.   *)
  1612.     # FIXME: should be removed in autoconf 3.0.
  1613.     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1614.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1615.       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1616.     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1617.     ;;
  1618.  
  1619.   esac
  1620. done
  1621.  
  1622. if test -n "$ac_prev"; then
  1623.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1624.   as_fn_error $? "missing argument to $ac_option"
  1625. fi
  1626.  
  1627. if test -n "$ac_unrecognized_opts"; then
  1628.   case $enable_option_checking in
  1629.     no) ;;
  1630.     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1631.     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1632.   esac
  1633. fi
  1634.  
  1635. # Check all directory arguments for consistency.
  1636. for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1637.                 datadir sysconfdir sharedstatedir localstatedir includedir \
  1638.                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1639.                 libdir localedir mandir
  1640. do
  1641.   eval ac_val=\$$ac_var
  1642.   # Remove trailing slashes.
  1643.   case $ac_val in
  1644.     */ )
  1645.       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1646.       eval $ac_var=\$ac_val;;
  1647.   esac
  1648.   # Be sure to have absolute directory names.
  1649.   case $ac_val in
  1650.     [\\/$]* | ?:[\\/]* )  continue;;
  1651.     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1652.   esac
  1653.   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1654. done
  1655.  
  1656. # There might be people who depend on the old broken behavior: `$host'
  1657. # used to hold the argument of --host etc.
  1658. # FIXME: To remove some day.
  1659. build=$build_alias
  1660. host=$host_alias
  1661. target=$target_alias
  1662.  
  1663. # FIXME: To remove some day.
  1664. if test "x$host_alias" != x; then
  1665.   if test "x$build_alias" = x; then
  1666.     cross_compiling=maybe
  1667.   elif test "x$build_alias" != "x$host_alias"; then
  1668.     cross_compiling=yes
  1669.   fi
  1670. fi
  1671.  
  1672. ac_tool_prefix=
  1673. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1674.  
  1675. test "$silent" = yes && exec 6>/dev/null
  1676.  
  1677.  
  1678. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1679. ac_ls_di=`ls -di .` &&
  1680. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1681.   as_fn_error $? "working directory cannot be determined"
  1682. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1683.   as_fn_error $? "pwd does not report name of working directory"
  1684.  
  1685.  
  1686. # Find the source files, if location was not specified.
  1687. if test -z "$srcdir"; then
  1688.   ac_srcdir_defaulted=yes
  1689.   # Try the directory containing this script, then the parent directory.
  1690.   ac_confdir=`$as_dirname -- "$as_myself" ||
  1691. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1692.          X"$as_myself" : 'X\(//\)[^/]' \| \
  1693.          X"$as_myself" : 'X\(//\)$' \| \
  1694.          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1695. $as_echo X"$as_myself" |
  1696.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1697.             s//\1/
  1698.             q
  1699.           }
  1700.           /^X\(\/\/\)[^/].*/{
  1701.             s//\1/
  1702.             q
  1703.           }
  1704.           /^X\(\/\/\)$/{
  1705.             s//\1/
  1706.             q
  1707.           }
  1708.           /^X\(\/\).*/{
  1709.             s//\1/
  1710.             q
  1711.           }
  1712.           s/.*/./; q'`
  1713.   srcdir=$ac_confdir
  1714.   if test ! -r "$srcdir/$ac_unique_file"; then
  1715.     srcdir=..
  1716.   fi
  1717. else
  1718.   ac_srcdir_defaulted=no
  1719. fi
  1720. if test ! -r "$srcdir/$ac_unique_file"; then
  1721.   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1722.   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1723. fi
  1724. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1725. ac_abs_confdir=`(
  1726.         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1727.         pwd)`
  1728. # When building in place, set srcdir=.
  1729. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1730.   srcdir=.
  1731. fi
  1732. # Remove unnecessary trailing slashes from srcdir.
  1733. # Double slashes in file names in object file debugging info
  1734. # mess up M-x gdb in Emacs.
  1735. case $srcdir in
  1736. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1737. esac
  1738. for ac_var in $ac_precious_vars; do
  1739.   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1740.   eval ac_env_${ac_var}_value=\$${ac_var}
  1741.   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1742.   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1743. done
  1744.  
  1745. #
  1746. # Report the --help message.
  1747. #
  1748. if test "$ac_init_help" = "long"; then
  1749.   # Omit some internal or obsolete options to make the list less imposing.
  1750.   # This message is too long to be a string in the A/UX 3.1 sh.
  1751.   cat <<_ACEOF
  1752. \`configure' configures Mesa 10.6.0-rc2 to adapt to many kinds of systems.
  1753.  
  1754. Usage: $0 [OPTION]... [VAR=VALUE]...
  1755.  
  1756. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1757. VAR=VALUE.  See below for descriptions of some of the useful variables.
  1758.  
  1759. Defaults for the options are specified in brackets.
  1760.  
  1761. Configuration:
  1762.   -h, --help              display this help and exit
  1763.       --help=short        display options specific to this package
  1764.       --help=recursive    display the short help of all the included packages
  1765.   -V, --version           display version information and exit
  1766.   -q, --quiet, --silent   do not print \`checking ...' messages
  1767.       --cache-file=FILE   cache test results in FILE [disabled]
  1768.   -C, --config-cache      alias for \`--cache-file=config.cache'
  1769.   -n, --no-create         do not create output files
  1770.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  1771.  
  1772. Installation directories:
  1773.   --prefix=PREFIX         install architecture-independent files in PREFIX
  1774.                           [$ac_default_prefix]
  1775.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1776.                           [PREFIX]
  1777.  
  1778. By default, \`make install' will install all the files in
  1779. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1780. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1781. for instance \`--prefix=\$HOME'.
  1782.  
  1783. For better control, use the options below.
  1784.  
  1785. Fine tuning of the installation directories:
  1786.   --bindir=DIR            user executables [EPREFIX/bin]
  1787.   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1788.   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1789.   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1790.   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1791.   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1792.   --libdir=DIR            object code libraries [EPREFIX/lib]
  1793.   --includedir=DIR        C header files [PREFIX/include]
  1794.   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1795.   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1796.   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1797.   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1798.   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1799.   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1800.   --docdir=DIR            documentation root [DATAROOTDIR/doc/mesa]
  1801.   --htmldir=DIR           html documentation [DOCDIR]
  1802.   --dvidir=DIR            dvi documentation [DOCDIR]
  1803.   --pdfdir=DIR            pdf documentation [DOCDIR]
  1804.   --psdir=DIR             ps documentation [DOCDIR]
  1805. _ACEOF
  1806.  
  1807.   cat <<\_ACEOF
  1808.  
  1809. Program names:
  1810.   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1811.   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1812.   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
  1813.  
  1814. System types:
  1815.   --build=BUILD     configure for building on BUILD [guessed]
  1816.   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1817.   --target=TARGET   configure for building compilers for TARGET [HOST]
  1818. _ACEOF
  1819. fi
  1820.  
  1821. if test -n "$ac_init_help"; then
  1822.   case $ac_init_help in
  1823.      short | recursive ) echo "Configuration of Mesa 10.6.0-rc2:";;
  1824.    esac
  1825.   cat <<\_ACEOF
  1826.  
  1827. Optional Features:
  1828.   --disable-option-checking  ignore unrecognized --enable/--with options
  1829.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1830.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1831.   --enable-silent-rules   less verbose build output (undo: "make V=1")
  1832.   --disable-silent-rules  verbose build output (undo: "make V=0")
  1833.   --enable-dependency-tracking
  1834.                           do not reject slow dependency extractors
  1835.   --disable-dependency-tracking
  1836.                           speeds up one-time build
  1837.   --disable-largefile     omit support for large files
  1838.   --enable-static[=PKGS]  build static libraries [default=no]
  1839.   --enable-shared[=PKGS]  build shared libraries [default=yes]
  1840.   --enable-fast-install[=PKGS]
  1841.                           optimize for fast installation [default=yes]
  1842.   --disable-libtool-lock  avoid locking (might break parallel builds)
  1843.   --enable-debug          use debug compiler flags and macros
  1844.                           [default=disabled]
  1845.   --enable-mangling       enable mangled symbols and library name
  1846.                           [default=disabled]
  1847.   --enable-texture-float  enable floating-point textures and renderbuffers
  1848.                           [default=disabled]
  1849.   --disable-asm           disable assembly usage [default=enabled on supported
  1850.                           plaforms]
  1851.   --enable-selinux        Build SELinux-aware Mesa [default=disabled]
  1852.   --disable-opengl        disable support for standard OpenGL API
  1853.                           [default=enabled]
  1854.   --enable-gles1          enable support for OpenGL ES 1.x API
  1855.                           [default=disabled]
  1856.   --enable-gles2          enable support for OpenGL ES 2.x API
  1857.                           [default=disabled]
  1858.   --enable-dri            enable DRI modules [default=enabled]
  1859.   --enable-dri3           enable DRI3 [default=auto]
  1860.   --enable-glx            enable GLX library [default=enabled]
  1861.   --enable-osmesa         enable OSMesa library [default=disabled]
  1862.   --enable-gallium-osmesa enable Gallium implementation of the OSMesa library
  1863.                           [default=disabled]
  1864.   --disable-egl           disable EGL library [default=enabled]
  1865.   --enable-xa             enable build of the XA X Acceleration API
  1866.                           [default=disabled]
  1867.   --enable-gbm            enable gbm library [default=auto]
  1868.   --enable-nine           enable build of the nine Direct3D9 API [default=no]
  1869.   --enable-xvmc           enable xvmc library [default=auto]
  1870.   --enable-vdpau          enable vdpau library [default=auto]
  1871.   --enable-omx            enable OpenMAX library [default=disabled]
  1872.   --enable-va             enable va library [default=auto]
  1873.   --enable-opencl         enable OpenCL library [default=disabled]
  1874.   --enable-opencl-icd     Build an OpenCL ICD library to be loaded by an ICD
  1875.                           implementation [default=disabled]
  1876.   --enable-xlib-glx       make GLX library Xlib-based instead of DRI-based
  1877.                           [default=disabled]
  1878.   --enable-r600-llvm-compiler
  1879.                           Enable experimental LLVM backend for graphics
  1880.                           shaders [default=disabled]
  1881.   --enable-gallium-tests  Enable optional Gallium tests) [default=disabled]
  1882.   --enable-shared-glapi   Enable shared glapi for OpenGL [default=enabled]
  1883.   --disable-shader-cache  Disable binary shader cache
  1884.   --enable-sysfs          enable /sys PCI identification [default=disabled]
  1885.   --disable-driglx-direct disable direct rendering in GLX and EGL for DRI
  1886.                           [default=auto]
  1887.   --enable-glx-tls        enable TLS support in GLX [default=disabled]
  1888.   --enable-gallium-llvm   build gallium LLVM support [default=enabled on
  1889.                           x86/x86_64]
  1890.   --enable-llvm-shared-libs
  1891.                           link with LLVM shared libraries [default=enabled]
  1892.  
  1893. Optional Packages:
  1894.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1895.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1896.   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
  1897.                           both]
  1898.   --with-aix-soname=aix|svr4|both
  1899.                           shared library versioning (aka "SONAME") variant to
  1900.                           provide on AIX, [default=aix].
  1901.   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  1902.   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
  1903.                           compiler's sysroot if not specified).
  1904.   --with-gl-lib-name[=NAME]
  1905.                           specify GL library name [default=GL]
  1906.   --with-osmesa-lib-name[=NAME]
  1907.                           specify OSMesa library name [default=OSMesa]
  1908.   --with-gallium-drivers[=DIRS...]
  1909.                           comma delimited Gallium drivers list, e.g.
  1910.                           "i915,ilo,nouveau,r300,r600,radeonsi,freedreno,svga,swrast,vc4"
  1911.                           [default=r300,r600,svga,swrast]
  1912.   --with-sha1=libc|libmd|libnettle|libgcrypt|libcrypto|libsha1|CommonCrypto|CryptoAPI
  1913.                           choose SHA1 implementation
  1914.   --with-dri-driverdir=DIR
  1915.                           directory for the DRI drivers [${libdir}/dri]
  1916.   --with-dri-searchpath=DIRS...
  1917.                           semicolon delimited DRI driver search directories
  1918.                           [${libdir}/dri]
  1919.   --with-dri-drivers[=DIRS...]
  1920.                           comma delimited classic DRI drivers list, e.g.
  1921.                           "swrast,i965,radeon" [default=auto]
  1922.   --with-osmesa-bits=BITS OSMesa channel bits and library name: 8, 16, 32
  1923.                           [default=8]
  1924.   --with-clang-libdir     Path to Clang libraries [default=llvm-config
  1925.                           --libdir]
  1926.   --with-egl-platforms[=DIRS...]
  1927.                           comma delimited native platforms libEGL supports,
  1928.                           e.g. "x11,drm" [default=auto]
  1929.   --with-llvm-prefix      Prefix for LLVM installations in non-standard
  1930.                           locations
  1931.   --with-xvmc-libdir=DIR  directory for the XVMC libraries [default=${libdir}]
  1932.   --with-vdpau-libdir=DIR directory for the VDPAU libraries
  1933.                           [default=${libdir}/vdpau]
  1934.   --with-omx-libdir=DIR   directory for the OMX libraries
  1935.   --with-va-libdir=DIR    directory for the VA libraries [${libdir}/dri]
  1936.   --with-d3d-libdir=DIR   directory for the D3D modules [${libdir}/d3d]
  1937.  
  1938. Some influential environment variables:
  1939.   CC          C compiler command
  1940.   CFLAGS      C compiler flags
  1941.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1942.               nonstandard directory <lib dir>
  1943.   LIBS        libraries to pass to the linker, e.g. -l<library>
  1944.   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1945.               you have headers in a nonstandard directory <include dir>
  1946.   CPP         C preprocessor
  1947.   CXX         C++ compiler command
  1948.   CXXFLAGS    C++ compiler flags
  1949.   CCAS        assembler compiler command (defaults to CC)
  1950.   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
  1951.   LT_SYS_LIBRARY_PATH
  1952.               User-defined run-time library search path.
  1953.   CXXCPP      C++ preprocessor
  1954.   YACC        The `Yet Another Compiler Compiler' implementation to use.
  1955.               Defaults to the first program found out of: `bison -y', `byacc',
  1956.               `yacc'.
  1957.   YFLAGS      The list of arguments that will be passed by default to $YACC.
  1958.               This script will default YFLAGS to the empty string to avoid a
  1959.               default value of `-d' given by some make applications.
  1960.   PKG_CONFIG  path to pkg-config utility
  1961.   PKG_CONFIG_PATH
  1962.               directories to add to pkg-config's search path
  1963.   PKG_CONFIG_LIBDIR
  1964.               path overriding pkg-config's built-in search path
  1965.   SELINUX_CFLAGS
  1966.               C compiler flags for SELINUX, overriding pkg-config
  1967.   SELINUX_LIBS
  1968.               linker flags for SELINUX, overriding pkg-config
  1969.   LIBSHA1_CFLAGS
  1970.               C compiler flags for LIBSHA1, overriding pkg-config
  1971.   LIBSHA1_LIBS
  1972.               linker flags for LIBSHA1, overriding pkg-config
  1973.   OPENSSL_CFLAGS
  1974.               C compiler flags for OPENSSL, overriding pkg-config
  1975.   OPENSSL_LIBS
  1976.               linker flags for OPENSSL, overriding pkg-config
  1977.   LIBDRM_CFLAGS
  1978.               C compiler flags for LIBDRM, overriding pkg-config
  1979.   LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1980.   LIBUDEV_CFLAGS
  1981.               C compiler flags for LIBUDEV, overriding pkg-config
  1982.   LIBUDEV_LIBS
  1983.               linker flags for LIBUDEV, overriding pkg-config
  1984.   XLIBGL_CFLAGS
  1985.               C compiler flags for XLIBGL, overriding pkg-config
  1986.   XLIBGL_LIBS linker flags for XLIBGL, overriding pkg-config
  1987.   GLPROTO_CFLAGS
  1988.               C compiler flags for GLPROTO, overriding pkg-config
  1989.   GLPROTO_LIBS
  1990.               linker flags for GLPROTO, overriding pkg-config
  1991.   DRI2PROTO_CFLAGS
  1992.               C compiler flags for DRI2PROTO, overriding pkg-config
  1993.   DRI2PROTO_LIBS
  1994.               linker flags for DRI2PROTO, overriding pkg-config
  1995.   DRI3PROTO_CFLAGS
  1996.               C compiler flags for DRI3PROTO, overriding pkg-config
  1997.   DRI3PROTO_LIBS
  1998.               linker flags for DRI3PROTO, overriding pkg-config
  1999.   PRESENTPROTO_CFLAGS
  2000.               C compiler flags for PRESENTPROTO, overriding pkg-config
  2001.   PRESENTPROTO_LIBS
  2002.               linker flags for PRESENTPROTO, overriding pkg-config
  2003.   XF86VIDMODE_CFLAGS
  2004.               C compiler flags for XF86VIDMODE, overriding pkg-config
  2005.   XF86VIDMODE_LIBS
  2006.               linker flags for XF86VIDMODE, overriding pkg-config
  2007.   DRIGL_CFLAGS
  2008.               C compiler flags for DRIGL, overriding pkg-config
  2009.   DRIGL_LIBS  linker flags for DRIGL, overriding pkg-config
  2010.   EXPAT_CFLAGS
  2011.               C compiler flags for EXPAT, overriding pkg-config
  2012.   EXPAT_LIBS  linker flags for EXPAT, overriding pkg-config
  2013.   INTEL_CFLAGS
  2014.               C compiler flags for INTEL, overriding pkg-config
  2015.   INTEL_LIBS  linker flags for INTEL, overriding pkg-config
  2016.   NOUVEAU_CFLAGS
  2017.               C compiler flags for NOUVEAU, overriding pkg-config
  2018.   NOUVEAU_LIBS
  2019.               linker flags for NOUVEAU, overriding pkg-config
  2020.   RADEON_CFLAGS
  2021.               C compiler flags for RADEON, overriding pkg-config
  2022.   RADEON_LIBS linker flags for RADEON, overriding pkg-config
  2023.   VL_CFLAGS   C compiler flags for VL, overriding pkg-config
  2024.   VL_LIBS     linker flags for VL, overriding pkg-config
  2025.   XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config
  2026.   XVMC_LIBS   linker flags for XVMC, overriding pkg-config
  2027.   VDPAU_CFLAGS
  2028.               C compiler flags for VDPAU, overriding pkg-config
  2029.   VDPAU_LIBS  linker flags for VDPAU, overriding pkg-config
  2030.   OMX_CFLAGS  C compiler flags for OMX, overriding pkg-config
  2031.   OMX_LIBS    linker flags for OMX, overriding pkg-config
  2032.   VA_CFLAGS   C compiler flags for VA, overriding pkg-config
  2033.   VA_LIBS     linker flags for VA, overriding pkg-config
  2034.   WAYLAND_SCANNER_CFLAGS
  2035.               C compiler flags for WAYLAND_SCANNER, overriding pkg-config
  2036.   WAYLAND_SCANNER_LIBS
  2037.               linker flags for WAYLAND_SCANNER, overriding pkg-config
  2038.   WAYLAND_CFLAGS
  2039.               C compiler flags for WAYLAND, overriding pkg-config
  2040.   WAYLAND_LIBS
  2041.               linker flags for WAYLAND, overriding pkg-config
  2042.   XCB_DRI2_CFLAGS
  2043.               C compiler flags for XCB_DRI2, overriding pkg-config
  2044.   XCB_DRI2_LIBS
  2045.               linker flags for XCB_DRI2, overriding pkg-config
  2046.   FREEDRENO_CFLAGS
  2047.               C compiler flags for FREEDRENO, overriding pkg-config
  2048.   FREEDRENO_LIBS
  2049.               linker flags for FREEDRENO, overriding pkg-config
  2050.   GALLIUM_PIPE_LOADER_XCB_CFLAGS
  2051.               C compiler flags for GALLIUM_PIPE_LOADER_XCB, overriding
  2052.               pkg-config
  2053.   GALLIUM_PIPE_LOADER_XCB_LIBS
  2054.               linker flags for GALLIUM_PIPE_LOADER_XCB, overriding pkg-config
  2055.  
  2056. Use these variables to override the choices made by `configure' or to help
  2057. it to find libraries and programs with nonstandard names/locations.
  2058.  
  2059. See docs/autoconf.html for more details on the options for Mesa.
  2060.  
  2061. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa>.
  2062. _ACEOF
  2063. ac_status=$?
  2064. fi
  2065.  
  2066. if test "$ac_init_help" = "recursive"; then
  2067.   # If there are subdirs, report their specific --help.
  2068.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  2069.     test -d "$ac_dir" ||
  2070.       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  2071.       continue
  2072.     ac_builddir=.
  2073.  
  2074. case "$ac_dir" in
  2075. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2076. *)
  2077.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  2078.   # A ".." for each directory in $ac_dir_suffix.
  2079.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  2080.   case $ac_top_builddir_sub in
  2081.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2082.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  2083.   esac ;;
  2084. esac
  2085. ac_abs_top_builddir=$ac_pwd
  2086. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  2087. # for backward compatibility:
  2088. ac_top_builddir=$ac_top_build_prefix
  2089.  
  2090. case $srcdir in
  2091.   .)  # We are building in place.
  2092.     ac_srcdir=.
  2093.     ac_top_srcdir=$ac_top_builddir_sub
  2094.     ac_abs_top_srcdir=$ac_pwd ;;
  2095.   [\\/]* | ?:[\\/]* )  # Absolute name.
  2096.     ac_srcdir=$srcdir$ac_dir_suffix;
  2097.     ac_top_srcdir=$srcdir
  2098.     ac_abs_top_srcdir=$srcdir ;;
  2099.   *) # Relative name.
  2100.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  2101.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  2102.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  2103. esac
  2104. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  2105.  
  2106.     cd "$ac_dir" || { ac_status=$?; continue; }
  2107.     # Check for guested configure.
  2108.     if test -f "$ac_srcdir/configure.gnu"; then
  2109.       echo &&
  2110.       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  2111.     elif test -f "$ac_srcdir/configure"; then
  2112.       echo &&
  2113.       $SHELL "$ac_srcdir/configure" --help=recursive
  2114.     else
  2115.       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  2116.     fi || ac_status=$?
  2117.     cd "$ac_pwd" || { ac_status=$?; break; }
  2118.   done
  2119. fi
  2120.  
  2121. test -n "$ac_init_help" && exit $ac_status
  2122. if $ac_init_version; then
  2123.   cat <<\_ACEOF
  2124. Mesa configure 10.6.0-rc2
  2125. generated by GNU Autoconf 2.69
  2126.  
  2127. Copyright (C) 2012 Free Software Foundation, Inc.
  2128. This configure script is free software; the Free Software Foundation
  2129. gives unlimited permission to copy, distribute and modify it.
  2130. _ACEOF
  2131.   exit
  2132. fi
  2133.  
  2134. ## ------------------------ ##
  2135. ## Autoconf initialization. ##
  2136. ## ------------------------ ##
  2137.  
  2138. # ac_fn_c_try_compile LINENO
  2139. # --------------------------
  2140. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2141. ac_fn_c_try_compile ()
  2142. {
  2143.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2144.   rm -f conftest.$ac_objext
  2145.   if { { ac_try="$ac_compile"
  2146. case "(($ac_try" in
  2147.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2148.   *) ac_try_echo=$ac_try;;
  2149. esac
  2150. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2151. $as_echo "$ac_try_echo"; } >&5
  2152.   (eval "$ac_compile") 2>conftest.err
  2153.   ac_status=$?
  2154.   if test -s conftest.err; then
  2155.     grep -v '^ *+' conftest.err >conftest.er1
  2156.     cat conftest.er1 >&5
  2157.     mv -f conftest.er1 conftest.err
  2158.   fi
  2159.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2160.   test $ac_status = 0; } && {
  2161.          test -z "$ac_c_werror_flag" ||
  2162.          test ! -s conftest.err
  2163.        } && test -s conftest.$ac_objext; then :
  2164.   ac_retval=0
  2165. else
  2166.   $as_echo "$as_me: failed program was:" >&5
  2167. sed 's/^/| /' conftest.$ac_ext >&5
  2168.  
  2169.         ac_retval=1
  2170. fi
  2171.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2172.   as_fn_set_status $ac_retval
  2173.  
  2174. } # ac_fn_c_try_compile
  2175.  
  2176. # ac_fn_c_try_cpp LINENO
  2177. # ----------------------
  2178. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2179. ac_fn_c_try_cpp ()
  2180. {
  2181.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2182.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  2183. case "(($ac_try" in
  2184.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2185.   *) ac_try_echo=$ac_try;;
  2186. esac
  2187. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2188. $as_echo "$ac_try_echo"; } >&5
  2189.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2190.   ac_status=$?
  2191.   if test -s conftest.err; then
  2192.     grep -v '^ *+' conftest.err >conftest.er1
  2193.     cat conftest.er1 >&5
  2194.     mv -f conftest.er1 conftest.err
  2195.   fi
  2196.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2197.   test $ac_status = 0; } > conftest.i && {
  2198.          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2199.          test ! -s conftest.err
  2200.        }; then :
  2201.   ac_retval=0
  2202. else
  2203.   $as_echo "$as_me: failed program was:" >&5
  2204. sed 's/^/| /' conftest.$ac_ext >&5
  2205.  
  2206.     ac_retval=1
  2207. fi
  2208.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2209.   as_fn_set_status $ac_retval
  2210.  
  2211. } # ac_fn_c_try_cpp
  2212.  
  2213. # ac_fn_cxx_try_compile LINENO
  2214. # ----------------------------
  2215. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2216. ac_fn_cxx_try_compile ()
  2217. {
  2218.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2219.   rm -f conftest.$ac_objext
  2220.   if { { ac_try="$ac_compile"
  2221. case "(($ac_try" in
  2222.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2223.   *) ac_try_echo=$ac_try;;
  2224. esac
  2225. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2226. $as_echo "$ac_try_echo"; } >&5
  2227.   (eval "$ac_compile") 2>conftest.err
  2228.   ac_status=$?
  2229.   if test -s conftest.err; then
  2230.     grep -v '^ *+' conftest.err >conftest.er1
  2231.     cat conftest.er1 >&5
  2232.     mv -f conftest.er1 conftest.err
  2233.   fi
  2234.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2235.   test $ac_status = 0; } && {
  2236.          test -z "$ac_cxx_werror_flag" ||
  2237.          test ! -s conftest.err
  2238.        } && test -s conftest.$ac_objext; then :
  2239.   ac_retval=0
  2240. else
  2241.   $as_echo "$as_me: failed program was:" >&5
  2242. sed 's/^/| /' conftest.$ac_ext >&5
  2243.  
  2244.         ac_retval=1
  2245. fi
  2246.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2247.   as_fn_set_status $ac_retval
  2248.  
  2249. } # ac_fn_cxx_try_compile
  2250.  
  2251. # ac_fn_c_try_link LINENO
  2252. # -----------------------
  2253. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2254. ac_fn_c_try_link ()
  2255. {
  2256.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2257.   rm -f conftest.$ac_objext conftest$ac_exeext
  2258.   if { { ac_try="$ac_link"
  2259. case "(($ac_try" in
  2260.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2261.   *) ac_try_echo=$ac_try;;
  2262. esac
  2263. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2264. $as_echo "$ac_try_echo"; } >&5
  2265.   (eval "$ac_link") 2>conftest.err
  2266.   ac_status=$?
  2267.   if test -s conftest.err; then
  2268.     grep -v '^ *+' conftest.err >conftest.er1
  2269.     cat conftest.er1 >&5
  2270.     mv -f conftest.er1 conftest.err
  2271.   fi
  2272.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2273.   test $ac_status = 0; } && {
  2274.          test -z "$ac_c_werror_flag" ||
  2275.          test ! -s conftest.err
  2276.        } && test -s conftest$ac_exeext && {
  2277.          test "$cross_compiling" = yes ||
  2278.          test -x conftest$ac_exeext
  2279.        }; then :
  2280.   ac_retval=0
  2281. else
  2282.   $as_echo "$as_me: failed program was:" >&5
  2283. sed 's/^/| /' conftest.$ac_ext >&5
  2284.  
  2285.         ac_retval=1
  2286. fi
  2287.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2288.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2289.   # interfere with the next link command; also delete a directory that is
  2290.   # left behind by Apple's compiler.  We do this before executing the actions.
  2291.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2292.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2293.   as_fn_set_status $ac_retval
  2294.  
  2295. } # ac_fn_c_try_link
  2296.  
  2297. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2298. # -------------------------------------------------------
  2299. # Tests whether HEADER exists and can be compiled using the include files in
  2300. # INCLUDES, setting the cache variable VAR accordingly.
  2301. ac_fn_c_check_header_compile ()
  2302. {
  2303.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2304.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2305. $as_echo_n "checking for $2... " >&6; }
  2306. if eval \${$3+:} false; then :
  2307.   $as_echo_n "(cached) " >&6
  2308. else
  2309.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2310. /* end confdefs.h.  */
  2311. $4
  2312. #include <$2>
  2313. _ACEOF
  2314. if ac_fn_c_try_compile "$LINENO"; then :
  2315.   eval "$3=yes"
  2316. else
  2317.   eval "$3=no"
  2318. fi
  2319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2320. fi
  2321. eval ac_res=\$$3
  2322.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2323. $as_echo "$ac_res" >&6; }
  2324.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2325.  
  2326. } # ac_fn_c_check_header_compile
  2327.  
  2328. # ac_fn_c_try_run LINENO
  2329. # ----------------------
  2330. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2331. # that executables *can* be run.
  2332. ac_fn_c_try_run ()
  2333. {
  2334.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2335.   if { { ac_try="$ac_link"
  2336. case "(($ac_try" in
  2337.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2338.   *) ac_try_echo=$ac_try;;
  2339. esac
  2340. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2341. $as_echo "$ac_try_echo"; } >&5
  2342.   (eval "$ac_link") 2>&5
  2343.   ac_status=$?
  2344.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2345.   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2346.   { { case "(($ac_try" in
  2347.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2348.   *) ac_try_echo=$ac_try;;
  2349. esac
  2350. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2351. $as_echo "$ac_try_echo"; } >&5
  2352.   (eval "$ac_try") 2>&5
  2353.   ac_status=$?
  2354.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2355.   test $ac_status = 0; }; }; then :
  2356.   ac_retval=0
  2357. else
  2358.   $as_echo "$as_me: program exited with status $ac_status" >&5
  2359.        $as_echo "$as_me: failed program was:" >&5
  2360. sed 's/^/| /' conftest.$ac_ext >&5
  2361.  
  2362.        ac_retval=$ac_status
  2363. fi
  2364.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2365.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2366.   as_fn_set_status $ac_retval
  2367.  
  2368. } # ac_fn_c_try_run
  2369.  
  2370. # ac_fn_c_check_func LINENO FUNC VAR
  2371. # ----------------------------------
  2372. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2373. ac_fn_c_check_func ()
  2374. {
  2375.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2376.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2377. $as_echo_n "checking for $2... " >&6; }
  2378. if eval \${$3+:} false; then :
  2379.   $as_echo_n "(cached) " >&6
  2380. else
  2381.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2382. /* end confdefs.h.  */
  2383. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2384.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  2385. #define $2 innocuous_$2
  2386.  
  2387. /* System header to define __stub macros and hopefully few prototypes,
  2388.     which can conflict with char $2 (); below.
  2389.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2390.     <limits.h> exists even on freestanding compilers.  */
  2391.  
  2392. #ifdef __STDC__
  2393. # include <limits.h>
  2394. #else
  2395. # include <assert.h>
  2396. #endif
  2397.  
  2398. #undef $2
  2399.  
  2400. /* Override any GCC internal prototype to avoid an error.
  2401.    Use char because int might match the return type of a GCC
  2402.    builtin and then its argument prototype would still apply.  */
  2403. #ifdef __cplusplus
  2404. extern "C"
  2405. #endif
  2406. char $2 ();
  2407. /* The GNU C library defines this for functions which it implements
  2408.     to always fail with ENOSYS.  Some functions are actually named
  2409.     something starting with __ and the normal name is an alias.  */
  2410. #if defined __stub_$2 || defined __stub___$2
  2411. choke me
  2412. #endif
  2413.  
  2414. int
  2415. main ()
  2416. {
  2417. return $2 ();
  2418.   ;
  2419.   return 0;
  2420. }
  2421. _ACEOF
  2422. if ac_fn_c_try_link "$LINENO"; then :
  2423.   eval "$3=yes"
  2424. else
  2425.   eval "$3=no"
  2426. fi
  2427. rm -f core conftest.err conftest.$ac_objext \
  2428.     conftest$ac_exeext conftest.$ac_ext
  2429. fi
  2430. eval ac_res=\$$3
  2431.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2432. $as_echo "$ac_res" >&6; }
  2433.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2434.  
  2435. } # ac_fn_c_check_func
  2436.  
  2437. # ac_fn_cxx_try_cpp LINENO
  2438. # ------------------------
  2439. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2440. ac_fn_cxx_try_cpp ()
  2441. {
  2442.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2443.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  2444. case "(($ac_try" in
  2445.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2446.   *) ac_try_echo=$ac_try;;
  2447. esac
  2448. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2449. $as_echo "$ac_try_echo"; } >&5
  2450.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2451.   ac_status=$?
  2452.   if test -s conftest.err; then
  2453.     grep -v '^ *+' conftest.err >conftest.er1
  2454.     cat conftest.er1 >&5
  2455.     mv -f conftest.er1 conftest.err
  2456.   fi
  2457.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2458.   test $ac_status = 0; } > conftest.i && {
  2459.          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2460.          test ! -s conftest.err
  2461.        }; then :
  2462.   ac_retval=0
  2463. else
  2464.   $as_echo "$as_me: failed program was:" >&5
  2465. sed 's/^/| /' conftest.$ac_ext >&5
  2466.  
  2467.     ac_retval=1
  2468. fi
  2469.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2470.   as_fn_set_status $ac_retval
  2471.  
  2472. } # ac_fn_cxx_try_cpp
  2473.  
  2474. # ac_fn_cxx_try_link LINENO
  2475. # -------------------------
  2476. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2477. ac_fn_cxx_try_link ()
  2478. {
  2479.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2480.   rm -f conftest.$ac_objext conftest$ac_exeext
  2481.   if { { ac_try="$ac_link"
  2482. case "(($ac_try" in
  2483.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2484.   *) ac_try_echo=$ac_try;;
  2485. esac
  2486. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2487. $as_echo "$ac_try_echo"; } >&5
  2488.   (eval "$ac_link") 2>conftest.err
  2489.   ac_status=$?
  2490.   if test -s conftest.err; then
  2491.     grep -v '^ *+' conftest.err >conftest.er1
  2492.     cat conftest.er1 >&5
  2493.     mv -f conftest.er1 conftest.err
  2494.   fi
  2495.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2496.   test $ac_status = 0; } && {
  2497.          test -z "$ac_cxx_werror_flag" ||
  2498.          test ! -s conftest.err
  2499.        } && test -s conftest$ac_exeext && {
  2500.          test "$cross_compiling" = yes ||
  2501.          test -x conftest$ac_exeext
  2502.        }; then :
  2503.   ac_retval=0
  2504. else
  2505.   $as_echo "$as_me: failed program was:" >&5
  2506. sed 's/^/| /' conftest.$ac_ext >&5
  2507.  
  2508.         ac_retval=1
  2509. fi
  2510.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2511.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2512.   # interfere with the next link command; also delete a directory that is
  2513.   # left behind by Apple's compiler.  We do this before executing the actions.
  2514.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2515.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2516.   as_fn_set_status $ac_retval
  2517.  
  2518. } # ac_fn_cxx_try_link
  2519.  
  2520. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2521. # -------------------------------------------------------
  2522. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2523. # the include files in INCLUDES and setting the cache variable VAR
  2524. # accordingly.
  2525. ac_fn_c_check_header_mongrel ()
  2526. {
  2527.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2528.   if eval \${$3+:} false; then :
  2529.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2530. $as_echo_n "checking for $2... " >&6; }
  2531. if eval \${$3+:} false; then :
  2532.   $as_echo_n "(cached) " >&6
  2533. fi
  2534. eval ac_res=\$$3
  2535.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2536. $as_echo "$ac_res" >&6; }
  2537. else
  2538.   # Is the header compilable?
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2540. $as_echo_n "checking $2 usability... " >&6; }
  2541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2542. /* end confdefs.h.  */
  2543. $4
  2544. #include <$2>
  2545. _ACEOF
  2546. if ac_fn_c_try_compile "$LINENO"; then :
  2547.   ac_header_compiler=yes
  2548. else
  2549.   ac_header_compiler=no
  2550. fi
  2551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2553. $as_echo "$ac_header_compiler" >&6; }
  2554.  
  2555. # Is the header present?
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2557. $as_echo_n "checking $2 presence... " >&6; }
  2558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2559. /* end confdefs.h.  */
  2560. #include <$2>
  2561. _ACEOF
  2562. if ac_fn_c_try_cpp "$LINENO"; then :
  2563.   ac_header_preproc=yes
  2564. else
  2565.   ac_header_preproc=no
  2566. fi
  2567. rm -f conftest.err conftest.i conftest.$ac_ext
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2569. $as_echo "$ac_header_preproc" >&6; }
  2570.  
  2571. # So?  What about this header?
  2572. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2573.   yes:no: )
  2574.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2575. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2576.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2577. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2578.     ;;
  2579.   no:yes:* )
  2580.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2581. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2582.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  2583. $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  2584.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2585. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2586.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  2587. $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  2588.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2589. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2590. ( $as_echo "## ---------------------------------------------------------------------- ##
  2591. ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa ##
  2592. ## ---------------------------------------------------------------------- ##"
  2593.      ) | sed "s/^/$as_me: WARNING:     /" >&2
  2594.     ;;
  2595. esac
  2596.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2597. $as_echo_n "checking for $2... " >&6; }
  2598. if eval \${$3+:} false; then :
  2599.   $as_echo_n "(cached) " >&6
  2600. else
  2601.   eval "$3=\$ac_header_compiler"
  2602. fi
  2603. eval ac_res=\$$3
  2604.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2605. $as_echo "$ac_res" >&6; }
  2606. fi
  2607.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2608.  
  2609. } # ac_fn_c_check_header_mongrel
  2610.  
  2611. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2612. # --------------------------------------------
  2613. # Tries to find the compile-time value of EXPR in a program that includes
  2614. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2615. # computed
  2616. ac_fn_c_compute_int ()
  2617. {
  2618.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2619.   if test "$cross_compiling" = yes; then
  2620.     # Depending upon the size, compute the lo and hi bounds.
  2621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2622. /* end confdefs.h.  */
  2623. $4
  2624. int
  2625. main ()
  2626. {
  2627. static int test_array [1 - 2 * !(($2) >= 0)];
  2628. test_array [0] = 0;
  2629. return test_array [0];
  2630.  
  2631.   ;
  2632.   return 0;
  2633. }
  2634. _ACEOF
  2635. if ac_fn_c_try_compile "$LINENO"; then :
  2636.   ac_lo=0 ac_mid=0
  2637.   while :; do
  2638.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2639. /* end confdefs.h.  */
  2640. $4
  2641. int
  2642. main ()
  2643. {
  2644. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2645. test_array [0] = 0;
  2646. return test_array [0];
  2647.  
  2648.   ;
  2649.   return 0;
  2650. }
  2651. _ACEOF
  2652. if ac_fn_c_try_compile "$LINENO"; then :
  2653.   ac_hi=$ac_mid; break
  2654. else
  2655.   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2656.                         if test $ac_lo -le $ac_mid; then
  2657.                           ac_lo= ac_hi=
  2658.                           break
  2659.                         fi
  2660.                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2661. fi
  2662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2663.   done
  2664. else
  2665.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2666. /* end confdefs.h.  */
  2667. $4
  2668. int
  2669. main ()
  2670. {
  2671. static int test_array [1 - 2 * !(($2) < 0)];
  2672. test_array [0] = 0;
  2673. return test_array [0];
  2674.  
  2675.   ;
  2676.   return 0;
  2677. }
  2678. _ACEOF
  2679. if ac_fn_c_try_compile "$LINENO"; then :
  2680.   ac_hi=-1 ac_mid=-1
  2681.   while :; do
  2682.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2683. /* end confdefs.h.  */
  2684. $4
  2685. int
  2686. main ()
  2687. {
  2688. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2689. test_array [0] = 0;
  2690. return test_array [0];
  2691.  
  2692.   ;
  2693.   return 0;
  2694. }
  2695. _ACEOF
  2696. if ac_fn_c_try_compile "$LINENO"; then :
  2697.   ac_lo=$ac_mid; break
  2698. else
  2699.   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2700.                         if test $ac_mid -le $ac_hi; then
  2701.                           ac_lo= ac_hi=
  2702.                           break
  2703.                         fi
  2704.                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2705. fi
  2706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2707.   done
  2708. else
  2709.   ac_lo= ac_hi=
  2710. fi
  2711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2712. fi
  2713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2714. # Binary search between lo and hi bounds.
  2715. while test "x$ac_lo" != "x$ac_hi"; do
  2716.   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2717.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2718. /* end confdefs.h.  */
  2719. $4
  2720. int
  2721. main ()
  2722. {
  2723. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2724. test_array [0] = 0;
  2725. return test_array [0];
  2726.  
  2727.   ;
  2728.   return 0;
  2729. }
  2730. _ACEOF
  2731. if ac_fn_c_try_compile "$LINENO"; then :
  2732.   ac_hi=$ac_mid
  2733. else
  2734.   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2735. fi
  2736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2737. done
  2738. case $ac_lo in #((
  2739. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2740. '') ac_retval=1 ;;
  2741. esac
  2742.   else
  2743.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2744. /* end confdefs.h.  */
  2745. $4
  2746. static long int longval () { return $2; }
  2747. static unsigned long int ulongval () { return $2; }
  2748. #include <stdio.h>
  2749. #include <stdlib.h>
  2750. int
  2751. main ()
  2752. {
  2753.  
  2754.   FILE *f = fopen ("conftest.val", "w");
  2755.   if (! f)
  2756.     return 1;
  2757.   if (($2) < 0)
  2758.     {
  2759.       long int i = longval ();
  2760.       if (i != ($2))
  2761.         return 1;
  2762.       fprintf (f, "%ld", i);
  2763.     }
  2764.   else
  2765.     {
  2766.       unsigned long int i = ulongval ();
  2767.       if (i != ($2))
  2768.         return 1;
  2769.       fprintf (f, "%lu", i);
  2770.     }
  2771.   /* Do not output a trailing newline, as this causes \r\n confusion
  2772.      on some platforms.  */
  2773.   return ferror (f) || fclose (f) != 0;
  2774.  
  2775.   ;
  2776.   return 0;
  2777. }
  2778. _ACEOF
  2779. if ac_fn_c_try_run "$LINENO"; then :
  2780.   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2781. else
  2782.   ac_retval=1
  2783. fi
  2784. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2785.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  2786. rm -f conftest.val
  2787.  
  2788.   fi
  2789.   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2790.   as_fn_set_status $ac_retval
  2791.  
  2792. } # ac_fn_c_compute_int
  2793. cat >config.log <<_ACEOF
  2794. This file contains any messages produced by compilers while
  2795. running configure, to aid debugging if configure makes a mistake.
  2796.  
  2797. It was created by Mesa $as_me 10.6.0-rc2, which was
  2798. generated by GNU Autoconf 2.69.  Invocation command line was
  2799.  
  2800.   $ $0 $@
  2801.  
  2802. _ACEOF
  2803. exec 5>>config.log
  2804. {
  2805. cat <<_ASUNAME
  2806. ## --------- ##
  2807. ## Platform. ##
  2808. ## --------- ##
  2809.  
  2810. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2811. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2812. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2813. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2814. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2815.  
  2816. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2817. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
  2818.  
  2819. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  2820. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  2821. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2822. /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  2823. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  2824. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  2825. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
  2826.  
  2827. _ASUNAME
  2828.  
  2829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2830. for as_dir in $PATH
  2831. do
  2832.   IFS=$as_save_IFS
  2833.   test -z "$as_dir" && as_dir=.
  2834.     $as_echo "PATH: $as_dir"
  2835.   done
  2836. IFS=$as_save_IFS
  2837.  
  2838. } >&5
  2839.  
  2840. cat >&5 <<_ACEOF
  2841.  
  2842.  
  2843. ## ----------- ##
  2844. ## Core tests. ##
  2845. ## ----------- ##
  2846.  
  2847. _ACEOF
  2848.  
  2849.  
  2850. # Keep a trace of the command line.
  2851. # Strip out --no-create and --no-recursion so they do not pile up.
  2852. # Strip out --silent because we don't want to record it for future runs.
  2853. # Also quote any args containing shell meta-characters.
  2854. # Make two passes to allow for proper duplicate-argument suppression.
  2855. ac_configure_args=
  2856. ac_configure_args0=
  2857. ac_configure_args1=
  2858. ac_must_keep_next=false
  2859. for ac_pass in 1 2
  2860. do
  2861.   for ac_arg
  2862.   do
  2863.     case $ac_arg in
  2864.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2865.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2866.     | -silent | --silent | --silen | --sile | --sil)
  2867.       continue ;;
  2868.     *\'*)
  2869.       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2870.     esac
  2871.     case $ac_pass in
  2872.     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2873.     2)
  2874.       as_fn_append ac_configure_args1 " '$ac_arg'"
  2875.       if test $ac_must_keep_next = true; then
  2876.         ac_must_keep_next=false # Got value, back to normal.
  2877.       else
  2878.         case $ac_arg in
  2879.           *=* | --config-cache | -C | -disable-* | --disable-* \
  2880.           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2881.           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2882.           | -with-* | --with-* | -without-* | --without-* | --x)
  2883.             case "$ac_configure_args0 " in
  2884.               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2885.             esac
  2886.             ;;
  2887.           -* ) ac_must_keep_next=true ;;
  2888.         esac
  2889.       fi
  2890.       as_fn_append ac_configure_args " '$ac_arg'"
  2891.       ;;
  2892.     esac
  2893.   done
  2894. done
  2895. { ac_configure_args0=; unset ac_configure_args0;}
  2896. { ac_configure_args1=; unset ac_configure_args1;}
  2897.  
  2898. # When interrupted or exit'd, cleanup temporary files, and complete
  2899. # config.log.  We remove comments because anyway the quotes in there
  2900. # would cause problems or look ugly.
  2901. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2902. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2903. trap 'exit_status=$?
  2904.   # Save into config.log some information that might help in debugging.
  2905.   {
  2906.     echo
  2907.  
  2908.     $as_echo "## ---------------- ##
  2909. ## Cache variables. ##
  2910. ## ---------------- ##"
  2911.     echo
  2912.     # The following way of writing the cache mishandles newlines in values,
  2913. (
  2914.   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2915.     eval ac_val=\$$ac_var
  2916.     case $ac_val in #(
  2917.     *${as_nl}*)
  2918.       case $ac_var in #(
  2919.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2920. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2921.       esac
  2922.       case $ac_var in #(
  2923.       _ | IFS | as_nl) ;; #(
  2924.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2925.       *) { eval $ac_var=; unset $ac_var;} ;;
  2926.       esac ;;
  2927.     esac
  2928.   done
  2929.   (set) 2>&1 |
  2930.     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2931.     *${as_nl}ac_space=\ *)
  2932.       sed -n \
  2933.         "s/'\''/'\''\\\\'\'''\''/g;
  2934.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2935.       ;; #(
  2936.     *)
  2937.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2938.       ;;
  2939.     esac |
  2940.     sort
  2941. )
  2942.     echo
  2943.  
  2944.     $as_echo "## ----------------- ##
  2945. ## Output variables. ##
  2946. ## ----------------- ##"
  2947.     echo
  2948.     for ac_var in $ac_subst_vars
  2949.     do
  2950.       eval ac_val=\$$ac_var
  2951.       case $ac_val in
  2952.       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2953.       esac
  2954.       $as_echo "$ac_var='\''$ac_val'\''"
  2955.     done | sort
  2956.     echo
  2957.  
  2958.     if test -n "$ac_subst_files"; then
  2959.       $as_echo "## ------------------- ##
  2960. ## File substitutions. ##
  2961. ## ------------------- ##"
  2962.       echo
  2963.       for ac_var in $ac_subst_files
  2964.       do
  2965.         eval ac_val=\$$ac_var
  2966.         case $ac_val in
  2967.         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2968.         esac
  2969.         $as_echo "$ac_var='\''$ac_val'\''"
  2970.       done | sort
  2971.       echo
  2972.     fi
  2973.  
  2974.     if test -s confdefs.h; then
  2975.       $as_echo "## ----------- ##
  2976. ## confdefs.h. ##
  2977. ## ----------- ##"
  2978.       echo
  2979.       cat confdefs.h
  2980.       echo
  2981.     fi
  2982.     test "$ac_signal" != 0 &&
  2983.       $as_echo "$as_me: caught signal $ac_signal"
  2984.     $as_echo "$as_me: exit $exit_status"
  2985.   } >&5
  2986.   rm -f core *.core core.conftest.* &&
  2987.     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2988.     exit $exit_status
  2989. ' 0
  2990. for ac_signal in 1 2 13 15; do
  2991.   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2992. done
  2993. ac_signal=0
  2994.  
  2995. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2996. rm -f -r conftest* confdefs.h
  2997.  
  2998. $as_echo "/* confdefs.h */" > confdefs.h
  2999.  
  3000. # Predefined preprocessor variables.
  3001.  
  3002. cat >>confdefs.h <<_ACEOF
  3003. #define PACKAGE_NAME "$PACKAGE_NAME"
  3004. _ACEOF
  3005.  
  3006. cat >>confdefs.h <<_ACEOF
  3007. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  3008. _ACEOF
  3009.  
  3010. cat >>confdefs.h <<_ACEOF
  3011. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  3012. _ACEOF
  3013.  
  3014. cat >>confdefs.h <<_ACEOF
  3015. #define PACKAGE_STRING "$PACKAGE_STRING"
  3016. _ACEOF
  3017.  
  3018. cat >>confdefs.h <<_ACEOF
  3019. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  3020. _ACEOF
  3021.  
  3022. cat >>confdefs.h <<_ACEOF
  3023. #define PACKAGE_URL "$PACKAGE_URL"
  3024. _ACEOF
  3025.  
  3026.  
  3027. # Let the site file select an alternate cache file if it wants to.
  3028. # Prefer an explicitly selected file to automatically selected ones.
  3029. ac_site_file1=NONE
  3030. ac_site_file2=NONE
  3031. if test -n "$CONFIG_SITE"; then
  3032.   # We do not want a PATH search for config.site.
  3033.   case $CONFIG_SITE in #((
  3034.     -*)  ac_site_file1=./$CONFIG_SITE;;
  3035.     */*) ac_site_file1=$CONFIG_SITE;;
  3036.     *)   ac_site_file1=./$CONFIG_SITE;;
  3037.   esac
  3038. elif test "x$prefix" != xNONE; then
  3039.   ac_site_file1=$prefix/share/config.site
  3040.   ac_site_file2=$prefix/etc/config.site
  3041. else
  3042.   ac_site_file1=$ac_default_prefix/share/config.site
  3043.   ac_site_file2=$ac_default_prefix/etc/config.site
  3044. fi
  3045. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  3046. do
  3047.   test "x$ac_site_file" = xNONE && continue
  3048.   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  3049.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  3050. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  3051.     sed 's/^/| /' "$ac_site_file" >&5
  3052.     . "$ac_site_file" \
  3053.       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3054. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3055. as_fn_error $? "failed to load site script $ac_site_file
  3056. See \`config.log' for more details" "$LINENO" 5; }
  3057.   fi
  3058. done
  3059.  
  3060. if test -r "$cache_file"; then
  3061.   # Some versions of bash will fail to source /dev/null (special files
  3062.   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  3063.   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  3064.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  3065. $as_echo "$as_me: loading cache $cache_file" >&6;}
  3066.     case $cache_file in
  3067.       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  3068.       *)                      . "./$cache_file";;
  3069.     esac
  3070.   fi
  3071. else
  3072.   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  3073. $as_echo "$as_me: creating cache $cache_file" >&6;}
  3074.   >$cache_file
  3075. fi
  3076.  
  3077. # Check that the precious variables saved in the cache have kept the same
  3078. # value.
  3079. ac_cache_corrupted=false
  3080. for ac_var in $ac_precious_vars; do
  3081.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3082.   eval ac_new_set=\$ac_env_${ac_var}_set
  3083.   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3084.   eval ac_new_val=\$ac_env_${ac_var}_value
  3085.   case $ac_old_set,$ac_new_set in
  3086.     set,)
  3087.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3088. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3089.       ac_cache_corrupted=: ;;
  3090.     ,set)
  3091.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3092. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3093.       ac_cache_corrupted=: ;;
  3094.     ,);;
  3095.     *)
  3096.       if test "x$ac_old_val" != "x$ac_new_val"; then
  3097.         # differences in whitespace do not lead to failure.
  3098.         ac_old_val_w=`echo x $ac_old_val`
  3099.         ac_new_val_w=`echo x $ac_new_val`
  3100.         if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3101.           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3102. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3103.           ac_cache_corrupted=:
  3104.         else
  3105.           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3106. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3107.           eval $ac_var=\$ac_old_val
  3108.         fi
  3109.         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  3110. $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  3111.         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  3112. $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  3113.       fi;;
  3114.   esac
  3115.   # Pass precious variables to config.status.
  3116.   if test "$ac_new_set" = set; then
  3117.     case $ac_new_val in
  3118.     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3119.     *) ac_arg=$ac_var=$ac_new_val ;;
  3120.     esac
  3121.     case " $ac_configure_args " in
  3122.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  3123.       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3124.     esac
  3125.   fi
  3126. done
  3127. if $ac_cache_corrupted; then
  3128.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3129. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3130.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3131. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  3132.   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  3133. fi
  3134. ## -------------------- ##
  3135. ## Main body of script. ##
  3136. ## -------------------- ##
  3137.  
  3138. ac_ext=c
  3139. ac_cpp='$CPP $CPPFLAGS'
  3140. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3141. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3142. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3143.  
  3144.  
  3145. ac_aux_dir=
  3146. for ac_dir in bin "$srcdir"/bin; do
  3147.   if test -f "$ac_dir/install-sh"; then
  3148.     ac_aux_dir=$ac_dir
  3149.     ac_install_sh="$ac_aux_dir/install-sh -c"
  3150.     break
  3151.   elif test -f "$ac_dir/install.sh"; then
  3152.     ac_aux_dir=$ac_dir
  3153.     ac_install_sh="$ac_aux_dir/install.sh -c"
  3154.     break
  3155.   elif test -f "$ac_dir/shtool"; then
  3156.     ac_aux_dir=$ac_dir
  3157.     ac_install_sh="$ac_aux_dir/shtool install -c"
  3158.     break
  3159.   fi
  3160. done
  3161. if test -z "$ac_aux_dir"; then
  3162.   as_fn_error $? "cannot find install-sh, install.sh, or shtool in bin \"$srcdir\"/bin" "$LINENO" 5
  3163. fi
  3164.  
  3165. # These three variables are undocumented and unsupported,
  3166. # and are intended to be withdrawn in a future Autoconf release.
  3167. # They can cause serious problems if a builder's source tree is in a directory
  3168. # whose full name contains unusual characters.
  3169. ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  3170. ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  3171. ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
  3172.  
  3173.  
  3174.  
  3175. # Make sure we can run config.sub.
  3176. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3177.   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3178.  
  3179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3180. $as_echo_n "checking build system type... " >&6; }
  3181. if ${ac_cv_build+:} false; then :
  3182.   $as_echo_n "(cached) " >&6
  3183. else
  3184.   ac_build_alias=$build_alias
  3185. test "x$ac_build_alias" = x &&
  3186.   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3187. test "x$ac_build_alias" = x &&
  3188.   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3189. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3190.   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3191.  
  3192. fi
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3194. $as_echo "$ac_cv_build" >&6; }
  3195. case $ac_cv_build in
  3196. *-*-*) ;;
  3197. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3198. esac
  3199. build=$ac_cv_build
  3200. ac_save_IFS=$IFS; IFS='-'
  3201. set x $ac_cv_build
  3202. shift
  3203. build_cpu=$1
  3204. build_vendor=$2
  3205. shift; shift
  3206. # Remember, the first character of IFS is used to create $*,
  3207. # except with old shells:
  3208. build_os=$*
  3209. IFS=$ac_save_IFS
  3210. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3211.  
  3212.  
  3213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3214. $as_echo_n "checking host system type... " >&6; }
  3215. if ${ac_cv_host+:} false; then :
  3216.   $as_echo_n "(cached) " >&6
  3217. else
  3218.   if test "x$host_alias" = x; then
  3219.   ac_cv_host=$ac_cv_build
  3220. else
  3221.   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3222.     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3223. fi
  3224.  
  3225. fi
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3227. $as_echo "$ac_cv_host" >&6; }
  3228. case $ac_cv_host in
  3229. *-*-*) ;;
  3230. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3231. esac
  3232. host=$ac_cv_host
  3233. ac_save_IFS=$IFS; IFS='-'
  3234. set x $ac_cv_host
  3235. shift
  3236. host_cpu=$1
  3237. host_vendor=$2
  3238. shift; shift
  3239. # Remember, the first character of IFS is used to create $*,
  3240. # except with old shells:
  3241. host_os=$*
  3242. IFS=$ac_save_IFS
  3243. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3244.  
  3245.  
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3247. $as_echo_n "checking target system type... " >&6; }
  3248. if ${ac_cv_target+:} false; then :
  3249.   $as_echo_n "(cached) " >&6
  3250. else
  3251.   if test "x$target_alias" = x; then
  3252.   ac_cv_target=$ac_cv_host
  3253. else
  3254.   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3255.     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3256. fi
  3257.  
  3258. fi
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3260. $as_echo "$ac_cv_target" >&6; }
  3261. case $ac_cv_target in
  3262. *-*-*) ;;
  3263. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  3264. esac
  3265. target=$ac_cv_target
  3266. ac_save_IFS=$IFS; IFS='-'
  3267. set x $ac_cv_target
  3268. shift
  3269. target_cpu=$1
  3270. target_vendor=$2
  3271. shift; shift
  3272. # Remember, the first character of IFS is used to create $*,
  3273. # except with old shells:
  3274. target_os=$*
  3275. IFS=$ac_save_IFS
  3276. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3277.  
  3278.  
  3279. # The aliases save the names the user supplied, while $host etc.
  3280. # will get canonicalized.
  3281. test -n "$target_alias" &&
  3282.   test "$program_prefix$program_suffix$program_transform_name" = \
  3283.     NONENONEs,x,x, &&
  3284.   program_prefix=${target_alias}-
  3285.  
  3286. am__api_version='1.15'
  3287.  
  3288. # Find a good install program.  We prefer a C program (faster),
  3289. # so one script is as good as another.  But avoid the broken or
  3290. # incompatible versions:
  3291. # SysV /etc/install, /usr/sbin/install
  3292. # SunOS /usr/etc/install
  3293. # IRIX /sbin/install
  3294. # AIX /bin/install
  3295. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3296. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3297. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3298. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3299. # OS/2's system install, which has a completely different semantic
  3300. # ./install, which can be erroneously created by make from ./install.sh.
  3301. # Reject install programs that cannot install multiple files.
  3302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3303. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3304. if test -z "$INSTALL"; then
  3305. if ${ac_cv_path_install+:} false; then :
  3306.   $as_echo_n "(cached) " >&6
  3307. else
  3308.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3309. for as_dir in $PATH
  3310. do
  3311.   IFS=$as_save_IFS
  3312.   test -z "$as_dir" && as_dir=.
  3313.     # Account for people who put trailing slashes in PATH elements.
  3314. case $as_dir/ in #((
  3315.   ./ | .// | /[cC]/* | \
  3316.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3317.   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3318.   /usr/ucb/* ) ;;
  3319.   *)
  3320.     # OSF1 and SCO ODT 3.0 have their own names for install.
  3321.     # Don't use installbsd from OSF since it installs stuff as root
  3322.     # by default.
  3323.     for ac_prog in ginstall scoinst install; do
  3324.       for ac_exec_ext in '' $ac_executable_extensions; do
  3325.         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3326.           if test $ac_prog = install &&
  3327.             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3328.             # AIX install.  It has an incompatible calling convention.
  3329.             :
  3330.           elif test $ac_prog = install &&
  3331.             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3332.             # program-specific install script used by HP pwplus--don't use.
  3333.             :
  3334.           else
  3335.             rm -rf conftest.one conftest.two conftest.dir
  3336.             echo one > conftest.one
  3337.             echo two > conftest.two
  3338.             mkdir conftest.dir
  3339.             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3340.               test -s conftest.one && test -s conftest.two &&
  3341.               test -s conftest.dir/conftest.one &&
  3342.               test -s conftest.dir/conftest.two
  3343.             then
  3344.               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3345.               break 3
  3346.             fi
  3347.           fi
  3348.         fi
  3349.       done
  3350.     done
  3351.     ;;
  3352. esac
  3353.  
  3354.   done
  3355. IFS=$as_save_IFS
  3356.  
  3357. rm -rf conftest.one conftest.two conftest.dir
  3358.  
  3359. fi
  3360.   if test "${ac_cv_path_install+set}" = set; then
  3361.     INSTALL=$ac_cv_path_install
  3362.   else
  3363.     # As a last resort, use the slow shell script.  Don't cache a
  3364.     # value for INSTALL within a source directory, because that will
  3365.     # break other packages using the cache if that directory is
  3366.     # removed, or if the value is a relative name.
  3367.     INSTALL=$ac_install_sh
  3368.   fi
  3369. fi
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3371. $as_echo "$INSTALL" >&6; }
  3372.  
  3373. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3374. # It thinks the first close brace ends the variable substitution.
  3375. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3376.  
  3377. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3378.  
  3379. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3380.  
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3382. $as_echo_n "checking whether build environment is sane... " >&6; }
  3383. # Reject unsafe characters in $srcdir or the absolute working directory
  3384. # name.  Accept space and tab only in the latter.
  3385. am_lf='
  3386. '
  3387. case `pwd` in
  3388.   *[\\\"\#\$\&\'\`$am_lf]*)
  3389.     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3390. esac
  3391. case $srcdir in
  3392.   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
  3393.     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3394. esac
  3395.  
  3396. # Do 'set' in a subshell so we don't clobber the current shell's
  3397. # arguments.  Must try -L first in case configure is actually a
  3398. # symlink; some systems play weird games with the mod time of symlinks
  3399. # (eg FreeBSD returns the mod time of the symlink's containing
  3400. # directory).
  3401. if (
  3402.    am_has_slept=no
  3403.    for am_try in 1 2; do
  3404.      echo "timestamp, slept: $am_has_slept" > conftest.file
  3405.      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3406.      if test "$*" = "X"; then
  3407.         # -L didn't work.
  3408.         set X `ls -t "$srcdir/configure" conftest.file`
  3409.      fi
  3410.      if test "$*" != "X $srcdir/configure conftest.file" \
  3411.         && test "$*" != "X conftest.file $srcdir/configure"; then
  3412.  
  3413.         # If neither matched, then we have a broken ls.  This can happen
  3414.         # if, for instance, CONFIG_SHELL is bash and it inherits a
  3415.         # broken ls alias from the environment.  This has actually
  3416.         # happened.  Such a system could not be considered "sane".
  3417.         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  3418.   alias in your environment" "$LINENO" 5
  3419.      fi
  3420.      if test "$2" = conftest.file || test $am_try -eq 2; then
  3421.        break
  3422.      fi
  3423.      # Just in case.
  3424.      sleep 1
  3425.      am_has_slept=yes
  3426.    done
  3427.    test "$2" = conftest.file
  3428.    )
  3429. then
  3430.    # Ok.
  3431.    :
  3432. else
  3433.    as_fn_error $? "newly created file is older than distributed files!
  3434. Check your system clock" "$LINENO" 5
  3435. fi
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3437. $as_echo "yes" >&6; }
  3438. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3439. # generated files are strictly newer.
  3440. am_sleep_pid=
  3441. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3442.   ( sleep 1 ) &
  3443.   am_sleep_pid=$!
  3444. fi
  3445.  
  3446. rm -f conftest.file
  3447.  
  3448. test "$program_prefix" != NONE &&
  3449.   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3450. # Use a double $ so make ignores it.
  3451. test "$program_suffix" != NONE &&
  3452.   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3453. # Double any \ or $.
  3454. # By default was `s,x,x', remove it if useless.
  3455. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3456. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3457.  
  3458. # Expand $ac_aux_dir to an absolute path.
  3459. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  3460.  
  3461. if test x"${MISSING+set}" != xset; then
  3462.   case $am_aux_dir in
  3463.   *\ * | *\     *)
  3464.     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3465.   *)
  3466.     MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3467.   esac
  3468. fi
  3469. # Use eval to expand $SHELL
  3470. if eval "$MISSING --is-lightweight"; then
  3471.   am_missing_run="$MISSING "
  3472. else
  3473.   am_missing_run=
  3474.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3475. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3476. fi
  3477.  
  3478. if test x"${install_sh+set}" != xset; then
  3479.   case $am_aux_dir in
  3480.   *\ * | *\     *)
  3481.     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3482.   *)
  3483.     install_sh="\${SHELL} $am_aux_dir/install-sh"
  3484.   esac
  3485. fi
  3486.  
  3487. # Installed binaries are usually stripped using 'strip' when the user
  3488. # run "make install-strip".  However 'strip' might not be the right
  3489. # tool to use in cross-compilation environments, therefore Automake
  3490. # will honor the 'STRIP' environment variable to overrule this program.
  3491. if test "$cross_compiling" != no; then
  3492.   if test -n "$ac_tool_prefix"; then
  3493.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3494. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3496. $as_echo_n "checking for $ac_word... " >&6; }
  3497. if ${ac_cv_prog_STRIP+:} false; then :
  3498.   $as_echo_n "(cached) " >&6
  3499. else
  3500.   if test -n "$STRIP"; then
  3501.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3502. else
  3503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3504. for as_dir in $PATH
  3505. do
  3506.   IFS=$as_save_IFS
  3507.   test -z "$as_dir" && as_dir=.
  3508.     for ac_exec_ext in '' $ac_executable_extensions; do
  3509.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3510.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3511.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3512.     break 2
  3513.   fi
  3514. done
  3515.   done
  3516. IFS=$as_save_IFS
  3517.  
  3518. fi
  3519. fi
  3520. STRIP=$ac_cv_prog_STRIP
  3521. if test -n "$STRIP"; then
  3522.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3523. $as_echo "$STRIP" >&6; }
  3524. else
  3525.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3526. $as_echo "no" >&6; }
  3527. fi
  3528.  
  3529.  
  3530. fi
  3531. if test -z "$ac_cv_prog_STRIP"; then
  3532.   ac_ct_STRIP=$STRIP
  3533.   # Extract the first word of "strip", so it can be a program name with args.
  3534. set dummy strip; ac_word=$2
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3536. $as_echo_n "checking for $ac_word... " >&6; }
  3537. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3538.   $as_echo_n "(cached) " >&6
  3539. else
  3540.   if test -n "$ac_ct_STRIP"; then
  3541.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3542. else
  3543. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3544. for as_dir in $PATH
  3545. do
  3546.   IFS=$as_save_IFS
  3547.   test -z "$as_dir" && as_dir=.
  3548.     for ac_exec_ext in '' $ac_executable_extensions; do
  3549.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3550.     ac_cv_prog_ac_ct_STRIP="strip"
  3551.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3552.     break 2
  3553.   fi
  3554. done
  3555.   done
  3556. IFS=$as_save_IFS
  3557.  
  3558. fi
  3559. fi
  3560. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3561. if test -n "$ac_ct_STRIP"; then
  3562.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3563. $as_echo "$ac_ct_STRIP" >&6; }
  3564. else
  3565.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3566. $as_echo "no" >&6; }
  3567. fi
  3568.  
  3569.   if test "x$ac_ct_STRIP" = x; then
  3570.     STRIP=":"
  3571.   else
  3572.     case $cross_compiling:$ac_tool_warned in
  3573. yes:)
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3575. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3576. ac_tool_warned=yes ;;
  3577. esac
  3578.     STRIP=$ac_ct_STRIP
  3579.   fi
  3580. else
  3581.   STRIP="$ac_cv_prog_STRIP"
  3582. fi
  3583.  
  3584. fi
  3585. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3586.  
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3588. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3589. if test -z "$MKDIR_P"; then
  3590.   if ${ac_cv_path_mkdir+:} false; then :
  3591.   $as_echo_n "(cached) " >&6
  3592. else
  3593.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3594. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3595. do
  3596.   IFS=$as_save_IFS
  3597.   test -z "$as_dir" && as_dir=.
  3598.     for ac_prog in mkdir gmkdir; do
  3599.          for ac_exec_ext in '' $ac_executable_extensions; do
  3600.            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3601.            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3602.              'mkdir (GNU coreutils) '* | \
  3603.              'mkdir (coreutils) '* | \
  3604.              'mkdir (fileutils) '4.1*)
  3605.                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3606.                break 3;;
  3607.            esac
  3608.          done
  3609.        done
  3610.   done
  3611. IFS=$as_save_IFS
  3612.  
  3613. fi
  3614.  
  3615.   test -d ./--version && rmdir ./--version
  3616.   if test "${ac_cv_path_mkdir+set}" = set; then
  3617.     MKDIR_P="$ac_cv_path_mkdir -p"
  3618.   else
  3619.     # As a last resort, use the slow shell script.  Don't cache a
  3620.     # value for MKDIR_P within a source directory, because that will
  3621.     # break other packages using the cache if that directory is
  3622.     # removed, or if the value is a relative name.
  3623.     MKDIR_P="$ac_install_sh -d"
  3624.   fi
  3625. fi
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3627. $as_echo "$MKDIR_P" >&6; }
  3628.  
  3629. for ac_prog in gawk mawk nawk awk
  3630. do
  3631.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  3632. set dummy $ac_prog; ac_word=$2
  3633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3634. $as_echo_n "checking for $ac_word... " >&6; }
  3635. if ${ac_cv_prog_AWK+:} false; then :
  3636.   $as_echo_n "(cached) " >&6
  3637. else
  3638.   if test -n "$AWK"; then
  3639.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3640. else
  3641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3642. for as_dir in $PATH
  3643. do
  3644.   IFS=$as_save_IFS
  3645.   test -z "$as_dir" && as_dir=.
  3646.     for ac_exec_ext in '' $ac_executable_extensions; do
  3647.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3648.     ac_cv_prog_AWK="$ac_prog"
  3649.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3650.     break 2
  3651.   fi
  3652. done
  3653.   done
  3654. IFS=$as_save_IFS
  3655.  
  3656. fi
  3657. fi
  3658. AWK=$ac_cv_prog_AWK
  3659. if test -n "$AWK"; then
  3660.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3661. $as_echo "$AWK" >&6; }
  3662. else
  3663.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3664. $as_echo "no" >&6; }
  3665. fi
  3666.  
  3667.  
  3668.   test -n "$AWK" && break
  3669. done
  3670.  
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3672. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3673. set x ${MAKE-make}
  3674. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3675. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3676.   $as_echo_n "(cached) " >&6
  3677. else
  3678.   cat >conftest.make <<\_ACEOF
  3679. SHELL = /bin/sh
  3680. all:
  3681.         @echo '@@@%%%=$(MAKE)=@@@%%%'
  3682. _ACEOF
  3683. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3684. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3685.   *@@@%%%=?*=@@@%%%*)
  3686.     eval ac_cv_prog_make_${ac_make}_set=yes;;
  3687.   *)
  3688.     eval ac_cv_prog_make_${ac_make}_set=no;;
  3689. esac
  3690. rm -f conftest.make
  3691. fi
  3692. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3693.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3694. $as_echo "yes" >&6; }
  3695.   SET_MAKE=
  3696. else
  3697.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3698. $as_echo "no" >&6; }
  3699.   SET_MAKE="MAKE=${MAKE-make}"
  3700. fi
  3701.  
  3702. rm -rf .tst 2>/dev/null
  3703. mkdir .tst 2>/dev/null
  3704. if test -d .tst; then
  3705.   am__leading_dot=.
  3706. else
  3707.   am__leading_dot=_
  3708. fi
  3709. rmdir .tst 2>/dev/null
  3710.  
  3711. # Check whether --enable-silent-rules was given.
  3712. if test "${enable_silent_rules+set}" = set; then :
  3713.   enableval=$enable_silent_rules;
  3714. fi
  3715.  
  3716. case $enable_silent_rules in # (((
  3717.   yes) AM_DEFAULT_VERBOSITY=0;;
  3718.    no) AM_DEFAULT_VERBOSITY=1;;
  3719.     *) AM_DEFAULT_VERBOSITY=1;;
  3720. esac
  3721. am_make=${MAKE-make}
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3723. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3724. if ${am_cv_make_support_nested_variables+:} false; then :
  3725.   $as_echo_n "(cached) " >&6
  3726. else
  3727.   if $as_echo 'TRUE=$(BAR$(V))
  3728. BAR0=false
  3729. BAR1=true
  3730. V=1
  3731. am__doit:
  3732.         @$(TRUE)
  3733. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3734.   am_cv_make_support_nested_variables=yes
  3735. else
  3736.   am_cv_make_support_nested_variables=no
  3737. fi
  3738. fi
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3740. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3741. if test $am_cv_make_support_nested_variables = yes; then
  3742.     AM_V='$(V)'
  3743.   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3744. else
  3745.   AM_V=$AM_DEFAULT_VERBOSITY
  3746.   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3747. fi
  3748. AM_BACKSLASH='\'
  3749.  
  3750. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3751.   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3752.   # is not polluted with repeated "-I."
  3753.   am__isrc=' -I$(srcdir)'
  3754.   # test to see if srcdir already configured
  3755.   if test -f $srcdir/config.status; then
  3756.     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3757.   fi
  3758. fi
  3759.  
  3760. # test whether we have cygpath
  3761. if test -z "$CYGPATH_W"; then
  3762.   if (cygpath --version) >/dev/null 2>/dev/null; then
  3763.     CYGPATH_W='cygpath -w'
  3764.   else
  3765.     CYGPATH_W=echo
  3766.   fi
  3767. fi
  3768.  
  3769.  
  3770. # Define the identity of the package.
  3771.  PACKAGE='mesa'
  3772.  VERSION='10.6.0-rc2'
  3773.  
  3774.  
  3775. cat >>confdefs.h <<_ACEOF
  3776. #define PACKAGE "$PACKAGE"
  3777. _ACEOF
  3778.  
  3779.  
  3780. cat >>confdefs.h <<_ACEOF
  3781. #define VERSION "$VERSION"
  3782. _ACEOF
  3783.  
  3784. # Some tools Automake needs.
  3785.  
  3786. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3787.  
  3788.  
  3789. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3790.  
  3791.  
  3792. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3793.  
  3794.  
  3795. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3796.  
  3797.  
  3798. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3799.  
  3800. # For better backward compatibility.  To be removed once Automake 1.9.x
  3801. # dies out for good.  For more background, see:
  3802. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3803. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3804. mkdir_p='$(MKDIR_P)'
  3805.  
  3806. # We need awk for the "check" target (and possibly the TAP driver).  The
  3807. # system "awk" is bad on some platforms.
  3808. # Always define AMTAR for backward compatibility.  Yes, it's still used
  3809. # in the wild :-(  We should find a proper way to deprecate it ...
  3810. AMTAR='$${TAR-tar}'
  3811.  
  3812.  
  3813. # We'll loop over all known methods to create a tar archive until one works.
  3814. _am_tools='gnutar plaintar pax cpio none'
  3815.  
  3816. # The POSIX 1988 'ustar' format is defined with fixed-size fields.
  3817.       # There is notably a 21 bits limit for the UID and the GID.  In fact,
  3818.       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  3819.       # and bug#13588).
  3820.       am_max_uid=2097151 # 2^21 - 1
  3821.       am_max_gid=$am_max_uid
  3822.       # The $UID and $GID variables are not portable, so we need to resort
  3823.       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
  3824.       # below are definitely unexpected, so allow the users to see them
  3825.       # (that is, avoid stderr redirection).
  3826.       am_uid=`id -u || echo unknown`
  3827.       am_gid=`id -g || echo unknown`
  3828.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
  3829. $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
  3830.       if test $am_uid -le $am_max_uid; then
  3831.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3832. $as_echo "yes" >&6; }
  3833.       else
  3834.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3835. $as_echo "no" >&6; }
  3836.          _am_tools=none
  3837.       fi
  3838.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
  3839. $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
  3840.       if test $am_gid -le $am_max_gid; then
  3841.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3842. $as_echo "yes" >&6; }
  3843.       else
  3844.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3845. $as_echo "no" >&6; }
  3846.         _am_tools=none
  3847.       fi
  3848.  
  3849.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
  3850. $as_echo_n "checking how to create a ustar tar archive... " >&6; }
  3851.  
  3852.   # Go ahead even if we have the value already cached.  We do so because we
  3853.   # need to set the values for the 'am__tar' and 'am__untar' variables.
  3854.   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
  3855.  
  3856.   for _am_tool in $_am_tools; do
  3857.     case $_am_tool in
  3858.     gnutar)
  3859.       for _am_tar in tar gnutar gtar; do
  3860.         { echo "$as_me:$LINENO: $_am_tar --version" >&5
  3861.    ($_am_tar --version) >&5 2>&5
  3862.    ac_status=$?
  3863.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3864.    (exit $ac_status); } && break
  3865.       done
  3866.       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
  3867.       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
  3868.       am__untar="$_am_tar -xf -"
  3869.       ;;
  3870.     plaintar)
  3871.       # Must skip GNU tar: if it does not support --format= it doesn't create
  3872.       # ustar tarball either.
  3873.       (tar --version) >/dev/null 2>&1 && continue
  3874.       am__tar='tar chf - "$$tardir"'
  3875.       am__tar_='tar chf - "$tardir"'
  3876.       am__untar='tar xf -'
  3877.       ;;
  3878.     pax)
  3879.       am__tar='pax -L -x ustar -w "$$tardir"'
  3880.       am__tar_='pax -L -x ustar -w "$tardir"'
  3881.       am__untar='pax -r'
  3882.       ;;
  3883.     cpio)
  3884.       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
  3885.       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
  3886.       am__untar='cpio -i -H ustar -d'
  3887.       ;;
  3888.     none)
  3889.       am__tar=false
  3890.       am__tar_=false
  3891.       am__untar=false
  3892.       ;;
  3893.     esac
  3894.  
  3895.     # If the value was cached, stop now.  We just wanted to have am__tar
  3896.     # and am__untar set.
  3897.     test -n "${am_cv_prog_tar_ustar}" && break
  3898.  
  3899.     # tar/untar a dummy directory, and stop if the command works.
  3900.     rm -rf conftest.dir
  3901.     mkdir conftest.dir
  3902.     echo GrepMe > conftest.dir/file
  3903.     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  3904.    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  3905.    ac_status=$?
  3906.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3907.    (exit $ac_status); }
  3908.     rm -rf conftest.dir
  3909.     if test -s conftest.tar; then
  3910.       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  3911.    ($am__untar <conftest.tar) >&5 2>&5
  3912.    ac_status=$?
  3913.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3914.    (exit $ac_status); }
  3915.       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  3916.    (cat conftest.dir/file) >&5 2>&5
  3917.    ac_status=$?
  3918.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3919.    (exit $ac_status); }
  3920.       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  3921.     fi
  3922.   done
  3923.   rm -rf conftest.dir
  3924.  
  3925.   if ${am_cv_prog_tar_ustar+:} false; then :
  3926.   $as_echo_n "(cached) " >&6
  3927. else
  3928.   am_cv_prog_tar_ustar=$_am_tool
  3929. fi
  3930.  
  3931.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
  3932. $as_echo "$am_cv_prog_tar_ustar" >&6; }
  3933.  
  3934.  
  3935.  
  3936.  
  3937.  
  3938.  
  3939. # POSIX will say in a future version that running "rm -f" with no argument
  3940. # is OK; and we want to be able to make that assumption in our Makefile
  3941. # recipes.  So use an aggressive probe to check that the usage we want is
  3942. # actually supported "in the wild" to an acceptable degree.
  3943. # See automake bug#10828.
  3944. # To make any issue more visible, cause the running configure to be aborted
  3945. # by default if the 'rm' program in use doesn't match our expectations; the
  3946. # user can still override this though.
  3947. if rm -f && rm -fr && rm -rf; then : OK; else
  3948.   cat >&2 <<'END'
  3949. Oops!
  3950.  
  3951. Your 'rm' program seems unable to run without file operands specified
  3952. on the command line, even when the '-f' option is present.  This is contrary
  3953. to the behaviour of most rm programs out there, and not conforming with
  3954. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3955.  
  3956. Please tell bug-automake@gnu.org about your system, including the value
  3957. of your $PATH and any error possibly output before this message.  This
  3958. can help us improve future automake versions.
  3959.  
  3960. END
  3961.   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3962.     echo 'Configuration will proceed anyway, since you have set the' >&2
  3963.     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3964.     echo >&2
  3965.   else
  3966.     cat >&2 <<'END'
  3967. Aborting the configuration process, to ensure you take notice of the issue.
  3968.  
  3969. You can download and install GNU coreutils to get an 'rm' implementation
  3970. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3971.  
  3972. If you want to complete the configuration process using your problematic
  3973. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3974. to "yes", and re-run configure.
  3975.  
  3976. END
  3977.     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3978.   fi
  3979. fi
  3980.  
  3981.  
  3982. case "$host_os" in
  3983. mingw*)
  3984.     as_fn_error $? "MinGW build not supported through autoconf/automake, use SCons instead" "$LINENO" 5
  3985.     ;;
  3986. esac
  3987.  
  3988. # Support silent build rules, requires at least automake-1.11. Disable
  3989. # by either passing --disable-silent-rules to configure or passing V=1
  3990. # to make
  3991. # Check whether --enable-silent-rules was given.
  3992. if test "${enable_silent_rules+set}" = set; then :
  3993.   enableval=$enable_silent_rules;
  3994. fi
  3995.  
  3996. case $enable_silent_rules in # (((
  3997.   yes) AM_DEFAULT_VERBOSITY=0;;
  3998.    no) AM_DEFAULT_VERBOSITY=1;;
  3999.     *) AM_DEFAULT_VERBOSITY=0;;
  4000. esac
  4001. am_make=${MAKE-make}
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  4003. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  4004. if ${am_cv_make_support_nested_variables+:} false; then :
  4005.   $as_echo_n "(cached) " >&6
  4006. else
  4007.   if $as_echo 'TRUE=$(BAR$(V))
  4008. BAR0=false
  4009. BAR1=true
  4010. V=1
  4011. am__doit:
  4012.         @$(TRUE)
  4013. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  4014.   am_cv_make_support_nested_variables=yes
  4015. else
  4016.   am_cv_make_support_nested_variables=no
  4017. fi
  4018. fi
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  4020. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  4021. if test $am_cv_make_support_nested_variables = yes; then
  4022.     AM_V='$(V)'
  4023.   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  4024. else
  4025.   AM_V=$AM_DEFAULT_VERBOSITY
  4026.   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  4027. fi
  4028. AM_BACKSLASH='\'
  4029.  
  4030.  
  4031. DEPDIR="${am__leading_dot}deps"
  4032.  
  4033. ac_config_commands="$ac_config_commands depfiles"
  4034.  
  4035.  
  4036. am_make=${MAKE-make}
  4037. cat > confinc << 'END'
  4038. am__doit:
  4039.         @echo this is the am__doit target
  4040. .PHONY: am__doit
  4041. END
  4042. # If we don't find an include directive, just comment out the code.
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  4044. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  4045. am__include="#"
  4046. am__quote=
  4047. _am_result=none
  4048. # First try GNU make style include.
  4049. echo "include confinc" > confmf
  4050. # Ignore all kinds of additional output from 'make'.
  4051. case `$am_make -s -f confmf 2> /dev/null` in #(
  4052. *the\ am__doit\ target*)
  4053.   am__include=include
  4054.   am__quote=
  4055.   _am_result=GNU
  4056.   ;;
  4057. esac
  4058. # Now try BSD make style include.
  4059. if test "$am__include" = "#"; then
  4060.    echo '.include "confinc"' > confmf
  4061.    case `$am_make -s -f confmf 2> /dev/null` in #(
  4062.    *the\ am__doit\ target*)
  4063.      am__include=.include
  4064.      am__quote="\""
  4065.      _am_result=BSD
  4066.      ;;
  4067.    esac
  4068. fi
  4069.  
  4070.  
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  4072. $as_echo "$_am_result" >&6; }
  4073. rm -f confinc confmf
  4074.  
  4075. # Check whether --enable-dependency-tracking was given.
  4076. if test "${enable_dependency_tracking+set}" = set; then :
  4077.   enableval=$enable_dependency_tracking;
  4078. fi
  4079.  
  4080. if test "x$enable_dependency_tracking" != xno; then
  4081.   am_depcomp="$ac_aux_dir/depcomp"
  4082.   AMDEPBACKSLASH='\'
  4083.   am__nodep='_no'
  4084. fi
  4085.  if test "x$enable_dependency_tracking" != xno; then
  4086.   AMDEP_TRUE=
  4087.   AMDEP_FALSE='#'
  4088. else
  4089.   AMDEP_TRUE='#'
  4090.   AMDEP_FALSE=
  4091. fi
  4092.  
  4093.  
  4094. ac_ext=c
  4095. ac_cpp='$CPP $CPPFLAGS'
  4096. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4097. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4098. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4099. if test -n "$ac_tool_prefix"; then
  4100.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4101. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4103. $as_echo_n "checking for $ac_word... " >&6; }
  4104. if ${ac_cv_prog_CC+:} false; then :
  4105.   $as_echo_n "(cached) " >&6
  4106. else
  4107.   if test -n "$CC"; then
  4108.   ac_cv_prog_CC="$CC" # Let the user override the test.
  4109. else
  4110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4111. for as_dir in $PATH
  4112. do
  4113.   IFS=$as_save_IFS
  4114.   test -z "$as_dir" && as_dir=.
  4115.     for ac_exec_ext in '' $ac_executable_extensions; do
  4116.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4117.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4118.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4119.     break 2
  4120.   fi
  4121. done
  4122.   done
  4123. IFS=$as_save_IFS
  4124.  
  4125. fi
  4126. fi
  4127. CC=$ac_cv_prog_CC
  4128. if test -n "$CC"; then
  4129.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4130. $as_echo "$CC" >&6; }
  4131. else
  4132.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4133. $as_echo "no" >&6; }
  4134. fi
  4135.  
  4136.  
  4137. fi
  4138. if test -z "$ac_cv_prog_CC"; then
  4139.   ac_ct_CC=$CC
  4140.   # Extract the first word of "gcc", so it can be a program name with args.
  4141. set dummy gcc; ac_word=$2
  4142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4143. $as_echo_n "checking for $ac_word... " >&6; }
  4144. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4145.   $as_echo_n "(cached) " >&6
  4146. else
  4147.   if test -n "$ac_ct_CC"; then
  4148.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4149. else
  4150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4151. for as_dir in $PATH
  4152. do
  4153.   IFS=$as_save_IFS
  4154.   test -z "$as_dir" && as_dir=.
  4155.     for ac_exec_ext in '' $ac_executable_extensions; do
  4156.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4157.     ac_cv_prog_ac_ct_CC="gcc"
  4158.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4159.     break 2
  4160.   fi
  4161. done
  4162.   done
  4163. IFS=$as_save_IFS
  4164.  
  4165. fi
  4166. fi
  4167. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4168. if test -n "$ac_ct_CC"; then
  4169.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4170. $as_echo "$ac_ct_CC" >&6; }
  4171. else
  4172.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4173. $as_echo "no" >&6; }
  4174. fi
  4175.  
  4176.   if test "x$ac_ct_CC" = x; then
  4177.     CC=""
  4178.   else
  4179.     case $cross_compiling:$ac_tool_warned in
  4180. yes:)
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4182. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4183. ac_tool_warned=yes ;;
  4184. esac
  4185.     CC=$ac_ct_CC
  4186.   fi
  4187. else
  4188.   CC="$ac_cv_prog_CC"
  4189. fi
  4190.  
  4191. if test -z "$CC"; then
  4192.           if test -n "$ac_tool_prefix"; then
  4193.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4194. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4196. $as_echo_n "checking for $ac_word... " >&6; }
  4197. if ${ac_cv_prog_CC+:} false; then :
  4198.   $as_echo_n "(cached) " >&6
  4199. else
  4200.   if test -n "$CC"; then
  4201.   ac_cv_prog_CC="$CC" # Let the user override the test.
  4202. else
  4203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4204. for as_dir in $PATH
  4205. do
  4206.   IFS=$as_save_IFS
  4207.   test -z "$as_dir" && as_dir=.
  4208.     for ac_exec_ext in '' $ac_executable_extensions; do
  4209.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4210.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  4211.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4212.     break 2
  4213.   fi
  4214. done
  4215.   done
  4216. IFS=$as_save_IFS
  4217.  
  4218. fi
  4219. fi
  4220. CC=$ac_cv_prog_CC
  4221. if test -n "$CC"; then
  4222.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4223. $as_echo "$CC" >&6; }
  4224. else
  4225.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4226. $as_echo "no" >&6; }
  4227. fi
  4228.  
  4229.  
  4230.   fi
  4231. fi
  4232. if test -z "$CC"; then
  4233.   # Extract the first word of "cc", so it can be a program name with args.
  4234. set dummy cc; ac_word=$2
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4236. $as_echo_n "checking for $ac_word... " >&6; }
  4237. if ${ac_cv_prog_CC+:} false; then :
  4238.   $as_echo_n "(cached) " >&6
  4239. else
  4240.   if test -n "$CC"; then
  4241.   ac_cv_prog_CC="$CC" # Let the user override the test.
  4242. else
  4243.   ac_prog_rejected=no
  4244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4245. for as_dir in $PATH
  4246. do
  4247.   IFS=$as_save_IFS
  4248.   test -z "$as_dir" && as_dir=.
  4249.     for ac_exec_ext in '' $ac_executable_extensions; do
  4250.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4251.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4252.        ac_prog_rejected=yes
  4253.        continue
  4254.      fi
  4255.     ac_cv_prog_CC="cc"
  4256.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4257.     break 2
  4258.   fi
  4259. done
  4260.   done
  4261. IFS=$as_save_IFS
  4262.  
  4263. if test $ac_prog_rejected = yes; then
  4264.   # We found a bogon in the path, so make sure we never use it.
  4265.   set dummy $ac_cv_prog_CC
  4266.   shift
  4267.   if test $# != 0; then
  4268.     # We chose a different compiler from the bogus one.
  4269.     # However, it has the same basename, so the bogon will be chosen
  4270.     # first if we set CC to just the basename; use the full file name.
  4271.     shift
  4272.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4273.   fi
  4274. fi
  4275. fi
  4276. fi
  4277. CC=$ac_cv_prog_CC
  4278. if test -n "$CC"; then
  4279.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4280. $as_echo "$CC" >&6; }
  4281. else
  4282.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4283. $as_echo "no" >&6; }
  4284. fi
  4285.  
  4286.  
  4287. fi
  4288. if test -z "$CC"; then
  4289.   if test -n "$ac_tool_prefix"; then
  4290.   for ac_prog in cl.exe
  4291.   do
  4292.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4293. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4295. $as_echo_n "checking for $ac_word... " >&6; }
  4296. if ${ac_cv_prog_CC+:} false; then :
  4297.   $as_echo_n "(cached) " >&6
  4298. else
  4299.   if test -n "$CC"; then
  4300.   ac_cv_prog_CC="$CC" # Let the user override the test.
  4301. else
  4302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4303. for as_dir in $PATH
  4304. do
  4305.   IFS=$as_save_IFS
  4306.   test -z "$as_dir" && as_dir=.
  4307.     for ac_exec_ext in '' $ac_executable_extensions; do
  4308.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4309.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4310.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4311.     break 2
  4312.   fi
  4313. done
  4314.   done
  4315. IFS=$as_save_IFS
  4316.  
  4317. fi
  4318. fi
  4319. CC=$ac_cv_prog_CC
  4320. if test -n "$CC"; then
  4321.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4322. $as_echo "$CC" >&6; }
  4323. else
  4324.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4325. $as_echo "no" >&6; }
  4326. fi
  4327.  
  4328.  
  4329.     test -n "$CC" && break
  4330.   done
  4331. fi
  4332. if test -z "$CC"; then
  4333.   ac_ct_CC=$CC
  4334.   for ac_prog in cl.exe
  4335. do
  4336.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4337. set dummy $ac_prog; ac_word=$2
  4338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4339. $as_echo_n "checking for $ac_word... " >&6; }
  4340. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4341.   $as_echo_n "(cached) " >&6
  4342. else
  4343.   if test -n "$ac_ct_CC"; then
  4344.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4345. else
  4346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4347. for as_dir in $PATH
  4348. do
  4349.   IFS=$as_save_IFS
  4350.   test -z "$as_dir" && as_dir=.
  4351.     for ac_exec_ext in '' $ac_executable_extensions; do
  4352.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4353.     ac_cv_prog_ac_ct_CC="$ac_prog"
  4354.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4355.     break 2
  4356.   fi
  4357. done
  4358.   done
  4359. IFS=$as_save_IFS
  4360.  
  4361. fi
  4362. fi
  4363. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4364. if test -n "$ac_ct_CC"; then
  4365.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4366. $as_echo "$ac_ct_CC" >&6; }
  4367. else
  4368.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4369. $as_echo "no" >&6; }
  4370. fi
  4371.  
  4372.  
  4373.   test -n "$ac_ct_CC" && break
  4374. done
  4375.  
  4376.   if test "x$ac_ct_CC" = x; then
  4377.     CC=""
  4378.   else
  4379.     case $cross_compiling:$ac_tool_warned in
  4380. yes:)
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4382. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4383. ac_tool_warned=yes ;;
  4384. esac
  4385.     CC=$ac_ct_CC
  4386.   fi
  4387. fi
  4388.  
  4389. fi
  4390.  
  4391.  
  4392. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4393. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4394. as_fn_error $? "no acceptable C compiler found in \$PATH
  4395. See \`config.log' for more details" "$LINENO" 5; }
  4396.  
  4397. # Provide some information about the compiler.
  4398. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4399. set X $ac_compile
  4400. ac_compiler=$2
  4401. for ac_option in --version -v -V -qversion; do
  4402.   { { ac_try="$ac_compiler $ac_option >&5"
  4403. case "(($ac_try" in
  4404.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4405.   *) ac_try_echo=$ac_try;;
  4406. esac
  4407. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4408. $as_echo "$ac_try_echo"; } >&5
  4409.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4410.   ac_status=$?
  4411.   if test -s conftest.err; then
  4412.     sed '10a\
  4413. ... rest of stderr output deleted ...
  4414.          10q' conftest.err >conftest.er1
  4415.     cat conftest.er1 >&5
  4416.   fi
  4417.   rm -f conftest.er1 conftest.err
  4418.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4419.   test $ac_status = 0; }
  4420. done
  4421.  
  4422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4423. /* end confdefs.h.  */
  4424.  
  4425. int
  4426. main ()
  4427. {
  4428.  
  4429.   ;
  4430.   return 0;
  4431. }
  4432. _ACEOF
  4433. ac_clean_files_save=$ac_clean_files
  4434. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4435. # Try to create an executable without -o first, disregard a.out.
  4436. # It will help us diagnose broken compilers, and finding out an intuition
  4437. # of exeext.
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4439. $as_echo_n "checking whether the C compiler works... " >&6; }
  4440. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4441.  
  4442. # The possible output files:
  4443. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4444.  
  4445. ac_rmfiles=
  4446. for ac_file in $ac_files
  4447. do
  4448.   case $ac_file in
  4449.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4450.     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4451.   esac
  4452. done
  4453. rm -f $ac_rmfiles
  4454.  
  4455. if { { ac_try="$ac_link_default"
  4456. case "(($ac_try" in
  4457.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4458.   *) ac_try_echo=$ac_try;;
  4459. esac
  4460. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4461. $as_echo "$ac_try_echo"; } >&5
  4462.   (eval "$ac_link_default") 2>&5
  4463.   ac_status=$?
  4464.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4465.   test $ac_status = 0; }; then :
  4466.   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4467. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4468. # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  4469. # so that the user can short-circuit this test for compilers unknown to
  4470. # Autoconf.
  4471. for ac_file in $ac_files ''
  4472. do
  4473.   test -f "$ac_file" || continue
  4474.   case $ac_file in
  4475.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4476.         ;;
  4477.     [ab].out )
  4478.         # We found the default executable, but exeext='' is most
  4479.         # certainly right.
  4480.         break;;
  4481.     *.* )
  4482.         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  4483.         then :; else
  4484.            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4485.         fi
  4486.         # We set ac_cv_exeext here because the later test for it is not
  4487.         # safe: cross compilers may not add the suffix if given an `-o'
  4488.         # argument, so we may need to know it at that point already.
  4489.         # Even if this section looks crufty: it has the advantage of
  4490.         # actually working.
  4491.         break;;
  4492.     * )
  4493.         break;;
  4494.   esac
  4495. done
  4496. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4497.  
  4498. else
  4499.   ac_file=''
  4500. fi
  4501. if test -z "$ac_file"; then :
  4502.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4503. $as_echo "no" >&6; }
  4504. $as_echo "$as_me: failed program was:" >&5
  4505. sed 's/^/| /' conftest.$ac_ext >&5
  4506.  
  4507. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4508. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4509. as_fn_error 77 "C compiler cannot create executables
  4510. See \`config.log' for more details" "$LINENO" 5; }
  4511. else
  4512.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4513. $as_echo "yes" >&6; }
  4514. fi
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4516. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4518. $as_echo "$ac_file" >&6; }
  4519. ac_exeext=$ac_cv_exeext
  4520.  
  4521. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4522. ac_clean_files=$ac_clean_files_save
  4523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4524. $as_echo_n "checking for suffix of executables... " >&6; }
  4525. if { { ac_try="$ac_link"
  4526. case "(($ac_try" in
  4527.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4528.   *) ac_try_echo=$ac_try;;
  4529. esac
  4530. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4531. $as_echo "$ac_try_echo"; } >&5
  4532.   (eval "$ac_link") 2>&5
  4533.   ac_status=$?
  4534.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4535.   test $ac_status = 0; }; then :
  4536.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4537. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  4538. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4539. # `rm'.
  4540. for ac_file in conftest.exe conftest conftest.*; do
  4541.   test -f "$ac_file" || continue
  4542.   case $ac_file in
  4543.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4544.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4545.           break;;
  4546.     * ) break;;
  4547.   esac
  4548. done
  4549. else
  4550.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4551. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4552. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4553. See \`config.log' for more details" "$LINENO" 5; }
  4554. fi
  4555. rm -f conftest conftest$ac_cv_exeext
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4557. $as_echo "$ac_cv_exeext" >&6; }
  4558.  
  4559. rm -f conftest.$ac_ext
  4560. EXEEXT=$ac_cv_exeext
  4561. ac_exeext=$EXEEXT
  4562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4563. /* end confdefs.h.  */
  4564. #include <stdio.h>
  4565. int
  4566. main ()
  4567. {
  4568. FILE *f = fopen ("conftest.out", "w");
  4569.  return ferror (f) || fclose (f) != 0;
  4570.  
  4571.   ;
  4572.   return 0;
  4573. }
  4574. _ACEOF
  4575. ac_clean_files="$ac_clean_files conftest.out"
  4576. # Check that the compiler produces executables we can run.  If not, either
  4577. # the compiler is broken, or we cross compile.
  4578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4579. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4580. if test "$cross_compiling" != yes; then
  4581.   { { ac_try="$ac_link"
  4582. case "(($ac_try" in
  4583.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4584.   *) ac_try_echo=$ac_try;;
  4585. esac
  4586. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4587. $as_echo "$ac_try_echo"; } >&5
  4588.   (eval "$ac_link") 2>&5
  4589.   ac_status=$?
  4590.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4591.   test $ac_status = 0; }
  4592.   if { ac_try='./conftest$ac_cv_exeext'
  4593.   { { case "(($ac_try" in
  4594.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4595.   *) ac_try_echo=$ac_try;;
  4596. esac
  4597. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4598. $as_echo "$ac_try_echo"; } >&5
  4599.   (eval "$ac_try") 2>&5
  4600.   ac_status=$?
  4601.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4602.   test $ac_status = 0; }; }; then
  4603.     cross_compiling=no
  4604.   else
  4605.     if test "$cross_compiling" = maybe; then
  4606.         cross_compiling=yes
  4607.     else
  4608.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4609. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4610. as_fn_error $? "cannot run C compiled programs.
  4611. If you meant to cross compile, use \`--host'.
  4612. See \`config.log' for more details" "$LINENO" 5; }
  4613.     fi
  4614.   fi
  4615. fi
  4616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4617. $as_echo "$cross_compiling" >&6; }
  4618.  
  4619. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4620. ac_clean_files=$ac_clean_files_save
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4622. $as_echo_n "checking for suffix of object files... " >&6; }
  4623. if ${ac_cv_objext+:} false; then :
  4624.   $as_echo_n "(cached) " >&6
  4625. else
  4626.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4627. /* end confdefs.h.  */
  4628.  
  4629. int
  4630. main ()
  4631. {
  4632.  
  4633.   ;
  4634.   return 0;
  4635. }
  4636. _ACEOF
  4637. rm -f conftest.o conftest.obj
  4638. if { { ac_try="$ac_compile"
  4639. case "(($ac_try" in
  4640.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4641.   *) ac_try_echo=$ac_try;;
  4642. esac
  4643. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4644. $as_echo "$ac_try_echo"; } >&5
  4645.   (eval "$ac_compile") 2>&5
  4646.   ac_status=$?
  4647.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4648.   test $ac_status = 0; }; then :
  4649.   for ac_file in conftest.o conftest.obj conftest.*; do
  4650.   test -f "$ac_file" || continue;
  4651.   case $ac_file in
  4652.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4653.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4654.        break;;
  4655.   esac
  4656. done
  4657. else
  4658.   $as_echo "$as_me: failed program was:" >&5
  4659. sed 's/^/| /' conftest.$ac_ext >&5
  4660.  
  4661. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4662. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4663. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4664. See \`config.log' for more details" "$LINENO" 5; }
  4665. fi
  4666. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4667. fi
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4669. $as_echo "$ac_cv_objext" >&6; }
  4670. OBJEXT=$ac_cv_objext
  4671. ac_objext=$OBJEXT
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4673. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4674. if ${ac_cv_c_compiler_gnu+:} false; then :
  4675.   $as_echo_n "(cached) " >&6
  4676. else
  4677.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4678. /* end confdefs.h.  */
  4679.  
  4680. int
  4681. main ()
  4682. {
  4683. #ifndef __GNUC__
  4684.        choke me
  4685. #endif
  4686.  
  4687.   ;
  4688.   return 0;
  4689. }
  4690. _ACEOF
  4691. if ac_fn_c_try_compile "$LINENO"; then :
  4692.   ac_compiler_gnu=yes
  4693. else
  4694.   ac_compiler_gnu=no
  4695. fi
  4696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4697. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4698.  
  4699. fi
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4701. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4702. if test $ac_compiler_gnu = yes; then
  4703.   GCC=yes
  4704. else
  4705.   GCC=
  4706. fi
  4707. ac_test_CFLAGS=${CFLAGS+set}
  4708. ac_save_CFLAGS=$CFLAGS
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4710. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4711. if ${ac_cv_prog_cc_g+:} false; then :
  4712.   $as_echo_n "(cached) " >&6
  4713. else
  4714.   ac_save_c_werror_flag=$ac_c_werror_flag
  4715.    ac_c_werror_flag=yes
  4716.    ac_cv_prog_cc_g=no
  4717.    CFLAGS="-g"
  4718.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4719. /* end confdefs.h.  */
  4720.  
  4721. int
  4722. main ()
  4723. {
  4724.  
  4725.   ;
  4726.   return 0;
  4727. }
  4728. _ACEOF
  4729. if ac_fn_c_try_compile "$LINENO"; then :
  4730.   ac_cv_prog_cc_g=yes
  4731. else
  4732.   CFLAGS=""
  4733.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4734. /* end confdefs.h.  */
  4735.  
  4736. int
  4737. main ()
  4738. {
  4739.  
  4740.   ;
  4741.   return 0;
  4742. }
  4743. _ACEOF
  4744. if ac_fn_c_try_compile "$LINENO"; then :
  4745.  
  4746. else
  4747.   ac_c_werror_flag=$ac_save_c_werror_flag
  4748.          CFLAGS="-g"
  4749.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4750. /* end confdefs.h.  */
  4751.  
  4752. int
  4753. main ()
  4754. {
  4755.  
  4756.   ;
  4757.   return 0;
  4758. }
  4759. _ACEOF
  4760. if ac_fn_c_try_compile "$LINENO"; then :
  4761.   ac_cv_prog_cc_g=yes
  4762. fi
  4763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4764. fi
  4765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4766. fi
  4767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4768.    ac_c_werror_flag=$ac_save_c_werror_flag
  4769. fi
  4770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4771. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4772. if test "$ac_test_CFLAGS" = set; then
  4773.   CFLAGS=$ac_save_CFLAGS
  4774. elif test $ac_cv_prog_cc_g = yes; then
  4775.   if test "$GCC" = yes; then
  4776.     CFLAGS="-g -O2"
  4777.   else
  4778.     CFLAGS="-g"
  4779.   fi
  4780. else
  4781.   if test "$GCC" = yes; then
  4782.     CFLAGS="-O2"
  4783.   else
  4784.     CFLAGS=
  4785.   fi
  4786. fi
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4788. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4789. if ${ac_cv_prog_cc_c89+:} false; then :
  4790.   $as_echo_n "(cached) " >&6
  4791. else
  4792.   ac_cv_prog_cc_c89=no
  4793. ac_save_CC=$CC
  4794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4795. /* end confdefs.h.  */
  4796. #include <stdarg.h>
  4797. #include <stdio.h>
  4798. struct stat;
  4799. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4800. struct buf { int x; };
  4801. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4802. static char *e (p, i)
  4803.      char **p;
  4804.      int i;
  4805. {
  4806.   return p[i];
  4807. }
  4808. static char *f (char * (*g) (char **, int), char **p, ...)
  4809. {
  4810.   char *s;
  4811.   va_list v;
  4812.   va_start (v,p);
  4813.   s = g (p, va_arg (v,int));
  4814.   va_end (v);
  4815.   return s;
  4816. }
  4817.  
  4818. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  4819.    function prototypes and stuff, but not '\xHH' hex character constants.
  4820.    These don't provoke an error unfortunately, instead are silently treated
  4821.    as 'x'.  The following induces an error, until -std is added to get
  4822.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  4823.    array size at least.  It's necessary to write '\x00'==0 to get something
  4824.    that's true only with -std.  */
  4825. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4826.  
  4827. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4828.    inside strings and character constants.  */
  4829. #define FOO(x) 'x'
  4830. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4831.  
  4832. int test (int i, double x);
  4833. struct s1 {int (*f) (int a);};
  4834. struct s2 {int (*f) (double a);};
  4835. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4836. int argc;
  4837. char **argv;
  4838. int
  4839. main ()
  4840. {
  4841. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  4842.   ;
  4843.   return 0;
  4844. }
  4845. _ACEOF
  4846. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4847.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4848. do
  4849.   CC="$ac_save_CC $ac_arg"
  4850.   if ac_fn_c_try_compile "$LINENO"; then :
  4851.   ac_cv_prog_cc_c89=$ac_arg
  4852. fi
  4853. rm -f core conftest.err conftest.$ac_objext
  4854.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  4855. done
  4856. rm -f conftest.$ac_ext
  4857. CC=$ac_save_CC
  4858.  
  4859. fi
  4860. # AC_CACHE_VAL
  4861. case "x$ac_cv_prog_cc_c89" in
  4862.   x)
  4863.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4864. $as_echo "none needed" >&6; } ;;
  4865.   xno)
  4866.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4867. $as_echo "unsupported" >&6; } ;;
  4868.   *)
  4869.     CC="$CC $ac_cv_prog_cc_c89"
  4870.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4871. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4872. esac
  4873. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4874.  
  4875. fi
  4876.  
  4877. ac_ext=c
  4878. ac_cpp='$CPP $CPPFLAGS'
  4879. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4880. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4881. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4882.  
  4883. ac_ext=c
  4884. ac_cpp='$CPP $CPPFLAGS'
  4885. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4886. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4887. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4889. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4890. if ${am_cv_prog_cc_c_o+:} false; then :
  4891.   $as_echo_n "(cached) " >&6
  4892. else
  4893.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4894. /* end confdefs.h.  */
  4895.  
  4896. int
  4897. main ()
  4898. {
  4899.  
  4900.   ;
  4901.   return 0;
  4902. }
  4903. _ACEOF
  4904.   # Make sure it works both with $CC and with simple cc.
  4905.   # Following AC_PROG_CC_C_O, we do the test twice because some
  4906.   # compilers refuse to overwrite an existing .o file with -o,
  4907.   # though they will create one.
  4908.   am_cv_prog_cc_c_o=yes
  4909.   for am_i in 1 2; do
  4910.     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4911.    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4912.    ac_status=$?
  4913.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4914.    (exit $ac_status); } \
  4915.          && test -f conftest2.$ac_objext; then
  4916.       : OK
  4917.     else
  4918.       am_cv_prog_cc_c_o=no
  4919.       break
  4920.     fi
  4921.   done
  4922.   rm -f core conftest*
  4923.   unset am_i
  4924. fi
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4926. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4927. if test "$am_cv_prog_cc_c_o" != yes; then
  4928.    # Losing compiler, so override with the script.
  4929.    # FIXME: It is wrong to rewrite CC.
  4930.    # But if we don't then we get into trouble of one sort or another.
  4931.    # A longer-term fix would be to have automake use am__CC in this case,
  4932.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4933.    CC="$am_aux_dir/compile $CC"
  4934. fi
  4935. ac_ext=c
  4936. ac_cpp='$CPP $CPPFLAGS'
  4937. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4938. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4939. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4940.  
  4941.  
  4942. depcc="$CC"   am_compiler_list=
  4943.  
  4944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4945. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4946. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4947.   $as_echo_n "(cached) " >&6
  4948. else
  4949.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4950.   # We make a subdir and do the tests there.  Otherwise we can end up
  4951.   # making bogus files that we don't know about and never remove.  For
  4952.   # instance it was reported that on HP-UX the gcc test will end up
  4953.   # making a dummy file named 'D' -- because '-MD' means "put the output
  4954.   # in D".
  4955.   rm -rf conftest.dir
  4956.   mkdir conftest.dir
  4957.   # Copy depcomp to subdir because otherwise we won't find it if we're
  4958.   # using a relative directory.
  4959.   cp "$am_depcomp" conftest.dir
  4960.   cd conftest.dir
  4961.   # We will build objects and dependencies in a subdirectory because
  4962.   # it helps to detect inapplicable dependency modes.  For instance
  4963.   # both Tru64's cc and ICC support -MD to output dependencies as a
  4964.   # side effect of compilation, but ICC will put the dependencies in
  4965.   # the current directory while Tru64 will put them in the object
  4966.   # directory.
  4967.   mkdir sub
  4968.  
  4969.   am_cv_CC_dependencies_compiler_type=none
  4970.   if test "$am_compiler_list" = ""; then
  4971.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4972.   fi
  4973.   am__universal=false
  4974.   case " $depcc " in #(
  4975.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4976.      esac
  4977.  
  4978.   for depmode in $am_compiler_list; do
  4979.     # Setup a source with many dependencies, because some compilers
  4980.     # like to wrap large dependency lists on column 80 (with \), and
  4981.     # we should not choose a depcomp mode which is confused by this.
  4982.     #
  4983.     # We need to recreate these files for each test, as the compiler may
  4984.     # overwrite some of them when testing with obscure command lines.
  4985.     # This happens at least with the AIX C compiler.
  4986.     : > sub/conftest.c
  4987.     for i in 1 2 3 4 5 6; do
  4988.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4989.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4990.       # Solaris 10 /bin/sh.
  4991.       echo '/* dummy */' > sub/conftst$i.h
  4992.     done
  4993.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4994.  
  4995.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4996.     # mode.  It turns out that the SunPro C++ compiler does not properly
  4997.     # handle '-M -o', and we need to detect this.  Also, some Intel
  4998.     # versions had trouble with output in subdirs.
  4999.     am__obj=sub/conftest.${OBJEXT-o}
  5000.     am__minus_obj="-o $am__obj"
  5001.     case $depmode in
  5002.     gcc)
  5003.       # This depmode causes a compiler race in universal mode.
  5004.       test "$am__universal" = false || continue
  5005.       ;;
  5006.     nosideeffect)
  5007.       # After this tag, mechanisms are not by side-effect, so they'll
  5008.       # only be used when explicitly requested.
  5009.       if test "x$enable_dependency_tracking" = xyes; then
  5010.         continue
  5011.       else
  5012.         break
  5013.       fi
  5014.       ;;
  5015.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5016.       # This compiler won't grok '-c -o', but also, the minuso test has
  5017.       # not run yet.  These depmodes are late enough in the game, and
  5018.       # so weak that their functioning should not be impacted.
  5019.       am__obj=conftest.${OBJEXT-o}
  5020.       am__minus_obj=
  5021.       ;;
  5022.     none) break ;;
  5023.     esac
  5024.     if depmode=$depmode \
  5025.        source=sub/conftest.c object=$am__obj \
  5026.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5027.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5028.          >/dev/null 2>conftest.err &&
  5029.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5030.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5031.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5032.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5033.       # icc doesn't choke on unknown options, it will just issue warnings
  5034.       # or remarks (even with -Werror).  So we grep stderr for any message
  5035.       # that says an option was ignored or not supported.
  5036.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  5037.       #   icc: Command line warning: ignoring option '-M'; no argument required
  5038.       # The diagnosis changed in icc 8.0:
  5039.       #   icc: Command line remark: option '-MP' not supported
  5040.       if (grep 'ignoring option' conftest.err ||
  5041.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5042.         am_cv_CC_dependencies_compiler_type=$depmode
  5043.         break
  5044.       fi
  5045.     fi
  5046.   done
  5047.  
  5048.   cd ..
  5049.   rm -rf conftest.dir
  5050. else
  5051.   am_cv_CC_dependencies_compiler_type=none
  5052. fi
  5053.  
  5054. fi
  5055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5056. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5057. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5058.  
  5059.  if
  5060.   test "x$enable_dependency_tracking" != xno \
  5061.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5062.   am__fastdepCC_TRUE=
  5063.   am__fastdepCC_FALSE='#'
  5064. else
  5065.   am__fastdepCC_TRUE='#'
  5066.   am__fastdepCC_FALSE=
  5067. fi
  5068.  
  5069.  
  5070.  
  5071. if test -n "$ac_tool_prefix"; then
  5072.   for ac_prog in ar lib "link -lib"
  5073.   do
  5074.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5075. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5077. $as_echo_n "checking for $ac_word... " >&6; }
  5078. if ${ac_cv_prog_AR+:} false; then :
  5079.   $as_echo_n "(cached) " >&6
  5080. else
  5081.   if test -n "$AR"; then
  5082.   ac_cv_prog_AR="$AR" # Let the user override the test.
  5083. else
  5084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5085. for as_dir in $PATH
  5086. do
  5087.   IFS=$as_save_IFS
  5088.   test -z "$as_dir" && as_dir=.
  5089.     for ac_exec_ext in '' $ac_executable_extensions; do
  5090.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5091.     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5092.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5093.     break 2
  5094.   fi
  5095. done
  5096.   done
  5097. IFS=$as_save_IFS
  5098.  
  5099. fi
  5100. fi
  5101. AR=$ac_cv_prog_AR
  5102. if test -n "$AR"; then
  5103.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5104. $as_echo "$AR" >&6; }
  5105. else
  5106.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5107. $as_echo "no" >&6; }
  5108. fi
  5109.  
  5110.  
  5111.     test -n "$AR" && break
  5112.   done
  5113. fi
  5114. if test -z "$AR"; then
  5115.   ac_ct_AR=$AR
  5116.   for ac_prog in ar lib "link -lib"
  5117. do
  5118.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5119. set dummy $ac_prog; ac_word=$2
  5120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5121. $as_echo_n "checking for $ac_word... " >&6; }
  5122. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5123.   $as_echo_n "(cached) " >&6
  5124. else
  5125.   if test -n "$ac_ct_AR"; then
  5126.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5127. else
  5128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5129. for as_dir in $PATH
  5130. do
  5131.   IFS=$as_save_IFS
  5132.   test -z "$as_dir" && as_dir=.
  5133.     for ac_exec_ext in '' $ac_executable_extensions; do
  5134.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5135.     ac_cv_prog_ac_ct_AR="$ac_prog"
  5136.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5137.     break 2
  5138.   fi
  5139. done
  5140.   done
  5141. IFS=$as_save_IFS
  5142.  
  5143. fi
  5144. fi
  5145. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5146. if test -n "$ac_ct_AR"; then
  5147.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5148. $as_echo "$ac_ct_AR" >&6; }
  5149. else
  5150.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5151. $as_echo "no" >&6; }
  5152. fi
  5153.  
  5154.  
  5155.   test -n "$ac_ct_AR" && break
  5156. done
  5157.  
  5158.   if test "x$ac_ct_AR" = x; then
  5159.     AR="false"
  5160.   else
  5161.     case $cross_compiling:$ac_tool_warned in
  5162. yes:)
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5164. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5165. ac_tool_warned=yes ;;
  5166. esac
  5167.     AR=$ac_ct_AR
  5168.   fi
  5169. fi
  5170.  
  5171. : ${AR=ar}
  5172.  
  5173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  5174. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  5175. if ${am_cv_ar_interface+:} false; then :
  5176.   $as_echo_n "(cached) " >&6
  5177. else
  5178.   ac_ext=c
  5179. ac_cpp='$CPP $CPPFLAGS'
  5180. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5181. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5182. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5183.  
  5184.    am_cv_ar_interface=ar
  5185.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5186. /* end confdefs.h.  */
  5187. int some_variable = 0;
  5188. _ACEOF
  5189. if ac_fn_c_try_compile "$LINENO"; then :
  5190.   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  5191.       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  5192.   (eval $am_ar_try) 2>&5
  5193.   ac_status=$?
  5194.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5195.   test $ac_status = 0; }
  5196.       if test "$ac_status" -eq 0; then
  5197.         am_cv_ar_interface=ar
  5198.       else
  5199.         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  5200.         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  5201.   (eval $am_ar_try) 2>&5
  5202.   ac_status=$?
  5203.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5204.   test $ac_status = 0; }
  5205.         if test "$ac_status" -eq 0; then
  5206.           am_cv_ar_interface=lib
  5207.         else
  5208.           am_cv_ar_interface=unknown
  5209.         fi
  5210.       fi
  5211.       rm -f conftest.lib libconftest.a
  5212.  
  5213. fi
  5214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5215.    ac_ext=c
  5216. ac_cpp='$CPP $CPPFLAGS'
  5217. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5218. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5219. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5220.  
  5221. fi
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  5223. $as_echo "$am_cv_ar_interface" >&6; }
  5224.  
  5225. case $am_cv_ar_interface in
  5226. ar)
  5227.   ;;
  5228. lib)
  5229.   # Microsoft lib, so override with the ar-lib wrapper script.
  5230.   # FIXME: It is wrong to rewrite AR.
  5231.   # But if we don't then we get into trouble of one sort or another.
  5232.   # A longer-term fix would be to have automake use am__AR in this case,
  5233.   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  5234.   # similar.
  5235.   AR="$am_aux_dir/ar-lib $AR"
  5236.   ;;
  5237. unknown)
  5238.   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  5239.   ;;
  5240. esac
  5241.  
  5242.  
  5243. OSMESA_VERSION=8
  5244.  
  5245.  
  5246. LIBDRM_REQUIRED=2.4.38
  5247. LIBDRM_RADEON_REQUIRED=2.4.56
  5248. LIBDRM_INTEL_REQUIRED=2.4.60
  5249. LIBDRM_NVVIEUX_REQUIRED=2.4.33
  5250. LIBDRM_NOUVEAU_REQUIRED="2.4.33 libdrm >= 2.4.41"
  5251. LIBDRM_FREEDRENO_REQUIRED=2.4.57
  5252. DRI2PROTO_REQUIRED=2.6
  5253. DRI3PROTO_REQUIRED=1.0
  5254. PRESENTPROTO_REQUIRED=1.0
  5255. LIBUDEV_REQUIRED=151
  5256. GLPROTO_REQUIRED=1.4.14
  5257. LIBOMXIL_BELLAGIO_REQUIRED=0.0
  5258. LIBVA_REQUIRED=0.35.0
  5259. VDPAU_REQUIRED=0.4.1
  5260. WAYLAND_REQUIRED=1.2.0
  5261. XCB_REQUIRED=1.9.3
  5262. XCBDRI2_REQUIRED=1.8
  5263. XCBGLX_REQUIRED=1.8.1
  5264. XSHMFENCE_REQUIRED=1.1
  5265. XVMC_REQUIRED=1.0.6
  5266. PYTHON_MAKO_REQUIRED=0.3.4
  5267.  
  5268. ac_ext=c
  5269. ac_cpp='$CPP $CPPFLAGS'
  5270. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5271. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5272. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5274. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5275. # On Suns, sometimes $CPP names a directory.
  5276. if test -n "$CPP" && test -d "$CPP"; then
  5277.   CPP=
  5278. fi
  5279. if test -z "$CPP"; then
  5280.   if ${ac_cv_prog_CPP+:} false; then :
  5281.   $as_echo_n "(cached) " >&6
  5282. else
  5283.       # Double quotes because CPP needs to be expanded
  5284.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5285.     do
  5286.       ac_preproc_ok=false
  5287. for ac_c_preproc_warn_flag in '' yes
  5288. do
  5289.   # Use a header file that comes with gcc, so configuring glibc
  5290.   # with a fresh cross-compiler works.
  5291.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5292.   # <limits.h> exists even on freestanding compilers.
  5293.   # On the NeXT, cc -E runs the code through the compiler's parser,
  5294.   # not just through cpp. "Syntax error" is here to catch this case.
  5295.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5296. /* end confdefs.h.  */
  5297. #ifdef __STDC__
  5298. # include <limits.h>
  5299. #else
  5300. # include <assert.h>
  5301. #endif
  5302.                      Syntax error
  5303. _ACEOF
  5304. if ac_fn_c_try_cpp "$LINENO"; then :
  5305.  
  5306. else
  5307.   # Broken: fails on valid input.
  5308. continue
  5309. fi
  5310. rm -f conftest.err conftest.i conftest.$ac_ext
  5311.  
  5312.   # OK, works on sane cases.  Now check whether nonexistent headers
  5313.   # can be detected and how.
  5314.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5315. /* end confdefs.h.  */
  5316. #include <ac_nonexistent.h>
  5317. _ACEOF
  5318. if ac_fn_c_try_cpp "$LINENO"; then :
  5319.   # Broken: success on invalid input.
  5320. continue
  5321. else
  5322.   # Passes both tests.
  5323. ac_preproc_ok=:
  5324. break
  5325. fi
  5326. rm -f conftest.err conftest.i conftest.$ac_ext
  5327.  
  5328. done
  5329. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5330. rm -f conftest.i conftest.err conftest.$ac_ext
  5331. if $ac_preproc_ok; then :
  5332.   break
  5333. fi
  5334.  
  5335.     done
  5336.     ac_cv_prog_CPP=$CPP
  5337.  
  5338. fi
  5339.   CPP=$ac_cv_prog_CPP
  5340. else
  5341.   ac_cv_prog_CPP=$CPP
  5342. fi
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5344. $as_echo "$CPP" >&6; }
  5345. ac_preproc_ok=false
  5346. for ac_c_preproc_warn_flag in '' yes
  5347. do
  5348.   # Use a header file that comes with gcc, so configuring glibc
  5349.   # with a fresh cross-compiler works.
  5350.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5351.   # <limits.h> exists even on freestanding compilers.
  5352.   # On the NeXT, cc -E runs the code through the compiler's parser,
  5353.   # not just through cpp. "Syntax error" is here to catch this case.
  5354.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5355. /* end confdefs.h.  */
  5356. #ifdef __STDC__
  5357. # include <limits.h>
  5358. #else
  5359. # include <assert.h>
  5360. #endif
  5361.                      Syntax error
  5362. _ACEOF
  5363. if ac_fn_c_try_cpp "$LINENO"; then :
  5364.  
  5365. else
  5366.   # Broken: fails on valid input.
  5367. continue
  5368. fi
  5369. rm -f conftest.err conftest.i conftest.$ac_ext
  5370.  
  5371.   # OK, works on sane cases.  Now check whether nonexistent headers
  5372.   # can be detected and how.
  5373.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5374. /* end confdefs.h.  */
  5375. #include <ac_nonexistent.h>
  5376. _ACEOF
  5377. if ac_fn_c_try_cpp "$LINENO"; then :
  5378.   # Broken: success on invalid input.
  5379. continue
  5380. else
  5381.   # Passes both tests.
  5382. ac_preproc_ok=:
  5383. break
  5384. fi
  5385. rm -f conftest.err conftest.i conftest.$ac_ext
  5386.  
  5387. done
  5388. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5389. rm -f conftest.i conftest.err conftest.$ac_ext
  5390. if $ac_preproc_ok; then :
  5391.  
  5392. else
  5393.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5394. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5395. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5396. See \`config.log' for more details" "$LINENO" 5; }
  5397. fi
  5398.  
  5399. ac_ext=c
  5400. ac_cpp='$CPP $CPPFLAGS'
  5401. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5402. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5403. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5404.  
  5405. ac_ext=c
  5406. ac_cpp='$CPP $CPPFLAGS'
  5407. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5408. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5409. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5410. if test -n "$ac_tool_prefix"; then
  5411.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  5412. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5414. $as_echo_n "checking for $ac_word... " >&6; }
  5415. if ${ac_cv_prog_CC+:} false; then :
  5416.   $as_echo_n "(cached) " >&6
  5417. else
  5418.   if test -n "$CC"; then
  5419.   ac_cv_prog_CC="$CC" # Let the user override the test.
  5420. else
  5421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5422. for as_dir in $PATH
  5423. do
  5424.   IFS=$as_save_IFS
  5425.   test -z "$as_dir" && as_dir=.
  5426.     for ac_exec_ext in '' $ac_executable_extensions; do
  5427.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5428.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  5429.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5430.     break 2
  5431.   fi
  5432. done
  5433.   done
  5434. IFS=$as_save_IFS
  5435.  
  5436. fi
  5437. fi
  5438. CC=$ac_cv_prog_CC
  5439. if test -n "$CC"; then
  5440.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5441. $as_echo "$CC" >&6; }
  5442. else
  5443.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5444. $as_echo "no" >&6; }
  5445. fi
  5446.  
  5447.  
  5448. fi
  5449. if test -z "$ac_cv_prog_CC"; then
  5450.   ac_ct_CC=$CC
  5451.   # Extract the first word of "gcc", so it can be a program name with args.
  5452. set dummy gcc; ac_word=$2
  5453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5454. $as_echo_n "checking for $ac_word... " >&6; }
  5455. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  5456.   $as_echo_n "(cached) " >&6
  5457. else
  5458.   if test -n "$ac_ct_CC"; then
  5459.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5460. else
  5461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5462. for as_dir in $PATH
  5463. do
  5464.   IFS=$as_save_IFS
  5465.   test -z "$as_dir" && as_dir=.
  5466.     for ac_exec_ext in '' $ac_executable_extensions; do
  5467.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5468.     ac_cv_prog_ac_ct_CC="gcc"
  5469.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5470.     break 2
  5471.   fi
  5472. done
  5473.   done
  5474. IFS=$as_save_IFS
  5475.  
  5476. fi
  5477. fi
  5478. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5479. if test -n "$ac_ct_CC"; then
  5480.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5481. $as_echo "$ac_ct_CC" >&6; }
  5482. else
  5483.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5484. $as_echo "no" >&6; }
  5485. fi
  5486.  
  5487.   if test "x$ac_ct_CC" = x; then
  5488.     CC=""
  5489.   else
  5490.     case $cross_compiling:$ac_tool_warned in
  5491. yes:)
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5493. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5494. ac_tool_warned=yes ;;
  5495. esac
  5496.     CC=$ac_ct_CC
  5497.   fi
  5498. else
  5499.   CC="$ac_cv_prog_CC"
  5500. fi
  5501.  
  5502. if test -z "$CC"; then
  5503.           if test -n "$ac_tool_prefix"; then
  5504.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5505. set dummy ${ac_tool_prefix}cc; ac_word=$2
  5506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5507. $as_echo_n "checking for $ac_word... " >&6; }
  5508. if ${ac_cv_prog_CC+:} false; then :
  5509.   $as_echo_n "(cached) " >&6
  5510. else
  5511.   if test -n "$CC"; then
  5512.   ac_cv_prog_CC="$CC" # Let the user override the test.
  5513. else
  5514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5515. for as_dir in $PATH
  5516. do
  5517.   IFS=$as_save_IFS
  5518.   test -z "$as_dir" && as_dir=.
  5519.     for ac_exec_ext in '' $ac_executable_extensions; do
  5520.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5521.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  5522.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5523.     break 2
  5524.   fi
  5525. done
  5526.   done
  5527. IFS=$as_save_IFS
  5528.  
  5529. fi
  5530. fi
  5531. CC=$ac_cv_prog_CC
  5532. if test -n "$CC"; then
  5533.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5534. $as_echo "$CC" >&6; }
  5535. else
  5536.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5537. $as_echo "no" >&6; }
  5538. fi
  5539.  
  5540.  
  5541.   fi
  5542. fi
  5543. if test -z "$CC"; then
  5544.   # Extract the first word of "cc", so it can be a program name with args.
  5545. set dummy cc; ac_word=$2
  5546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5547. $as_echo_n "checking for $ac_word... " >&6; }
  5548. if ${ac_cv_prog_CC+:} false; then :
  5549.   $as_echo_n "(cached) " >&6
  5550. else
  5551.   if test -n "$CC"; then
  5552.   ac_cv_prog_CC="$CC" # Let the user override the test.
  5553. else
  5554.   ac_prog_rejected=no
  5555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5556. for as_dir in $PATH
  5557. do
  5558.   IFS=$as_save_IFS
  5559.   test -z "$as_dir" && as_dir=.
  5560.     for ac_exec_ext in '' $ac_executable_extensions; do
  5561.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5562.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5563.        ac_prog_rejected=yes
  5564.        continue
  5565.      fi
  5566.     ac_cv_prog_CC="cc"
  5567.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5568.     break 2
  5569.   fi
  5570. done
  5571.   done
  5572. IFS=$as_save_IFS
  5573.  
  5574. if test $ac_prog_rejected = yes; then
  5575.   # We found a bogon in the path, so make sure we never use it.
  5576.   set dummy $ac_cv_prog_CC
  5577.   shift
  5578.   if test $# != 0; then
  5579.     # We chose a different compiler from the bogus one.
  5580.     # However, it has the same basename, so the bogon will be chosen
  5581.     # first if we set CC to just the basename; use the full file name.
  5582.     shift
  5583.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  5584.   fi
  5585. fi
  5586. fi
  5587. fi
  5588. CC=$ac_cv_prog_CC
  5589. if test -n "$CC"; then
  5590.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5591. $as_echo "$CC" >&6; }
  5592. else
  5593.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5594. $as_echo "no" >&6; }
  5595. fi
  5596.  
  5597.  
  5598. fi
  5599. if test -z "$CC"; then
  5600.   if test -n "$ac_tool_prefix"; then
  5601.   for ac_prog in cl.exe
  5602.   do
  5603.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5604. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5606. $as_echo_n "checking for $ac_word... " >&6; }
  5607. if ${ac_cv_prog_CC+:} false; then :
  5608.   $as_echo_n "(cached) " >&6
  5609. else
  5610.   if test -n "$CC"; then
  5611.   ac_cv_prog_CC="$CC" # Let the user override the test.
  5612. else
  5613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5614. for as_dir in $PATH
  5615. do
  5616.   IFS=$as_save_IFS
  5617.   test -z "$as_dir" && as_dir=.
  5618.     for ac_exec_ext in '' $ac_executable_extensions; do
  5619.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5620.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  5621.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5622.     break 2
  5623.   fi
  5624. done
  5625.   done
  5626. IFS=$as_save_IFS
  5627.  
  5628. fi
  5629. fi
  5630. CC=$ac_cv_prog_CC
  5631. if test -n "$CC"; then
  5632.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5633. $as_echo "$CC" >&6; }
  5634. else
  5635.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5636. $as_echo "no" >&6; }
  5637. fi
  5638.  
  5639.  
  5640.     test -n "$CC" && break
  5641.   done
  5642. fi
  5643. if test -z "$CC"; then
  5644.   ac_ct_CC=$CC
  5645.   for ac_prog in cl.exe
  5646. do
  5647.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5648. set dummy $ac_prog; ac_word=$2
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5650. $as_echo_n "checking for $ac_word... " >&6; }
  5651. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  5652.   $as_echo_n "(cached) " >&6
  5653. else
  5654.   if test -n "$ac_ct_CC"; then
  5655.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5656. else
  5657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5658. for as_dir in $PATH
  5659. do
  5660.   IFS=$as_save_IFS
  5661.   test -z "$as_dir" && as_dir=.
  5662.     for ac_exec_ext in '' $ac_executable_extensions; do
  5663.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5664.     ac_cv_prog_ac_ct_CC="$ac_prog"
  5665.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5666.     break 2
  5667.   fi
  5668. done
  5669.   done
  5670. IFS=$as_save_IFS
  5671.  
  5672. fi
  5673. fi
  5674. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5675. if test -n "$ac_ct_CC"; then
  5676.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5677. $as_echo "$ac_ct_CC" >&6; }
  5678. else
  5679.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5680. $as_echo "no" >&6; }
  5681. fi
  5682.  
  5683.  
  5684.   test -n "$ac_ct_CC" && break
  5685. done
  5686.  
  5687.   if test "x$ac_ct_CC" = x; then
  5688.     CC=""
  5689.   else
  5690.     case $cross_compiling:$ac_tool_warned in
  5691. yes:)
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5693. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5694. ac_tool_warned=yes ;;
  5695. esac
  5696.     CC=$ac_ct_CC
  5697.   fi
  5698. fi
  5699.  
  5700. fi
  5701.  
  5702.  
  5703. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5704. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5705. as_fn_error $? "no acceptable C compiler found in \$PATH
  5706. See \`config.log' for more details" "$LINENO" 5; }
  5707.  
  5708. # Provide some information about the compiler.
  5709. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  5710. set X $ac_compile
  5711. ac_compiler=$2
  5712. for ac_option in --version -v -V -qversion; do
  5713.   { { ac_try="$ac_compiler $ac_option >&5"
  5714. case "(($ac_try" in
  5715.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5716.   *) ac_try_echo=$ac_try;;
  5717. esac
  5718. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5719. $as_echo "$ac_try_echo"; } >&5
  5720.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5721.   ac_status=$?
  5722.   if test -s conftest.err; then
  5723.     sed '10a\
  5724. ... rest of stderr output deleted ...
  5725.          10q' conftest.err >conftest.er1
  5726.     cat conftest.er1 >&5
  5727.   fi
  5728.   rm -f conftest.er1 conftest.err
  5729.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5730.   test $ac_status = 0; }
  5731. done
  5732.  
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  5734. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  5735. if ${ac_cv_c_compiler_gnu+:} false; then :
  5736.   $as_echo_n "(cached) " >&6
  5737. else
  5738.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5739. /* end confdefs.h.  */
  5740.  
  5741. int
  5742. main ()
  5743. {
  5744. #ifndef __GNUC__
  5745.        choke me
  5746. #endif
  5747.  
  5748.   ;
  5749.   return 0;
  5750. }
  5751. _ACEOF
  5752. if ac_fn_c_try_compile "$LINENO"; then :
  5753.   ac_compiler_gnu=yes
  5754. else
  5755.   ac_compiler_gnu=no
  5756. fi
  5757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5758. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5759.  
  5760. fi
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  5762. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  5763. if test $ac_compiler_gnu = yes; then
  5764.   GCC=yes
  5765. else
  5766.   GCC=
  5767. fi
  5768. ac_test_CFLAGS=${CFLAGS+set}
  5769. ac_save_CFLAGS=$CFLAGS
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  5771. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  5772. if ${ac_cv_prog_cc_g+:} false; then :
  5773.   $as_echo_n "(cached) " >&6
  5774. else
  5775.   ac_save_c_werror_flag=$ac_c_werror_flag
  5776.    ac_c_werror_flag=yes
  5777.    ac_cv_prog_cc_g=no
  5778.    CFLAGS="-g"
  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. if ac_fn_c_try_compile "$LINENO"; then :
  5791.   ac_cv_prog_cc_g=yes
  5792. else
  5793.   CFLAGS=""
  5794.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5795. /* end confdefs.h.  */
  5796.  
  5797. int
  5798. main ()
  5799. {
  5800.  
  5801.   ;
  5802.   return 0;
  5803. }
  5804. _ACEOF
  5805. if ac_fn_c_try_compile "$LINENO"; then :
  5806.  
  5807. else
  5808.   ac_c_werror_flag=$ac_save_c_werror_flag
  5809.          CFLAGS="-g"
  5810.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5811. /* end confdefs.h.  */
  5812.  
  5813. int
  5814. main ()
  5815. {
  5816.  
  5817.   ;
  5818.   return 0;
  5819. }
  5820. _ACEOF
  5821. if ac_fn_c_try_compile "$LINENO"; then :
  5822.   ac_cv_prog_cc_g=yes
  5823. fi
  5824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5825. fi
  5826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5827. fi
  5828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5829.    ac_c_werror_flag=$ac_save_c_werror_flag
  5830. fi
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  5832. $as_echo "$ac_cv_prog_cc_g" >&6; }
  5833. if test "$ac_test_CFLAGS" = set; then
  5834.   CFLAGS=$ac_save_CFLAGS
  5835. elif test $ac_cv_prog_cc_g = yes; then
  5836.   if test "$GCC" = yes; then
  5837.     CFLAGS="-g -O2"
  5838.   else
  5839.     CFLAGS="-g"
  5840.   fi
  5841. else
  5842.   if test "$GCC" = yes; then
  5843.     CFLAGS="-O2"
  5844.   else
  5845.     CFLAGS=
  5846.   fi
  5847. fi
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  5849. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5850. if ${ac_cv_prog_cc_c89+:} false; then :
  5851.   $as_echo_n "(cached) " >&6
  5852. else
  5853.   ac_cv_prog_cc_c89=no
  5854. ac_save_CC=$CC
  5855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5856. /* end confdefs.h.  */
  5857. #include <stdarg.h>
  5858. #include <stdio.h>
  5859. struct stat;
  5860. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  5861. struct buf { int x; };
  5862. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5863. static char *e (p, i)
  5864.      char **p;
  5865.      int i;
  5866. {
  5867.   return p[i];
  5868. }
  5869. static char *f (char * (*g) (char **, int), char **p, ...)
  5870. {
  5871.   char *s;
  5872.   va_list v;
  5873.   va_start (v,p);
  5874.   s = g (p, va_arg (v,int));
  5875.   va_end (v);
  5876.   return s;
  5877. }
  5878.  
  5879. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  5880.    function prototypes and stuff, but not '\xHH' hex character constants.
  5881.    These don't provoke an error unfortunately, instead are silently treated
  5882.    as 'x'.  The following induces an error, until -std is added to get
  5883.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  5884.    array size at least.  It's necessary to write '\x00'==0 to get something
  5885.    that's true only with -std.  */
  5886. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5887.  
  5888. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5889.    inside strings and character constants.  */
  5890. #define FOO(x) 'x'
  5891. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5892.  
  5893. int test (int i, double x);
  5894. struct s1 {int (*f) (int a);};
  5895. struct s2 {int (*f) (double a);};
  5896. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5897. int argc;
  5898. char **argv;
  5899. int
  5900. main ()
  5901. {
  5902. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  5903.   ;
  5904.   return 0;
  5905. }
  5906. _ACEOF
  5907. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5908.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5909. do
  5910.   CC="$ac_save_CC $ac_arg"
  5911.   if ac_fn_c_try_compile "$LINENO"; then :
  5912.   ac_cv_prog_cc_c89=$ac_arg
  5913. fi
  5914. rm -f core conftest.err conftest.$ac_objext
  5915.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  5916. done
  5917. rm -f conftest.$ac_ext
  5918. CC=$ac_save_CC
  5919.  
  5920. fi
  5921. # AC_CACHE_VAL
  5922. case "x$ac_cv_prog_cc_c89" in
  5923.   x)
  5924.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5925. $as_echo "none needed" >&6; } ;;
  5926.   xno)
  5927.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5928. $as_echo "unsupported" >&6; } ;;
  5929.   *)
  5930.     CC="$CC $ac_cv_prog_cc_c89"
  5931.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5932. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5933. esac
  5934. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5935.  
  5936. fi
  5937.  
  5938. ac_ext=c
  5939. ac_cpp='$CPP $CPPFLAGS'
  5940. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5941. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5942. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5943.  
  5944. ac_ext=c
  5945. ac_cpp='$CPP $CPPFLAGS'
  5946. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5947. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5948. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  5950. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  5951. if ${am_cv_prog_cc_c_o+:} false; then :
  5952.   $as_echo_n "(cached) " >&6
  5953. else
  5954.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5955. /* end confdefs.h.  */
  5956.  
  5957. int
  5958. main ()
  5959. {
  5960.  
  5961.   ;
  5962.   return 0;
  5963. }
  5964. _ACEOF
  5965.   # Make sure it works both with $CC and with simple cc.
  5966.   # Following AC_PROG_CC_C_O, we do the test twice because some
  5967.   # compilers refuse to overwrite an existing .o file with -o,
  5968.   # though they will create one.
  5969.   am_cv_prog_cc_c_o=yes
  5970.   for am_i in 1 2; do
  5971.     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  5972.    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  5973.    ac_status=$?
  5974.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5975.    (exit $ac_status); } \
  5976.          && test -f conftest2.$ac_objext; then
  5977.       : OK
  5978.     else
  5979.       am_cv_prog_cc_c_o=no
  5980.       break
  5981.     fi
  5982.   done
  5983.   rm -f core conftest*
  5984.   unset am_i
  5985. fi
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  5987. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  5988. if test "$am_cv_prog_cc_c_o" != yes; then
  5989.    # Losing compiler, so override with the script.
  5990.    # FIXME: It is wrong to rewrite CC.
  5991.    # But if we don't then we get into trouble of one sort or another.
  5992.    # A longer-term fix would be to have automake use am__CC in this case,
  5993.    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5994.    CC="$am_aux_dir/compile $CC"
  5995. fi
  5996. ac_ext=c
  5997. ac_cpp='$CPP $CPPFLAGS'
  5998. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5999. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6000. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6001.  
  6002.  
  6003. depcc="$CC"   am_compiler_list=
  6004.  
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6006. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6007. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  6008.   $as_echo_n "(cached) " >&6
  6009. else
  6010.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6011.   # We make a subdir and do the tests there.  Otherwise we can end up
  6012.   # making bogus files that we don't know about and never remove.  For
  6013.   # instance it was reported that on HP-UX the gcc test will end up
  6014.   # making a dummy file named 'D' -- because '-MD' means "put the output
  6015.   # in D".
  6016.   rm -rf conftest.dir
  6017.   mkdir conftest.dir
  6018.   # Copy depcomp to subdir because otherwise we won't find it if we're
  6019.   # using a relative directory.
  6020.   cp "$am_depcomp" conftest.dir
  6021.   cd conftest.dir
  6022.   # We will build objects and dependencies in a subdirectory because
  6023.   # it helps to detect inapplicable dependency modes.  For instance
  6024.   # both Tru64's cc and ICC support -MD to output dependencies as a
  6025.   # side effect of compilation, but ICC will put the dependencies in
  6026.   # the current directory while Tru64 will put them in the object
  6027.   # directory.
  6028.   mkdir sub
  6029.  
  6030.   am_cv_CC_dependencies_compiler_type=none
  6031.   if test "$am_compiler_list" = ""; then
  6032.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6033.   fi
  6034.   am__universal=false
  6035.   case " $depcc " in #(
  6036.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6037.      esac
  6038.  
  6039.   for depmode in $am_compiler_list; do
  6040.     # Setup a source with many dependencies, because some compilers
  6041.     # like to wrap large dependency lists on column 80 (with \), and
  6042.     # we should not choose a depcomp mode which is confused by this.
  6043.     #
  6044.     # We need to recreate these files for each test, as the compiler may
  6045.     # overwrite some of them when testing with obscure command lines.
  6046.     # This happens at least with the AIX C compiler.
  6047.     : > sub/conftest.c
  6048.     for i in 1 2 3 4 5 6; do
  6049.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6050.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  6051.       # Solaris 10 /bin/sh.
  6052.       echo '/* dummy */' > sub/conftst$i.h
  6053.     done
  6054.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6055.  
  6056.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  6057.     # mode.  It turns out that the SunPro C++ compiler does not properly
  6058.     # handle '-M -o', and we need to detect this.  Also, some Intel
  6059.     # versions had trouble with output in subdirs.
  6060.     am__obj=sub/conftest.${OBJEXT-o}
  6061.     am__minus_obj="-o $am__obj"
  6062.     case $depmode in
  6063.     gcc)
  6064.       # This depmode causes a compiler race in universal mode.
  6065.       test "$am__universal" = false || continue
  6066.       ;;
  6067.     nosideeffect)
  6068.       # After this tag, mechanisms are not by side-effect, so they'll
  6069.       # only be used when explicitly requested.
  6070.       if test "x$enable_dependency_tracking" = xyes; then
  6071.         continue
  6072.       else
  6073.         break
  6074.       fi
  6075.       ;;
  6076.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  6077.       # This compiler won't grok '-c -o', but also, the minuso test has
  6078.       # not run yet.  These depmodes are late enough in the game, and
  6079.       # so weak that their functioning should not be impacted.
  6080.       am__obj=conftest.${OBJEXT-o}
  6081.       am__minus_obj=
  6082.       ;;
  6083.     none) break ;;
  6084.     esac
  6085.     if depmode=$depmode \
  6086.        source=sub/conftest.c object=$am__obj \
  6087.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6088.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6089.          >/dev/null 2>conftest.err &&
  6090.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6091.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6092.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6093.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6094.       # icc doesn't choke on unknown options, it will just issue warnings
  6095.       # or remarks (even with -Werror).  So we grep stderr for any message
  6096.       # that says an option was ignored or not supported.
  6097.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  6098.       #   icc: Command line warning: ignoring option '-M'; no argument required
  6099.       # The diagnosis changed in icc 8.0:
  6100.       #   icc: Command line remark: option '-MP' not supported
  6101.       if (grep 'ignoring option' conftest.err ||
  6102.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6103.         am_cv_CC_dependencies_compiler_type=$depmode
  6104.         break
  6105.       fi
  6106.     fi
  6107.   done
  6108.  
  6109.   cd ..
  6110.   rm -rf conftest.dir
  6111. else
  6112.   am_cv_CC_dependencies_compiler_type=none
  6113. fi
  6114.  
  6115. fi
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  6117. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  6118. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  6119.  
  6120.  if
  6121.   test "x$enable_dependency_tracking" != xno \
  6122.   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  6123.   am__fastdepCC_TRUE=
  6124.   am__fastdepCC_FALSE='#'
  6125. else
  6126.   am__fastdepCC_TRUE='#'
  6127.   am__fastdepCC_FALSE=
  6128. fi
  6129.  
  6130.  
  6131. ac_ext=cpp
  6132. ac_cpp='$CXXCPP $CPPFLAGS'
  6133. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6134. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6135. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6136. if test -z "$CXX"; then
  6137.   if test -n "$CCC"; then
  6138.     CXX=$CCC
  6139.   else
  6140.     if test -n "$ac_tool_prefix"; then
  6141.   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6142.   do
  6143.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6144. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6146. $as_echo_n "checking for $ac_word... " >&6; }
  6147. if ${ac_cv_prog_CXX+:} false; then :
  6148.   $as_echo_n "(cached) " >&6
  6149. else
  6150.   if test -n "$CXX"; then
  6151.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6152. else
  6153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6154. for as_dir in $PATH
  6155. do
  6156.   IFS=$as_save_IFS
  6157.   test -z "$as_dir" && as_dir=.
  6158.     for ac_exec_ext in '' $ac_executable_extensions; do
  6159.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6160.     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6161.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6162.     break 2
  6163.   fi
  6164. done
  6165.   done
  6166. IFS=$as_save_IFS
  6167.  
  6168. fi
  6169. fi
  6170. CXX=$ac_cv_prog_CXX
  6171. if test -n "$CXX"; then
  6172.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6173. $as_echo "$CXX" >&6; }
  6174. else
  6175.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6176. $as_echo "no" >&6; }
  6177. fi
  6178.  
  6179.  
  6180.     test -n "$CXX" && break
  6181.   done
  6182. fi
  6183. if test -z "$CXX"; then
  6184.   ac_ct_CXX=$CXX
  6185.   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6186. do
  6187.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  6188. set dummy $ac_prog; ac_word=$2
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6190. $as_echo_n "checking for $ac_word... " >&6; }
  6191. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  6192.   $as_echo_n "(cached) " >&6
  6193. else
  6194.   if test -n "$ac_ct_CXX"; then
  6195.   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6196. else
  6197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6198. for as_dir in $PATH
  6199. do
  6200.   IFS=$as_save_IFS
  6201.   test -z "$as_dir" && as_dir=.
  6202.     for ac_exec_ext in '' $ac_executable_extensions; do
  6203.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6204.     ac_cv_prog_ac_ct_CXX="$ac_prog"
  6205.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6206.     break 2
  6207.   fi
  6208. done
  6209.   done
  6210. IFS=$as_save_IFS
  6211.  
  6212. fi
  6213. fi
  6214. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6215. if test -n "$ac_ct_CXX"; then
  6216.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6217. $as_echo "$ac_ct_CXX" >&6; }
  6218. else
  6219.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6220. $as_echo "no" >&6; }
  6221. fi
  6222.  
  6223.  
  6224.   test -n "$ac_ct_CXX" && break
  6225. done
  6226.  
  6227.   if test "x$ac_ct_CXX" = x; then
  6228.     CXX="g++"
  6229.   else
  6230.     case $cross_compiling:$ac_tool_warned in
  6231. yes:)
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6233. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6234. ac_tool_warned=yes ;;
  6235. esac
  6236.     CXX=$ac_ct_CXX
  6237.   fi
  6238. fi
  6239.  
  6240.   fi
  6241. fi
  6242. # Provide some information about the compiler.
  6243. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6244. set X $ac_compile
  6245. ac_compiler=$2
  6246. for ac_option in --version -v -V -qversion; do
  6247.   { { ac_try="$ac_compiler $ac_option >&5"
  6248. case "(($ac_try" in
  6249.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6250.   *) ac_try_echo=$ac_try;;
  6251. esac
  6252. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6253. $as_echo "$ac_try_echo"; } >&5
  6254.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6255.   ac_status=$?
  6256.   if test -s conftest.err; then
  6257.     sed '10a\
  6258. ... rest of stderr output deleted ...
  6259.          10q' conftest.err >conftest.er1
  6260.     cat conftest.er1 >&5
  6261.   fi
  6262.   rm -f conftest.er1 conftest.err
  6263.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6264.   test $ac_status = 0; }
  6265. done
  6266.  
  6267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6268. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6269. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  6270.   $as_echo_n "(cached) " >&6
  6271. else
  6272.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6273. /* end confdefs.h.  */
  6274.  
  6275. int
  6276. main ()
  6277. {
  6278. #ifndef __GNUC__
  6279.        choke me
  6280. #endif
  6281.  
  6282.   ;
  6283.   return 0;
  6284. }
  6285. _ACEOF
  6286. if ac_fn_cxx_try_compile "$LINENO"; then :
  6287.   ac_compiler_gnu=yes
  6288. else
  6289.   ac_compiler_gnu=no
  6290. fi
  6291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6292. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6293.  
  6294. fi
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6296. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6297. if test $ac_compiler_gnu = yes; then
  6298.   GXX=yes
  6299. else
  6300.   GXX=
  6301. fi
  6302. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6303. ac_save_CXXFLAGS=$CXXFLAGS
  6304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6305. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6306. if ${ac_cv_prog_cxx_g+:} false; then :
  6307.   $as_echo_n "(cached) " >&6
  6308. else
  6309.   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6310.    ac_cxx_werror_flag=yes
  6311.    ac_cv_prog_cxx_g=no
  6312.    CXXFLAGS="-g"
  6313.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6314. /* end confdefs.h.  */
  6315.  
  6316. int
  6317. main ()
  6318. {
  6319.  
  6320.   ;
  6321.   return 0;
  6322. }
  6323. _ACEOF
  6324. if ac_fn_cxx_try_compile "$LINENO"; then :
  6325.   ac_cv_prog_cxx_g=yes
  6326. else
  6327.   CXXFLAGS=""
  6328.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6329. /* end confdefs.h.  */
  6330.  
  6331. int
  6332. main ()
  6333. {
  6334.  
  6335.   ;
  6336.   return 0;
  6337. }
  6338. _ACEOF
  6339. if ac_fn_cxx_try_compile "$LINENO"; then :
  6340.  
  6341. else
  6342.   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6343.          CXXFLAGS="-g"
  6344.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6345. /* end confdefs.h.  */
  6346.  
  6347. int
  6348. main ()
  6349. {
  6350.  
  6351.   ;
  6352.   return 0;
  6353. }
  6354. _ACEOF
  6355. if ac_fn_cxx_try_compile "$LINENO"; then :
  6356.   ac_cv_prog_cxx_g=yes
  6357. fi
  6358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6359. fi
  6360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6361. fi
  6362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6363.    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6364. fi
  6365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6366. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6367. if test "$ac_test_CXXFLAGS" = set; then
  6368.   CXXFLAGS=$ac_save_CXXFLAGS
  6369. elif test $ac_cv_prog_cxx_g = yes; then
  6370.   if test "$GXX" = yes; then
  6371.     CXXFLAGS="-g -O2"
  6372.   else
  6373.     CXXFLAGS="-g"
  6374.   fi
  6375. else
  6376.   if test "$GXX" = yes; then
  6377.     CXXFLAGS="-O2"
  6378.   else
  6379.     CXXFLAGS=
  6380.   fi
  6381. fi
  6382. ac_ext=c
  6383. ac_cpp='$CPP $CPPFLAGS'
  6384. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6385. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6386. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6387.  
  6388. depcc="$CXX"  am_compiler_list=
  6389.  
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6391. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6392. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  6393.   $as_echo_n "(cached) " >&6
  6394. else
  6395.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6396.   # We make a subdir and do the tests there.  Otherwise we can end up
  6397.   # making bogus files that we don't know about and never remove.  For
  6398.   # instance it was reported that on HP-UX the gcc test will end up
  6399.   # making a dummy file named 'D' -- because '-MD' means "put the output
  6400.   # in D".
  6401.   rm -rf conftest.dir
  6402.   mkdir conftest.dir
  6403.   # Copy depcomp to subdir because otherwise we won't find it if we're
  6404.   # using a relative directory.
  6405.   cp "$am_depcomp" conftest.dir
  6406.   cd conftest.dir
  6407.   # We will build objects and dependencies in a subdirectory because
  6408.   # it helps to detect inapplicable dependency modes.  For instance
  6409.   # both Tru64's cc and ICC support -MD to output dependencies as a
  6410.   # side effect of compilation, but ICC will put the dependencies in
  6411.   # the current directory while Tru64 will put them in the object
  6412.   # directory.
  6413.   mkdir sub
  6414.  
  6415.   am_cv_CXX_dependencies_compiler_type=none
  6416.   if test "$am_compiler_list" = ""; then
  6417.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6418.   fi
  6419.   am__universal=false
  6420.   case " $depcc " in #(
  6421.      *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6422.      esac
  6423.  
  6424.   for depmode in $am_compiler_list; do
  6425.     # Setup a source with many dependencies, because some compilers
  6426.     # like to wrap large dependency lists on column 80 (with \), and
  6427.     # we should not choose a depcomp mode which is confused by this.
  6428.     #
  6429.     # We need to recreate these files for each test, as the compiler may
  6430.     # overwrite some of them when testing with obscure command lines.
  6431.     # This happens at least with the AIX C compiler.
  6432.     : > sub/conftest.c
  6433.     for i in 1 2 3 4 5 6; do
  6434.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6435.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  6436.       # Solaris 10 /bin/sh.
  6437.       echo '/* dummy */' > sub/conftst$i.h
  6438.     done
  6439.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6440.  
  6441.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  6442.     # mode.  It turns out that the SunPro C++ compiler does not properly
  6443.     # handle '-M -o', and we need to detect this.  Also, some Intel
  6444.     # versions had trouble with output in subdirs.
  6445.     am__obj=sub/conftest.${OBJEXT-o}
  6446.     am__minus_obj="-o $am__obj"
  6447.     case $depmode in
  6448.     gcc)
  6449.       # This depmode causes a compiler race in universal mode.
  6450.       test "$am__universal" = false || continue
  6451.       ;;
  6452.     nosideeffect)
  6453.       # After this tag, mechanisms are not by side-effect, so they'll
  6454.       # only be used when explicitly requested.
  6455.       if test "x$enable_dependency_tracking" = xyes; then
  6456.         continue
  6457.       else
  6458.         break
  6459.       fi
  6460.       ;;
  6461.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  6462.       # This compiler won't grok '-c -o', but also, the minuso test has
  6463.       # not run yet.  These depmodes are late enough in the game, and
  6464.       # so weak that their functioning should not be impacted.
  6465.       am__obj=conftest.${OBJEXT-o}
  6466.       am__minus_obj=
  6467.       ;;
  6468.     none) break ;;
  6469.     esac
  6470.     if depmode=$depmode \
  6471.        source=sub/conftest.c object=$am__obj \
  6472.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6473.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6474.          >/dev/null 2>conftest.err &&
  6475.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6476.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6477.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6478.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6479.       # icc doesn't choke on unknown options, it will just issue warnings
  6480.       # or remarks (even with -Werror).  So we grep stderr for any message
  6481.       # that says an option was ignored or not supported.
  6482.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  6483.       #   icc: Command line warning: ignoring option '-M'; no argument required
  6484.       # The diagnosis changed in icc 8.0:
  6485.       #   icc: Command line remark: option '-MP' not supported
  6486.       if (grep 'ignoring option' conftest.err ||
  6487.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6488.         am_cv_CXX_dependencies_compiler_type=$depmode
  6489.         break
  6490.       fi
  6491.     fi
  6492.   done
  6493.  
  6494.   cd ..
  6495.   rm -rf conftest.dir
  6496. else
  6497.   am_cv_CXX_dependencies_compiler_type=none
  6498. fi
  6499.  
  6500. fi
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6502. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  6503. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6504.  
  6505.  if
  6506.   test "x$enable_dependency_tracking" != xno \
  6507.   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6508.   am__fastdepCXX_TRUE=
  6509.   am__fastdepCXX_FALSE='#'
  6510. else
  6511.   am__fastdepCXX_TRUE='#'
  6512.   am__fastdepCXX_FALSE=
  6513. fi
  6514.  
  6515.  
  6516.  
  6517. # By default we simply use the C compiler to build assembly code.
  6518.  
  6519. test "${CCAS+set}" = set || CCAS=$CC
  6520. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  6521.  
  6522.  
  6523.  
  6524. depcc="$CCAS"   am_compiler_list=
  6525.  
  6526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6527. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6528. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  6529.   $as_echo_n "(cached) " >&6
  6530. else
  6531.   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6532.   # We make a subdir and do the tests there.  Otherwise we can end up
  6533.   # making bogus files that we don't know about and never remove.  For
  6534.   # instance it was reported that on HP-UX the gcc test will end up
  6535.   # making a dummy file named 'D' -- because '-MD' means "put the output
  6536.   # in D".
  6537.   rm -rf conftest.dir
  6538.   mkdir conftest.dir
  6539.   # Copy depcomp to subdir because otherwise we won't find it if we're
  6540.   # using a relative directory.
  6541.   cp "$am_depcomp" conftest.dir
  6542.   cd conftest.dir
  6543.   # We will build objects and dependencies in a subdirectory because
  6544.   # it helps to detect inapplicable dependency modes.  For instance
  6545.   # both Tru64's cc and ICC support -MD to output dependencies as a
  6546.   # side effect of compilation, but ICC will put the dependencies in
  6547.   # the current directory while Tru64 will put them in the object
  6548.   # directory.
  6549.   mkdir sub
  6550.  
  6551.   am_cv_CCAS_dependencies_compiler_type=none
  6552.   if test "$am_compiler_list" = ""; then
  6553.      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6554.   fi
  6555.   am__universal=false
  6556.  
  6557.  
  6558.   for depmode in $am_compiler_list; do
  6559.     # Setup a source with many dependencies, because some compilers
  6560.     # like to wrap large dependency lists on column 80 (with \), and
  6561.     # we should not choose a depcomp mode which is confused by this.
  6562.     #
  6563.     # We need to recreate these files for each test, as the compiler may
  6564.     # overwrite some of them when testing with obscure command lines.
  6565.     # This happens at least with the AIX C compiler.
  6566.     : > sub/conftest.c
  6567.     for i in 1 2 3 4 5 6; do
  6568.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6569.       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  6570.       # Solaris 10 /bin/sh.
  6571.       echo '/* dummy */' > sub/conftst$i.h
  6572.     done
  6573.     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6574.  
  6575.     # We check with '-c' and '-o' for the sake of the "dashmstdout"
  6576.     # mode.  It turns out that the SunPro C++ compiler does not properly
  6577.     # handle '-M -o', and we need to detect this.  Also, some Intel
  6578.     # versions had trouble with output in subdirs.
  6579.     am__obj=sub/conftest.${OBJEXT-o}
  6580.     am__minus_obj="-o $am__obj"
  6581.     case $depmode in
  6582.     gcc)
  6583.       # This depmode causes a compiler race in universal mode.
  6584.       test "$am__universal" = false || continue
  6585.       ;;
  6586.     nosideeffect)
  6587.       # After this tag, mechanisms are not by side-effect, so they'll
  6588.       # only be used when explicitly requested.
  6589.       if test "x$enable_dependency_tracking" = xyes; then
  6590.         continue
  6591.       else
  6592.         break
  6593.       fi
  6594.       ;;
  6595.     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  6596.       # This compiler won't grok '-c -o', but also, the minuso test has
  6597.       # not run yet.  These depmodes are late enough in the game, and
  6598.       # so weak that their functioning should not be impacted.
  6599.       am__obj=conftest.${OBJEXT-o}
  6600.       am__minus_obj=
  6601.       ;;
  6602.     none) break ;;
  6603.     esac
  6604.     if depmode=$depmode \
  6605.        source=sub/conftest.c object=$am__obj \
  6606.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6607.        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6608.          >/dev/null 2>conftest.err &&
  6609.        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6610.        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6611.        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6612.        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6613.       # icc doesn't choke on unknown options, it will just issue warnings
  6614.       # or remarks (even with -Werror).  So we grep stderr for any message
  6615.       # that says an option was ignored or not supported.
  6616.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  6617.       #   icc: Command line warning: ignoring option '-M'; no argument required
  6618.       # The diagnosis changed in icc 8.0:
  6619.       #   icc: Command line remark: option '-MP' not supported
  6620.       if (grep 'ignoring option' conftest.err ||
  6621.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6622.         am_cv_CCAS_dependencies_compiler_type=$depmode
  6623.         break
  6624.       fi
  6625.     fi
  6626.   done
  6627.  
  6628.   cd ..
  6629.   rm -rf conftest.dir
  6630. else
  6631.   am_cv_CCAS_dependencies_compiler_type=none
  6632. fi
  6633.  
  6634. fi
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  6636. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  6637. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  6638.  
  6639.  if
  6640.   test "x$enable_dependency_tracking" != xno \
  6641.   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  6642.   am__fastdepCCAS_TRUE=
  6643.   am__fastdepCCAS_FALSE='#'
  6644. else
  6645.   am__fastdepCCAS_TRUE='#'
  6646.   am__fastdepCCAS_FALSE=
  6647. fi
  6648.  
  6649.  
  6650.  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
  6651. $as_echo_n "checking for GNU make... " >&6; }
  6652. if ${_cv_gnu_make_command+:} false; then :
  6653.   $as_echo_n "(cached) " >&6
  6654. else
  6655.   _cv_gnu_make_command='' ;
  6656.                 for a in "$MAKE" make gmake gnumake ; do
  6657.                         if test -z "$a" ; then continue ; fi ;
  6658.                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
  6659.                                 _cv_gnu_make_command=$a ;
  6660.                                 break;
  6661.                         fi
  6662.                 done ;
  6663.  
  6664. fi
  6665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
  6666. $as_echo "$_cv_gnu_make_command" >&6; } ;
  6667.         if test  "x$_cv_gnu_make_command" != "x"  ; then
  6668.                 ifGNUmake='' ;
  6669.         else
  6670.                 ifGNUmake='#' ;
  6671.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
  6672. $as_echo "\"Not found\"" >&6; };
  6673.         fi
  6674.  
  6675.  
  6676. for ac_prog in python2 python
  6677. do
  6678.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  6679. set dummy $ac_prog; ac_word=$2
  6680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6681. $as_echo_n "checking for $ac_word... " >&6; }
  6682. if ${ac_cv_prog_PYTHON2+:} false; then :
  6683.   $as_echo_n "(cached) " >&6
  6684. else
  6685.   if test -n "$PYTHON2"; then
  6686.   ac_cv_prog_PYTHON2="$PYTHON2" # Let the user override the test.
  6687. else
  6688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6689. for as_dir in $PATH
  6690. do
  6691.   IFS=$as_save_IFS
  6692.   test -z "$as_dir" && as_dir=.
  6693.     for ac_exec_ext in '' $ac_executable_extensions; do
  6694.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6695.     ac_cv_prog_PYTHON2="$ac_prog"
  6696.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6697.     break 2
  6698.   fi
  6699. done
  6700.   done
  6701. IFS=$as_save_IFS
  6702.  
  6703. fi
  6704. fi
  6705. PYTHON2=$ac_cv_prog_PYTHON2
  6706. if test -n "$PYTHON2"; then
  6707.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2" >&5
  6708. $as_echo "$PYTHON2" >&6; }
  6709. else
  6710.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6711. $as_echo "no" >&6; }
  6712. fi
  6713.  
  6714.  
  6715.   test -n "$PYTHON2" && break
  6716. done
  6717.  
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  6719. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  6720. if ${ac_cv_path_SED+:} false; then :
  6721.   $as_echo_n "(cached) " >&6
  6722. else
  6723.             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  6724.      for ac_i in 1 2 3 4 5 6 7; do
  6725.        ac_script="$ac_script$as_nl$ac_script"
  6726.      done
  6727.      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  6728.      { ac_script=; unset ac_script;}
  6729.      if test -z "$SED"; then
  6730.   ac_path_SED_found=false
  6731.   # Loop through the user's path and test for each of PROGNAME-LIST
  6732.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6733. for as_dir in $PATH
  6734. do
  6735.   IFS=$as_save_IFS
  6736.   test -z "$as_dir" && as_dir=.
  6737.     for ac_prog in sed gsed; do
  6738.     for ac_exec_ext in '' $ac_executable_extensions; do
  6739.       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  6740.       as_fn_executable_p "$ac_path_SED" || continue
  6741. # Check for GNU ac_path_SED and select it if it is found.
  6742.   # Check for GNU $ac_path_SED
  6743. case `"$ac_path_SED" --version 2>&1` in
  6744. *GNU*)
  6745.   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  6746. *)
  6747.   ac_count=0
  6748.   $as_echo_n 0123456789 >"conftest.in"
  6749.   while :
  6750.   do
  6751.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  6752.     mv "conftest.tmp" "conftest.in"
  6753.     cp "conftest.in" "conftest.nl"
  6754.     $as_echo '' >> "conftest.nl"
  6755.     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6756.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6757.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  6758.     if test $ac_count -gt ${ac_path_SED_max-0}; then
  6759.       # Best one so far, save it but keep looking for a better one
  6760.       ac_cv_path_SED="$ac_path_SED"
  6761.       ac_path_SED_max=$ac_count
  6762.     fi
  6763.     # 10*(2^10) chars as input seems more than enough
  6764.     test $ac_count -gt 10 && break
  6765.   done
  6766.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6767. esac
  6768.  
  6769.       $ac_path_SED_found && break 3
  6770.     done
  6771.   done
  6772.   done
  6773. IFS=$as_save_IFS
  6774.   if test -z "$ac_cv_path_SED"; then
  6775.     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  6776.   fi
  6777. else
  6778.   ac_cv_path_SED=$SED
  6779. fi
  6780.  
  6781. fi
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  6783. $as_echo "$ac_cv_path_SED" >&6; }
  6784.  SED="$ac_cv_path_SED"
  6785.   rm -f conftest.sed
  6786.  
  6787.  
  6788.  
  6789. # Check whether --enable-largefile was given.
  6790. if test "${enable_largefile+set}" = set; then :
  6791.   enableval=$enable_largefile;
  6792. fi
  6793.  
  6794. if test "$enable_largefile" != no; then
  6795.  
  6796.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  6797. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  6798. if ${ac_cv_sys_largefile_CC+:} false; then :
  6799.   $as_echo_n "(cached) " >&6
  6800. else
  6801.   ac_cv_sys_largefile_CC=no
  6802.      if test "$GCC" != yes; then
  6803.        ac_save_CC=$CC
  6804.        while :; do
  6805.          # IRIX 6.2 and later do not support large files by default,
  6806.          # so use the C compiler's -n32 option if that helps.
  6807.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6808. /* end confdefs.h.  */
  6809. #include <sys/types.h>
  6810.  /* Check that off_t can represent 2**63 - 1 correctly.
  6811.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6812.     since some C++ compilers masquerading as C compilers
  6813.     incorrectly reject 9223372036854775807.  */
  6814. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6815.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6816.                        && LARGE_OFF_T % 2147483647 == 1)
  6817.                       ? 1 : -1];
  6818. int
  6819. main ()
  6820. {
  6821.  
  6822.   ;
  6823.   return 0;
  6824. }
  6825. _ACEOF
  6826.          if ac_fn_c_try_compile "$LINENO"; then :
  6827.   break
  6828. fi
  6829. rm -f core conftest.err conftest.$ac_objext
  6830.          CC="$CC -n32"
  6831.          if ac_fn_c_try_compile "$LINENO"; then :
  6832.   ac_cv_sys_largefile_CC=' -n32'; break
  6833. fi
  6834. rm -f core conftest.err conftest.$ac_objext
  6835.          break
  6836.        done
  6837.        CC=$ac_save_CC
  6838.        rm -f conftest.$ac_ext
  6839.     fi
  6840. fi
  6841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  6842. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  6843.   if test "$ac_cv_sys_largefile_CC" != no; then
  6844.     CC=$CC$ac_cv_sys_largefile_CC
  6845.   fi
  6846.  
  6847.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  6848. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  6849. if ${ac_cv_sys_file_offset_bits+:} false; then :
  6850.   $as_echo_n "(cached) " >&6
  6851. else
  6852.   while :; do
  6853.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6854. /* end confdefs.h.  */
  6855. #include <sys/types.h>
  6856.  /* Check that off_t can represent 2**63 - 1 correctly.
  6857.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6858.     since some C++ compilers masquerading as C compilers
  6859.     incorrectly reject 9223372036854775807.  */
  6860. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6861.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6862.                        && LARGE_OFF_T % 2147483647 == 1)
  6863.                       ? 1 : -1];
  6864. int
  6865. main ()
  6866. {
  6867.  
  6868.   ;
  6869.   return 0;
  6870. }
  6871. _ACEOF
  6872. if ac_fn_c_try_compile "$LINENO"; then :
  6873.   ac_cv_sys_file_offset_bits=no; break
  6874. fi
  6875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6876.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6877. /* end confdefs.h.  */
  6878. #define _FILE_OFFSET_BITS 64
  6879. #include <sys/types.h>
  6880.  /* Check that off_t can represent 2**63 - 1 correctly.
  6881.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6882.     since some C++ compilers masquerading as C compilers
  6883.     incorrectly reject 9223372036854775807.  */
  6884. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6885.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6886.                        && LARGE_OFF_T % 2147483647 == 1)
  6887.                       ? 1 : -1];
  6888. int
  6889. main ()
  6890. {
  6891.  
  6892.   ;
  6893.   return 0;
  6894. }
  6895. _ACEOF
  6896. if ac_fn_c_try_compile "$LINENO"; then :
  6897.   ac_cv_sys_file_offset_bits=64; break
  6898. fi
  6899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6900.   ac_cv_sys_file_offset_bits=unknown
  6901.   break
  6902. done
  6903. fi
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  6905. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  6906. case $ac_cv_sys_file_offset_bits in #(
  6907.   no | unknown) ;;
  6908.   *)
  6909. cat >>confdefs.h <<_ACEOF
  6910. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  6911. _ACEOF
  6912. ;;
  6913. esac
  6914. rm -rf conftest*
  6915.   if test $ac_cv_sys_file_offset_bits = unknown; then
  6916.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  6917. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  6918. if ${ac_cv_sys_large_files+:} false; then :
  6919.   $as_echo_n "(cached) " >&6
  6920. else
  6921.   while :; do
  6922.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6923. /* end confdefs.h.  */
  6924. #include <sys/types.h>
  6925.  /* Check that off_t can represent 2**63 - 1 correctly.
  6926.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6927.     since some C++ compilers masquerading as C compilers
  6928.     incorrectly reject 9223372036854775807.  */
  6929. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6930.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6931.                        && LARGE_OFF_T % 2147483647 == 1)
  6932.                       ? 1 : -1];
  6933. int
  6934. main ()
  6935. {
  6936.  
  6937.   ;
  6938.   return 0;
  6939. }
  6940. _ACEOF
  6941. if ac_fn_c_try_compile "$LINENO"; then :
  6942.   ac_cv_sys_large_files=no; break
  6943. fi
  6944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6945.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6946. /* end confdefs.h.  */
  6947. #define _LARGE_FILES 1
  6948. #include <sys/types.h>
  6949.  /* Check that off_t can represent 2**63 - 1 correctly.
  6950.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  6951.     since some C++ compilers masquerading as C compilers
  6952.     incorrectly reject 9223372036854775807.  */
  6953. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  6954.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  6955.                        && LARGE_OFF_T % 2147483647 == 1)
  6956.                       ? 1 : -1];
  6957. int
  6958. main ()
  6959. {
  6960.  
  6961.   ;
  6962.   return 0;
  6963. }
  6964. _ACEOF
  6965. if ac_fn_c_try_compile "$LINENO"; then :
  6966.   ac_cv_sys_large_files=1; break
  6967. fi
  6968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6969.   ac_cv_sys_large_files=unknown
  6970.   break
  6971. done
  6972. fi
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  6974. $as_echo "$ac_cv_sys_large_files" >&6; }
  6975. case $ac_cv_sys_large_files in #(
  6976.   no | unknown) ;;
  6977.   *)
  6978. cat >>confdefs.h <<_ACEOF
  6979. #define _LARGE_FILES $ac_cv_sys_large_files
  6980. _ACEOF
  6981. ;;
  6982. esac
  6983. rm -rf conftest*
  6984.   fi
  6985.  
  6986.  
  6987. fi
  6988.  
  6989.  
  6990.  
  6991. case `pwd` in
  6992.   *\ * | *\     *)
  6993.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  6994. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  6995. esac
  6996.  
  6997.  
  6998.  
  6999. macro_version='2.4.6'
  7000. macro_revision='2.4.6'
  7001.  
  7002.  
  7003.  
  7004.  
  7005.  
  7006.  
  7007.  
  7008.  
  7009.  
  7010.  
  7011.  
  7012.  
  7013.  
  7014. ltmain=$ac_aux_dir/ltmain.sh
  7015.  
  7016. # Backslashify metacharacters that are still active within
  7017. # double-quoted strings.
  7018. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7019.  
  7020. # Same as above, but do not quote variable references.
  7021. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7022.  
  7023. # Sed substitution to delay expansion of an escaped shell variable in a
  7024. # double_quote_subst'ed string.
  7025. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7026.  
  7027. # Sed substitution to delay expansion of an escaped single quote.
  7028. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7029.  
  7030. # Sed substitution to avoid accidental globbing in evaled expressions
  7031. no_glob_subst='s/\*/\\\*/g'
  7032.  
  7033. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7034. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  7035. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  7036.  
  7037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  7038. $as_echo_n "checking how to print strings... " >&6; }
  7039. # Test print first, because it will be a builtin if present.
  7040. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  7041.    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  7042.   ECHO='print -r --'
  7043. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  7044.   ECHO='printf %s\n'
  7045. else
  7046.   # Use this function as a fallback that always works.
  7047.   func_fallback_echo ()
  7048.   {
  7049.     eval 'cat <<_LTECHO_EOF
  7050. $1
  7051. _LTECHO_EOF'
  7052.   }
  7053.   ECHO='func_fallback_echo'
  7054. fi
  7055.  
  7056. # func_echo_all arg...
  7057. # Invoke $ECHO with all args, space-separated.
  7058. func_echo_all ()
  7059. {
  7060.     $ECHO ""
  7061. }
  7062.  
  7063. case $ECHO in
  7064.   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  7065. $as_echo "printf" >&6; } ;;
  7066.   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  7067. $as_echo "print -r" >&6; } ;;
  7068.   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  7069. $as_echo "cat" >&6; } ;;
  7070. esac
  7071.  
  7072.  
  7073.  
  7074.  
  7075.  
  7076.  
  7077.  
  7078.  
  7079.  
  7080.  
  7081.  
  7082.  
  7083.  
  7084.  
  7085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  7086. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  7087. if ${ac_cv_path_SED+:} false; then :
  7088.   $as_echo_n "(cached) " >&6
  7089. else
  7090.             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  7091.      for ac_i in 1 2 3 4 5 6 7; do
  7092.        ac_script="$ac_script$as_nl$ac_script"
  7093.      done
  7094.      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  7095.      { ac_script=; unset ac_script;}
  7096.      if test -z "$SED"; then
  7097.   ac_path_SED_found=false
  7098.   # Loop through the user's path and test for each of PROGNAME-LIST
  7099.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7100. for as_dir in $PATH
  7101. do
  7102.   IFS=$as_save_IFS
  7103.   test -z "$as_dir" && as_dir=.
  7104.     for ac_prog in sed gsed; do
  7105.     for ac_exec_ext in '' $ac_executable_extensions; do
  7106.       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  7107.       as_fn_executable_p "$ac_path_SED" || continue
  7108. # Check for GNU ac_path_SED and select it if it is found.
  7109.   # Check for GNU $ac_path_SED
  7110. case `"$ac_path_SED" --version 2>&1` in
  7111. *GNU*)
  7112.   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  7113. *)
  7114.   ac_count=0
  7115.   $as_echo_n 0123456789 >"conftest.in"
  7116.   while :
  7117.   do
  7118.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7119.     mv "conftest.tmp" "conftest.in"
  7120.     cp "conftest.in" "conftest.nl"
  7121.     $as_echo '' >> "conftest.nl"
  7122.     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7123.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7124.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  7125.     if test $ac_count -gt ${ac_path_SED_max-0}; then
  7126.       # Best one so far, save it but keep looking for a better one
  7127.       ac_cv_path_SED="$ac_path_SED"
  7128.       ac_path_SED_max=$ac_count
  7129.     fi
  7130.     # 10*(2^10) chars as input seems more than enough
  7131.     test $ac_count -gt 10 && break
  7132.   done
  7133.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7134. esac
  7135.  
  7136.       $ac_path_SED_found && break 3
  7137.     done
  7138.   done
  7139.   done
  7140. IFS=$as_save_IFS
  7141.   if test -z "$ac_cv_path_SED"; then
  7142.     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  7143.   fi
  7144. else
  7145.   ac_cv_path_SED=$SED
  7146. fi
  7147.  
  7148. fi
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  7150. $as_echo "$ac_cv_path_SED" >&6; }
  7151.  SED="$ac_cv_path_SED"
  7152.   rm -f conftest.sed
  7153.  
  7154. test -z "$SED" && SED=sed
  7155. Xsed="$SED -e 1s/^X//"
  7156.  
  7157.  
  7158.  
  7159.  
  7160.  
  7161.  
  7162.  
  7163.  
  7164.  
  7165.  
  7166.  
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  7168. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  7169. if ${ac_cv_path_GREP+:} false; then :
  7170.   $as_echo_n "(cached) " >&6
  7171. else
  7172.   if test -z "$GREP"; then
  7173.   ac_path_GREP_found=false
  7174.   # Loop through the user's path and test for each of PROGNAME-LIST
  7175.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7176. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7177. do
  7178.   IFS=$as_save_IFS
  7179.   test -z "$as_dir" && as_dir=.
  7180.     for ac_prog in grep ggrep; do
  7181.     for ac_exec_ext in '' $ac_executable_extensions; do
  7182.       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  7183.       as_fn_executable_p "$ac_path_GREP" || continue
  7184. # Check for GNU ac_path_GREP and select it if it is found.
  7185.   # Check for GNU $ac_path_GREP
  7186. case `"$ac_path_GREP" --version 2>&1` in
  7187. *GNU*)
  7188.   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  7189. *)
  7190.   ac_count=0
  7191.   $as_echo_n 0123456789 >"conftest.in"
  7192.   while :
  7193.   do
  7194.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7195.     mv "conftest.tmp" "conftest.in"
  7196.     cp "conftest.in" "conftest.nl"
  7197.     $as_echo 'GREP' >> "conftest.nl"
  7198.     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7199.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7200.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  7201.     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  7202.       # Best one so far, save it but keep looking for a better one
  7203.       ac_cv_path_GREP="$ac_path_GREP"
  7204.       ac_path_GREP_max=$ac_count
  7205.     fi
  7206.     # 10*(2^10) chars as input seems more than enough
  7207.     test $ac_count -gt 10 && break
  7208.   done
  7209.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7210. esac
  7211.  
  7212.       $ac_path_GREP_found && break 3
  7213.     done
  7214.   done
  7215.   done
  7216. IFS=$as_save_IFS
  7217.   if test -z "$ac_cv_path_GREP"; then
  7218.     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  7219.   fi
  7220. else
  7221.   ac_cv_path_GREP=$GREP
  7222. fi
  7223.  
  7224. fi
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  7226. $as_echo "$ac_cv_path_GREP" >&6; }
  7227.  GREP="$ac_cv_path_GREP"
  7228.  
  7229.  
  7230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  7231. $as_echo_n "checking for egrep... " >&6; }
  7232. if ${ac_cv_path_EGREP+:} false; then :
  7233.   $as_echo_n "(cached) " >&6
  7234. else
  7235.   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  7236.    then ac_cv_path_EGREP="$GREP -E"
  7237.    else
  7238.      if test -z "$EGREP"; then
  7239.   ac_path_EGREP_found=false
  7240.   # Loop through the user's path and test for each of PROGNAME-LIST
  7241.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7242. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7243. do
  7244.   IFS=$as_save_IFS
  7245.   test -z "$as_dir" && as_dir=.
  7246.     for ac_prog in egrep; do
  7247.     for ac_exec_ext in '' $ac_executable_extensions; do
  7248.       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  7249.       as_fn_executable_p "$ac_path_EGREP" || continue
  7250. # Check for GNU ac_path_EGREP and select it if it is found.
  7251.   # Check for GNU $ac_path_EGREP
  7252. case `"$ac_path_EGREP" --version 2>&1` in
  7253. *GNU*)
  7254.   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  7255. *)
  7256.   ac_count=0
  7257.   $as_echo_n 0123456789 >"conftest.in"
  7258.   while :
  7259.   do
  7260.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7261.     mv "conftest.tmp" "conftest.in"
  7262.     cp "conftest.in" "conftest.nl"
  7263.     $as_echo 'EGREP' >> "conftest.nl"
  7264.     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7265.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7266.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  7267.     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  7268.       # Best one so far, save it but keep looking for a better one
  7269.       ac_cv_path_EGREP="$ac_path_EGREP"
  7270.       ac_path_EGREP_max=$ac_count
  7271.     fi
  7272.     # 10*(2^10) chars as input seems more than enough
  7273.     test $ac_count -gt 10 && break
  7274.   done
  7275.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7276. esac
  7277.  
  7278.       $ac_path_EGREP_found && break 3
  7279.     done
  7280.   done
  7281.   done
  7282. IFS=$as_save_IFS
  7283.   if test -z "$ac_cv_path_EGREP"; then
  7284.     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  7285.   fi
  7286. else
  7287.   ac_cv_path_EGREP=$EGREP
  7288. fi
  7289.  
  7290.    fi
  7291. fi
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  7293. $as_echo "$ac_cv_path_EGREP" >&6; }
  7294.  EGREP="$ac_cv_path_EGREP"
  7295.  
  7296.  
  7297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  7298. $as_echo_n "checking for fgrep... " >&6; }
  7299. if ${ac_cv_path_FGREP+:} false; then :
  7300.   $as_echo_n "(cached) " >&6
  7301. else
  7302.   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  7303.    then ac_cv_path_FGREP="$GREP -F"
  7304.    else
  7305.      if test -z "$FGREP"; then
  7306.   ac_path_FGREP_found=false
  7307.   # Loop through the user's path and test for each of PROGNAME-LIST
  7308.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7309. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7310. do
  7311.   IFS=$as_save_IFS
  7312.   test -z "$as_dir" && as_dir=.
  7313.     for ac_prog in fgrep; do
  7314.     for ac_exec_ext in '' $ac_executable_extensions; do
  7315.       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  7316.       as_fn_executable_p "$ac_path_FGREP" || continue
  7317. # Check for GNU ac_path_FGREP and select it if it is found.
  7318.   # Check for GNU $ac_path_FGREP
  7319. case `"$ac_path_FGREP" --version 2>&1` in
  7320. *GNU*)
  7321.   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  7322. *)
  7323.   ac_count=0
  7324.   $as_echo_n 0123456789 >"conftest.in"
  7325.   while :
  7326.   do
  7327.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  7328.     mv "conftest.tmp" "conftest.in"
  7329.     cp "conftest.in" "conftest.nl"
  7330.     $as_echo 'FGREP' >> "conftest.nl"
  7331.     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7332.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7333.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  7334.     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  7335.       # Best one so far, save it but keep looking for a better one
  7336.       ac_cv_path_FGREP="$ac_path_FGREP"
  7337.       ac_path_FGREP_max=$ac_count
  7338.     fi
  7339.     # 10*(2^10) chars as input seems more than enough
  7340.     test $ac_count -gt 10 && break
  7341.   done
  7342.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7343. esac
  7344.  
  7345.       $ac_path_FGREP_found && break 3
  7346.     done
  7347.   done
  7348.   done
  7349. IFS=$as_save_IFS
  7350.   if test -z "$ac_cv_path_FGREP"; then
  7351.     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  7352.   fi
  7353. else
  7354.   ac_cv_path_FGREP=$FGREP
  7355. fi
  7356.  
  7357.    fi
  7358. fi
  7359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  7360. $as_echo "$ac_cv_path_FGREP" >&6; }
  7361.  FGREP="$ac_cv_path_FGREP"
  7362.  
  7363.  
  7364. test -z "$GREP" && GREP=grep
  7365.  
  7366.  
  7367.  
  7368.  
  7369.  
  7370.  
  7371.  
  7372.  
  7373.  
  7374.  
  7375.  
  7376.  
  7377.  
  7378.  
  7379.  
  7380.  
  7381.  
  7382.  
  7383.  
  7384. # Check whether --with-gnu-ld was given.
  7385. if test "${with_gnu_ld+set}" = set; then :
  7386.   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  7387. else
  7388.   with_gnu_ld=no
  7389. fi
  7390.  
  7391. ac_prog=ld
  7392. if test yes = "$GCC"; then
  7393.   # Check if gcc -print-prog-name=ld gives a path.
  7394.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  7395. $as_echo_n "checking for ld used by $CC... " >&6; }
  7396.   case $host in
  7397.   *-*-mingw*)
  7398.     # gcc leaves a trailing carriage return, which upsets mingw
  7399.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7400.   *)
  7401.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7402.   esac
  7403.   case $ac_prog in
  7404.     # Accept absolute paths.
  7405.     [\\/]* | ?:[\\/]*)
  7406.       re_direlt='/[^/][^/]*/\.\./'
  7407.       # Canonicalize the pathname of ld
  7408.       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  7409.       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  7410.         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  7411.       done
  7412.       test -z "$LD" && LD=$ac_prog
  7413.       ;;
  7414.   "")
  7415.     # If it fails, then pretend we aren't using GCC.
  7416.     ac_prog=ld
  7417.     ;;
  7418.   *)
  7419.     # If it is relative, then search for the first ld in PATH.
  7420.     with_gnu_ld=unknown
  7421.     ;;
  7422.   esac
  7423. elif test yes = "$with_gnu_ld"; then
  7424.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  7425. $as_echo_n "checking for GNU ld... " >&6; }
  7426. else
  7427.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  7428. $as_echo_n "checking for non-GNU ld... " >&6; }
  7429. fi
  7430. if ${lt_cv_path_LD+:} false; then :
  7431.   $as_echo_n "(cached) " >&6
  7432. else
  7433.   if test -z "$LD"; then
  7434.   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7435.   for ac_dir in $PATH; do
  7436.     IFS=$lt_save_ifs
  7437.     test -z "$ac_dir" && ac_dir=.
  7438.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7439.       lt_cv_path_LD=$ac_dir/$ac_prog
  7440.       # Check to see if the program is GNU ld.  I'd rather use --version,
  7441.       # but apparently some variants of GNU ld only accept -v.
  7442.       # Break only if it was the GNU/non-GNU ld that we prefer.
  7443.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  7444.       *GNU* | *'with BFD'*)
  7445.         test no != "$with_gnu_ld" && break
  7446.         ;;
  7447.       *)
  7448.         test yes != "$with_gnu_ld" && break
  7449.         ;;
  7450.       esac
  7451.     fi
  7452.   done
  7453.   IFS=$lt_save_ifs
  7454. else
  7455.   lt_cv_path_LD=$LD # Let the user override the test with a path.
  7456. fi
  7457. fi
  7458.  
  7459. LD=$lt_cv_path_LD
  7460. if test -n "$LD"; then
  7461.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7462. $as_echo "$LD" >&6; }
  7463. else
  7464.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7465. $as_echo "no" >&6; }
  7466. fi
  7467. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  7468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  7469. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  7470. if ${lt_cv_prog_gnu_ld+:} false; then :
  7471.   $as_echo_n "(cached) " >&6
  7472. else
  7473.   # I'd rather use --version here, but apparently some GNU lds only accept -v.
  7474. case `$LD -v 2>&1 </dev/null` in
  7475. *GNU* | *'with BFD'*)
  7476.   lt_cv_prog_gnu_ld=yes
  7477.   ;;
  7478. *)
  7479.   lt_cv_prog_gnu_ld=no
  7480.   ;;
  7481. esac
  7482. fi
  7483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  7484. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  7485. with_gnu_ld=$lt_cv_prog_gnu_ld
  7486.  
  7487.  
  7488.  
  7489.  
  7490.  
  7491.  
  7492.  
  7493.  
  7494.  
  7495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  7496. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  7497. if ${lt_cv_path_NM+:} false; then :
  7498.   $as_echo_n "(cached) " >&6
  7499. else
  7500.   if test -n "$NM"; then
  7501.   # Let the user override the test.
  7502.   lt_cv_path_NM=$NM
  7503. else
  7504.   lt_nm_to_check=${ac_tool_prefix}nm
  7505.   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  7506.     lt_nm_to_check="$lt_nm_to_check nm"
  7507.   fi
  7508.   for lt_tmp_nm in $lt_nm_to_check; do
  7509.     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7510.     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  7511.       IFS=$lt_save_ifs
  7512.       test -z "$ac_dir" && ac_dir=.
  7513.       tmp_nm=$ac_dir/$lt_tmp_nm
  7514.       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  7515.         # Check to see if the nm accepts a BSD-compat flag.
  7516.         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  7517.         #   nm: unknown option "B" ignored
  7518.         # Tru64's nm complains that /dev/null is an invalid object file
  7519.         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  7520.         case $build_os in
  7521.         mingw*) lt_bad_file=conftest.nm/nofile ;;
  7522.         *) lt_bad_file=/dev/null ;;
  7523.         esac
  7524.         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  7525.         *$lt_bad_file* | *'Invalid file or object type'*)
  7526.           lt_cv_path_NM="$tmp_nm -B"
  7527.           break 2
  7528.           ;;
  7529.         *)
  7530.           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  7531.           */dev/null*)
  7532.             lt_cv_path_NM="$tmp_nm -p"
  7533.             break 2
  7534.             ;;
  7535.           *)
  7536.             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  7537.             continue # so that we can try to find one that supports BSD flags
  7538.             ;;
  7539.           esac
  7540.           ;;
  7541.         esac
  7542.       fi
  7543.     done
  7544.     IFS=$lt_save_ifs
  7545.   done
  7546.   : ${lt_cv_path_NM=no}
  7547. fi
  7548. fi
  7549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  7550. $as_echo "$lt_cv_path_NM" >&6; }
  7551. if test no != "$lt_cv_path_NM"; then
  7552.   NM=$lt_cv_path_NM
  7553. else
  7554.   # Didn't find any BSD compatible name lister, look for dumpbin.
  7555.   if test -n "$DUMPBIN"; then :
  7556.     # Let the user override the test.
  7557.   else
  7558.     if test -n "$ac_tool_prefix"; then
  7559.   for ac_prog in dumpbin "link -dump"
  7560.   do
  7561.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7562. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7564. $as_echo_n "checking for $ac_word... " >&6; }
  7565. if ${ac_cv_prog_DUMPBIN+:} false; then :
  7566.   $as_echo_n "(cached) " >&6
  7567. else
  7568.   if test -n "$DUMPBIN"; then
  7569.   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  7570. else
  7571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7572. for as_dir in $PATH
  7573. do
  7574.   IFS=$as_save_IFS
  7575.   test -z "$as_dir" && as_dir=.
  7576.     for ac_exec_ext in '' $ac_executable_extensions; do
  7577.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7578.     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  7579.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7580.     break 2
  7581.   fi
  7582. done
  7583.   done
  7584. IFS=$as_save_IFS
  7585.  
  7586. fi
  7587. fi
  7588. DUMPBIN=$ac_cv_prog_DUMPBIN
  7589. if test -n "$DUMPBIN"; then
  7590.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  7591. $as_echo "$DUMPBIN" >&6; }
  7592. else
  7593.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7594. $as_echo "no" >&6; }
  7595. fi
  7596.  
  7597.  
  7598.     test -n "$DUMPBIN" && break
  7599.   done
  7600. fi
  7601. if test -z "$DUMPBIN"; then
  7602.   ac_ct_DUMPBIN=$DUMPBIN
  7603.   for ac_prog in dumpbin "link -dump"
  7604. do
  7605.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  7606. set dummy $ac_prog; ac_word=$2
  7607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7608. $as_echo_n "checking for $ac_word... " >&6; }
  7609. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  7610.   $as_echo_n "(cached) " >&6
  7611. else
  7612.   if test -n "$ac_ct_DUMPBIN"; then
  7613.   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  7614. else
  7615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7616. for as_dir in $PATH
  7617. do
  7618.   IFS=$as_save_IFS
  7619.   test -z "$as_dir" && as_dir=.
  7620.     for ac_exec_ext in '' $ac_executable_extensions; do
  7621.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7622.     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  7623.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7624.     break 2
  7625.   fi
  7626. done
  7627.   done
  7628. IFS=$as_save_IFS
  7629.  
  7630. fi
  7631. fi
  7632. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  7633. if test -n "$ac_ct_DUMPBIN"; then
  7634.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  7635. $as_echo "$ac_ct_DUMPBIN" >&6; }
  7636. else
  7637.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7638. $as_echo "no" >&6; }
  7639. fi
  7640.  
  7641.  
  7642.   test -n "$ac_ct_DUMPBIN" && break
  7643. done
  7644.  
  7645.   if test "x$ac_ct_DUMPBIN" = x; then
  7646.     DUMPBIN=":"
  7647.   else
  7648.     case $cross_compiling:$ac_tool_warned in
  7649. yes:)
  7650. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7651. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7652. ac_tool_warned=yes ;;
  7653. esac
  7654.     DUMPBIN=$ac_ct_DUMPBIN
  7655.   fi
  7656. fi
  7657.  
  7658.     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  7659.     *COFF*)
  7660.       DUMPBIN="$DUMPBIN -symbols -headers"
  7661.       ;;
  7662.     *)
  7663.       DUMPBIN=:
  7664.       ;;
  7665.     esac
  7666.   fi
  7667.  
  7668.   if test : != "$DUMPBIN"; then
  7669.     NM=$DUMPBIN
  7670.   fi
  7671. fi
  7672. test -z "$NM" && NM=nm
  7673.  
  7674.  
  7675.  
  7676.  
  7677.  
  7678.  
  7679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  7680. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  7681. if ${lt_cv_nm_interface+:} false; then :
  7682.   $as_echo_n "(cached) " >&6
  7683. else
  7684.   lt_cv_nm_interface="BSD nm"
  7685.   echo "int some_variable = 0;" > conftest.$ac_ext
  7686.   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  7687.   (eval "$ac_compile" 2>conftest.err)
  7688.   cat conftest.err >&5
  7689.   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  7690.   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  7691.   cat conftest.err >&5
  7692.   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  7693.   cat conftest.out >&5
  7694.   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  7695.     lt_cv_nm_interface="MS dumpbin"
  7696.   fi
  7697.   rm -f conftest*
  7698. fi
  7699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  7700. $as_echo "$lt_cv_nm_interface" >&6; }
  7701.  
  7702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  7703. $as_echo_n "checking whether ln -s works... " >&6; }
  7704. LN_S=$as_ln_s
  7705. if test "$LN_S" = "ln -s"; then
  7706.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7707. $as_echo "yes" >&6; }
  7708. else
  7709.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  7710. $as_echo "no, using $LN_S" >&6; }
  7711. fi
  7712.  
  7713. # find the maximum length of command line arguments
  7714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  7715. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  7716. if ${lt_cv_sys_max_cmd_len+:} false; then :
  7717.   $as_echo_n "(cached) " >&6
  7718. else
  7719.     i=0
  7720.   teststring=ABCD
  7721.  
  7722.   case $build_os in
  7723.   msdosdjgpp*)
  7724.     # On DJGPP, this test can blow up pretty badly due to problems in libc
  7725.     # (any single argument exceeding 2000 bytes causes a buffer overrun
  7726.     # during glob expansion).  Even if it were fixed, the result of this
  7727.     # check would be larger than it should be.
  7728.     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
  7729.     ;;
  7730.  
  7731.   gnu*)
  7732.     # Under GNU Hurd, this test is not required because there is
  7733.     # no limit to the length of command line arguments.
  7734.     # Libtool will interpret -1 as no limit whatsoever
  7735.     lt_cv_sys_max_cmd_len=-1;
  7736.     ;;
  7737.  
  7738.   cygwin* | mingw* | cegcc*)
  7739.     # On Win9x/ME, this test blows up -- it succeeds, but takes
  7740.     # about 5 minutes as the teststring grows exponentially.
  7741.     # Worse, since 9x/ME are not pre-emptively multitasking,
  7742.     # you end up with a "frozen" computer, even though with patience
  7743.     # the test eventually succeeds (with a max line length of 256k).
  7744.     # Instead, let's just punt: use the minimum linelength reported by
  7745.     # all of the supported platforms: 8192 (on NT/2K/XP).
  7746.     lt_cv_sys_max_cmd_len=8192;
  7747.     ;;
  7748.  
  7749.   mint*)
  7750.     # On MiNT this can take a long time and run out of memory.
  7751.     lt_cv_sys_max_cmd_len=8192;
  7752.     ;;
  7753.  
  7754.   amigaos*)
  7755.     # On AmigaOS with pdksh, this test takes hours, literally.
  7756.     # So we just punt and use a minimum line length of 8192.
  7757.     lt_cv_sys_max_cmd_len=8192;
  7758.     ;;
  7759.  
  7760.   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  7761.     # This has been around since 386BSD, at least.  Likely further.
  7762.     if test -x /sbin/sysctl; then
  7763.       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  7764.     elif test -x /usr/sbin/sysctl; then
  7765.       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  7766.     else
  7767.       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
  7768.     fi
  7769.     # And add a safety zone
  7770.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7771.     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7772.     ;;
  7773.  
  7774.   interix*)
  7775.     # We know the value 262144 and hardcode it with a safety zone (like BSD)
  7776.     lt_cv_sys_max_cmd_len=196608
  7777.     ;;
  7778.  
  7779.   os2*)
  7780.     # The test takes a long time on OS/2.
  7781.     lt_cv_sys_max_cmd_len=8192
  7782.     ;;
  7783.  
  7784.   osf*)
  7785.     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  7786.     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  7787.     # nice to cause kernel panics so lets avoid the loop below.
  7788.     # First set a reasonable default.
  7789.     lt_cv_sys_max_cmd_len=16384
  7790.     #
  7791.     if test -x /sbin/sysconfig; then
  7792.       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  7793.         *1*) lt_cv_sys_max_cmd_len=-1 ;;
  7794.       esac
  7795.     fi
  7796.     ;;
  7797.   sco3.2v5*)
  7798.     lt_cv_sys_max_cmd_len=102400
  7799.     ;;
  7800.   sysv5* | sco5v6* | sysv4.2uw2*)
  7801.     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  7802.     if test -n "$kargmax"; then
  7803.       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
  7804.     else
  7805.       lt_cv_sys_max_cmd_len=32768
  7806.     fi
  7807.     ;;
  7808.   *)
  7809.     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  7810.     if test -n "$lt_cv_sys_max_cmd_len" && \
  7811.        test undefined != "$lt_cv_sys_max_cmd_len"; then
  7812.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7813.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7814.     else
  7815.       # Make teststring a little bigger before we do anything with it.
  7816.       # a 1K string should be a reasonable start.
  7817.       for i in 1 2 3 4 5 6 7 8; do
  7818.         teststring=$teststring$teststring
  7819.       done
  7820.       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  7821.       # If test is not a shell built-in, we'll probably end up computing a
  7822.       # maximum length that is only half of the actual maximum length, but
  7823.       # we can't tell.
  7824.       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  7825.                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  7826.               test 17 != "$i" # 1/2 MB should be enough
  7827.       do
  7828.         i=`expr $i + 1`
  7829.         teststring=$teststring$teststring
  7830.       done
  7831.       # Only check the string length outside the loop.
  7832.       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  7833.       teststring=
  7834.       # Add a significant safety factor because C++ compilers can tack on
  7835.       # massive amounts of additional arguments before passing them to the
  7836.       # linker.  It appears as though 1/2 is a usable value.
  7837.       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  7838.     fi
  7839.     ;;
  7840.   esac
  7841.  
  7842. fi
  7843.  
  7844. if test -n "$lt_cv_sys_max_cmd_len"; then
  7845.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  7846. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  7847. else
  7848.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  7849. $as_echo "none" >&6; }
  7850. fi
  7851. max_cmd_len=$lt_cv_sys_max_cmd_len
  7852.  
  7853.  
  7854.  
  7855.  
  7856.  
  7857.  
  7858. : ${CP="cp -f"}
  7859. : ${MV="mv -f"}
  7860. : ${RM="rm -f"}
  7861.  
  7862. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7863.   lt_unset=unset
  7864. else
  7865.   lt_unset=false
  7866. fi
  7867.  
  7868.  
  7869.  
  7870.  
  7871.  
  7872. # test EBCDIC or ASCII
  7873. case `echo X|tr X '\101'` in
  7874.  A) # ASCII based system
  7875.     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7876.   lt_SP2NL='tr \040 \012'
  7877.   lt_NL2SP='tr \015\012 \040\040'
  7878.   ;;
  7879.  *) # EBCDIC based system
  7880.   lt_SP2NL='tr \100 \n'
  7881.   lt_NL2SP='tr \r\n \100\100'
  7882.   ;;
  7883. esac
  7884.  
  7885.  
  7886.  
  7887.  
  7888.  
  7889.  
  7890.  
  7891.  
  7892.  
  7893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  7894. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  7895. if ${lt_cv_to_host_file_cmd+:} false; then :
  7896.   $as_echo_n "(cached) " >&6
  7897. else
  7898.   case $host in
  7899.   *-*-mingw* )
  7900.     case $build in
  7901.       *-*-mingw* ) # actually msys
  7902.         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7903.         ;;
  7904.       *-*-cygwin* )
  7905.         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7906.         ;;
  7907.       * ) # otherwise, assume *nix
  7908.         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7909.         ;;
  7910.     esac
  7911.     ;;
  7912.   *-*-cygwin* )
  7913.     case $build in
  7914.       *-*-mingw* ) # actually msys
  7915.         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7916.         ;;
  7917.       *-*-cygwin* )
  7918.         lt_cv_to_host_file_cmd=func_convert_file_noop
  7919.         ;;
  7920.       * ) # otherwise, assume *nix
  7921.         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7922.         ;;
  7923.     esac
  7924.     ;;
  7925.   * ) # unhandled hosts (and "normal" native builds)
  7926.     lt_cv_to_host_file_cmd=func_convert_file_noop
  7927.     ;;
  7928. esac
  7929.  
  7930. fi
  7931.  
  7932. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  7934. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  7935.  
  7936.  
  7937.  
  7938.  
  7939.  
  7940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  7941. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  7942. if ${lt_cv_to_tool_file_cmd+:} false; then :
  7943.   $as_echo_n "(cached) " >&6
  7944. else
  7945.   #assume ordinary cross tools, or native build.
  7946. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7947. case $host in
  7948.   *-*-mingw* )
  7949.     case $build in
  7950.       *-*-mingw* ) # actually msys
  7951.         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7952.         ;;
  7953.     esac
  7954.     ;;
  7955. esac
  7956.  
  7957. fi
  7958.  
  7959. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  7961. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  7962.  
  7963.  
  7964.  
  7965.  
  7966.  
  7967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  7968. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  7969. if ${lt_cv_ld_reload_flag+:} false; then :
  7970.   $as_echo_n "(cached) " >&6
  7971. else
  7972.   lt_cv_ld_reload_flag='-r'
  7973. fi
  7974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  7975. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  7976. reload_flag=$lt_cv_ld_reload_flag
  7977. case $reload_flag in
  7978. "" | " "*) ;;
  7979. *) reload_flag=" $reload_flag" ;;
  7980. esac
  7981. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7982. case $host_os in
  7983.   cygwin* | mingw* | pw32* | cegcc*)
  7984.     if test yes != "$GCC"; then
  7985.       reload_cmds=false
  7986.     fi
  7987.     ;;
  7988.   darwin*)
  7989.     if test yes = "$GCC"; then
  7990.       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  7991.     else
  7992.       reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7993.     fi
  7994.     ;;
  7995. esac
  7996.  
  7997.  
  7998.  
  7999.  
  8000.  
  8001.  
  8002.  
  8003.  
  8004.  
  8005. if test -n "$ac_tool_prefix"; then
  8006.   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  8007. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  8008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8009. $as_echo_n "checking for $ac_word... " >&6; }
  8010. if ${ac_cv_prog_OBJDUMP+:} false; then :
  8011.   $as_echo_n "(cached) " >&6
  8012. else
  8013.   if test -n "$OBJDUMP"; then
  8014.   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8015. else
  8016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8017. for as_dir in $PATH
  8018. do
  8019.   IFS=$as_save_IFS
  8020.   test -z "$as_dir" && as_dir=.
  8021.     for ac_exec_ext in '' $ac_executable_extensions; do
  8022.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8023.     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  8024.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8025.     break 2
  8026.   fi
  8027. done
  8028.   done
  8029. IFS=$as_save_IFS
  8030.  
  8031. fi
  8032. fi
  8033. OBJDUMP=$ac_cv_prog_OBJDUMP
  8034. if test -n "$OBJDUMP"; then
  8035.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8036. $as_echo "$OBJDUMP" >&6; }
  8037. else
  8038.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8039. $as_echo "no" >&6; }
  8040. fi
  8041.  
  8042.  
  8043. fi
  8044. if test -z "$ac_cv_prog_OBJDUMP"; then
  8045.   ac_ct_OBJDUMP=$OBJDUMP
  8046.   # Extract the first word of "objdump", so it can be a program name with args.
  8047. set dummy objdump; ac_word=$2
  8048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8049. $as_echo_n "checking for $ac_word... " >&6; }
  8050. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  8051.   $as_echo_n "(cached) " >&6
  8052. else
  8053.   if test -n "$ac_ct_OBJDUMP"; then
  8054.   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  8055. else
  8056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8057. for as_dir in $PATH
  8058. do
  8059.   IFS=$as_save_IFS
  8060.   test -z "$as_dir" && as_dir=.
  8061.     for ac_exec_ext in '' $ac_executable_extensions; do
  8062.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8063.     ac_cv_prog_ac_ct_OBJDUMP="objdump"
  8064.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8065.     break 2
  8066.   fi
  8067. done
  8068.   done
  8069. IFS=$as_save_IFS
  8070.  
  8071. fi
  8072. fi
  8073. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  8074. if test -n "$ac_ct_OBJDUMP"; then
  8075.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  8076. $as_echo "$ac_ct_OBJDUMP" >&6; }
  8077. else
  8078.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8079. $as_echo "no" >&6; }
  8080. fi
  8081.  
  8082.   if test "x$ac_ct_OBJDUMP" = x; then
  8083.     OBJDUMP="false"
  8084.   else
  8085.     case $cross_compiling:$ac_tool_warned in
  8086. yes:)
  8087. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8088. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8089. ac_tool_warned=yes ;;
  8090. esac
  8091.     OBJDUMP=$ac_ct_OBJDUMP
  8092.   fi
  8093. else
  8094.   OBJDUMP="$ac_cv_prog_OBJDUMP"
  8095. fi
  8096.  
  8097. test -z "$OBJDUMP" && OBJDUMP=objdump
  8098.  
  8099.  
  8100.  
  8101.  
  8102.  
  8103.  
  8104.  
  8105.  
  8106.  
  8107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  8108. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  8109. if ${lt_cv_deplibs_check_method+:} false; then :
  8110.   $as_echo_n "(cached) " >&6
  8111. else
  8112.   lt_cv_file_magic_cmd='$MAGIC_CMD'
  8113. lt_cv_file_magic_test_file=
  8114. lt_cv_deplibs_check_method='unknown'
  8115. # Need to set the preceding variable on all platforms that support
  8116. # interlibrary dependencies.
  8117. # 'none' -- dependencies not supported.
  8118. # 'unknown' -- same as none, but documents that we really don't know.
  8119. # 'pass_all' -- all dependencies passed with no checks.
  8120. # 'test_compile' -- check by making test program.
  8121. # 'file_magic [[regex]]' -- check by looking for files in library path
  8122. # that responds to the $file_magic_cmd with a given extended regex.
  8123. # If you have 'file' or equivalent on your system and you're not sure
  8124. # whether 'pass_all' will *always* work, you probably want this one.
  8125.  
  8126. case $host_os in
  8127. aix[4-9]*)
  8128.   lt_cv_deplibs_check_method=pass_all
  8129.   ;;
  8130.  
  8131. beos*)
  8132.   lt_cv_deplibs_check_method=pass_all
  8133.   ;;
  8134.  
  8135. bsdi[45]*)
  8136.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  8137.   lt_cv_file_magic_cmd='/usr/bin/file -L'
  8138.   lt_cv_file_magic_test_file=/shlib/libc.so
  8139.   ;;
  8140.  
  8141. cygwin*)
  8142.   # func_win32_libid is a shell function defined in ltmain.sh
  8143.   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  8144.   lt_cv_file_magic_cmd='func_win32_libid'
  8145.   ;;
  8146.  
  8147. mingw* | pw32*)
  8148.   # Base MSYS/MinGW do not provide the 'file' command needed by
  8149.   # func_win32_libid shell function, so use a weaker test based on 'objdump',
  8150.   # unless we find 'file', for example because we are cross-compiling.
  8151.   if ( file / ) >/dev/null 2>&1; then
  8152.     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  8153.     lt_cv_file_magic_cmd='func_win32_libid'
  8154.   else
  8155.     # Keep this pattern in sync with the one in func_win32_libid.
  8156.     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  8157.     lt_cv_file_magic_cmd='$OBJDUMP -f'
  8158.   fi
  8159.   ;;
  8160.  
  8161. cegcc*)
  8162.   # use the weaker test based on 'objdump'. See mingw*.
  8163.   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  8164.   lt_cv_file_magic_cmd='$OBJDUMP -f'
  8165.   ;;
  8166.  
  8167. darwin* | rhapsody*)
  8168.   lt_cv_deplibs_check_method=pass_all
  8169.   ;;
  8170.  
  8171. freebsd* | dragonfly*)
  8172.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  8173.     case $host_cpu in
  8174.     i*86 )
  8175.       # Not sure whether the presence of OpenBSD here was a mistake.
  8176.       # Let's accept both of them until this is cleared up.
  8177.       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  8178.       lt_cv_file_magic_cmd=/usr/bin/file
  8179.       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  8180.       ;;
  8181.     esac
  8182.   else
  8183.     lt_cv_deplibs_check_method=pass_all
  8184.   fi
  8185.   ;;
  8186.  
  8187. haiku*)
  8188.   lt_cv_deplibs_check_method=pass_all
  8189.   ;;
  8190.  
  8191. hpux10.20* | hpux11*)
  8192.   lt_cv_file_magic_cmd=/usr/bin/file
  8193.   case $host_cpu in
  8194.   ia64*)
  8195.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  8196.     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  8197.     ;;
  8198.   hppa*64*)
  8199.     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]'
  8200.     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  8201.     ;;
  8202.   *)
  8203.     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  8204.     lt_cv_file_magic_test_file=/usr/lib/libc.sl
  8205.     ;;
  8206.   esac
  8207.   ;;
  8208.  
  8209. interix[3-9]*)
  8210.   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  8211.   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  8212.   ;;
  8213.  
  8214. irix5* | irix6* | nonstopux*)
  8215.   case $LD in
  8216.   *-32|*"-32 ") libmagic=32-bit;;
  8217.   *-n32|*"-n32 ") libmagic=N32;;
  8218.   *-64|*"-64 ") libmagic=64-bit;;
  8219.   *) libmagic=never-match;;
  8220.   esac
  8221.   lt_cv_deplibs_check_method=pass_all
  8222.   ;;
  8223.  
  8224. # This must be glibc/ELF.
  8225. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8226.   lt_cv_deplibs_check_method=pass_all
  8227.   ;;
  8228.  
  8229. netbsd*)
  8230.   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  8231.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  8232.   else
  8233.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  8234.   fi
  8235.   ;;
  8236.  
  8237. newos6*)
  8238.   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  8239.   lt_cv_file_magic_cmd=/usr/bin/file
  8240.   lt_cv_file_magic_test_file=/usr/lib/libnls.so
  8241.   ;;
  8242.  
  8243. *nto* | *qnx*)
  8244.   lt_cv_deplibs_check_method=pass_all
  8245.   ;;
  8246.  
  8247. openbsd* | bitrig*)
  8248.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8249.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  8250.   else
  8251.     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  8252.   fi
  8253.   ;;
  8254.  
  8255. osf3* | osf4* | osf5*)
  8256.   lt_cv_deplibs_check_method=pass_all
  8257.   ;;
  8258.  
  8259. rdos*)
  8260.   lt_cv_deplibs_check_method=pass_all
  8261.   ;;
  8262.  
  8263. solaris*)
  8264.   lt_cv_deplibs_check_method=pass_all
  8265.   ;;
  8266.  
  8267. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8268.   lt_cv_deplibs_check_method=pass_all
  8269.   ;;
  8270.  
  8271. sysv4 | sysv4.3*)
  8272.   case $host_vendor in
  8273.   motorola)
  8274.     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]'
  8275.     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  8276.     ;;
  8277.   ncr)
  8278.     lt_cv_deplibs_check_method=pass_all
  8279.     ;;
  8280.   sequent)
  8281.     lt_cv_file_magic_cmd='/bin/file'
  8282.     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  8283.     ;;
  8284.   sni)
  8285.     lt_cv_file_magic_cmd='/bin/file'
  8286.     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  8287.     lt_cv_file_magic_test_file=/lib/libc.so
  8288.     ;;
  8289.   siemens)
  8290.     lt_cv_deplibs_check_method=pass_all
  8291.     ;;
  8292.   pc)
  8293.     lt_cv_deplibs_check_method=pass_all
  8294.     ;;
  8295.   esac
  8296.   ;;
  8297.  
  8298. tpf*)
  8299.   lt_cv_deplibs_check_method=pass_all
  8300.   ;;
  8301. os2*)
  8302.   lt_cv_deplibs_check_method=pass_all
  8303.   ;;
  8304. esac
  8305.  
  8306. fi
  8307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  8308. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  8309.  
  8310. file_magic_glob=
  8311. want_nocaseglob=no
  8312. if test "$build" = "$host"; then
  8313.   case $host_os in
  8314.   mingw* | pw32*)
  8315.     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  8316.       want_nocaseglob=yes
  8317.     else
  8318.       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  8319.     fi
  8320.     ;;
  8321.   esac
  8322. fi
  8323.  
  8324. file_magic_cmd=$lt_cv_file_magic_cmd
  8325. deplibs_check_method=$lt_cv_deplibs_check_method
  8326. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  8327.  
  8328.  
  8329.  
  8330.  
  8331.  
  8332.  
  8333.  
  8334.  
  8335.  
  8336.  
  8337.  
  8338.  
  8339.  
  8340.  
  8341.  
  8342.  
  8343.  
  8344.  
  8345.  
  8346.  
  8347.  
  8348.  
  8349. if test -n "$ac_tool_prefix"; then
  8350.   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  8351. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  8352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8353. $as_echo_n "checking for $ac_word... " >&6; }
  8354. if ${ac_cv_prog_DLLTOOL+:} false; then :
  8355.   $as_echo_n "(cached) " >&6
  8356. else
  8357.   if test -n "$DLLTOOL"; then
  8358.   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  8359. else
  8360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8361. for as_dir in $PATH
  8362. do
  8363.   IFS=$as_save_IFS
  8364.   test -z "$as_dir" && as_dir=.
  8365.     for ac_exec_ext in '' $ac_executable_extensions; do
  8366.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8367.     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  8368.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8369.     break 2
  8370.   fi
  8371. done
  8372.   done
  8373. IFS=$as_save_IFS
  8374.  
  8375. fi
  8376. fi
  8377. DLLTOOL=$ac_cv_prog_DLLTOOL
  8378. if test -n "$DLLTOOL"; then
  8379.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  8380. $as_echo "$DLLTOOL" >&6; }
  8381. else
  8382.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8383. $as_echo "no" >&6; }
  8384. fi
  8385.  
  8386.  
  8387. fi
  8388. if test -z "$ac_cv_prog_DLLTOOL"; then
  8389.   ac_ct_DLLTOOL=$DLLTOOL
  8390.   # Extract the first word of "dlltool", so it can be a program name with args.
  8391. set dummy dlltool; ac_word=$2
  8392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8393. $as_echo_n "checking for $ac_word... " >&6; }
  8394. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  8395.   $as_echo_n "(cached) " >&6
  8396. else
  8397.   if test -n "$ac_ct_DLLTOOL"; then
  8398.   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  8399. else
  8400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8401. for as_dir in $PATH
  8402. do
  8403.   IFS=$as_save_IFS
  8404.   test -z "$as_dir" && as_dir=.
  8405.     for ac_exec_ext in '' $ac_executable_extensions; do
  8406.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8407.     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  8408.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8409.     break 2
  8410.   fi
  8411. done
  8412.   done
  8413. IFS=$as_save_IFS
  8414.  
  8415. fi
  8416. fi
  8417. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  8418. if test -n "$ac_ct_DLLTOOL"; then
  8419.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  8420. $as_echo "$ac_ct_DLLTOOL" >&6; }
  8421. else
  8422.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8423. $as_echo "no" >&6; }
  8424. fi
  8425.  
  8426.   if test "x$ac_ct_DLLTOOL" = x; then
  8427.     DLLTOOL="false"
  8428.   else
  8429.     case $cross_compiling:$ac_tool_warned in
  8430. yes:)
  8431. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8432. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8433. ac_tool_warned=yes ;;
  8434. esac
  8435.     DLLTOOL=$ac_ct_DLLTOOL
  8436.   fi
  8437. else
  8438.   DLLTOOL="$ac_cv_prog_DLLTOOL"
  8439. fi
  8440.  
  8441. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8442.  
  8443.  
  8444.  
  8445.  
  8446.  
  8447.  
  8448.  
  8449.  
  8450.  
  8451.  
  8452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  8453. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  8454. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  8455.   $as_echo_n "(cached) " >&6
  8456. else
  8457.   lt_cv_sharedlib_from_linklib_cmd='unknown'
  8458.  
  8459. case $host_os in
  8460. cygwin* | mingw* | pw32* | cegcc*)
  8461.   # two different shell functions defined in ltmain.sh;
  8462.   # decide which one to use based on capabilities of $DLLTOOL
  8463.   case `$DLLTOOL --help 2>&1` in
  8464.   *--identify-strict*)
  8465.     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  8466.     ;;
  8467.   *)
  8468.     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  8469.     ;;
  8470.   esac
  8471.   ;;
  8472. *)
  8473.   # fallback: assume linklib IS sharedlib
  8474.   lt_cv_sharedlib_from_linklib_cmd=$ECHO
  8475.   ;;
  8476. esac
  8477.  
  8478. fi
  8479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  8480. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  8481. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  8482. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  8483.  
  8484.  
  8485.  
  8486.  
  8487.  
  8488.  
  8489.  
  8490. if test -n "$ac_tool_prefix"; then
  8491.   for ac_prog in ar
  8492.   do
  8493.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  8494. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  8495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8496. $as_echo_n "checking for $ac_word... " >&6; }
  8497. if ${ac_cv_prog_AR+:} false; then :
  8498.   $as_echo_n "(cached) " >&6
  8499. else
  8500.   if test -n "$AR"; then
  8501.   ac_cv_prog_AR="$AR" # Let the user override the test.
  8502. else
  8503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8504. for as_dir in $PATH
  8505. do
  8506.   IFS=$as_save_IFS
  8507.   test -z "$as_dir" && as_dir=.
  8508.     for ac_exec_ext in '' $ac_executable_extensions; do
  8509.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8510.     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  8511.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8512.     break 2
  8513.   fi
  8514. done
  8515.   done
  8516. IFS=$as_save_IFS
  8517.  
  8518. fi
  8519. fi
  8520. AR=$ac_cv_prog_AR
  8521. if test -n "$AR"; then
  8522.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  8523. $as_echo "$AR" >&6; }
  8524. else
  8525.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8526. $as_echo "no" >&6; }
  8527. fi
  8528.  
  8529.  
  8530.     test -n "$AR" && break
  8531.   done
  8532. fi
  8533. if test -z "$AR"; then
  8534.   ac_ct_AR=$AR
  8535.   for ac_prog in ar
  8536. do
  8537.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  8538. set dummy $ac_prog; ac_word=$2
  8539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8540. $as_echo_n "checking for $ac_word... " >&6; }
  8541. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  8542.   $as_echo_n "(cached) " >&6
  8543. else
  8544.   if test -n "$ac_ct_AR"; then
  8545.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  8546. else
  8547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8548. for as_dir in $PATH
  8549. do
  8550.   IFS=$as_save_IFS
  8551.   test -z "$as_dir" && as_dir=.
  8552.     for ac_exec_ext in '' $ac_executable_extensions; do
  8553.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8554.     ac_cv_prog_ac_ct_AR="$ac_prog"
  8555.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8556.     break 2
  8557.   fi
  8558. done
  8559.   done
  8560. IFS=$as_save_IFS
  8561.  
  8562. fi
  8563. fi
  8564. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  8565. if test -n "$ac_ct_AR"; then
  8566.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  8567. $as_echo "$ac_ct_AR" >&6; }
  8568. else
  8569.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8570. $as_echo "no" >&6; }
  8571. fi
  8572.  
  8573.  
  8574.   test -n "$ac_ct_AR" && break
  8575. done
  8576.  
  8577.   if test "x$ac_ct_AR" = x; then
  8578.     AR="false"
  8579.   else
  8580.     case $cross_compiling:$ac_tool_warned in
  8581. yes:)
  8582. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8583. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8584. ac_tool_warned=yes ;;
  8585. esac
  8586.     AR=$ac_ct_AR
  8587.   fi
  8588. fi
  8589.  
  8590. : ${AR=ar}
  8591. : ${AR_FLAGS=cru}
  8592.  
  8593.  
  8594.  
  8595.  
  8596.  
  8597.  
  8598.  
  8599.  
  8600.  
  8601.  
  8602.  
  8603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  8604. $as_echo_n "checking for archiver @FILE support... " >&6; }
  8605. if ${lt_cv_ar_at_file+:} false; then :
  8606.   $as_echo_n "(cached) " >&6
  8607. else
  8608.   lt_cv_ar_at_file=no
  8609.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8610. /* end confdefs.h.  */
  8611.  
  8612. int
  8613. main ()
  8614. {
  8615.  
  8616.   ;
  8617.   return 0;
  8618. }
  8619. _ACEOF
  8620. if ac_fn_c_try_compile "$LINENO"; then :
  8621.   echo conftest.$ac_objext > conftest.lst
  8622.       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  8623.       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8624.   (eval $lt_ar_try) 2>&5
  8625.   ac_status=$?
  8626.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8627.   test $ac_status = 0; }
  8628.       if test 0 -eq "$ac_status"; then
  8629.         # Ensure the archiver fails upon bogus file names.
  8630.         rm -f conftest.$ac_objext libconftest.a
  8631.         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  8632.   (eval $lt_ar_try) 2>&5
  8633.   ac_status=$?
  8634.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8635.   test $ac_status = 0; }
  8636.         if test 0 -ne "$ac_status"; then
  8637.           lt_cv_ar_at_file=@
  8638.         fi
  8639.       fi
  8640.       rm -f conftest.* libconftest.a
  8641.  
  8642. fi
  8643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8644.  
  8645. fi
  8646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  8647. $as_echo "$lt_cv_ar_at_file" >&6; }
  8648.  
  8649. if test no = "$lt_cv_ar_at_file"; then
  8650.   archiver_list_spec=
  8651. else
  8652.   archiver_list_spec=$lt_cv_ar_at_file
  8653. fi
  8654.  
  8655.  
  8656.  
  8657.  
  8658.  
  8659.  
  8660.  
  8661. if test -n "$ac_tool_prefix"; then
  8662.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8663. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8665. $as_echo_n "checking for $ac_word... " >&6; }
  8666. if ${ac_cv_prog_STRIP+:} false; then :
  8667.   $as_echo_n "(cached) " >&6
  8668. else
  8669.   if test -n "$STRIP"; then
  8670.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8671. else
  8672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8673. for as_dir in $PATH
  8674. do
  8675.   IFS=$as_save_IFS
  8676.   test -z "$as_dir" && as_dir=.
  8677.     for ac_exec_ext in '' $ac_executable_extensions; do
  8678.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8679.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8680.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8681.     break 2
  8682.   fi
  8683. done
  8684.   done
  8685. IFS=$as_save_IFS
  8686.  
  8687. fi
  8688. fi
  8689. STRIP=$ac_cv_prog_STRIP
  8690. if test -n "$STRIP"; then
  8691.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8692. $as_echo "$STRIP" >&6; }
  8693. else
  8694.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8695. $as_echo "no" >&6; }
  8696. fi
  8697.  
  8698.  
  8699. fi
  8700. if test -z "$ac_cv_prog_STRIP"; then
  8701.   ac_ct_STRIP=$STRIP
  8702.   # Extract the first word of "strip", so it can be a program name with args.
  8703. set dummy strip; ac_word=$2
  8704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8705. $as_echo_n "checking for $ac_word... " >&6; }
  8706. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  8707.   $as_echo_n "(cached) " >&6
  8708. else
  8709.   if test -n "$ac_ct_STRIP"; then
  8710.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8711. else
  8712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8713. for as_dir in $PATH
  8714. do
  8715.   IFS=$as_save_IFS
  8716.   test -z "$as_dir" && as_dir=.
  8717.     for ac_exec_ext in '' $ac_executable_extensions; do
  8718.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8719.     ac_cv_prog_ac_ct_STRIP="strip"
  8720.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8721.     break 2
  8722.   fi
  8723. done
  8724.   done
  8725. IFS=$as_save_IFS
  8726.  
  8727. fi
  8728. fi
  8729. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8730. if test -n "$ac_ct_STRIP"; then
  8731.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  8732. $as_echo "$ac_ct_STRIP" >&6; }
  8733. else
  8734.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8735. $as_echo "no" >&6; }
  8736. fi
  8737.  
  8738.   if test "x$ac_ct_STRIP" = x; then
  8739.     STRIP=":"
  8740.   else
  8741.     case $cross_compiling:$ac_tool_warned in
  8742. yes:)
  8743. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8744. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8745. ac_tool_warned=yes ;;
  8746. esac
  8747.     STRIP=$ac_ct_STRIP
  8748.   fi
  8749. else
  8750.   STRIP="$ac_cv_prog_STRIP"
  8751. fi
  8752.  
  8753. test -z "$STRIP" && STRIP=:
  8754.  
  8755.  
  8756.  
  8757.  
  8758.  
  8759.  
  8760. if test -n "$ac_tool_prefix"; then
  8761.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8762. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8764. $as_echo_n "checking for $ac_word... " >&6; }
  8765. if ${ac_cv_prog_RANLIB+:} false; then :
  8766.   $as_echo_n "(cached) " >&6
  8767. else
  8768.   if test -n "$RANLIB"; then
  8769.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8770. else
  8771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8772. for as_dir in $PATH
  8773. do
  8774.   IFS=$as_save_IFS
  8775.   test -z "$as_dir" && as_dir=.
  8776.     for ac_exec_ext in '' $ac_executable_extensions; do
  8777.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8778.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8779.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8780.     break 2
  8781.   fi
  8782. done
  8783.   done
  8784. IFS=$as_save_IFS
  8785.  
  8786. fi
  8787. fi
  8788. RANLIB=$ac_cv_prog_RANLIB
  8789. if test -n "$RANLIB"; then
  8790.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8791. $as_echo "$RANLIB" >&6; }
  8792. else
  8793.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8794. $as_echo "no" >&6; }
  8795. fi
  8796.  
  8797.  
  8798. fi
  8799. if test -z "$ac_cv_prog_RANLIB"; then
  8800.   ac_ct_RANLIB=$RANLIB
  8801.   # Extract the first word of "ranlib", so it can be a program name with args.
  8802. set dummy ranlib; ac_word=$2
  8803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8804. $as_echo_n "checking for $ac_word... " >&6; }
  8805. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  8806.   $as_echo_n "(cached) " >&6
  8807. else
  8808.   if test -n "$ac_ct_RANLIB"; then
  8809.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8810. else
  8811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8812. for as_dir in $PATH
  8813. do
  8814.   IFS=$as_save_IFS
  8815.   test -z "$as_dir" && as_dir=.
  8816.     for ac_exec_ext in '' $ac_executable_extensions; do
  8817.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8818.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  8819.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8820.     break 2
  8821.   fi
  8822. done
  8823.   done
  8824. IFS=$as_save_IFS
  8825.  
  8826. fi
  8827. fi
  8828. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8829. if test -n "$ac_ct_RANLIB"; then
  8830.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  8831. $as_echo "$ac_ct_RANLIB" >&6; }
  8832. else
  8833.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8834. $as_echo "no" >&6; }
  8835. fi
  8836.  
  8837.   if test "x$ac_ct_RANLIB" = x; then
  8838.     RANLIB=":"
  8839.   else
  8840.     case $cross_compiling:$ac_tool_warned in
  8841. yes:)
  8842. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8843. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8844. ac_tool_warned=yes ;;
  8845. esac
  8846.     RANLIB=$ac_ct_RANLIB
  8847.   fi
  8848. else
  8849.   RANLIB="$ac_cv_prog_RANLIB"
  8850. fi
  8851.  
  8852. test -z "$RANLIB" && RANLIB=:
  8853.  
  8854.  
  8855.  
  8856.  
  8857.  
  8858.  
  8859. # Determine commands to create old-style static archives.
  8860. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  8861. old_postinstall_cmds='chmod 644 $oldlib'
  8862. old_postuninstall_cmds=
  8863.  
  8864. if test -n "$RANLIB"; then
  8865.   case $host_os in
  8866.   bitrig* | openbsd*)
  8867.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  8868.     ;;
  8869.   *)
  8870.     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  8871.     ;;
  8872.   esac
  8873.   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  8874. fi
  8875.  
  8876. case $host_os in
  8877.   darwin*)
  8878.     lock_old_archive_extraction=yes ;;
  8879.   *)
  8880.     lock_old_archive_extraction=no ;;
  8881. esac
  8882.  
  8883.  
  8884.  
  8885.  
  8886.  
  8887.  
  8888.  
  8889.  
  8890.  
  8891.  
  8892.  
  8893.  
  8894.  
  8895.  
  8896.  
  8897.  
  8898.  
  8899.  
  8900.  
  8901.  
  8902.  
  8903.  
  8904.  
  8905.  
  8906.  
  8907.  
  8908.  
  8909.  
  8910.  
  8911.  
  8912.  
  8913.  
  8914.  
  8915.  
  8916.  
  8917.  
  8918.  
  8919.  
  8920.  
  8921. # If no C compiler was specified, use CC.
  8922. LTCC=${LTCC-"$CC"}
  8923.  
  8924. # If no C compiler flags were specified, use CFLAGS.
  8925. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8926.  
  8927. # Allow CC to be a program name with arguments.
  8928. compiler=$CC
  8929.  
  8930.  
  8931. # Check for command to grab the raw symbol name followed by C symbol from nm.
  8932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  8933. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  8934. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  8935.   $as_echo_n "(cached) " >&6
  8936. else
  8937.  
  8938. # These are sane defaults that work on at least a few old systems.
  8939. # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  8940.  
  8941. # Character class describing NM global symbol codes.
  8942. symcode='[BCDEGRST]'
  8943.  
  8944. # Regexp to match symbols that can be accessed directly from C.
  8945. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8946.  
  8947. # Define system-specific variables.
  8948. case $host_os in
  8949. aix*)
  8950.   symcode='[BCDT]'
  8951.   ;;
  8952. cygwin* | mingw* | pw32* | cegcc*)
  8953.   symcode='[ABCDGISTW]'
  8954.   ;;
  8955. hpux*)
  8956.   if test ia64 = "$host_cpu"; then
  8957.     symcode='[ABCDEGRST]'
  8958.   fi
  8959.   ;;
  8960. irix* | nonstopux*)
  8961.   symcode='[BCDEGRST]'
  8962.   ;;
  8963. osf*)
  8964.   symcode='[BCDEGQRST]'
  8965.   ;;
  8966. solaris*)
  8967.   symcode='[BDRT]'
  8968.   ;;
  8969. sco3.2v5*)
  8970.   symcode='[DT]'
  8971.   ;;
  8972. sysv4.2uw2*)
  8973.   symcode='[DT]'
  8974.   ;;
  8975. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  8976.   symcode='[ABDT]'
  8977.   ;;
  8978. sysv4)
  8979.   symcode='[DFNSTU]'
  8980.   ;;
  8981. esac
  8982.  
  8983. # If we're using GNU nm, then use its standard symbol codes.
  8984. case `$NM -V 2>&1` in
  8985. *GNU* | *'with BFD'*)
  8986.   symcode='[ABCDGIRSTW]' ;;
  8987. esac
  8988.  
  8989. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  8990.   # Gets list of data symbols to import.
  8991.   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  8992.   # Adjust the below global symbol transforms to fixup imported variables.
  8993.   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  8994.   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
  8995.   lt_c_name_lib_hook="\
  8996.   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
  8997.   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
  8998. else
  8999.   # Disable hooks by default.
  9000.   lt_cv_sys_global_symbol_to_import=
  9001.   lt_cdecl_hook=
  9002.   lt_c_name_hook=
  9003.   lt_c_name_lib_hook=
  9004. fi
  9005.  
  9006. # Transform an extracted symbol line into a proper C declaration.
  9007. # Some systems (esp. on ia64) link data and code symbols differently,
  9008. # so use this general approach.
  9009. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  9010. $lt_cdecl_hook\
  9011. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  9012. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  9013.  
  9014. # Transform an extracted symbol line into symbol name and symbol address
  9015. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  9016. $lt_c_name_hook\
  9017. " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
  9018. " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
  9019.  
  9020. # Transform an extracted symbol line into symbol name with lib prefix and
  9021. # symbol address.
  9022. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  9023. $lt_c_name_lib_hook\
  9024. " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
  9025. " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
  9026. " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
  9027.  
  9028. # Handle CRLF in mingw tool chain
  9029. opt_cr=
  9030. case $build_os in
  9031. mingw*)
  9032.   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  9033.   ;;
  9034. esac
  9035.  
  9036. # Try without a prefix underscore, then with it.
  9037. for ac_symprfx in "" "_"; do
  9038.  
  9039.   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  9040.   symxfrm="\\1 $ac_symprfx\\2 \\2"
  9041.  
  9042.   # Write the raw and C identifiers.
  9043.   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  9044.     # Fake it for dumpbin and say T for any non-static function,
  9045.     # D for any global variable and I for any imported variable.
  9046.     # Also find C++ and __fastcall symbols from MSVC++,
  9047.     # which start with @ or ?.
  9048.     lt_cv_sys_global_symbol_pipe="$AWK '"\
  9049. "     {last_section=section; section=\$ 3};"\
  9050. "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  9051. "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  9052. "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  9053. "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  9054. "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  9055. "     \$ 0!~/External *\|/{next};"\
  9056. "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  9057. "     {if(hide[section]) next};"\
  9058. "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  9059. "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  9060. "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  9061. "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  9062. "     ' prfx=^$ac_symprfx"
  9063.   else
  9064.     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  9065.   fi
  9066.   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  9067.  
  9068.   # Check to see that the pipe works correctly.
  9069.   pipe_works=no
  9070.  
  9071.   rm -f conftest*
  9072.   cat > conftest.$ac_ext <<_LT_EOF
  9073. #ifdef __cplusplus
  9074. extern "C" {
  9075. #endif
  9076. char nm_test_var;
  9077. void nm_test_func(void);
  9078. void nm_test_func(void){}
  9079. #ifdef __cplusplus
  9080. }
  9081. #endif
  9082. int main(){nm_test_var='a';nm_test_func();return(0);}
  9083. _LT_EOF
  9084.  
  9085.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9086.   (eval $ac_compile) 2>&5
  9087.   ac_status=$?
  9088.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9089.   test $ac_status = 0; }; then
  9090.     # Now try to grab the symbols.
  9091.     nlist=conftest.nm
  9092.     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  9093.   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  9094.   ac_status=$?
  9095.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9096.   test $ac_status = 0; } && test -s "$nlist"; then
  9097.       # Try sorting and uniquifying the output.
  9098.       if sort "$nlist" | uniq > "$nlist"T; then
  9099.         mv -f "$nlist"T "$nlist"
  9100.       else
  9101.         rm -f "$nlist"T
  9102.       fi
  9103.  
  9104.       # Make sure that we snagged all the symbols we need.
  9105.       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  9106.         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  9107.           cat <<_LT_EOF > conftest.$ac_ext
  9108. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  9109. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  9110. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  9111.    relocations are performed -- see ld's documentation on pseudo-relocs.  */
  9112. # define LT_DLSYM_CONST
  9113. #elif defined __osf__
  9114. /* This system does not cope well with relocations in const data.  */
  9115. # define LT_DLSYM_CONST
  9116. #else
  9117. # define LT_DLSYM_CONST const
  9118. #endif
  9119.  
  9120. #ifdef __cplusplus
  9121. extern "C" {
  9122. #endif
  9123.  
  9124. _LT_EOF
  9125.           # Now generate the symbol file.
  9126.           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  9127.  
  9128.           cat <<_LT_EOF >> conftest.$ac_ext
  9129.  
  9130. /* The mapping between symbol names and symbols.  */
  9131. LT_DLSYM_CONST struct {
  9132.   const char *name;
  9133.   void       *address;
  9134. }
  9135. lt__PROGRAM__LTX_preloaded_symbols[] =
  9136. {
  9137.   { "@PROGRAM@", (void *) 0 },
  9138. _LT_EOF
  9139.           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  9140.           cat <<\_LT_EOF >> conftest.$ac_ext
  9141.   {0, (void *) 0}
  9142. };
  9143.  
  9144. /* This works around a problem in FreeBSD linker */
  9145. #ifdef FREEBSD_WORKAROUND
  9146. static const void *lt_preloaded_setup() {
  9147.   return lt__PROGRAM__LTX_preloaded_symbols;
  9148. }
  9149. #endif
  9150.  
  9151. #ifdef __cplusplus
  9152. }
  9153. #endif
  9154. _LT_EOF
  9155.           # Now try linking the two files.
  9156.           mv conftest.$ac_objext conftstm.$ac_objext
  9157.           lt_globsym_save_LIBS=$LIBS
  9158.           lt_globsym_save_CFLAGS=$CFLAGS
  9159.           LIBS=conftstm.$ac_objext
  9160.           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  9161.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9162.   (eval $ac_link) 2>&5
  9163.   ac_status=$?
  9164.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9165.   test $ac_status = 0; } && test -s conftest$ac_exeext; then
  9166.             pipe_works=yes
  9167.           fi
  9168.           LIBS=$lt_globsym_save_LIBS
  9169.           CFLAGS=$lt_globsym_save_CFLAGS
  9170.         else
  9171.           echo "cannot find nm_test_func in $nlist" >&5
  9172.         fi
  9173.       else
  9174.         echo "cannot find nm_test_var in $nlist" >&5
  9175.       fi
  9176.     else
  9177.       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  9178.     fi
  9179.   else
  9180.     echo "$progname: failed program was:" >&5
  9181.     cat conftest.$ac_ext >&5
  9182.   fi
  9183.   rm -rf conftest* conftst*
  9184.  
  9185.   # Do not use the global_symbol_pipe unless it works.
  9186.   if test yes = "$pipe_works"; then
  9187.     break
  9188.   else
  9189.     lt_cv_sys_global_symbol_pipe=
  9190.   fi
  9191. done
  9192.  
  9193. fi
  9194.  
  9195. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  9196.   lt_cv_sys_global_symbol_to_cdecl=
  9197. fi
  9198. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  9199.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  9200. $as_echo "failed" >&6; }
  9201. else
  9202.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  9203. $as_echo "ok" >&6; }
  9204. fi
  9205.  
  9206. # Response file support.
  9207. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  9208.   nm_file_list_spec='@'
  9209. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  9210.   nm_file_list_spec='@'
  9211. fi
  9212.  
  9213.  
  9214.  
  9215.  
  9216.  
  9217.  
  9218.  
  9219.  
  9220.  
  9221.  
  9222.  
  9223.  
  9224.  
  9225.  
  9226.  
  9227.  
  9228.  
  9229.  
  9230.  
  9231.  
  9232.  
  9233.  
  9234.  
  9235.  
  9236.  
  9237.  
  9238.  
  9239.  
  9240.  
  9241.  
  9242.  
  9243.  
  9244.  
  9245.  
  9246.  
  9247.  
  9248.  
  9249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  9250. $as_echo_n "checking for sysroot... " >&6; }
  9251.  
  9252. # Check whether --with-sysroot was given.
  9253. if test "${with_sysroot+set}" = set; then :
  9254.   withval=$with_sysroot;
  9255. else
  9256.   with_sysroot=no
  9257. fi
  9258.  
  9259.  
  9260. lt_sysroot=
  9261. case $with_sysroot in #(
  9262.  yes)
  9263.    if test yes = "$GCC"; then
  9264.      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  9265.    fi
  9266.    ;; #(
  9267.  /*)
  9268.    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  9269.    ;; #(
  9270.  no|'')
  9271.    ;; #(
  9272.  *)
  9273.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  9274. $as_echo "$with_sysroot" >&6; }
  9275.    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  9276.    ;;
  9277. esac
  9278.  
  9279.  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  9280. $as_echo "${lt_sysroot:-no}" >&6; }
  9281.  
  9282.  
  9283.  
  9284.  
  9285.  
  9286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  9287. $as_echo_n "checking for a working dd... " >&6; }
  9288. if ${ac_cv_path_lt_DD+:} false; then :
  9289.   $as_echo_n "(cached) " >&6
  9290. else
  9291.   printf 0123456789abcdef0123456789abcdef >conftest.i
  9292. cat conftest.i conftest.i >conftest2.i
  9293. : ${lt_DD:=$DD}
  9294. if test -z "$lt_DD"; then
  9295.   ac_path_lt_DD_found=false
  9296.   # Loop through the user's path and test for each of PROGNAME-LIST
  9297.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9298. for as_dir in $PATH
  9299. do
  9300.   IFS=$as_save_IFS
  9301.   test -z "$as_dir" && as_dir=.
  9302.     for ac_prog in dd; do
  9303.     for ac_exec_ext in '' $ac_executable_extensions; do
  9304.       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  9305.       as_fn_executable_p "$ac_path_lt_DD" || continue
  9306. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  9307.   cmp -s conftest.i conftest.out \
  9308.   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  9309. fi
  9310.       $ac_path_lt_DD_found && break 3
  9311.     done
  9312.   done
  9313.   done
  9314. IFS=$as_save_IFS
  9315.   if test -z "$ac_cv_path_lt_DD"; then
  9316.     :
  9317.   fi
  9318. else
  9319.   ac_cv_path_lt_DD=$lt_DD
  9320. fi
  9321.  
  9322. rm -f conftest.i conftest2.i conftest.out
  9323. fi
  9324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  9325. $as_echo "$ac_cv_path_lt_DD" >&6; }
  9326.  
  9327.  
  9328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  9329. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  9330. if ${lt_cv_truncate_bin+:} false; then :
  9331.   $as_echo_n "(cached) " >&6
  9332. else
  9333.   printf 0123456789abcdef0123456789abcdef >conftest.i
  9334. cat conftest.i conftest.i >conftest2.i
  9335. lt_cv_truncate_bin=
  9336. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  9337.   cmp -s conftest.i conftest.out \
  9338.   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  9339. fi
  9340. rm -f conftest.i conftest2.i conftest.out
  9341. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  9342. fi
  9343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  9344. $as_echo "$lt_cv_truncate_bin" >&6; }
  9345.  
  9346.  
  9347.  
  9348.  
  9349.  
  9350.  
  9351.  
  9352. # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
  9353. func_cc_basename ()
  9354. {
  9355.     for cc_temp in $*""; do
  9356.       case $cc_temp in
  9357.         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9358.         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9359.         \-*) ;;
  9360.         *) break;;
  9361.       esac
  9362.     done
  9363.     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  9364. }
  9365.  
  9366. # Check whether --enable-libtool-lock was given.
  9367. if test "${enable_libtool_lock+set}" = set; then :
  9368.   enableval=$enable_libtool_lock;
  9369. fi
  9370.  
  9371. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  9372.  
  9373. # Some flags need to be propagated to the compiler or linker for good
  9374. # libtool support.
  9375. case $host in
  9376. ia64-*-hpux*)
  9377.   # Find out what ABI is being produced by ac_compile, and set mode
  9378.   # options accordingly.
  9379.   echo 'int i;' > conftest.$ac_ext
  9380.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9381.   (eval $ac_compile) 2>&5
  9382.   ac_status=$?
  9383.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9384.   test $ac_status = 0; }; then
  9385.     case `/usr/bin/file conftest.$ac_objext` in
  9386.       *ELF-32*)
  9387.         HPUX_IA64_MODE=32
  9388.         ;;
  9389.       *ELF-64*)
  9390.         HPUX_IA64_MODE=64
  9391.         ;;
  9392.     esac
  9393.   fi
  9394.   rm -rf conftest*
  9395.   ;;
  9396. *-*-irix6*)
  9397.   # Find out what ABI is being produced by ac_compile, and set linker
  9398.   # options accordingly.
  9399.   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  9400.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9401.   (eval $ac_compile) 2>&5
  9402.   ac_status=$?
  9403.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9404.   test $ac_status = 0; }; then
  9405.     if test yes = "$lt_cv_prog_gnu_ld"; then
  9406.       case `/usr/bin/file conftest.$ac_objext` in
  9407.         *32-bit*)
  9408.           LD="${LD-ld} -melf32bsmip"
  9409.           ;;
  9410.         *N32*)
  9411.           LD="${LD-ld} -melf32bmipn32"
  9412.           ;;
  9413.         *64-bit*)
  9414.           LD="${LD-ld} -melf64bmip"
  9415.         ;;
  9416.       esac
  9417.     else
  9418.       case `/usr/bin/file conftest.$ac_objext` in
  9419.         *32-bit*)
  9420.           LD="${LD-ld} -32"
  9421.           ;;
  9422.         *N32*)
  9423.           LD="${LD-ld} -n32"
  9424.           ;;
  9425.         *64-bit*)
  9426.           LD="${LD-ld} -64"
  9427.           ;;
  9428.       esac
  9429.     fi
  9430.   fi
  9431.   rm -rf conftest*
  9432.   ;;
  9433.  
  9434. mips64*-*linux*)
  9435.   # Find out what ABI is being produced by ac_compile, and set linker
  9436.   # options accordingly.
  9437.   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  9438.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9439.   (eval $ac_compile) 2>&5
  9440.   ac_status=$?
  9441.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9442.   test $ac_status = 0; }; then
  9443.     emul=elf
  9444.     case `/usr/bin/file conftest.$ac_objext` in
  9445.       *32-bit*)
  9446.         emul="${emul}32"
  9447.         ;;
  9448.       *64-bit*)
  9449.         emul="${emul}64"
  9450.         ;;
  9451.     esac
  9452.     case `/usr/bin/file conftest.$ac_objext` in
  9453.       *MSB*)
  9454.         emul="${emul}btsmip"
  9455.         ;;
  9456.       *LSB*)
  9457.         emul="${emul}ltsmip"
  9458.         ;;
  9459.     esac
  9460.     case `/usr/bin/file conftest.$ac_objext` in
  9461.       *N32*)
  9462.         emul="${emul}n32"
  9463.         ;;
  9464.     esac
  9465.     LD="${LD-ld} -m $emul"
  9466.   fi
  9467.   rm -rf conftest*
  9468.   ;;
  9469.  
  9470. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  9471. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  9472.   # Find out what ABI is being produced by ac_compile, and set linker
  9473.   # options accordingly.  Note that the listed cases only cover the
  9474.   # situations where additional linker options are needed (such as when
  9475.   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  9476.   # vice versa); the common cases where no linker options are needed do
  9477.   # not appear in the list.
  9478.   echo 'int i;' > conftest.$ac_ext
  9479.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9480.   (eval $ac_compile) 2>&5
  9481.   ac_status=$?
  9482.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9483.   test $ac_status = 0; }; then
  9484.     case `/usr/bin/file conftest.o` in
  9485.       *32-bit*)
  9486.         case $host in
  9487.           x86_64-*kfreebsd*-gnu)
  9488.             LD="${LD-ld} -m elf_i386_fbsd"
  9489.             ;;
  9490.           x86_64-*linux*)
  9491.             case `/usr/bin/file conftest.o` in
  9492.               *x86-64*)
  9493.                 LD="${LD-ld} -m elf32_x86_64"
  9494.                 ;;
  9495.               *)
  9496.                 LD="${LD-ld} -m elf_i386"
  9497.                 ;;
  9498.             esac
  9499.             ;;
  9500.           powerpc64le-*linux*)
  9501.             LD="${LD-ld} -m elf32lppclinux"
  9502.             ;;
  9503.           powerpc64-*linux*)
  9504.             LD="${LD-ld} -m elf32ppclinux"
  9505.             ;;
  9506.           s390x-*linux*)
  9507.             LD="${LD-ld} -m elf_s390"
  9508.             ;;
  9509.           sparc64-*linux*)
  9510.             LD="${LD-ld} -m elf32_sparc"
  9511.             ;;
  9512.         esac
  9513.         ;;
  9514.       *64-bit*)
  9515.         case $host in
  9516.           x86_64-*kfreebsd*-gnu)
  9517.             LD="${LD-ld} -m elf_x86_64_fbsd"
  9518.             ;;
  9519.           x86_64-*linux*)
  9520.             LD="${LD-ld} -m elf_x86_64"
  9521.             ;;
  9522.           powerpcle-*linux*)
  9523.             LD="${LD-ld} -m elf64lppc"
  9524.             ;;
  9525.           powerpc-*linux*)
  9526.             LD="${LD-ld} -m elf64ppc"
  9527.             ;;
  9528.           s390*-*linux*|s390*-*tpf*)
  9529.             LD="${LD-ld} -m elf64_s390"
  9530.             ;;
  9531.           sparc*-*linux*)
  9532.             LD="${LD-ld} -m elf64_sparc"
  9533.             ;;
  9534.         esac
  9535.         ;;
  9536.     esac
  9537.   fi
  9538.   rm -rf conftest*
  9539.   ;;
  9540.  
  9541. *-*-sco3.2v5*)
  9542.   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  9543.   SAVE_CFLAGS=$CFLAGS
  9544.   CFLAGS="$CFLAGS -belf"
  9545.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  9546. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  9547. if ${lt_cv_cc_needs_belf+:} false; then :
  9548.   $as_echo_n "(cached) " >&6
  9549. else
  9550.   ac_ext=c
  9551. ac_cpp='$CPP $CPPFLAGS'
  9552. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9553. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9554. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9555.  
  9556.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9557. /* end confdefs.h.  */
  9558.  
  9559. int
  9560. main ()
  9561. {
  9562.  
  9563.   ;
  9564.   return 0;
  9565. }
  9566. _ACEOF
  9567. if ac_fn_c_try_link "$LINENO"; then :
  9568.   lt_cv_cc_needs_belf=yes
  9569. else
  9570.   lt_cv_cc_needs_belf=no
  9571. fi
  9572. rm -f core conftest.err conftest.$ac_objext \
  9573.     conftest$ac_exeext conftest.$ac_ext
  9574.      ac_ext=c
  9575. ac_cpp='$CPP $CPPFLAGS'
  9576. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9577. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9578. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9579.  
  9580. fi
  9581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  9582. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  9583.   if test yes != "$lt_cv_cc_needs_belf"; then
  9584.     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  9585.     CFLAGS=$SAVE_CFLAGS
  9586.   fi
  9587.   ;;
  9588. *-*solaris*)
  9589.   # Find out what ABI is being produced by ac_compile, and set linker
  9590.   # options accordingly.
  9591.   echo 'int i;' > conftest.$ac_ext
  9592.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9593.   (eval $ac_compile) 2>&5
  9594.   ac_status=$?
  9595.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9596.   test $ac_status = 0; }; then
  9597.     case `/usr/bin/file conftest.o` in
  9598.     *64-bit*)
  9599.       case $lt_cv_prog_gnu_ld in
  9600.       yes*)
  9601.         case $host in
  9602.         i?86-*-solaris*|x86_64-*-solaris*)
  9603.           LD="${LD-ld} -m elf_x86_64"
  9604.           ;;
  9605.         sparc*-*-solaris*)
  9606.           LD="${LD-ld} -m elf64_sparc"
  9607.           ;;
  9608.         esac
  9609.         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
  9610.         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  9611.           LD=${LD-ld}_sol2
  9612.         fi
  9613.         ;;
  9614.       *)
  9615.         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  9616.           LD="${LD-ld} -64"
  9617.         fi
  9618.         ;;
  9619.       esac
  9620.       ;;
  9621.     esac
  9622.   fi
  9623.   rm -rf conftest*
  9624.   ;;
  9625. esac
  9626.  
  9627. need_locks=$enable_libtool_lock
  9628.  
  9629. if test -n "$ac_tool_prefix"; then
  9630.   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  9631. set dummy ${ac_tool_prefix}mt; ac_word=$2
  9632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9633. $as_echo_n "checking for $ac_word... " >&6; }
  9634. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  9635.   $as_echo_n "(cached) " >&6
  9636. else
  9637.   if test -n "$MANIFEST_TOOL"; then
  9638.   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  9639. else
  9640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9641. for as_dir in $PATH
  9642. do
  9643.   IFS=$as_save_IFS
  9644.   test -z "$as_dir" && as_dir=.
  9645.     for ac_exec_ext in '' $ac_executable_extensions; do
  9646.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9647.     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  9648.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9649.     break 2
  9650.   fi
  9651. done
  9652.   done
  9653. IFS=$as_save_IFS
  9654.  
  9655. fi
  9656. fi
  9657. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  9658. if test -n "$MANIFEST_TOOL"; then
  9659.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  9660. $as_echo "$MANIFEST_TOOL" >&6; }
  9661. else
  9662.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9663. $as_echo "no" >&6; }
  9664. fi
  9665.  
  9666.  
  9667. fi
  9668. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  9669.   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  9670.   # Extract the first word of "mt", so it can be a program name with args.
  9671. set dummy mt; ac_word=$2
  9672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9673. $as_echo_n "checking for $ac_word... " >&6; }
  9674. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  9675.   $as_echo_n "(cached) " >&6
  9676. else
  9677.   if test -n "$ac_ct_MANIFEST_TOOL"; then
  9678.   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  9679. else
  9680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9681. for as_dir in $PATH
  9682. do
  9683.   IFS=$as_save_IFS
  9684.   test -z "$as_dir" && as_dir=.
  9685.     for ac_exec_ext in '' $ac_executable_extensions; do
  9686.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9687.     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  9688.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9689.     break 2
  9690.   fi
  9691. done
  9692.   done
  9693. IFS=$as_save_IFS
  9694.  
  9695. fi
  9696. fi
  9697. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  9698. if test -n "$ac_ct_MANIFEST_TOOL"; then
  9699.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  9700. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  9701. else
  9702.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9703. $as_echo "no" >&6; }
  9704. fi
  9705.  
  9706.   if test "x$ac_ct_MANIFEST_TOOL" = x; then
  9707.     MANIFEST_TOOL=":"
  9708.   else
  9709.     case $cross_compiling:$ac_tool_warned in
  9710. yes:)
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9712. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9713. ac_tool_warned=yes ;;
  9714. esac
  9715.     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  9716.   fi
  9717. else
  9718.   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  9719. fi
  9720.  
  9721. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  9722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  9723. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  9724. if ${lt_cv_path_mainfest_tool+:} false; then :
  9725.   $as_echo_n "(cached) " >&6
  9726. else
  9727.   lt_cv_path_mainfest_tool=no
  9728.   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  9729.   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  9730.   cat conftest.err >&5
  9731.   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  9732.     lt_cv_path_mainfest_tool=yes
  9733.   fi
  9734.   rm -f conftest*
  9735. fi
  9736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  9737. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  9738. if test yes != "$lt_cv_path_mainfest_tool"; then
  9739.   MANIFEST_TOOL=:
  9740. fi
  9741.  
  9742.  
  9743.  
  9744.  
  9745.  
  9746.  
  9747.   case $host_os in
  9748.     rhapsody* | darwin*)
  9749.     if test -n "$ac_tool_prefix"; then
  9750.   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  9751. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  9752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9753. $as_echo_n "checking for $ac_word... " >&6; }
  9754. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  9755.   $as_echo_n "(cached) " >&6
  9756. else
  9757.   if test -n "$DSYMUTIL"; then
  9758.   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  9759. else
  9760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9761. for as_dir in $PATH
  9762. do
  9763.   IFS=$as_save_IFS
  9764.   test -z "$as_dir" && as_dir=.
  9765.     for ac_exec_ext in '' $ac_executable_extensions; do
  9766.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9767.     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  9768.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9769.     break 2
  9770.   fi
  9771. done
  9772.   done
  9773. IFS=$as_save_IFS
  9774.  
  9775. fi
  9776. fi
  9777. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  9778. if test -n "$DSYMUTIL"; then
  9779.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  9780. $as_echo "$DSYMUTIL" >&6; }
  9781. else
  9782.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9783. $as_echo "no" >&6; }
  9784. fi
  9785.  
  9786.  
  9787. fi
  9788. if test -z "$ac_cv_prog_DSYMUTIL"; then
  9789.   ac_ct_DSYMUTIL=$DSYMUTIL
  9790.   # Extract the first word of "dsymutil", so it can be a program name with args.
  9791. set dummy dsymutil; ac_word=$2
  9792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9793. $as_echo_n "checking for $ac_word... " >&6; }
  9794. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  9795.   $as_echo_n "(cached) " >&6
  9796. else
  9797.   if test -n "$ac_ct_DSYMUTIL"; then
  9798.   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  9799. else
  9800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9801. for as_dir in $PATH
  9802. do
  9803.   IFS=$as_save_IFS
  9804.   test -z "$as_dir" && as_dir=.
  9805.     for ac_exec_ext in '' $ac_executable_extensions; do
  9806.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9807.     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  9808.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9809.     break 2
  9810.   fi
  9811. done
  9812.   done
  9813. IFS=$as_save_IFS
  9814.  
  9815. fi
  9816. fi
  9817. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  9818. if test -n "$ac_ct_DSYMUTIL"; then
  9819.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  9820. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  9821. else
  9822.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9823. $as_echo "no" >&6; }
  9824. fi
  9825.  
  9826.   if test "x$ac_ct_DSYMUTIL" = x; then
  9827.     DSYMUTIL=":"
  9828.   else
  9829.     case $cross_compiling:$ac_tool_warned in
  9830. yes:)
  9831. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9832. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9833. ac_tool_warned=yes ;;
  9834. esac
  9835.     DSYMUTIL=$ac_ct_DSYMUTIL
  9836.   fi
  9837. else
  9838.   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  9839. fi
  9840.  
  9841.     if test -n "$ac_tool_prefix"; then
  9842.   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  9843. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  9844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9845. $as_echo_n "checking for $ac_word... " >&6; }
  9846. if ${ac_cv_prog_NMEDIT+:} false; then :
  9847.   $as_echo_n "(cached) " >&6
  9848. else
  9849.   if test -n "$NMEDIT"; then
  9850.   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  9851. else
  9852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9853. for as_dir in $PATH
  9854. do
  9855.   IFS=$as_save_IFS
  9856.   test -z "$as_dir" && as_dir=.
  9857.     for ac_exec_ext in '' $ac_executable_extensions; do
  9858.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9859.     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  9860.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9861.     break 2
  9862.   fi
  9863. done
  9864.   done
  9865. IFS=$as_save_IFS
  9866.  
  9867. fi
  9868. fi
  9869. NMEDIT=$ac_cv_prog_NMEDIT
  9870. if test -n "$NMEDIT"; then
  9871.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  9872. $as_echo "$NMEDIT" >&6; }
  9873. else
  9874.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9875. $as_echo "no" >&6; }
  9876. fi
  9877.  
  9878.  
  9879. fi
  9880. if test -z "$ac_cv_prog_NMEDIT"; then
  9881.   ac_ct_NMEDIT=$NMEDIT
  9882.   # Extract the first word of "nmedit", so it can be a program name with args.
  9883. set dummy nmedit; ac_word=$2
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9885. $as_echo_n "checking for $ac_word... " >&6; }
  9886. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  9887.   $as_echo_n "(cached) " >&6
  9888. else
  9889.   if test -n "$ac_ct_NMEDIT"; then
  9890.   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  9891. else
  9892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9893. for as_dir in $PATH
  9894. do
  9895.   IFS=$as_save_IFS
  9896.   test -z "$as_dir" && as_dir=.
  9897.     for ac_exec_ext in '' $ac_executable_extensions; do
  9898.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9899.     ac_cv_prog_ac_ct_NMEDIT="nmedit"
  9900.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9901.     break 2
  9902.   fi
  9903. done
  9904.   done
  9905. IFS=$as_save_IFS
  9906.  
  9907. fi
  9908. fi
  9909. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  9910. if test -n "$ac_ct_NMEDIT"; then
  9911.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  9912. $as_echo "$ac_ct_NMEDIT" >&6; }
  9913. else
  9914.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9915. $as_echo "no" >&6; }
  9916. fi
  9917.  
  9918.   if test "x$ac_ct_NMEDIT" = x; then
  9919.     NMEDIT=":"
  9920.   else
  9921.     case $cross_compiling:$ac_tool_warned in
  9922. yes:)
  9923. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9924. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9925. ac_tool_warned=yes ;;
  9926. esac
  9927.     NMEDIT=$ac_ct_NMEDIT
  9928.   fi
  9929. else
  9930.   NMEDIT="$ac_cv_prog_NMEDIT"
  9931. fi
  9932.  
  9933.     if test -n "$ac_tool_prefix"; then
  9934.   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  9935. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  9936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9937. $as_echo_n "checking for $ac_word... " >&6; }
  9938. if ${ac_cv_prog_LIPO+:} false; then :
  9939.   $as_echo_n "(cached) " >&6
  9940. else
  9941.   if test -n "$LIPO"; then
  9942.   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  9943. else
  9944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9945. for as_dir in $PATH
  9946. do
  9947.   IFS=$as_save_IFS
  9948.   test -z "$as_dir" && as_dir=.
  9949.     for ac_exec_ext in '' $ac_executable_extensions; do
  9950.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9951.     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  9952.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9953.     break 2
  9954.   fi
  9955. done
  9956.   done
  9957. IFS=$as_save_IFS
  9958.  
  9959. fi
  9960. fi
  9961. LIPO=$ac_cv_prog_LIPO
  9962. if test -n "$LIPO"; then
  9963.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  9964. $as_echo "$LIPO" >&6; }
  9965. else
  9966.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9967. $as_echo "no" >&6; }
  9968. fi
  9969.  
  9970.  
  9971. fi
  9972. if test -z "$ac_cv_prog_LIPO"; then
  9973.   ac_ct_LIPO=$LIPO
  9974.   # Extract the first word of "lipo", so it can be a program name with args.
  9975. set dummy lipo; ac_word=$2
  9976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9977. $as_echo_n "checking for $ac_word... " >&6; }
  9978. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  9979.   $as_echo_n "(cached) " >&6
  9980. else
  9981.   if test -n "$ac_ct_LIPO"; then
  9982.   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  9983. else
  9984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9985. for as_dir in $PATH
  9986. do
  9987.   IFS=$as_save_IFS
  9988.   test -z "$as_dir" && as_dir=.
  9989.     for ac_exec_ext in '' $ac_executable_extensions; do
  9990.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9991.     ac_cv_prog_ac_ct_LIPO="lipo"
  9992.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9993.     break 2
  9994.   fi
  9995. done
  9996.   done
  9997. IFS=$as_save_IFS
  9998.  
  9999. fi
  10000. fi
  10001. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  10002. if test -n "$ac_ct_LIPO"; then
  10003.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  10004. $as_echo "$ac_ct_LIPO" >&6; }
  10005. else
  10006.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10007. $as_echo "no" >&6; }
  10008. fi
  10009.  
  10010.   if test "x$ac_ct_LIPO" = x; then
  10011.     LIPO=":"
  10012.   else
  10013.     case $cross_compiling:$ac_tool_warned in
  10014. yes:)
  10015. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10016. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10017. ac_tool_warned=yes ;;
  10018. esac
  10019.     LIPO=$ac_ct_LIPO
  10020.   fi
  10021. else
  10022.   LIPO="$ac_cv_prog_LIPO"
  10023. fi
  10024.  
  10025.     if test -n "$ac_tool_prefix"; then
  10026.   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  10027. set dummy ${ac_tool_prefix}otool; ac_word=$2
  10028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10029. $as_echo_n "checking for $ac_word... " >&6; }
  10030. if ${ac_cv_prog_OTOOL+:} false; then :
  10031.   $as_echo_n "(cached) " >&6
  10032. else
  10033.   if test -n "$OTOOL"; then
  10034.   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  10035. else
  10036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10037. for as_dir in $PATH
  10038. do
  10039.   IFS=$as_save_IFS
  10040.   test -z "$as_dir" && as_dir=.
  10041.     for ac_exec_ext in '' $ac_executable_extensions; do
  10042.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10043.     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  10044.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10045.     break 2
  10046.   fi
  10047. done
  10048.   done
  10049. IFS=$as_save_IFS
  10050.  
  10051. fi
  10052. fi
  10053. OTOOL=$ac_cv_prog_OTOOL
  10054. if test -n "$OTOOL"; then
  10055.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  10056. $as_echo "$OTOOL" >&6; }
  10057. else
  10058.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10059. $as_echo "no" >&6; }
  10060. fi
  10061.  
  10062.  
  10063. fi
  10064. if test -z "$ac_cv_prog_OTOOL"; then
  10065.   ac_ct_OTOOL=$OTOOL
  10066.   # Extract the first word of "otool", so it can be a program name with args.
  10067. set dummy otool; ac_word=$2
  10068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10069. $as_echo_n "checking for $ac_word... " >&6; }
  10070. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  10071.   $as_echo_n "(cached) " >&6
  10072. else
  10073.   if test -n "$ac_ct_OTOOL"; then
  10074.   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  10075. else
  10076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10077. for as_dir in $PATH
  10078. do
  10079.   IFS=$as_save_IFS
  10080.   test -z "$as_dir" && as_dir=.
  10081.     for ac_exec_ext in '' $ac_executable_extensions; do
  10082.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10083.     ac_cv_prog_ac_ct_OTOOL="otool"
  10084.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10085.     break 2
  10086.   fi
  10087. done
  10088.   done
  10089. IFS=$as_save_IFS
  10090.  
  10091. fi
  10092. fi
  10093. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  10094. if test -n "$ac_ct_OTOOL"; then
  10095.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  10096. $as_echo "$ac_ct_OTOOL" >&6; }
  10097. else
  10098.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10099. $as_echo "no" >&6; }
  10100. fi
  10101.  
  10102.   if test "x$ac_ct_OTOOL" = x; then
  10103.     OTOOL=":"
  10104.   else
  10105.     case $cross_compiling:$ac_tool_warned in
  10106. yes:)
  10107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10108. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10109. ac_tool_warned=yes ;;
  10110. esac
  10111.     OTOOL=$ac_ct_OTOOL
  10112.   fi
  10113. else
  10114.   OTOOL="$ac_cv_prog_OTOOL"
  10115. fi
  10116.  
  10117.     if test -n "$ac_tool_prefix"; then
  10118.   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  10119. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  10120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10121. $as_echo_n "checking for $ac_word... " >&6; }
  10122. if ${ac_cv_prog_OTOOL64+:} false; then :
  10123.   $as_echo_n "(cached) " >&6
  10124. else
  10125.   if test -n "$OTOOL64"; then
  10126.   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  10127. else
  10128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10129. for as_dir in $PATH
  10130. do
  10131.   IFS=$as_save_IFS
  10132.   test -z "$as_dir" && as_dir=.
  10133.     for ac_exec_ext in '' $ac_executable_extensions; do
  10134.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10135.     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  10136.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10137.     break 2
  10138.   fi
  10139. done
  10140.   done
  10141. IFS=$as_save_IFS
  10142.  
  10143. fi
  10144. fi
  10145. OTOOL64=$ac_cv_prog_OTOOL64
  10146. if test -n "$OTOOL64"; then
  10147.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  10148. $as_echo "$OTOOL64" >&6; }
  10149. else
  10150.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10151. $as_echo "no" >&6; }
  10152. fi
  10153.  
  10154.  
  10155. fi
  10156. if test -z "$ac_cv_prog_OTOOL64"; then
  10157.   ac_ct_OTOOL64=$OTOOL64
  10158.   # Extract the first word of "otool64", so it can be a program name with args.
  10159. set dummy otool64; ac_word=$2
  10160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10161. $as_echo_n "checking for $ac_word... " >&6; }
  10162. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  10163.   $as_echo_n "(cached) " >&6
  10164. else
  10165.   if test -n "$ac_ct_OTOOL64"; then
  10166.   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  10167. else
  10168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10169. for as_dir in $PATH
  10170. do
  10171.   IFS=$as_save_IFS
  10172.   test -z "$as_dir" && as_dir=.
  10173.     for ac_exec_ext in '' $ac_executable_extensions; do
  10174.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10175.     ac_cv_prog_ac_ct_OTOOL64="otool64"
  10176.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10177.     break 2
  10178.   fi
  10179. done
  10180.   done
  10181. IFS=$as_save_IFS
  10182.  
  10183. fi
  10184. fi
  10185. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  10186. if test -n "$ac_ct_OTOOL64"; then
  10187.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  10188. $as_echo "$ac_ct_OTOOL64" >&6; }
  10189. else
  10190.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10191. $as_echo "no" >&6; }
  10192. fi
  10193.  
  10194.   if test "x$ac_ct_OTOOL64" = x; then
  10195.     OTOOL64=":"
  10196.   else
  10197.     case $cross_compiling:$ac_tool_warned in
  10198. yes:)
  10199. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10200. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10201. ac_tool_warned=yes ;;
  10202. esac
  10203.     OTOOL64=$ac_ct_OTOOL64
  10204.   fi
  10205. else
  10206.   OTOOL64="$ac_cv_prog_OTOOL64"
  10207. fi
  10208.  
  10209.  
  10210.  
  10211.  
  10212.  
  10213.  
  10214.  
  10215.  
  10216.  
  10217.  
  10218.  
  10219.  
  10220.  
  10221.  
  10222.  
  10223.  
  10224.  
  10225.  
  10226.  
  10227.  
  10228.  
  10229.  
  10230.  
  10231.  
  10232.  
  10233.  
  10234.  
  10235.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  10236. $as_echo_n "checking for -single_module linker flag... " >&6; }
  10237. if ${lt_cv_apple_cc_single_mod+:} false; then :
  10238.   $as_echo_n "(cached) " >&6
  10239. else
  10240.   lt_cv_apple_cc_single_mod=no
  10241.       if test -z "$LT_MULTI_MODULE"; then
  10242.         # By default we will add the -single_module flag. You can override
  10243.         # by either setting the environment variable LT_MULTI_MODULE
  10244.         # non-empty at configure time, or by adding -multi_module to the
  10245.         # link flags.
  10246.         rm -rf libconftest.dylib*
  10247.         echo "int foo(void){return 1;}" > conftest.c
  10248.         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  10249. -dynamiclib -Wl,-single_module conftest.c" >&5
  10250.         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  10251.           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  10252.         _lt_result=$?
  10253.         # If there is a non-empty error log, and "single_module"
  10254.         # appears in it, assume the flag caused a linker warning
  10255.         if test -s conftest.err && $GREP single_module conftest.err; then
  10256.           cat conftest.err >&5
  10257.         # Otherwise, if the output was created with a 0 exit code from
  10258.         # the compiler, it worked.
  10259.         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  10260.           lt_cv_apple_cc_single_mod=yes
  10261.         else
  10262.           cat conftest.err >&5
  10263.         fi
  10264.         rm -rf libconftest.dylib*
  10265.         rm -f conftest.*
  10266.       fi
  10267. fi
  10268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  10269. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  10270.  
  10271.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  10272. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  10273. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  10274.   $as_echo_n "(cached) " >&6
  10275. else
  10276.   lt_cv_ld_exported_symbols_list=no
  10277.       save_LDFLAGS=$LDFLAGS
  10278.       echo "_main" > conftest.sym
  10279.       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  10280.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10281. /* end confdefs.h.  */
  10282.  
  10283. int
  10284. main ()
  10285. {
  10286.  
  10287.   ;
  10288.   return 0;
  10289. }
  10290. _ACEOF
  10291. if ac_fn_c_try_link "$LINENO"; then :
  10292.   lt_cv_ld_exported_symbols_list=yes
  10293. else
  10294.   lt_cv_ld_exported_symbols_list=no
  10295. fi
  10296. rm -f core conftest.err conftest.$ac_objext \
  10297.     conftest$ac_exeext conftest.$ac_ext
  10298.         LDFLAGS=$save_LDFLAGS
  10299.  
  10300. fi
  10301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  10302. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  10303.  
  10304.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  10305. $as_echo_n "checking for -force_load linker flag... " >&6; }
  10306. if ${lt_cv_ld_force_load+:} false; then :
  10307.   $as_echo_n "(cached) " >&6
  10308. else
  10309.   lt_cv_ld_force_load=no
  10310.       cat > conftest.c << _LT_EOF
  10311. int forced_loaded() { return 2;}
  10312. _LT_EOF
  10313.       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  10314.       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  10315.       echo "$AR cru libconftest.a conftest.o" >&5
  10316.       $AR cru libconftest.a conftest.o 2>&5
  10317.       echo "$RANLIB libconftest.a" >&5
  10318.       $RANLIB libconftest.a 2>&5
  10319.       cat > conftest.c << _LT_EOF
  10320. int main() { return 0;}
  10321. _LT_EOF
  10322.       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  10323.       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  10324.       _lt_result=$?
  10325.       if test -s conftest.err && $GREP force_load conftest.err; then
  10326.         cat conftest.err >&5
  10327.       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  10328.         lt_cv_ld_force_load=yes
  10329.       else
  10330.         cat conftest.err >&5
  10331.       fi
  10332.         rm -f conftest.err libconftest.a conftest conftest.c
  10333.         rm -rf conftest.dSYM
  10334.  
  10335. fi
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  10337. $as_echo "$lt_cv_ld_force_load" >&6; }
  10338.     case $host_os in
  10339.     rhapsody* | darwin1.[012])
  10340.       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  10341.     darwin1.*)
  10342.       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  10343.     darwin*) # darwin 5.x on
  10344.       # if running on 10.5 or later, the deployment target defaults
  10345.       # to the OS version, if on x86, and 10.4, the deployment
  10346.       # target defaults to 10.4. Don't you love it?
  10347.       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  10348.         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  10349.           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  10350.         10.[012][,.]*)
  10351.           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  10352.         10.*)
  10353.           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  10354.       esac
  10355.     ;;
  10356.   esac
  10357.     if test yes = "$lt_cv_apple_cc_single_mod"; then
  10358.       _lt_dar_single_mod='$single_module'
  10359.     fi
  10360.     if test yes = "$lt_cv_ld_exported_symbols_list"; then
  10361.       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  10362.     else
  10363.       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  10364.     fi
  10365.     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  10366.       _lt_dsymutil='~$DSYMUTIL $lib || :'
  10367.     else
  10368.       _lt_dsymutil=
  10369.     fi
  10370.     ;;
  10371.   esac
  10372.  
  10373. # func_munge_path_list VARIABLE PATH
  10374. # -----------------------------------
  10375. # VARIABLE is name of variable containing _space_ separated list of
  10376. # directories to be munged by the contents of PATH, which is string
  10377. # having a format:
  10378. # "DIR[:DIR]:"
  10379. #       string "DIR[ DIR]" will be prepended to VARIABLE
  10380. # ":DIR[:DIR]"
  10381. #       string "DIR[ DIR]" will be appended to VARIABLE
  10382. # "DIRP[:DIRP]::[DIRA:]DIRA"
  10383. #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  10384. #       "DIRA[ DIRA]" will be appended to VARIABLE
  10385. # "DIR[:DIR]"
  10386. #       VARIABLE will be replaced by "DIR[ DIR]"
  10387. func_munge_path_list ()
  10388. {
  10389.     case x$2 in
  10390.     x)
  10391.         ;;
  10392.     *:)
  10393.         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  10394.         ;;
  10395.     x:*)
  10396.         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  10397.         ;;
  10398.     *::*)
  10399.         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  10400.         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  10401.         ;;
  10402.     *)
  10403.         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  10404.         ;;
  10405.     esac
  10406. }
  10407.  
  10408.  
  10409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10410. $as_echo_n "checking for ANSI C header files... " >&6; }
  10411. if ${ac_cv_header_stdc+:} false; then :
  10412.   $as_echo_n "(cached) " >&6
  10413. else
  10414.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10415. /* end confdefs.h.  */
  10416. #include <stdlib.h>
  10417. #include <stdarg.h>
  10418. #include <string.h>
  10419. #include <float.h>
  10420.  
  10421. int
  10422. main ()
  10423. {
  10424.  
  10425.   ;
  10426.   return 0;
  10427. }
  10428. _ACEOF
  10429. if ac_fn_c_try_compile "$LINENO"; then :
  10430.   ac_cv_header_stdc=yes
  10431. else
  10432.   ac_cv_header_stdc=no
  10433. fi
  10434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10435.  
  10436. if test $ac_cv_header_stdc = yes; then
  10437.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10438.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10439. /* end confdefs.h.  */
  10440. #include <string.h>
  10441.  
  10442. _ACEOF
  10443. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10444.   $EGREP "memchr" >/dev/null 2>&1; then :
  10445.  
  10446. else
  10447.   ac_cv_header_stdc=no
  10448. fi
  10449. rm -f conftest*
  10450.  
  10451. fi
  10452.  
  10453. if test $ac_cv_header_stdc = yes; then
  10454.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10455.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10456. /* end confdefs.h.  */
  10457. #include <stdlib.h>
  10458.  
  10459. _ACEOF
  10460. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10461.   $EGREP "free" >/dev/null 2>&1; then :
  10462.  
  10463. else
  10464.   ac_cv_header_stdc=no
  10465. fi
  10466. rm -f conftest*
  10467.  
  10468. fi
  10469.  
  10470. if test $ac_cv_header_stdc = yes; then
  10471.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10472.   if test "$cross_compiling" = yes; then :
  10473.   :
  10474. else
  10475.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10476. /* end confdefs.h.  */
  10477. #include <ctype.h>
  10478. #include <stdlib.h>
  10479. #if ((' ' & 0x0FF) == 0x020)
  10480. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10481. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10482. #else
  10483. # define ISLOWER(c) \
  10484.                    (('a' <= (c) && (c) <= 'i') \
  10485.                      || ('j' <= (c) && (c) <= 'r') \
  10486.                      || ('s' <= (c) && (c) <= 'z'))
  10487. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10488. #endif
  10489.  
  10490. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10491. int
  10492. main ()
  10493. {
  10494.   int i;
  10495.   for (i = 0; i < 256; i++)
  10496.     if (XOR (islower (i), ISLOWER (i))
  10497.         || toupper (i) != TOUPPER (i))
  10498.       return 2;
  10499.   return 0;
  10500. }
  10501. _ACEOF
  10502. if ac_fn_c_try_run "$LINENO"; then :
  10503.  
  10504. else
  10505.   ac_cv_header_stdc=no
  10506. fi
  10507. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10508.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  10509. fi
  10510.  
  10511. fi
  10512. fi
  10513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10514. $as_echo "$ac_cv_header_stdc" >&6; }
  10515. if test $ac_cv_header_stdc = yes; then
  10516.  
  10517. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10518.  
  10519. fi
  10520.  
  10521. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  10522. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  10523.                   inttypes.h stdint.h unistd.h
  10524. do :
  10525.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10526. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  10527. "
  10528. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10529.   cat >>confdefs.h <<_ACEOF
  10530. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10531. _ACEOF
  10532.  
  10533. fi
  10534.  
  10535. done
  10536.  
  10537.  
  10538. for ac_header in dlfcn.h
  10539. do :
  10540.   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  10541. "
  10542. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  10543.   cat >>confdefs.h <<_ACEOF
  10544. #define HAVE_DLFCN_H 1
  10545. _ACEOF
  10546.  
  10547. fi
  10548.  
  10549. done
  10550.  
  10551.  
  10552.  
  10553.  
  10554. func_stripname_cnf ()
  10555. {
  10556.   case $2 in
  10557.   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
  10558.   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
  10559.   esac
  10560. } # func_stripname_cnf
  10561.  
  10562.  
  10563.  
  10564.  
  10565.  
  10566. # Set options
  10567. # Check whether --enable-static was given.
  10568. if test "${enable_static+set}" = set; then :
  10569.   enableval=$enable_static; p=${PACKAGE-default}
  10570.     case $enableval in
  10571.     yes) enable_static=yes ;;
  10572.     no) enable_static=no ;;
  10573.     *)
  10574.      enable_static=no
  10575.       # Look at the argument we got.  We use all the common list separators.
  10576.       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10577.       for pkg in $enableval; do
  10578.         IFS=$lt_save_ifs
  10579.         if test "X$pkg" = "X$p"; then
  10580.           enable_static=yes
  10581.         fi
  10582.       done
  10583.       IFS=$lt_save_ifs
  10584.       ;;
  10585.     esac
  10586. else
  10587.   enable_static=no
  10588. fi
  10589.  
  10590.  
  10591.  
  10592.  
  10593.  
  10594.  
  10595.  
  10596.  
  10597.  
  10598.  
  10599.         enable_dlopen=no
  10600.  
  10601.  
  10602.   enable_win32_dll=no
  10603.  
  10604.  
  10605.             # Check whether --enable-shared was given.
  10606. if test "${enable_shared+set}" = set; then :
  10607.   enableval=$enable_shared; p=${PACKAGE-default}
  10608.     case $enableval in
  10609.     yes) enable_shared=yes ;;
  10610.     no) enable_shared=no ;;
  10611.     *)
  10612.       enable_shared=no
  10613.       # Look at the argument we got.  We use all the common list separators.
  10614.       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10615.       for pkg in $enableval; do
  10616.         IFS=$lt_save_ifs
  10617.         if test "X$pkg" = "X$p"; then
  10618.           enable_shared=yes
  10619.         fi
  10620.       done
  10621.       IFS=$lt_save_ifs
  10622.       ;;
  10623.     esac
  10624. else
  10625.   enable_shared=yes
  10626. fi
  10627.  
  10628.  
  10629.  
  10630.  
  10631.  
  10632.  
  10633.  
  10634.  
  10635.  
  10636.  
  10637.  
  10638. # Check whether --with-pic was given.
  10639. if test "${with_pic+set}" = set; then :
  10640.   withval=$with_pic; lt_p=${PACKAGE-default}
  10641.     case $withval in
  10642.     yes|no) pic_mode=$withval ;;
  10643.     *)
  10644.       pic_mode=default
  10645.       # Look at the argument we got.  We use all the common list separators.
  10646.       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10647.       for lt_pkg in $withval; do
  10648.         IFS=$lt_save_ifs
  10649.         if test "X$lt_pkg" = "X$lt_p"; then
  10650.           pic_mode=yes
  10651.         fi
  10652.       done
  10653.       IFS=$lt_save_ifs
  10654.       ;;
  10655.     esac
  10656. else
  10657.   pic_mode=default
  10658. fi
  10659.  
  10660.  
  10661.  
  10662.  
  10663.  
  10664.  
  10665.  
  10666.  
  10667.   # Check whether --enable-fast-install was given.
  10668. if test "${enable_fast_install+set}" = set; then :
  10669.   enableval=$enable_fast_install; p=${PACKAGE-default}
  10670.     case $enableval in
  10671.     yes) enable_fast_install=yes ;;
  10672.     no) enable_fast_install=no ;;
  10673.     *)
  10674.       enable_fast_install=no
  10675.       # Look at the argument we got.  We use all the common list separators.
  10676.       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  10677.       for pkg in $enableval; do
  10678.         IFS=$lt_save_ifs
  10679.         if test "X$pkg" = "X$p"; then
  10680.           enable_fast_install=yes
  10681.         fi
  10682.       done
  10683.       IFS=$lt_save_ifs
  10684.       ;;
  10685.     esac
  10686. else
  10687.   enable_fast_install=yes
  10688. fi
  10689.  
  10690.  
  10691.  
  10692.  
  10693.  
  10694.  
  10695.  
  10696.  
  10697.   shared_archive_member_spec=
  10698. case $host,$enable_shared in
  10699. power*-*-aix[5-9]*,yes)
  10700.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  10701. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  10702.  
  10703. # Check whether --with-aix-soname was given.
  10704. if test "${with_aix_soname+set}" = set; then :
  10705.   withval=$with_aix_soname; case $withval in
  10706.     aix|svr4|both)
  10707.       ;;
  10708.     *)
  10709.       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  10710.       ;;
  10711.     esac
  10712.     lt_cv_with_aix_soname=$with_aix_soname
  10713. else
  10714.   if ${lt_cv_with_aix_soname+:} false; then :
  10715.   $as_echo_n "(cached) " >&6
  10716. else
  10717.   lt_cv_with_aix_soname=aix
  10718. fi
  10719.  
  10720.     with_aix_soname=$lt_cv_with_aix_soname
  10721. fi
  10722.  
  10723.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  10724. $as_echo "$with_aix_soname" >&6; }
  10725.   if test aix != "$with_aix_soname"; then
  10726.     # For the AIX way of multilib, we name the shared archive member
  10727.     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  10728.     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  10729.     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  10730.     # the AIX toolchain works better with OBJECT_MODE set (default 32).
  10731.     if test 64 = "${OBJECT_MODE-32}"; then
  10732.       shared_archive_member_spec=shr_64
  10733.     else
  10734.       shared_archive_member_spec=shr
  10735.     fi
  10736.   fi
  10737.   ;;
  10738. *)
  10739.   with_aix_soname=aix
  10740.   ;;
  10741. esac
  10742.  
  10743.  
  10744.  
  10745.  
  10746.  
  10747.  
  10748.  
  10749.  
  10750.  
  10751.  
  10752. # This can be used to rebuild libtool when needed
  10753. LIBTOOL_DEPS=$ltmain
  10754.  
  10755. # Always use our own libtool.
  10756. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  10757.  
  10758.  
  10759.  
  10760.  
  10761.  
  10762.  
  10763.  
  10764.  
  10765.  
  10766.  
  10767.  
  10768.  
  10769.  
  10770.  
  10771.  
  10772.  
  10773.  
  10774.  
  10775.  
  10776.  
  10777.  
  10778.  
  10779.  
  10780.  
  10781.  
  10782.  
  10783.  
  10784.  
  10785.  
  10786.  
  10787. test -z "$LN_S" && LN_S="ln -s"
  10788.  
  10789.  
  10790.  
  10791.  
  10792.  
  10793.  
  10794.  
  10795.  
  10796.  
  10797.  
  10798.  
  10799.  
  10800.  
  10801.  
  10802. if test -n "${ZSH_VERSION+set}"; then
  10803.    setopt NO_GLOB_SUBST
  10804. fi
  10805.  
  10806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  10807. $as_echo_n "checking for objdir... " >&6; }
  10808. if ${lt_cv_objdir+:} false; then :
  10809.   $as_echo_n "(cached) " >&6
  10810. else
  10811.   rm -f .libs 2>/dev/null
  10812. mkdir .libs 2>/dev/null
  10813. if test -d .libs; then
  10814.   lt_cv_objdir=.libs
  10815. else
  10816.   # MS-DOS does not allow filenames that begin with a dot.
  10817.   lt_cv_objdir=_libs
  10818. fi
  10819. rmdir .libs 2>/dev/null
  10820. fi
  10821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  10822. $as_echo "$lt_cv_objdir" >&6; }
  10823. objdir=$lt_cv_objdir
  10824.  
  10825.  
  10826.  
  10827.  
  10828.  
  10829. cat >>confdefs.h <<_ACEOF
  10830. #define LT_OBJDIR "$lt_cv_objdir/"
  10831. _ACEOF
  10832.  
  10833.  
  10834.  
  10835.  
  10836. case $host_os in
  10837. aix3*)
  10838.   # AIX sometimes has problems with the GCC collect2 program.  For some
  10839.   # reason, if we set the COLLECT_NAMES environment variable, the problems
  10840.   # vanish in a puff of smoke.
  10841.   if test set != "${COLLECT_NAMES+set}"; then
  10842.     COLLECT_NAMES=
  10843.     export COLLECT_NAMES
  10844.   fi
  10845.   ;;
  10846. esac
  10847.  
  10848. # Global variables:
  10849. ofile=libtool
  10850. can_build_shared=yes
  10851.  
  10852. # All known linkers require a '.a' archive for static linking (except MSVC,
  10853. # which needs '.lib').
  10854. libext=a
  10855.  
  10856. with_gnu_ld=$lt_cv_prog_gnu_ld
  10857.  
  10858. old_CC=$CC
  10859. old_CFLAGS=$CFLAGS
  10860.  
  10861. # Set sane defaults for various variables
  10862. test -z "$CC" && CC=cc
  10863. test -z "$LTCC" && LTCC=$CC
  10864. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  10865. test -z "$LD" && LD=ld
  10866. test -z "$ac_objext" && ac_objext=o
  10867.  
  10868. func_cc_basename $compiler
  10869. cc_basename=$func_cc_basename_result
  10870.  
  10871.  
  10872. # Only perform the check for file, if the check method requires it
  10873. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  10874. case $deplibs_check_method in
  10875. file_magic*)
  10876.   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  10877.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  10878. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  10879. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  10880.   $as_echo_n "(cached) " >&6
  10881. else
  10882.   case $MAGIC_CMD in
  10883. [\\/*] |  ?:[\\/]*)
  10884.   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  10885.   ;;
  10886. *)
  10887.   lt_save_MAGIC_CMD=$MAGIC_CMD
  10888.   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  10889.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  10890.   for ac_dir in $ac_dummy; do
  10891.     IFS=$lt_save_ifs
  10892.     test -z "$ac_dir" && ac_dir=.
  10893.     if test -f "$ac_dir/${ac_tool_prefix}file"; then
  10894.       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  10895.       if test -n "$file_magic_test_file"; then
  10896.         case $deplibs_check_method in
  10897.         "file_magic "*)
  10898.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  10899.           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10900.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  10901.             $EGREP "$file_magic_regex" > /dev/null; then
  10902.             :
  10903.           else
  10904.             cat <<_LT_EOF 1>&2
  10905.  
  10906. *** Warning: the command libtool uses to detect shared libraries,
  10907. *** $file_magic_cmd, produces output that libtool cannot recognize.
  10908. *** The result is that libtool may fail to recognize shared libraries
  10909. *** as such.  This will affect the creation of libtool libraries that
  10910. *** depend on shared libraries, but programs linked with such libtool
  10911. *** libraries will work regardless of this problem.  Nevertheless, you
  10912. *** may want to report the problem to your system manager and/or to
  10913. *** bug-libtool@gnu.org
  10914.  
  10915. _LT_EOF
  10916.           fi ;;
  10917.         esac
  10918.       fi
  10919.       break
  10920.     fi
  10921.   done
  10922.   IFS=$lt_save_ifs
  10923.   MAGIC_CMD=$lt_save_MAGIC_CMD
  10924.   ;;
  10925. esac
  10926. fi
  10927.  
  10928. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10929. if test -n "$MAGIC_CMD"; then
  10930.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  10931. $as_echo "$MAGIC_CMD" >&6; }
  10932. else
  10933.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10934. $as_echo "no" >&6; }
  10935. fi
  10936.  
  10937.  
  10938.  
  10939.  
  10940.  
  10941. if test -z "$lt_cv_path_MAGIC_CMD"; then
  10942.   if test -n "$ac_tool_prefix"; then
  10943.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  10944. $as_echo_n "checking for file... " >&6; }
  10945. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  10946.   $as_echo_n "(cached) " >&6
  10947. else
  10948.   case $MAGIC_CMD in
  10949. [\\/*] |  ?:[\\/]*)
  10950.   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  10951.   ;;
  10952. *)
  10953.   lt_save_MAGIC_CMD=$MAGIC_CMD
  10954.   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  10955.   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  10956.   for ac_dir in $ac_dummy; do
  10957.     IFS=$lt_save_ifs
  10958.     test -z "$ac_dir" && ac_dir=.
  10959.     if test -f "$ac_dir/file"; then
  10960.       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  10961.       if test -n "$file_magic_test_file"; then
  10962.         case $deplibs_check_method in
  10963.         "file_magic "*)
  10964.           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  10965.           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10966.           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  10967.             $EGREP "$file_magic_regex" > /dev/null; then
  10968.             :
  10969.           else
  10970.             cat <<_LT_EOF 1>&2
  10971.  
  10972. *** Warning: the command libtool uses to detect shared libraries,
  10973. *** $file_magic_cmd, produces output that libtool cannot recognize.
  10974. *** The result is that libtool may fail to recognize shared libraries
  10975. *** as such.  This will affect the creation of libtool libraries that
  10976. *** depend on shared libraries, but programs linked with such libtool
  10977. *** libraries will work regardless of this problem.  Nevertheless, you
  10978. *** may want to report the problem to your system manager and/or to
  10979. *** bug-libtool@gnu.org
  10980.  
  10981. _LT_EOF
  10982.           fi ;;
  10983.         esac
  10984.       fi
  10985.       break
  10986.     fi
  10987.   done
  10988.   IFS=$lt_save_ifs
  10989.   MAGIC_CMD=$lt_save_MAGIC_CMD
  10990.   ;;
  10991. esac
  10992. fi
  10993.  
  10994. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  10995. if test -n "$MAGIC_CMD"; then
  10996.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  10997. $as_echo "$MAGIC_CMD" >&6; }
  10998. else
  10999.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11000. $as_echo "no" >&6; }
  11001. fi
  11002.  
  11003.  
  11004.   else
  11005.     MAGIC_CMD=:
  11006.   fi
  11007. fi
  11008.  
  11009.   fi
  11010.   ;;
  11011. esac
  11012.  
  11013. # Use C for the default configuration in the libtool script
  11014.  
  11015. lt_save_CC=$CC
  11016. ac_ext=c
  11017. ac_cpp='$CPP $CPPFLAGS'
  11018. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11019. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11020. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11021.  
  11022.  
  11023. # Source file extension for C test sources.
  11024. ac_ext=c
  11025.  
  11026. # Object file extension for compiled C test sources.
  11027. objext=o
  11028. objext=$objext
  11029.  
  11030. # Code to be used in simple compile tests
  11031. lt_simple_compile_test_code="int some_variable = 0;"
  11032.  
  11033. # Code to be used in simple link tests
  11034. lt_simple_link_test_code='int main(){return(0);}'
  11035.  
  11036.  
  11037.  
  11038.  
  11039.  
  11040.  
  11041.  
  11042. # If no C compiler was specified, use CC.
  11043. LTCC=${LTCC-"$CC"}
  11044.  
  11045. # If no C compiler flags were specified, use CFLAGS.
  11046. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11047.  
  11048. # Allow CC to be a program name with arguments.
  11049. compiler=$CC
  11050.  
  11051. # Save the default compiler, since it gets overwritten when the other
  11052. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  11053. compiler_DEFAULT=$CC
  11054.  
  11055. # save warnings/boilerplate of simple test code
  11056. ac_outfile=conftest.$ac_objext
  11057. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11058. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11059. _lt_compiler_boilerplate=`cat conftest.err`
  11060. $RM conftest*
  11061.  
  11062. ac_outfile=conftest.$ac_objext
  11063. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11064. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11065. _lt_linker_boilerplate=`cat conftest.err`
  11066. $RM -r conftest*
  11067.  
  11068.  
  11069. ## CAVEAT EMPTOR:
  11070. ## There is no encapsulation within the following macros, do not change
  11071. ## the running order or otherwise move them around unless you know exactly
  11072. ## what you are doing...
  11073. if test -n "$compiler"; then
  11074.  
  11075. lt_prog_compiler_no_builtin_flag=
  11076.  
  11077. if test yes = "$GCC"; then
  11078.   case $cc_basename in
  11079.   nvcc*)
  11080.     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  11081.   *)
  11082.     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  11083.   esac
  11084.  
  11085.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  11086. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  11087. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  11088.   $as_echo_n "(cached) " >&6
  11089. else
  11090.   lt_cv_prog_compiler_rtti_exceptions=no
  11091.    ac_outfile=conftest.$ac_objext
  11092.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11093.    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
  11094.    # Insert the option either (1) after the last *FLAGS variable, or
  11095.    # (2) before a word containing "conftest.", or (3) at the end.
  11096.    # Note that $ac_compile itself does not contain backslashes and begins
  11097.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  11098.    # The option is referenced via a variable to avoid confusing sed.
  11099.    lt_compile=`echo "$ac_compile" | $SED \
  11100.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11101.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11102.    -e 's:$: $lt_compiler_flag:'`
  11103.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11104.    (eval "$lt_compile" 2>conftest.err)
  11105.    ac_status=$?
  11106.    cat conftest.err >&5
  11107.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11108.    if (exit $ac_status) && test -s "$ac_outfile"; then
  11109.      # The compiler can only warn and ignore the option if not recognized
  11110.      # So say no if there are warnings other than the usual output.
  11111.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11112.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11113.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11114.        lt_cv_prog_compiler_rtti_exceptions=yes
  11115.      fi
  11116.    fi
  11117.    $RM conftest*
  11118.  
  11119. fi
  11120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  11121. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  11122.  
  11123. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  11124.     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  11125. else
  11126.     :
  11127. fi
  11128.  
  11129. fi
  11130.  
  11131.  
  11132.  
  11133.  
  11134.  
  11135.  
  11136.   lt_prog_compiler_wl=
  11137. lt_prog_compiler_pic=
  11138. lt_prog_compiler_static=
  11139.  
  11140.  
  11141.   if test yes = "$GCC"; then
  11142.     lt_prog_compiler_wl='-Wl,'
  11143.     lt_prog_compiler_static='-static'
  11144.  
  11145.     case $host_os in
  11146.       aix*)
  11147.       # All AIX code is PIC.
  11148.       if test ia64 = "$host_cpu"; then
  11149.         # AIX 5 now supports IA64 processor
  11150.         lt_prog_compiler_static='-Bstatic'
  11151.       fi
  11152.       lt_prog_compiler_pic='-fPIC'
  11153.       ;;
  11154.  
  11155.     amigaos*)
  11156.       case $host_cpu in
  11157.       powerpc)
  11158.             # see comment about AmigaOS4 .so support
  11159.             lt_prog_compiler_pic='-fPIC'
  11160.         ;;
  11161.       m68k)
  11162.             # FIXME: we need at least 68020 code to build shared libraries, but
  11163.             # adding the '-m68020' flag to GCC prevents building anything better,
  11164.             # like '-m68040'.
  11165.             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  11166.         ;;
  11167.       esac
  11168.       ;;
  11169.  
  11170.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11171.       # PIC is the default for these OSes.
  11172.       ;;
  11173.  
  11174.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  11175.       # This hack is so that the source file can tell whether it is being
  11176.       # built for inclusion in a dll (and should export symbols for example).
  11177.       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11178.       # (--disable-auto-import) libraries
  11179.       lt_prog_compiler_pic='-DDLL_EXPORT'
  11180.       case $host_os in
  11181.       os2*)
  11182.         lt_prog_compiler_static='$wl-static'
  11183.         ;;
  11184.       esac
  11185.       ;;
  11186.  
  11187.     darwin* | rhapsody*)
  11188.       # PIC is the default on this platform
  11189.       # Common symbols not allowed in MH_DYLIB files
  11190.       lt_prog_compiler_pic='-fno-common'
  11191.       ;;
  11192.  
  11193.     haiku*)
  11194.       # PIC is the default for Haiku.
  11195.       # The "-static" flag exists, but is broken.
  11196.       lt_prog_compiler_static=
  11197.       ;;
  11198.  
  11199.     hpux*)
  11200.       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11201.       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  11202.       # sets the default TLS model and affects inlining.
  11203.       case $host_cpu in
  11204.       hppa*64*)
  11205.         # +Z the default
  11206.         ;;
  11207.       *)
  11208.         lt_prog_compiler_pic='-fPIC'
  11209.         ;;
  11210.       esac
  11211.       ;;
  11212.  
  11213.     interix[3-9]*)
  11214.       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11215.       # Instead, we relocate shared libraries at runtime.
  11216.       ;;
  11217.  
  11218.     msdosdjgpp*)
  11219.       # Just because we use GCC doesn't mean we suddenly get shared libraries
  11220.       # on systems that don't support them.
  11221.       lt_prog_compiler_can_build_shared=no
  11222.       enable_shared=no
  11223.       ;;
  11224.  
  11225.     *nto* | *qnx*)
  11226.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  11227.       # it will coredump.
  11228.       lt_prog_compiler_pic='-fPIC -shared'
  11229.       ;;
  11230.  
  11231.     sysv4*MP*)
  11232.       if test -d /usr/nec; then
  11233.         lt_prog_compiler_pic=-Kconform_pic
  11234.       fi
  11235.       ;;
  11236.  
  11237.     *)
  11238.       lt_prog_compiler_pic='-fPIC'
  11239.       ;;
  11240.     esac
  11241.  
  11242.     case $cc_basename in
  11243.     nvcc*) # Cuda Compiler Driver 2.2
  11244.       lt_prog_compiler_wl='-Xlinker '
  11245.       if test -n "$lt_prog_compiler_pic"; then
  11246.         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  11247.       fi
  11248.       ;;
  11249.     esac
  11250.   else
  11251.     # PORTME Check for flag to pass linker flags through the system compiler.
  11252.     case $host_os in
  11253.     aix*)
  11254.       lt_prog_compiler_wl='-Wl,'
  11255.       if test ia64 = "$host_cpu"; then
  11256.         # AIX 5 now supports IA64 processor
  11257.         lt_prog_compiler_static='-Bstatic'
  11258.       else
  11259.         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  11260.       fi
  11261.       ;;
  11262.  
  11263.     darwin* | rhapsody*)
  11264.       # PIC is the default on this platform
  11265.       # Common symbols not allowed in MH_DYLIB files
  11266.       lt_prog_compiler_pic='-fno-common'
  11267.       case $cc_basename in
  11268.       nagfor*)
  11269.         # NAG Fortran compiler
  11270.         lt_prog_compiler_wl='-Wl,-Wl,,'
  11271.         lt_prog_compiler_pic='-PIC'
  11272.         lt_prog_compiler_static='-Bstatic'
  11273.         ;;
  11274.       esac
  11275.       ;;
  11276.  
  11277.     mingw* | cygwin* | pw32* | os2* | cegcc*)
  11278.       # This hack is so that the source file can tell whether it is being
  11279.       # built for inclusion in a dll (and should export symbols for example).
  11280.       lt_prog_compiler_pic='-DDLL_EXPORT'
  11281.       case $host_os in
  11282.       os2*)
  11283.         lt_prog_compiler_static='$wl-static'
  11284.         ;;
  11285.       esac
  11286.       ;;
  11287.  
  11288.     hpux9* | hpux10* | hpux11*)
  11289.       lt_prog_compiler_wl='-Wl,'
  11290.       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11291.       # not for PA HP-UX.
  11292.       case $host_cpu in
  11293.       hppa*64*|ia64*)
  11294.         # +Z the default
  11295.         ;;
  11296.       *)
  11297.         lt_prog_compiler_pic='+Z'
  11298.         ;;
  11299.       esac
  11300.       # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11301.       lt_prog_compiler_static='$wl-a ${wl}archive'
  11302.       ;;
  11303.  
  11304.     irix5* | irix6* | nonstopux*)
  11305.       lt_prog_compiler_wl='-Wl,'
  11306.       # PIC (with -KPIC) is the default.
  11307.       lt_prog_compiler_static='-non_shared'
  11308.       ;;
  11309.  
  11310.     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11311.       case $cc_basename in
  11312.       # old Intel for x86_64, which still supported -KPIC.
  11313.       ecc*)
  11314.         lt_prog_compiler_wl='-Wl,'
  11315.         lt_prog_compiler_pic='-KPIC'
  11316.         lt_prog_compiler_static='-static'
  11317.         ;;
  11318.       # icc used to be incompatible with GCC.
  11319.       # ICC 10 doesn't accept -KPIC any more.
  11320.       icc* | ifort*)
  11321.         lt_prog_compiler_wl='-Wl,'
  11322.         lt_prog_compiler_pic='-fPIC'
  11323.         lt_prog_compiler_static='-static'
  11324.         ;;
  11325.       # Lahey Fortran 8.1.
  11326.       lf95*)
  11327.         lt_prog_compiler_wl='-Wl,'
  11328.         lt_prog_compiler_pic='--shared'
  11329.         lt_prog_compiler_static='--static'
  11330.         ;;
  11331.       nagfor*)
  11332.         # NAG Fortran compiler
  11333.         lt_prog_compiler_wl='-Wl,-Wl,,'
  11334.         lt_prog_compiler_pic='-PIC'
  11335.         lt_prog_compiler_static='-Bstatic'
  11336.         ;;
  11337.       tcc*)
  11338.         # Fabrice Bellard et al's Tiny C Compiler
  11339.         lt_prog_compiler_wl='-Wl,'
  11340.         lt_prog_compiler_pic='-fPIC'
  11341.         lt_prog_compiler_static='-static'
  11342.         ;;
  11343.       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  11344.         # Portland Group compilers (*not* the Pentium gcc compiler,
  11345.         # which looks to be a dead project)
  11346.         lt_prog_compiler_wl='-Wl,'
  11347.         lt_prog_compiler_pic='-fpic'
  11348.         lt_prog_compiler_static='-Bstatic'
  11349.         ;;
  11350.       ccc*)
  11351.         lt_prog_compiler_wl='-Wl,'
  11352.         # All Alpha code is PIC.
  11353.         lt_prog_compiler_static='-non_shared'
  11354.         ;;
  11355.       xl* | bgxl* | bgf* | mpixl*)
  11356.         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  11357.         lt_prog_compiler_wl='-Wl,'
  11358.         lt_prog_compiler_pic='-qpic'
  11359.         lt_prog_compiler_static='-qstaticlink'
  11360.         ;;
  11361.       *)
  11362.         case `$CC -V 2>&1 | sed 5q` in
  11363.         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  11364.           # Sun Fortran 8.3 passes all unrecognized flags to the linker
  11365.           lt_prog_compiler_pic='-KPIC'
  11366.           lt_prog_compiler_static='-Bstatic'
  11367.           lt_prog_compiler_wl=''
  11368.           ;;
  11369.         *Sun\ F* | *Sun*Fortran*)
  11370.           lt_prog_compiler_pic='-KPIC'
  11371.           lt_prog_compiler_static='-Bstatic'
  11372.           lt_prog_compiler_wl='-Qoption ld '
  11373.           ;;
  11374.         *Sun\ C*)
  11375.           # Sun C 5.9
  11376.           lt_prog_compiler_pic='-KPIC'
  11377.           lt_prog_compiler_static='-Bstatic'
  11378.           lt_prog_compiler_wl='-Wl,'
  11379.           ;;
  11380.         *Intel*\ [CF]*Compiler*)
  11381.           lt_prog_compiler_wl='-Wl,'
  11382.           lt_prog_compiler_pic='-fPIC'
  11383.           lt_prog_compiler_static='-static'
  11384.           ;;
  11385.         *Portland\ Group*)
  11386.           lt_prog_compiler_wl='-Wl,'
  11387.           lt_prog_compiler_pic='-fpic'
  11388.           lt_prog_compiler_static='-Bstatic'
  11389.           ;;
  11390.         esac
  11391.         ;;
  11392.       esac
  11393.       ;;
  11394.  
  11395.     newsos6)
  11396.       lt_prog_compiler_pic='-KPIC'
  11397.       lt_prog_compiler_static='-Bstatic'
  11398.       ;;
  11399.  
  11400.     *nto* | *qnx*)
  11401.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  11402.       # it will coredump.
  11403.       lt_prog_compiler_pic='-fPIC -shared'
  11404.       ;;
  11405.  
  11406.     osf3* | osf4* | osf5*)
  11407.       lt_prog_compiler_wl='-Wl,'
  11408.       # All OSF/1 code is PIC.
  11409.       lt_prog_compiler_static='-non_shared'
  11410.       ;;
  11411.  
  11412.     rdos*)
  11413.       lt_prog_compiler_static='-non_shared'
  11414.       ;;
  11415.  
  11416.     solaris*)
  11417.       lt_prog_compiler_pic='-KPIC'
  11418.       lt_prog_compiler_static='-Bstatic'
  11419.       case $cc_basename in
  11420.       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  11421.         lt_prog_compiler_wl='-Qoption ld ';;
  11422.       *)
  11423.         lt_prog_compiler_wl='-Wl,';;
  11424.       esac
  11425.       ;;
  11426.  
  11427.     sunos4*)
  11428.       lt_prog_compiler_wl='-Qoption ld '
  11429.       lt_prog_compiler_pic='-PIC'
  11430.       lt_prog_compiler_static='-Bstatic'
  11431.       ;;
  11432.  
  11433.     sysv4 | sysv4.2uw2* | sysv4.3*)
  11434.       lt_prog_compiler_wl='-Wl,'
  11435.       lt_prog_compiler_pic='-KPIC'
  11436.       lt_prog_compiler_static='-Bstatic'
  11437.       ;;
  11438.  
  11439.     sysv4*MP*)
  11440.       if test -d /usr/nec; then
  11441.         lt_prog_compiler_pic='-Kconform_pic'
  11442.         lt_prog_compiler_static='-Bstatic'
  11443.       fi
  11444.       ;;
  11445.  
  11446.     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11447.       lt_prog_compiler_wl='-Wl,'
  11448.       lt_prog_compiler_pic='-KPIC'
  11449.       lt_prog_compiler_static='-Bstatic'
  11450.       ;;
  11451.  
  11452.     unicos*)
  11453.       lt_prog_compiler_wl='-Wl,'
  11454.       lt_prog_compiler_can_build_shared=no
  11455.       ;;
  11456.  
  11457.     uts4*)
  11458.       lt_prog_compiler_pic='-pic'
  11459.       lt_prog_compiler_static='-Bstatic'
  11460.       ;;
  11461.  
  11462.     *)
  11463.       lt_prog_compiler_can_build_shared=no
  11464.       ;;
  11465.     esac
  11466.   fi
  11467.  
  11468. case $host_os in
  11469.   # For platforms that do not support PIC, -DPIC is meaningless:
  11470.   *djgpp*)
  11471.     lt_prog_compiler_pic=
  11472.     ;;
  11473.   *)
  11474.     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  11475.     ;;
  11476. esac
  11477.  
  11478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11479. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11480. if ${lt_cv_prog_compiler_pic+:} false; then :
  11481.   $as_echo_n "(cached) " >&6
  11482. else
  11483.   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  11484. fi
  11485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  11486. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  11487. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  11488.  
  11489. #
  11490. # Check to make sure the PIC flag actually works.
  11491. #
  11492. if test -n "$lt_prog_compiler_pic"; then
  11493.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  11494. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  11495. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  11496.   $as_echo_n "(cached) " >&6
  11497. else
  11498.   lt_cv_prog_compiler_pic_works=no
  11499.    ac_outfile=conftest.$ac_objext
  11500.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11501.    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
  11502.    # Insert the option either (1) after the last *FLAGS variable, or
  11503.    # (2) before a word containing "conftest.", or (3) at the end.
  11504.    # Note that $ac_compile itself does not contain backslashes and begins
  11505.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  11506.    # The option is referenced via a variable to avoid confusing sed.
  11507.    lt_compile=`echo "$ac_compile" | $SED \
  11508.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11509.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11510.    -e 's:$: $lt_compiler_flag:'`
  11511.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11512.    (eval "$lt_compile" 2>conftest.err)
  11513.    ac_status=$?
  11514.    cat conftest.err >&5
  11515.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11516.    if (exit $ac_status) && test -s "$ac_outfile"; then
  11517.      # The compiler can only warn and ignore the option if not recognized
  11518.      # So say no if there are warnings other than the usual output.
  11519.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11520.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11521.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11522.        lt_cv_prog_compiler_pic_works=yes
  11523.      fi
  11524.    fi
  11525.    $RM conftest*
  11526.  
  11527. fi
  11528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  11529. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  11530.  
  11531. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  11532.     case $lt_prog_compiler_pic in
  11533.      "" | " "*) ;;
  11534.      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  11535.      esac
  11536. else
  11537.     lt_prog_compiler_pic=
  11538.      lt_prog_compiler_can_build_shared=no
  11539. fi
  11540.  
  11541. fi
  11542.  
  11543.  
  11544.  
  11545.  
  11546.  
  11547.  
  11548.  
  11549.  
  11550.  
  11551.  
  11552.  
  11553. #
  11554. # Check to make sure the static flag actually works.
  11555. #
  11556. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  11557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11558. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11559. if ${lt_cv_prog_compiler_static_works+:} false; then :
  11560.   $as_echo_n "(cached) " >&6
  11561. else
  11562.   lt_cv_prog_compiler_static_works=no
  11563.    save_LDFLAGS=$LDFLAGS
  11564.    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11565.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11566.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11567.      # The linker can only warn and ignore the option if not recognized
  11568.      # So say no if there are warnings
  11569.      if test -s conftest.err; then
  11570.        # Append any errors to the config.log.
  11571.        cat conftest.err 1>&5
  11572.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11573.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11574.        if diff conftest.exp conftest.er2 >/dev/null; then
  11575.          lt_cv_prog_compiler_static_works=yes
  11576.        fi
  11577.      else
  11578.        lt_cv_prog_compiler_static_works=yes
  11579.      fi
  11580.    fi
  11581.    $RM -r conftest*
  11582.    LDFLAGS=$save_LDFLAGS
  11583.  
  11584. fi
  11585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  11586. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  11587.  
  11588. if test yes = "$lt_cv_prog_compiler_static_works"; then
  11589.     :
  11590. else
  11591.     lt_prog_compiler_static=
  11592. fi
  11593.  
  11594.  
  11595.  
  11596.  
  11597.  
  11598.  
  11599.  
  11600.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11601. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11602. if ${lt_cv_prog_compiler_c_o+:} false; then :
  11603.   $as_echo_n "(cached) " >&6
  11604. else
  11605.   lt_cv_prog_compiler_c_o=no
  11606.    $RM -r conftest 2>/dev/null
  11607.    mkdir conftest
  11608.    cd conftest
  11609.    mkdir out
  11610.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11611.  
  11612.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  11613.    # Insert the option either (1) after the last *FLAGS variable, or
  11614.    # (2) before a word containing "conftest.", or (3) at the end.
  11615.    # Note that $ac_compile itself does not contain backslashes and begins
  11616.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  11617.    lt_compile=`echo "$ac_compile" | $SED \
  11618.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11619.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11620.    -e 's:$: $lt_compiler_flag:'`
  11621.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11622.    (eval "$lt_compile" 2>out/conftest.err)
  11623.    ac_status=$?
  11624.    cat out/conftest.err >&5
  11625.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11626.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11627.    then
  11628.      # The compiler can only warn and ignore the option if not recognized
  11629.      # So say no if there are warnings
  11630.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11631.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11632.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11633.        lt_cv_prog_compiler_c_o=yes
  11634.      fi
  11635.    fi
  11636.    chmod u+w . 2>&5
  11637.    $RM conftest*
  11638.    # SGI C++ compiler will create directory out/ii_files/ for
  11639.    # template instantiation
  11640.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11641.    $RM out/* && rmdir out
  11642.    cd ..
  11643.    $RM -r conftest
  11644.    $RM conftest*
  11645.  
  11646. fi
  11647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  11648. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  11649.  
  11650.  
  11651.  
  11652.  
  11653.  
  11654.  
  11655.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11656. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11657. if ${lt_cv_prog_compiler_c_o+:} false; then :
  11658.   $as_echo_n "(cached) " >&6
  11659. else
  11660.   lt_cv_prog_compiler_c_o=no
  11661.    $RM -r conftest 2>/dev/null
  11662.    mkdir conftest
  11663.    cd conftest
  11664.    mkdir out
  11665.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11666.  
  11667.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  11668.    # Insert the option either (1) after the last *FLAGS variable, or
  11669.    # (2) before a word containing "conftest.", or (3) at the end.
  11670.    # Note that $ac_compile itself does not contain backslashes and begins
  11671.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  11672.    lt_compile=`echo "$ac_compile" | $SED \
  11673.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11674.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11675.    -e 's:$: $lt_compiler_flag:'`
  11676.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11677.    (eval "$lt_compile" 2>out/conftest.err)
  11678.    ac_status=$?
  11679.    cat out/conftest.err >&5
  11680.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11681.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11682.    then
  11683.      # The compiler can only warn and ignore the option if not recognized
  11684.      # So say no if there are warnings
  11685.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11686.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11687.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11688.        lt_cv_prog_compiler_c_o=yes
  11689.      fi
  11690.    fi
  11691.    chmod u+w . 2>&5
  11692.    $RM conftest*
  11693.    # SGI C++ compiler will create directory out/ii_files/ for
  11694.    # template instantiation
  11695.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11696.    $RM out/* && rmdir out
  11697.    cd ..
  11698.    $RM -r conftest
  11699.    $RM conftest*
  11700.  
  11701. fi
  11702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  11703. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  11704.  
  11705.  
  11706.  
  11707.  
  11708. hard_links=nottested
  11709. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  11710.   # do not overwrite the value of need_locks provided by the user
  11711.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11712. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11713.   hard_links=yes
  11714.   $RM conftest*
  11715.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11716.   touch conftest.a
  11717.   ln conftest.a conftest.b 2>&5 || hard_links=no
  11718.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11719.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11720. $as_echo "$hard_links" >&6; }
  11721.   if test no = "$hard_links"; then
  11722.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  11723. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  11724.     need_locks=warn
  11725.   fi
  11726. else
  11727.   need_locks=no
  11728. fi
  11729.  
  11730.  
  11731.  
  11732.  
  11733.  
  11734.  
  11735.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11736. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11737.  
  11738.   runpath_var=
  11739.   allow_undefined_flag=
  11740.   always_export_symbols=no
  11741.   archive_cmds=
  11742.   archive_expsym_cmds=
  11743.   compiler_needs_object=no
  11744.   enable_shared_with_static_runtimes=no
  11745.   export_dynamic_flag_spec=
  11746.   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11747.   hardcode_automatic=no
  11748.   hardcode_direct=no
  11749.   hardcode_direct_absolute=no
  11750.   hardcode_libdir_flag_spec=
  11751.   hardcode_libdir_separator=
  11752.   hardcode_minus_L=no
  11753.   hardcode_shlibpath_var=unsupported
  11754.   inherit_rpath=no
  11755.   link_all_deplibs=unknown
  11756.   module_cmds=
  11757.   module_expsym_cmds=
  11758.   old_archive_from_new_cmds=
  11759.   old_archive_from_expsyms_cmds=
  11760.   thread_safe_flag_spec=
  11761.   whole_archive_flag_spec=
  11762.   # include_expsyms should be a list of space-separated symbols to be *always*
  11763.   # included in the symbol list
  11764.   include_expsyms=
  11765.   # exclude_expsyms can be an extended regexp of symbols to exclude
  11766.   # it will be wrapped by ' (' and ')$', so one must not match beginning or
  11767.   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  11768.   # as well as any symbol that contains 'd'.
  11769.   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11770.   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11771.   # platforms (ab)use it in PIC code, but their linkers get confused if
  11772.   # the symbol is explicitly referenced.  Since portable code cannot
  11773.   # rely on this symbol name, it's probably fine to never include it in
  11774.   # preloaded symbol tables.
  11775.   # Exclude shared library initialization/finalization symbols.
  11776.   extract_expsyms_cmds=
  11777.  
  11778.   case $host_os in
  11779.   cygwin* | mingw* | pw32* | cegcc*)
  11780.     # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11781.     # When not using gcc, we currently assume that we are using
  11782.     # Microsoft Visual C++.
  11783.     if test yes != "$GCC"; then
  11784.       with_gnu_ld=no
  11785.     fi
  11786.     ;;
  11787.   interix*)
  11788.     # we just hope/assume this is gcc and not c89 (= MSVC++)
  11789.     with_gnu_ld=yes
  11790.     ;;
  11791.   openbsd* | bitrig*)
  11792.     with_gnu_ld=no
  11793.     ;;
  11794.   esac
  11795.  
  11796.   ld_shlibs=yes
  11797.  
  11798.   # On some targets, GNU ld is compatible enough with the native linker
  11799.   # that we're better off using the native interface for both.
  11800.   lt_use_gnu_ld_interface=no
  11801.   if test yes = "$with_gnu_ld"; then
  11802.     case $host_os in
  11803.       aix*)
  11804.         # The AIX port of GNU ld has always aspired to compatibility
  11805.         # with the native linker.  However, as the warning in the GNU ld
  11806.         # block says, versions before 2.19.5* couldn't really create working
  11807.         # shared libraries, regardless of the interface used.
  11808.         case `$LD -v 2>&1` in
  11809.           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  11810.           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  11811.           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  11812.           *)
  11813.             lt_use_gnu_ld_interface=yes
  11814.             ;;
  11815.         esac
  11816.         ;;
  11817.       *)
  11818.         lt_use_gnu_ld_interface=yes
  11819.         ;;
  11820.     esac
  11821.   fi
  11822.  
  11823.   if test yes = "$lt_use_gnu_ld_interface"; then
  11824.     # If archive_cmds runs LD, not CC, wlarc should be empty
  11825.     wlarc='$wl'
  11826.  
  11827.     # Set some defaults for GNU ld with shared library support. These
  11828.     # are reset later if shared libraries are not supported. Putting them
  11829.     # here allows them to be overridden if necessary.
  11830.     runpath_var=LD_RUN_PATH
  11831.     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  11832.     export_dynamic_flag_spec='$wl--export-dynamic'
  11833.     # ancient GNU ld didn't support --whole-archive et. al.
  11834.     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  11835.       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  11836.     else
  11837.       whole_archive_flag_spec=
  11838.     fi
  11839.     supports_anon_versioning=no
  11840.     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  11841.       *GNU\ gold*) supports_anon_versioning=yes ;;
  11842.       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  11843.       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11844.       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11845.       *\ 2.11.*) ;; # other 2.11 versions
  11846.       *) supports_anon_versioning=yes ;;
  11847.     esac
  11848.  
  11849.     # See if GNU ld supports shared libraries.
  11850.     case $host_os in
  11851.     aix[3-9]*)
  11852.       # On AIX/PPC, the GNU linker is very broken
  11853.       if test ia64 != "$host_cpu"; then
  11854.         ld_shlibs=no
  11855.         cat <<_LT_EOF 1>&2
  11856.  
  11857. *** Warning: the GNU linker, at least up to release 2.19, is reported
  11858. *** to be unable to reliably create shared libraries on AIX.
  11859. *** Therefore, libtool is disabling shared libraries support.  If you
  11860. *** really care for shared libraries, you may want to install binutils
  11861. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  11862. *** You will then need to restart the configuration process.
  11863.  
  11864. _LT_EOF
  11865.       fi
  11866.       ;;
  11867.  
  11868.     amigaos*)
  11869.       case $host_cpu in
  11870.       powerpc)
  11871.             # see comment about AmigaOS4 .so support
  11872.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11873.             archive_expsym_cmds=''
  11874.         ;;
  11875.       m68k)
  11876.             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)'
  11877.             hardcode_libdir_flag_spec='-L$libdir'
  11878.             hardcode_minus_L=yes
  11879.         ;;
  11880.       esac
  11881.       ;;
  11882.  
  11883.     beos*)
  11884.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11885.         allow_undefined_flag=unsupported
  11886.         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11887.         # support --undefined.  This deserves some investigation.  FIXME
  11888.         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11889.       else
  11890.         ld_shlibs=no
  11891.       fi
  11892.       ;;
  11893.  
  11894.     cygwin* | mingw* | pw32* | cegcc*)
  11895.       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  11896.       # as there is no search path for DLLs.
  11897.       hardcode_libdir_flag_spec='-L$libdir'
  11898.       export_dynamic_flag_spec='$wl--export-all-symbols'
  11899.       allow_undefined_flag=unsupported
  11900.       always_export_symbols=no
  11901.       enable_shared_with_static_runtimes=yes
  11902.       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'
  11903.       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  11904.  
  11905.       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11906.         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11907.         # If the export-symbols file already is a .def file, use it as
  11908.         # is; otherwise, prepend EXPORTS...
  11909.         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
  11910.           cp $export_symbols $output_objdir/$soname.def;
  11911.         else
  11912.           echo EXPORTS > $output_objdir/$soname.def;
  11913.           cat $export_symbols >> $output_objdir/$soname.def;
  11914.         fi~
  11915.         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11916.       else
  11917.         ld_shlibs=no
  11918.       fi
  11919.       ;;
  11920.  
  11921.     haiku*)
  11922.       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  11923.       link_all_deplibs=yes
  11924.       ;;
  11925.  
  11926.     os2*)
  11927.       hardcode_libdir_flag_spec='-L$libdir'
  11928.       hardcode_minus_L=yes
  11929.       allow_undefined_flag=unsupported
  11930.       shrext_cmds=.dll
  11931.       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11932.         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11933.         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11934.         $ECHO EXPORTS >> $output_objdir/$libname.def~
  11935.         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  11936.         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11937.         emximp -o $lib $output_objdir/$libname.def'
  11938.       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  11939.         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  11940.         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  11941.         $ECHO EXPORTS >> $output_objdir/$libname.def~
  11942.         prefix_cmds="$SED"~
  11943.         if test EXPORTS = "`$SED 1q $export_symbols`"; then
  11944.           prefix_cmds="$prefix_cmds -e 1d";
  11945.         fi~
  11946.         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  11947.         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  11948.         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  11949.         emximp -o $lib $output_objdir/$libname.def'
  11950.       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  11951.       enable_shared_with_static_runtimes=yes
  11952.       ;;
  11953.  
  11954.     interix[3-9]*)
  11955.       hardcode_direct=no
  11956.       hardcode_shlibpath_var=no
  11957.       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  11958.       export_dynamic_flag_spec='$wl-E'
  11959.       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11960.       # Instead, shared libraries are loaded at an image base (0x10000000 by
  11961.       # default) and relocated if they conflict, which is a slow very memory
  11962.       # consuming and fragmenting process.  To avoid this, we pick a random,
  11963.       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11964.       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  11965.       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11966.       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'
  11967.       ;;
  11968.  
  11969.     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  11970.       tmp_diet=no
  11971.       if test linux-dietlibc = "$host_os"; then
  11972.         case $cc_basename in
  11973.           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
  11974.         esac
  11975.       fi
  11976.       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  11977.          && test no = "$tmp_diet"
  11978.       then
  11979.         tmp_addflag=' $pic_flag'
  11980.         tmp_sharedflag='-shared'
  11981.         case $cc_basename,$host_cpu in
  11982.         pgcc*)                          # Portland Group C compiler
  11983.           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'
  11984.           tmp_addflag=' $pic_flag'
  11985.           ;;
  11986.         pgf77* | pgf90* | pgf95* | pgfortran*)
  11987.                                         # Portland Group f77 and f90 compilers
  11988.           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'
  11989.           tmp_addflag=' $pic_flag -Mnomain' ;;
  11990.         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
  11991.           tmp_addflag=' -i_dynamic' ;;
  11992.         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
  11993.           tmp_addflag=' -i_dynamic -nofor_main' ;;
  11994.         ifc* | ifort*)                  # Intel Fortran compiler
  11995.           tmp_addflag=' -nofor_main' ;;
  11996.         lf95*)                          # Lahey Fortran 8.1
  11997.           whole_archive_flag_spec=
  11998.           tmp_sharedflag='--shared' ;;
  11999.         nagfor*)                        # NAGFOR 5.3
  12000.           tmp_sharedflag='-Wl,-shared' ;;
  12001.         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  12002.           tmp_sharedflag='-qmkshrobj'
  12003.           tmp_addflag= ;;
  12004.         nvcc*)  # Cuda Compiler Driver 2.2
  12005.           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'
  12006.           compiler_needs_object=yes
  12007.           ;;
  12008.         esac
  12009.         case `$CC -V 2>&1 | sed 5q` in
  12010.         *Sun\ C*)                       # Sun C 5.9
  12011.           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'
  12012.           compiler_needs_object=yes
  12013.           tmp_sharedflag='-G' ;;
  12014.         *Sun\ F*)                       # Sun Fortran 8.3
  12015.           tmp_sharedflag='-G' ;;
  12016.         esac
  12017.         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12018.  
  12019.         if test yes = "$supports_anon_versioning"; then
  12020.           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  12021.             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12022.             echo "local: *; };" >> $output_objdir/$libname.ver~
  12023.             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  12024.         fi
  12025.  
  12026.         case $cc_basename in
  12027.         tcc*)
  12028.           export_dynamic_flag_spec='-rdynamic'
  12029.           ;;
  12030.         xlf* | bgf* | bgxlf* | mpixlf*)
  12031.           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  12032.           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  12033.           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12034.           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  12035.           if test yes = "$supports_anon_versioning"; then
  12036.             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  12037.               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12038.               echo "local: *; };" >> $output_objdir/$libname.ver~
  12039.               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  12040.           fi
  12041.           ;;
  12042.         esac
  12043.       else
  12044.         ld_shlibs=no
  12045.       fi
  12046.       ;;
  12047.  
  12048.     netbsd*)
  12049.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12050.         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12051.         wlarc=
  12052.       else
  12053.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12054.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12055.       fi
  12056.       ;;
  12057.  
  12058.     solaris*)
  12059.       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  12060.         ld_shlibs=no
  12061.         cat <<_LT_EOF 1>&2
  12062.  
  12063. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12064. *** create shared libraries on Solaris systems.  Therefore, libtool
  12065. *** is disabling shared libraries support.  We urge you to upgrade GNU
  12066. *** binutils to release 2.9.1 or newer.  Another option is to modify
  12067. *** your PATH or compiler configuration so that the native linker is
  12068. *** used, and then restart.
  12069.  
  12070. _LT_EOF
  12071.       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12072.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12073.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12074.       else
  12075.         ld_shlibs=no
  12076.       fi
  12077.       ;;
  12078.  
  12079.     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  12080.       case `$LD -v 2>&1` in
  12081.         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  12082.         ld_shlibs=no
  12083.         cat <<_LT_EOF 1>&2
  12084.  
  12085. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  12086. *** reliably create shared libraries on SCO systems.  Therefore, libtool
  12087. *** is disabling shared libraries support.  We urge you to upgrade GNU
  12088. *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
  12089. *** your PATH or compiler configuration so that the native linker is
  12090. *** used, and then restart.
  12091.  
  12092. _LT_EOF
  12093.         ;;
  12094.         *)
  12095.           # For security reasons, it is highly recommended that you always
  12096.           # use absolute paths for naming shared libraries, and exclude the
  12097.           # DT_RUNPATH tag from executables and libraries.  But doing so
  12098.           # requires that you compile everything twice, which is a pain.
  12099.           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12100.             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12101.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12102.             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12103.           else
  12104.             ld_shlibs=no
  12105.           fi
  12106.         ;;
  12107.       esac
  12108.       ;;
  12109.  
  12110.     sunos4*)
  12111.       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12112.       wlarc=
  12113.       hardcode_direct=yes
  12114.       hardcode_shlibpath_var=no
  12115.       ;;
  12116.  
  12117.     *)
  12118.       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  12119.         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12120.         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  12121.       else
  12122.         ld_shlibs=no
  12123.       fi
  12124.       ;;
  12125.     esac
  12126.  
  12127.     if test no = "$ld_shlibs"; then
  12128.       runpath_var=
  12129.       hardcode_libdir_flag_spec=
  12130.       export_dynamic_flag_spec=
  12131.       whole_archive_flag_spec=
  12132.     fi
  12133.   else
  12134.     # PORTME fill in a description of your system's linker (not GNU ld)
  12135.     case $host_os in
  12136.     aix3*)
  12137.       allow_undefined_flag=unsupported
  12138.       always_export_symbols=yes
  12139.       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'
  12140.       # Note: this linker hardcodes the directories in LIBPATH if there
  12141.       # are no directories specified by -L.
  12142.       hardcode_minus_L=yes
  12143.       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  12144.         # Neither direct hardcoding nor static linking is supported with a
  12145.         # broken collect2.
  12146.         hardcode_direct=unsupported
  12147.       fi
  12148.       ;;
  12149.  
  12150.     aix[4-9]*)
  12151.       if test ia64 = "$host_cpu"; then
  12152.         # On IA64, the linker does run time linking by default, so we don't
  12153.         # have to do anything special.
  12154.         aix_use_runtimelinking=no
  12155.         exp_sym_flag='-Bexport'
  12156.         no_entry_flag=
  12157.       else
  12158.         # If we're using GNU nm, then we don't want the "-C" option.
  12159.         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  12160.         # Without the "-l" option, or with the "-B" option, AIX nm treats
  12161.         # weak defined symbols like other global defined symbols, whereas
  12162.         # GNU nm marks them as "W".
  12163.         # While the 'weak' keyword is ignored in the Export File, we need
  12164.         # it in the Import File for the 'aix-soname' feature, so we have
  12165.         # to replace the "-B" option with "-P" for AIX nm.
  12166.         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12167.           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  12168.         else
  12169.           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  12170.         fi
  12171.         aix_use_runtimelinking=no
  12172.  
  12173.         # Test if we are trying to use run time linking or normal
  12174.         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12175.         # have runtime linking enabled, and use it for executables.
  12176.         # For shared libraries, we enable/disable runtime linking
  12177.         # depending on the kind of the shared library created -
  12178.         # when "with_aix_soname,aix_use_runtimelinking" is:
  12179.         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
  12180.         # "aix,yes"  lib.so          shared, rtl:yes, for executables
  12181.         #            lib.a           static archive
  12182.         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
  12183.         #            lib.a(lib.so.V) shared, rtl:no,  for executables
  12184.         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  12185.         #            lib.a(lib.so.V) shared, rtl:no
  12186.         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
  12187.         #            lib.a           static archive
  12188.         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  12189.           for ld_flag in $LDFLAGS; do
  12190.           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  12191.             aix_use_runtimelinking=yes
  12192.             break
  12193.           fi
  12194.           done
  12195.           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  12196.             # With aix-soname=svr4, we create the lib.so.V shared archives only,
  12197.             # so we don't have lib.a shared libs to link our executables.
  12198.             # We have to force runtime linking in this case.
  12199.             aix_use_runtimelinking=yes
  12200.             LDFLAGS="$LDFLAGS -Wl,-brtl"
  12201.           fi
  12202.           ;;
  12203.         esac
  12204.  
  12205.         exp_sym_flag='-bexport'
  12206.         no_entry_flag='-bnoentry'
  12207.       fi
  12208.  
  12209.       # When large executables or shared objects are built, AIX ld can
  12210.       # have problems creating the table of contents.  If linking a library
  12211.       # or program results in "error TOC overflow" add -mminimal-toc to
  12212.       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  12213.       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12214.  
  12215.       archive_cmds=''
  12216.       hardcode_direct=yes
  12217.       hardcode_direct_absolute=yes
  12218.       hardcode_libdir_separator=':'
  12219.       link_all_deplibs=yes
  12220.       file_list_spec='$wl-f,'
  12221.       case $with_aix_soname,$aix_use_runtimelinking in
  12222.       aix,*) ;; # traditional, no import file
  12223.       svr4,* | *,yes) # use import file
  12224.         # The Import File defines what to hardcode.
  12225.         hardcode_direct=no
  12226.         hardcode_direct_absolute=no
  12227.         ;;
  12228.       esac
  12229.  
  12230.       if test yes = "$GCC"; then
  12231.         case $host_os in aix4.[012]|aix4.[012].*)
  12232.         # We only want to do this on AIX 4.2 and lower, the check
  12233.         # below for broken collect2 doesn't work under 4.3+
  12234.           collect2name=`$CC -print-prog-name=collect2`
  12235.           if test -f "$collect2name" &&
  12236.            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  12237.           then
  12238.           # We have reworked collect2
  12239.           :
  12240.           else
  12241.           # We have old collect2
  12242.           hardcode_direct=unsupported
  12243.           # It fails to find uninstalled libraries when the uninstalled
  12244.           # path is not listed in the libpath.  Setting hardcode_minus_L
  12245.           # to unsupported forces relinking
  12246.           hardcode_minus_L=yes
  12247.           hardcode_libdir_flag_spec='-L$libdir'
  12248.           hardcode_libdir_separator=
  12249.           fi
  12250.           ;;
  12251.         esac
  12252.         shared_flag='-shared'
  12253.         if test yes = "$aix_use_runtimelinking"; then
  12254.           shared_flag="$shared_flag "'$wl-G'
  12255.         fi
  12256.         # Need to ensure runtime linking is disabled for the traditional
  12257.         # shared library, or the linker may eventually find shared libraries
  12258.         # /with/ Import File - we do not want to mix them.
  12259.         shared_flag_aix='-shared'
  12260.         shared_flag_svr4='-shared $wl-G'
  12261.       else
  12262.         # not using gcc
  12263.         if test ia64 = "$host_cpu"; then
  12264.         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12265.         # chokes on -Wl,-G. The following line is correct:
  12266.           shared_flag='-G'
  12267.         else
  12268.           if test yes = "$aix_use_runtimelinking"; then
  12269.             shared_flag='$wl-G'
  12270.           else
  12271.             shared_flag='$wl-bM:SRE'
  12272.           fi
  12273.           shared_flag_aix='$wl-bM:SRE'
  12274.           shared_flag_svr4='$wl-G'
  12275.         fi
  12276.       fi
  12277.  
  12278.       export_dynamic_flag_spec='$wl-bexpall'
  12279.       # It seems that -bexpall does not export symbols beginning with
  12280.       # underscore (_), so it is better to generate a list of symbols to export.
  12281.       always_export_symbols=yes
  12282.       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  12283.         # Warning - without using the other runtime loading flags (-brtl),
  12284.         # -berok will link without error, but may produce a broken library.
  12285.         allow_undefined_flag='-berok'
  12286.         # Determine the default libpath from the value encoded in an
  12287.         # empty executable.
  12288.         if test set = "${lt_cv_aix_libpath+set}"; then
  12289.   aix_libpath=$lt_cv_aix_libpath
  12290. else
  12291.   if ${lt_cv_aix_libpath_+:} false; then :
  12292.   $as_echo_n "(cached) " >&6
  12293. else
  12294.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12295. /* end confdefs.h.  */
  12296.  
  12297. int
  12298. main ()
  12299. {
  12300.  
  12301.   ;
  12302.   return 0;
  12303. }
  12304. _ACEOF
  12305. if ac_fn_c_try_link "$LINENO"; then :
  12306.  
  12307.   lt_aix_libpath_sed='
  12308.       /Import File Strings/,/^$/ {
  12309.           /^0/ {
  12310.               s/^0  *\([^ ]*\) *$/\1/
  12311.               p
  12312.           }
  12313.       }'
  12314.   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12315.   # Check for a 64-bit object if we didn't find anything.
  12316.   if test -z "$lt_cv_aix_libpath_"; then
  12317.     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12318.   fi
  12319. fi
  12320. rm -f core conftest.err conftest.$ac_objext \
  12321.     conftest$ac_exeext conftest.$ac_ext
  12322.   if test -z "$lt_cv_aix_libpath_"; then
  12323.     lt_cv_aix_libpath_=/usr/lib:/lib
  12324.   fi
  12325.  
  12326. fi
  12327.  
  12328.   aix_libpath=$lt_cv_aix_libpath_
  12329. fi
  12330.  
  12331.         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  12332.         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  12333.       else
  12334.         if test ia64 = "$host_cpu"; then
  12335.           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  12336.           allow_undefined_flag="-z nodefs"
  12337.           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"
  12338.         else
  12339.          # Determine the default libpath from the value encoded in an
  12340.          # empty executable.
  12341.          if test set = "${lt_cv_aix_libpath+set}"; then
  12342.   aix_libpath=$lt_cv_aix_libpath
  12343. else
  12344.   if ${lt_cv_aix_libpath_+:} false; then :
  12345.   $as_echo_n "(cached) " >&6
  12346. else
  12347.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12348. /* end confdefs.h.  */
  12349.  
  12350. int
  12351. main ()
  12352. {
  12353.  
  12354.   ;
  12355.   return 0;
  12356. }
  12357. _ACEOF
  12358. if ac_fn_c_try_link "$LINENO"; then :
  12359.  
  12360.   lt_aix_libpath_sed='
  12361.       /Import File Strings/,/^$/ {
  12362.           /^0/ {
  12363.               s/^0  *\([^ ]*\) *$/\1/
  12364.               p
  12365.           }
  12366.       }'
  12367.   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12368.   # Check for a 64-bit object if we didn't find anything.
  12369.   if test -z "$lt_cv_aix_libpath_"; then
  12370.     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  12371.   fi
  12372. fi
  12373. rm -f core conftest.err conftest.$ac_objext \
  12374.     conftest$ac_exeext conftest.$ac_ext
  12375.   if test -z "$lt_cv_aix_libpath_"; then
  12376.     lt_cv_aix_libpath_=/usr/lib:/lib
  12377.   fi
  12378.  
  12379. fi
  12380.  
  12381.   aix_libpath=$lt_cv_aix_libpath_
  12382. fi
  12383.  
  12384.          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  12385.           # Warning - without using the other run time loading flags,
  12386.           # -berok will link without error, but may produce a broken library.
  12387.           no_undefined_flag=' $wl-bernotok'
  12388.           allow_undefined_flag=' $wl-berok'
  12389.           if test yes = "$with_gnu_ld"; then
  12390.             # We only use this code for GNU lds that support --whole-archive.
  12391.             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  12392.           else
  12393.             # Exported symbols can be pulled into shared objects from archives
  12394.             whole_archive_flag_spec='$convenience'
  12395.           fi
  12396.           archive_cmds_need_lc=yes
  12397.           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  12398.           # -brtl affects multiple linker settings, -berok does not and is overridden later
  12399.           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  12400.           if test svr4 != "$with_aix_soname"; then
  12401.             # This is similar to how AIX traditionally builds its shared libraries.
  12402.             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  12403.           fi
  12404.           if test aix != "$with_aix_soname"; then
  12405.             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  12406.           else
  12407.             # used by -dlpreopen to get the symbols
  12408.             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
  12409.           fi
  12410.           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  12411.         fi
  12412.       fi
  12413.       ;;
  12414.  
  12415.     amigaos*)
  12416.       case $host_cpu in
  12417.       powerpc)
  12418.             # see comment about AmigaOS4 .so support
  12419.             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  12420.             archive_expsym_cmds=''
  12421.         ;;
  12422.       m68k)
  12423.             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)'
  12424.             hardcode_libdir_flag_spec='-L$libdir'
  12425.             hardcode_minus_L=yes
  12426.         ;;
  12427.       esac
  12428.       ;;
  12429.  
  12430.     bsdi[45]*)
  12431.       export_dynamic_flag_spec=-rdynamic
  12432.       ;;
  12433.  
  12434.     cygwin* | mingw* | pw32* | cegcc*)
  12435.       # When not using gcc, we currently assume that we are using
  12436.       # Microsoft Visual C++.
  12437.       # hardcode_libdir_flag_spec is actually meaningless, as there is
  12438.       # no search path for DLLs.
  12439.       case $cc_basename in
  12440.       cl*)
  12441.         # Native MSVC
  12442.         hardcode_libdir_flag_spec=' '
  12443.         allow_undefined_flag=unsupported
  12444.         always_export_symbols=yes
  12445.         file_list_spec='@'
  12446.         # Tell ltmain to make .lib files, not .a files.
  12447.         libext=lib
  12448.         # Tell ltmain to make .dll files, not .so files.
  12449.         shrext_cmds=.dll
  12450.         # FIXME: Setting linknames here is a bad hack.
  12451.         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  12452.         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
  12453.             cp "$export_symbols" "$output_objdir/$soname.def";
  12454.             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  12455.           else
  12456.             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  12457.           fi~
  12458.           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  12459.           linknames='
  12460.         # The linker will not automatically build a static lib if we build a DLL.
  12461.         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  12462.         enable_shared_with_static_runtimes=yes
  12463.         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12464.         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  12465.         # Don't use ranlib
  12466.         old_postinstall_cmds='chmod 644 $oldlib'
  12467.         postlink_cmds='lt_outputfile="@OUTPUT@"~
  12468.           lt_tool_outputfile="@TOOL_OUTPUT@"~
  12469.           case $lt_outputfile in
  12470.             *.exe|*.EXE) ;;
  12471.             *)
  12472.               lt_outputfile=$lt_outputfile.exe
  12473.               lt_tool_outputfile=$lt_tool_outputfile.exe
  12474.               ;;
  12475.           esac~
  12476.           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  12477.             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  12478.             $RM "$lt_outputfile.manifest";
  12479.           fi'
  12480.         ;;
  12481.       *)
  12482.         # Assume MSVC wrapper
  12483.         hardcode_libdir_flag_spec=' '
  12484.         allow_undefined_flag=unsupported
  12485.         # Tell ltmain to make .lib files, not .a files.
  12486.         libext=lib
  12487.         # Tell ltmain to make .dll files, not .so files.
  12488.         shrext_cmds=.dll
  12489.         # FIXME: Setting linknames here is a bad hack.
  12490.         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  12491.         # The linker will automatically build a .lib file if we build a DLL.
  12492.         old_archive_from_new_cmds='true'
  12493.         # FIXME: Should let the user specify the lib program.
  12494.         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  12495.         enable_shared_with_static_runtimes=yes
  12496.         ;;
  12497.       esac
  12498.       ;;
  12499.  
  12500.     darwin* | rhapsody*)
  12501.  
  12502.  
  12503.   archive_cmds_need_lc=no
  12504.   hardcode_direct=no
  12505.   hardcode_automatic=yes
  12506.   hardcode_shlibpath_var=unsupported
  12507.   if test yes = "$lt_cv_ld_force_load"; then
  12508.     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\"`'
  12509.  
  12510.   else
  12511.     whole_archive_flag_spec=''
  12512.   fi
  12513.   link_all_deplibs=yes
  12514.   allow_undefined_flag=$_lt_dar_allow_undefined
  12515.   case $cc_basename in
  12516.      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  12517.      *) _lt_dar_can_shared=$GCC ;;
  12518.   esac
  12519.   if test yes = "$_lt_dar_can_shared"; then
  12520.     output_verbose_link_cmd=func_echo_all
  12521.     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  12522.     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  12523.     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"
  12524.     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"
  12525.  
  12526.   else
  12527.   ld_shlibs=no
  12528.   fi
  12529.  
  12530.       ;;
  12531.  
  12532.     dgux*)
  12533.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12534.       hardcode_libdir_flag_spec='-L$libdir'
  12535.       hardcode_shlibpath_var=no
  12536.       ;;
  12537.  
  12538.     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12539.     # support.  Future versions do this automatically, but an explicit c++rt0.o
  12540.     # does not break anything, and helps significantly (at the cost of a little
  12541.     # extra space).
  12542.     freebsd2.2*)
  12543.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12544.       hardcode_libdir_flag_spec='-R$libdir'
  12545.       hardcode_direct=yes
  12546.       hardcode_shlibpath_var=no
  12547.       ;;
  12548.  
  12549.     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12550.     freebsd2.*)
  12551.       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12552.       hardcode_direct=yes
  12553.       hardcode_minus_L=yes
  12554.       hardcode_shlibpath_var=no
  12555.       ;;
  12556.  
  12557.     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12558.     freebsd* | dragonfly*)
  12559.       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12560.       hardcode_libdir_flag_spec='-R$libdir'
  12561.       hardcode_direct=yes
  12562.       hardcode_shlibpath_var=no
  12563.       ;;
  12564.  
  12565.     hpux9*)
  12566.       if test yes = "$GCC"; then
  12567.         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12568.       else
  12569.         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  12570.       fi
  12571.       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  12572.       hardcode_libdir_separator=:
  12573.       hardcode_direct=yes
  12574.  
  12575.       # hardcode_minus_L: Not really in the search PATH,
  12576.       # but as the default location of the library.
  12577.       hardcode_minus_L=yes
  12578.       export_dynamic_flag_spec='$wl-E'
  12579.       ;;
  12580.  
  12581.     hpux10*)
  12582.       if test yes,no = "$GCC,$with_gnu_ld"; then
  12583.         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12584.       else
  12585.         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12586.       fi
  12587.       if test no = "$with_gnu_ld"; then
  12588.         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  12589.         hardcode_libdir_separator=:
  12590.         hardcode_direct=yes
  12591.         hardcode_direct_absolute=yes
  12592.         export_dynamic_flag_spec='$wl-E'
  12593.         # hardcode_minus_L: Not really in the search PATH,
  12594.         # but as the default location of the library.
  12595.         hardcode_minus_L=yes
  12596.       fi
  12597.       ;;
  12598.  
  12599.     hpux11*)
  12600.       if test yes,no = "$GCC,$with_gnu_ld"; then
  12601.         case $host_cpu in
  12602.         hppa*64*)
  12603.           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  12604.           ;;
  12605.         ia64*)
  12606.           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12607.           ;;
  12608.         *)
  12609.           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12610.           ;;
  12611.         esac
  12612.       else
  12613.         case $host_cpu in
  12614.         hppa*64*)
  12615.           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  12616.           ;;
  12617.         ia64*)
  12618.           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  12619.           ;;
  12620.         *)
  12621.  
  12622.           # Older versions of the 11.00 compiler do not understand -b yet
  12623.           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  12624.           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  12625. $as_echo_n "checking if $CC understands -b... " >&6; }
  12626. if ${lt_cv_prog_compiler__b+:} false; then :
  12627.   $as_echo_n "(cached) " >&6
  12628. else
  12629.   lt_cv_prog_compiler__b=no
  12630.    save_LDFLAGS=$LDFLAGS
  12631.    LDFLAGS="$LDFLAGS -b"
  12632.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12633.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12634.      # The linker can only warn and ignore the option if not recognized
  12635.      # So say no if there are warnings
  12636.      if test -s conftest.err; then
  12637.        # Append any errors to the config.log.
  12638.        cat conftest.err 1>&5
  12639.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12640.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12641.        if diff conftest.exp conftest.er2 >/dev/null; then
  12642.          lt_cv_prog_compiler__b=yes
  12643.        fi
  12644.      else
  12645.        lt_cv_prog_compiler__b=yes
  12646.      fi
  12647.    fi
  12648.    $RM -r conftest*
  12649.    LDFLAGS=$save_LDFLAGS
  12650.  
  12651. fi
  12652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  12653. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  12654.  
  12655. if test yes = "$lt_cv_prog_compiler__b"; then
  12656.     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12657. else
  12658.     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12659. fi
  12660.  
  12661.           ;;
  12662.         esac
  12663.       fi
  12664.       if test no = "$with_gnu_ld"; then
  12665.         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  12666.         hardcode_libdir_separator=:
  12667.  
  12668.         case $host_cpu in
  12669.         hppa*64*|ia64*)
  12670.           hardcode_direct=no
  12671.           hardcode_shlibpath_var=no
  12672.           ;;
  12673.         *)
  12674.           hardcode_direct=yes
  12675.           hardcode_direct_absolute=yes
  12676.           export_dynamic_flag_spec='$wl-E'
  12677.  
  12678.           # hardcode_minus_L: Not really in the search PATH,
  12679.           # but as the default location of the library.
  12680.           hardcode_minus_L=yes
  12681.           ;;
  12682.         esac
  12683.       fi
  12684.       ;;
  12685.  
  12686.     irix5* | irix6* | nonstopux*)
  12687.       if test yes = "$GCC"; then
  12688.         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'
  12689.         # Try to use the -exported_symbol ld option, if it does not
  12690.         # work, assume that -exports_file does not work either and
  12691.         # implicitly export all symbols.
  12692.         # This should be the same for all languages, so no per-tag cache variable.
  12693.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  12694. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  12695. if ${lt_cv_irix_exported_symbol+:} false; then :
  12696.   $as_echo_n "(cached) " >&6
  12697. else
  12698.   save_LDFLAGS=$LDFLAGS
  12699.            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  12700.            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12701. /* end confdefs.h.  */
  12702. int foo (void) { return 0; }
  12703. _ACEOF
  12704. if ac_fn_c_try_link "$LINENO"; then :
  12705.   lt_cv_irix_exported_symbol=yes
  12706. else
  12707.   lt_cv_irix_exported_symbol=no
  12708. fi
  12709. rm -f core conftest.err conftest.$ac_objext \
  12710.     conftest$ac_exeext conftest.$ac_ext
  12711.            LDFLAGS=$save_LDFLAGS
  12712. fi
  12713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  12714. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  12715.         if test yes = "$lt_cv_irix_exported_symbol"; then
  12716.           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'
  12717.         fi
  12718.       else
  12719.         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'
  12720.         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'
  12721.       fi
  12722.       archive_cmds_need_lc='no'
  12723.       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12724.       hardcode_libdir_separator=:
  12725.       inherit_rpath=yes
  12726.       link_all_deplibs=yes
  12727.       ;;
  12728.  
  12729.     linux*)
  12730.       case $cc_basename in
  12731.       tcc*)
  12732.         # Fabrice Bellard et al's Tiny C Compiler
  12733.         ld_shlibs=yes
  12734.         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12735.         ;;
  12736.       esac
  12737.       ;;
  12738.  
  12739.     netbsd*)
  12740.       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12741.         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  12742.       else
  12743.         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  12744.       fi
  12745.       hardcode_libdir_flag_spec='-R$libdir'
  12746.       hardcode_direct=yes
  12747.       hardcode_shlibpath_var=no
  12748.       ;;
  12749.  
  12750.     newsos6)
  12751.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12752.       hardcode_direct=yes
  12753.       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12754.       hardcode_libdir_separator=:
  12755.       hardcode_shlibpath_var=no
  12756.       ;;
  12757.  
  12758.     *nto* | *qnx*)
  12759.       ;;
  12760.  
  12761.     openbsd* | bitrig*)
  12762.       if test -f /usr/libexec/ld.so; then
  12763.         hardcode_direct=yes
  12764.         hardcode_shlibpath_var=no
  12765.         hardcode_direct_absolute=yes
  12766.         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  12767.           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12768.           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  12769.           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  12770.           export_dynamic_flag_spec='$wl-E'
  12771.         else
  12772.           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12773.           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  12774.         fi
  12775.       else
  12776.         ld_shlibs=no
  12777.       fi
  12778.       ;;
  12779.  
  12780.     os2*)
  12781.       hardcode_libdir_flag_spec='-L$libdir'
  12782.       hardcode_minus_L=yes
  12783.       allow_undefined_flag=unsupported
  12784.       shrext_cmds=.dll
  12785.       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12786.         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12787.         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12788.         $ECHO EXPORTS >> $output_objdir/$libname.def~
  12789.         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  12790.         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12791.         emximp -o $lib $output_objdir/$libname.def'
  12792.       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  12793.         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  12794.         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  12795.         $ECHO EXPORTS >> $output_objdir/$libname.def~
  12796.         prefix_cmds="$SED"~
  12797.         if test EXPORTS = "`$SED 1q $export_symbols`"; then
  12798.           prefix_cmds="$prefix_cmds -e 1d";
  12799.         fi~
  12800.         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  12801.         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  12802.         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  12803.         emximp -o $lib $output_objdir/$libname.def'
  12804.       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  12805.       enable_shared_with_static_runtimes=yes
  12806.       ;;
  12807.  
  12808.     osf3*)
  12809.       if test yes = "$GCC"; then
  12810.         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  12811.         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'
  12812.       else
  12813.         allow_undefined_flag=' -expect_unresolved \*'
  12814.         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'
  12815.       fi
  12816.       archive_cmds_need_lc='no'
  12817.       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12818.       hardcode_libdir_separator=:
  12819.       ;;
  12820.  
  12821.     osf4* | osf5*)      # as osf3* with the addition of -msym flag
  12822.       if test yes = "$GCC"; then
  12823.         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  12824.         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'
  12825.         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  12826.       else
  12827.         allow_undefined_flag=' -expect_unresolved \*'
  12828.         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'
  12829.         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~
  12830.           $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'
  12831.  
  12832.         # Both c and cxx compiler support -rpath directly
  12833.         hardcode_libdir_flag_spec='-rpath $libdir'
  12834.       fi
  12835.       archive_cmds_need_lc='no'
  12836.       hardcode_libdir_separator=:
  12837.       ;;
  12838.  
  12839.     solaris*)
  12840.       no_undefined_flag=' -z defs'
  12841.       if test yes = "$GCC"; then
  12842.         wlarc='$wl'
  12843.         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  12844.         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12845.           $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'
  12846.       else
  12847.         case `$CC -V 2>&1` in
  12848.         *"Compilers 5.0"*)
  12849.           wlarc=''
  12850.           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12851.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12852.             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  12853.           ;;
  12854.         *)
  12855.           wlarc='$wl'
  12856.           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12857.           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12858.             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  12859.           ;;
  12860.         esac
  12861.       fi
  12862.       hardcode_libdir_flag_spec='-R$libdir'
  12863.       hardcode_shlibpath_var=no
  12864.       case $host_os in
  12865.       solaris2.[0-5] | solaris2.[0-5].*) ;;
  12866.       *)
  12867.         # The compiler driver will combine and reorder linker options,
  12868.         # but understands '-z linker_flag'.  GCC discards it without '$wl',
  12869.         # but is careful enough not to reorder.
  12870.         # Supported since Solaris 2.6 (maybe 2.5.1?)
  12871.         if test yes = "$GCC"; then
  12872.           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  12873.         else
  12874.           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  12875.         fi
  12876.         ;;
  12877.       esac
  12878.       link_all_deplibs=yes
  12879.       ;;
  12880.  
  12881.     sunos4*)
  12882.       if test sequent = "$host_vendor"; then
  12883.         # Use $CC to link under sequent, because it throws in some extra .o
  12884.         # files that make .init and .fini sections work.
  12885.         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12886.       else
  12887.         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12888.       fi
  12889.       hardcode_libdir_flag_spec='-L$libdir'
  12890.       hardcode_direct=yes
  12891.       hardcode_minus_L=yes
  12892.       hardcode_shlibpath_var=no
  12893.       ;;
  12894.  
  12895.     sysv4)
  12896.       case $host_vendor in
  12897.         sni)
  12898.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12899.           hardcode_direct=yes # is this really true???
  12900.         ;;
  12901.         siemens)
  12902.           ## LD is ld it makes a PLAMLIB
  12903.           ## CC just makes a GrossModule.
  12904.           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12905.           reload_cmds='$CC -r -o $output$reload_objs'
  12906.           hardcode_direct=no
  12907.         ;;
  12908.         motorola)
  12909.           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12910.           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  12911.         ;;
  12912.       esac
  12913.       runpath_var='LD_RUN_PATH'
  12914.       hardcode_shlibpath_var=no
  12915.       ;;
  12916.  
  12917.     sysv4.3*)
  12918.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12919.       hardcode_shlibpath_var=no
  12920.       export_dynamic_flag_spec='-Bexport'
  12921.       ;;
  12922.  
  12923.     sysv4*MP*)
  12924.       if test -d /usr/nec; then
  12925.         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12926.         hardcode_shlibpath_var=no
  12927.         runpath_var=LD_RUN_PATH
  12928.         hardcode_runpath_var=yes
  12929.         ld_shlibs=yes
  12930.       fi
  12931.       ;;
  12932.  
  12933.     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12934.       no_undefined_flag='$wl-z,text'
  12935.       archive_cmds_need_lc=no
  12936.       hardcode_shlibpath_var=no
  12937.       runpath_var='LD_RUN_PATH'
  12938.  
  12939.       if test yes = "$GCC"; then
  12940.         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12941.         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12942.       else
  12943.         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12944.         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12945.       fi
  12946.       ;;
  12947.  
  12948.     sysv5* | sco3.2v5* | sco5v6*)
  12949.       # Note: We CANNOT use -z defs as we might desire, because we do not
  12950.       # link with -lc, and that would cause any symbols used from libc to
  12951.       # always be unresolved, which means just about no library would
  12952.       # ever link correctly.  If we're not using GNU ld we use -z text
  12953.       # though, which does catch some bad symbols but isn't as heavy-handed
  12954.       # as -z defs.
  12955.       no_undefined_flag='$wl-z,text'
  12956.       allow_undefined_flag='$wl-z,nodefs'
  12957.       archive_cmds_need_lc=no
  12958.       hardcode_shlibpath_var=no
  12959.       hardcode_libdir_flag_spec='$wl-R,$libdir'
  12960.       hardcode_libdir_separator=':'
  12961.       link_all_deplibs=yes
  12962.       export_dynamic_flag_spec='$wl-Bexport'
  12963.       runpath_var='LD_RUN_PATH'
  12964.  
  12965.       if test yes = "$GCC"; then
  12966.         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12967.         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12968.       else
  12969.         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12970.         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12971.       fi
  12972.       ;;
  12973.  
  12974.     uts4*)
  12975.       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12976.       hardcode_libdir_flag_spec='-L$libdir'
  12977.       hardcode_shlibpath_var=no
  12978.       ;;
  12979.  
  12980.     *)
  12981.       ld_shlibs=no
  12982.       ;;
  12983.     esac
  12984.  
  12985.     if test sni = "$host_vendor"; then
  12986.       case $host in
  12987.       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12988.         export_dynamic_flag_spec='$wl-Blargedynsym'
  12989.         ;;
  12990.       esac
  12991.     fi
  12992.   fi
  12993.  
  12994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  12995. $as_echo "$ld_shlibs" >&6; }
  12996. test no = "$ld_shlibs" && can_build_shared=no
  12997.  
  12998. with_gnu_ld=$with_gnu_ld
  12999.  
  13000.  
  13001.  
  13002.  
  13003.  
  13004.  
  13005.  
  13006.  
  13007.  
  13008.  
  13009.  
  13010.  
  13011.  
  13012.  
  13013.  
  13014. #
  13015. # Do we need to explicitly link libc?
  13016. #
  13017. case "x$archive_cmds_need_lc" in
  13018. x|xyes)
  13019.   # Assume -lc should be added
  13020.   archive_cmds_need_lc=yes
  13021.  
  13022.   if test yes,yes = "$GCC,$enable_shared"; then
  13023.     case $archive_cmds in
  13024.     *'~'*)
  13025.       # FIXME: we may have to deal with multi-command sequences.
  13026.       ;;
  13027.     '$CC '*)
  13028.       # Test whether the compiler implicitly links with -lc since on some
  13029.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13030.       # to ld, don't add -lc before -lgcc.
  13031.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13032. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13033. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  13034.   $as_echo_n "(cached) " >&6
  13035. else
  13036.   $RM conftest*
  13037.         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13038.  
  13039.         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13040.   (eval $ac_compile) 2>&5
  13041.   ac_status=$?
  13042.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13043.   test $ac_status = 0; } 2>conftest.err; then
  13044.           soname=conftest
  13045.           lib=conftest
  13046.           libobjs=conftest.$ac_objext
  13047.           deplibs=
  13048.           wl=$lt_prog_compiler_wl
  13049.           pic_flag=$lt_prog_compiler_pic
  13050.           compiler_flags=-v
  13051.           linker_flags=-v
  13052.           verstring=
  13053.           output_objdir=.
  13054.           libname=conftest
  13055.           lt_save_allow_undefined_flag=$allow_undefined_flag
  13056.           allow_undefined_flag=
  13057.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13058.   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13059.   ac_status=$?
  13060.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13061.   test $ac_status = 0; }
  13062.           then
  13063.             lt_cv_archive_cmds_need_lc=no
  13064.           else
  13065.             lt_cv_archive_cmds_need_lc=yes
  13066.           fi
  13067.           allow_undefined_flag=$lt_save_allow_undefined_flag
  13068.         else
  13069.           cat conftest.err 1>&5
  13070.         fi
  13071.         $RM conftest*
  13072.  
  13073. fi
  13074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  13075. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  13076.       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  13077.       ;;
  13078.     esac
  13079.   fi
  13080.   ;;
  13081. esac
  13082.  
  13083.  
  13084.  
  13085.  
  13086.  
  13087.  
  13088.  
  13089.  
  13090.  
  13091.  
  13092.  
  13093.  
  13094.  
  13095.  
  13096.  
  13097.  
  13098.  
  13099.  
  13100.  
  13101.  
  13102.  
  13103.  
  13104.  
  13105.  
  13106.  
  13107.  
  13108.  
  13109.  
  13110.  
  13111.  
  13112.  
  13113.  
  13114.  
  13115.  
  13116.  
  13117.  
  13118.  
  13119.  
  13120.  
  13121.  
  13122.  
  13123.  
  13124.  
  13125.  
  13126.  
  13127.  
  13128.  
  13129.  
  13130.  
  13131.  
  13132.  
  13133.  
  13134.  
  13135.  
  13136.  
  13137.  
  13138.  
  13139.  
  13140.  
  13141.  
  13142.  
  13143.  
  13144.  
  13145.  
  13146.  
  13147.  
  13148.  
  13149.  
  13150.  
  13151.  
  13152.  
  13153.  
  13154.  
  13155.  
  13156.  
  13157.  
  13158.  
  13159.  
  13160.  
  13161.  
  13162.  
  13163.  
  13164.  
  13165.  
  13166.  
  13167.  
  13168.  
  13169.  
  13170.  
  13171.  
  13172.  
  13173.  
  13174.  
  13175.  
  13176.  
  13177.  
  13178.  
  13179.  
  13180.  
  13181.  
  13182.  
  13183.  
  13184.  
  13185.  
  13186.  
  13187.  
  13188.  
  13189.  
  13190.  
  13191.  
  13192.  
  13193.  
  13194.  
  13195.  
  13196.  
  13197.  
  13198.  
  13199.  
  13200.  
  13201.  
  13202.  
  13203.  
  13204.  
  13205.  
  13206.  
  13207.  
  13208.  
  13209.  
  13210.  
  13211.  
  13212.  
  13213.  
  13214.  
  13215.  
  13216.  
  13217.  
  13218.  
  13219.  
  13220.  
  13221.  
  13222.  
  13223.  
  13224.  
  13225.  
  13226.  
  13227.  
  13228.  
  13229.  
  13230.  
  13231.  
  13232.  
  13233.  
  13234.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13235. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13236.  
  13237. if test yes = "$GCC"; then
  13238.   case $host_os in
  13239.     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  13240.     *) lt_awk_arg='/^libraries:/' ;;
  13241.   esac
  13242.   case $host_os in
  13243.     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  13244.     *) lt_sed_strip_eq='s|=/|/|g' ;;
  13245.   esac
  13246.   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  13247.   case $lt_search_path_spec in
  13248.   *\;*)
  13249.     # if the path contains ";" then we assume it to be the separator
  13250.     # otherwise default to the standard path separator (i.e. ":") - it is
  13251.     # assumed that no part of a normal pathname contains ";" but that should
  13252.     # okay in the real world where ";" in dirpaths is itself problematic.
  13253.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  13254.     ;;
  13255.   *)
  13256.     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  13257.     ;;
  13258.   esac
  13259.   # Ok, now we have the path, separated by spaces, we can step through it
  13260.   # and add multilib dir if necessary...
  13261.   lt_tmp_lt_search_path_spec=
  13262.   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  13263.   # ...but if some path component already ends with the multilib dir we assume
  13264.   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  13265.   case "$lt_multi_os_dir; $lt_search_path_spec " in
  13266.   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  13267.     lt_multi_os_dir=
  13268.     ;;
  13269.   esac
  13270.   for lt_sys_path in $lt_search_path_spec; do
  13271.     if test -d "$lt_sys_path$lt_multi_os_dir"; then
  13272.       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  13273.     elif test -n "$lt_multi_os_dir"; then
  13274.       test -d "$lt_sys_path" && \
  13275.         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  13276.     fi
  13277.   done
  13278.   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  13279. BEGIN {RS = " "; FS = "/|\n";} {
  13280.   lt_foo = "";
  13281.   lt_count = 0;
  13282.   for (lt_i = NF; lt_i > 0; lt_i--) {
  13283.     if ($lt_i != "" && $lt_i != ".") {
  13284.       if ($lt_i == "..") {
  13285.         lt_count++;
  13286.       } else {
  13287.         if (lt_count == 0) {
  13288.           lt_foo = "/" $lt_i lt_foo;
  13289.         } else {
  13290.           lt_count--;
  13291.         }
  13292.       }
  13293.     }
  13294.   }
  13295.   if (lt_foo != "") { lt_freq[lt_foo]++; }
  13296.   if (lt_freq[lt_foo] == 1) { print lt_foo; }
  13297. }'`
  13298.   # AWK program above erroneously prepends '/' to C:/dos/paths
  13299.   # for these hosts.
  13300.   case $host_os in
  13301.     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  13302.       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  13303.   esac
  13304.   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  13305. else
  13306.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13307. fi
  13308. library_names_spec=
  13309. libname_spec='lib$name'
  13310. soname_spec=
  13311. shrext_cmds=.so
  13312. postinstall_cmds=
  13313. postuninstall_cmds=
  13314. finish_cmds=
  13315. finish_eval=
  13316. shlibpath_var=
  13317. shlibpath_overrides_runpath=unknown
  13318. version_type=none
  13319. dynamic_linker="$host_os ld.so"
  13320. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13321. need_lib_prefix=unknown
  13322. hardcode_into_libs=no
  13323.  
  13324. # when you set need_version to no, make sure it does not cause -set_version
  13325. # flags to be left without arguments
  13326. need_version=unknown
  13327.  
  13328.  
  13329.  
  13330. case $host_os in
  13331. aix3*)
  13332.   version_type=linux # correct to gnu/linux during the next big refactor
  13333.   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  13334.   shlibpath_var=LIBPATH
  13335.  
  13336.   # AIX 3 has no versioning support, so we append a major version to the name.
  13337.   soname_spec='$libname$release$shared_ext$major'
  13338.   ;;
  13339.  
  13340. aix[4-9]*)
  13341.   version_type=linux # correct to gnu/linux during the next big refactor
  13342.   need_lib_prefix=no
  13343.   need_version=no
  13344.   hardcode_into_libs=yes
  13345.   if test ia64 = "$host_cpu"; then
  13346.     # AIX 5 supports IA64
  13347.     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  13348.     shlibpath_var=LD_LIBRARY_PATH
  13349.   else
  13350.     # With GCC up to 2.95.x, collect2 would create an import file
  13351.     # for dependence libraries.  The import file would start with
  13352.     # the line '#! .'.  This would cause the generated library to
  13353.     # depend on '.', always an invalid library.  This was fixed in
  13354.     # development snapshots of GCC prior to 3.0.
  13355.     case $host_os in
  13356.       aix4 | aix4.[01] | aix4.[01].*)
  13357.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13358.            echo ' yes '
  13359.            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  13360.         :
  13361.       else
  13362.         can_build_shared=no
  13363.       fi
  13364.       ;;
  13365.     esac
  13366.     # Using Import Files as archive members, it is possible to support
  13367.     # filename-based versioning of shared library archives on AIX. While
  13368.     # this would work for both with and without runtime linking, it will
  13369.     # prevent static linking of such archives. So we do filename-based
  13370.     # shared library versioning with .so extension only, which is used
  13371.     # when both runtime linking and shared linking is enabled.
  13372.     # Unfortunately, runtime linking may impact performance, so we do
  13373.     # not want this to be the default eventually. Also, we use the
  13374.     # versioned .so libs for executables only if there is the -brtl
  13375.     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  13376.     # To allow for filename-based versioning support, we need to create
  13377.     # libNAME.so.V as an archive file, containing:
  13378.     # *) an Import File, referring to the versioned filename of the
  13379.     #    archive as well as the shared archive member, telling the
  13380.     #    bitwidth (32 or 64) of that shared object, and providing the
  13381.     #    list of exported symbols of that shared object, eventually
  13382.     #    decorated with the 'weak' keyword
  13383.     # *) the shared object with the F_LOADONLY flag set, to really avoid
  13384.     #    it being seen by the linker.
  13385.     # At run time we better use the real file rather than another symlink,
  13386.     # but for link time we create the symlink libNAME.so -> libNAME.so.V
  13387.  
  13388.     case $with_aix_soname,$aix_use_runtimelinking in
  13389.     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  13390.     # soname into executable. Probably we can add versioning support to
  13391.     # collect2, so additional links can be useful in future.
  13392.     aix,yes) # traditional libtool
  13393.       dynamic_linker='AIX unversionable lib.so'
  13394.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13395.       # instead of lib<name>.a to let people know that these are not
  13396.       # typical AIX shared libraries.
  13397.       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13398.       ;;
  13399.     aix,no) # traditional AIX only
  13400.       dynamic_linker='AIX lib.a(lib.so.V)'
  13401.       # We preserve .a as extension for shared libraries through AIX4.2
  13402.       # and later when we are not doing run time linking.
  13403.       library_names_spec='$libname$release.a $libname.a'
  13404.       soname_spec='$libname$release$shared_ext$major'
  13405.       ;;
  13406.     svr4,*) # full svr4 only
  13407.       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  13408.       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13409.       # We do not specify a path in Import Files, so LIBPATH fires.
  13410.       shlibpath_overrides_runpath=yes
  13411.       ;;
  13412.     *,yes) # both, prefer svr4
  13413.       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  13414.       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  13415.       # unpreferred sharedlib libNAME.a needs extra handling
  13416.       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  13417.       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  13418.       # We do not specify a path in Import Files, so LIBPATH fires.
  13419.       shlibpath_overrides_runpath=yes
  13420.       ;;
  13421.     *,no) # both, prefer aix
  13422.       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  13423.       library_names_spec='$libname$release.a $libname.a'
  13424.       soname_spec='$libname$release$shared_ext$major'
  13425.       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  13426.       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  13427.       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  13428.       ;;
  13429.     esac
  13430.     shlibpath_var=LIBPATH
  13431.   fi
  13432.   ;;
  13433.  
  13434. amigaos*)
  13435.   case $host_cpu in
  13436.   powerpc)
  13437.     # Since July 2007 AmigaOS4 officially supports .so libraries.
  13438.     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13439.     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13440.     ;;
  13441.   m68k)
  13442.     library_names_spec='$libname.ixlibrary $libname.a'
  13443.     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13444.     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  13445.     ;;
  13446.   esac
  13447.   ;;
  13448.  
  13449. beos*)
  13450.   library_names_spec='$libname$shared_ext'
  13451.   dynamic_linker="$host_os ld.so"
  13452.   shlibpath_var=LIBRARY_PATH
  13453.   ;;
  13454.  
  13455. bsdi[45]*)
  13456.   version_type=linux # correct to gnu/linux during the next big refactor
  13457.   need_version=no
  13458.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13459.   soname_spec='$libname$release$shared_ext$major'
  13460.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13461.   shlibpath_var=LD_LIBRARY_PATH
  13462.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13463.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13464.   # the default ld.so.conf also contains /usr/contrib/lib and
  13465.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13466.   # libtool to hard-code these into programs
  13467.   ;;
  13468.  
  13469. cygwin* | mingw* | pw32* | cegcc*)
  13470.   version_type=windows
  13471.   shrext_cmds=.dll
  13472.   need_version=no
  13473.   need_lib_prefix=no
  13474.  
  13475.   case $GCC,$cc_basename in
  13476.   yes,*)
  13477.     # gcc
  13478.     library_names_spec='$libname.dll.a'
  13479.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13480.     postinstall_cmds='base_file=`basename \$file`~
  13481.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13482.       dldir=$destdir/`dirname \$dlpath`~
  13483.       test -d \$dldir || mkdir -p \$dldir~
  13484.       $install_prog $dir/$dlname \$dldir/$dlname~
  13485.       chmod a+x \$dldir/$dlname~
  13486.       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13487.         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13488.       fi'
  13489.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13490.       dlpath=$dir/\$dldll~
  13491.        $RM \$dlpath'
  13492.     shlibpath_overrides_runpath=yes
  13493.  
  13494.     case $host_os in
  13495.     cygwin*)
  13496.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13497.       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13498.  
  13499.       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  13500.       ;;
  13501.     mingw* | cegcc*)
  13502.       # MinGW DLLs use traditional 'lib' prefix
  13503.       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13504.       ;;
  13505.     pw32*)
  13506.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  13507.       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13508.       ;;
  13509.     esac
  13510.     dynamic_linker='Win32 ld.exe'
  13511.     ;;
  13512.  
  13513.   *,cl*)
  13514.     # Native MSVC
  13515.     libname_spec='$name'
  13516.     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  13517.     library_names_spec='$libname.dll.lib'
  13518.  
  13519.     case $build_os in
  13520.     mingw*)
  13521.       sys_lib_search_path_spec=
  13522.       lt_save_ifs=$IFS
  13523.       IFS=';'
  13524.       for lt_path in $LIB
  13525.       do
  13526.         IFS=$lt_save_ifs
  13527.         # Let DOS variable expansion print the short 8.3 style file name.
  13528.         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13529.         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13530.       done
  13531.       IFS=$lt_save_ifs
  13532.       # Convert to MSYS style.
  13533.       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13534.       ;;
  13535.     cygwin*)
  13536.       # Convert to unix form, then to dos form, then back to unix form
  13537.       # but this time dos style (no spaces!) so that the unix form looks
  13538.       # like /cygdrive/c/PROGRA~1:/cygdr...
  13539.       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13540.       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13541.       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13542.       ;;
  13543.     *)
  13544.       sys_lib_search_path_spec=$LIB
  13545.       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13546.         # It is most probably a Windows format PATH.
  13547.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13548.       else
  13549.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13550.       fi
  13551.       # FIXME: find the short name or the path components, as spaces are
  13552.       # common. (e.g. "Program Files" -> "PROGRA~1")
  13553.       ;;
  13554.     esac
  13555.  
  13556.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13557.     postinstall_cmds='base_file=`basename \$file`~
  13558.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  13559.       dldir=$destdir/`dirname \$dlpath`~
  13560.       test -d \$dldir || mkdir -p \$dldir~
  13561.       $install_prog $dir/$dlname \$dldir/$dlname'
  13562.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13563.       dlpath=$dir/\$dldll~
  13564.        $RM \$dlpath'
  13565.     shlibpath_overrides_runpath=yes
  13566.     dynamic_linker='Win32 link.exe'
  13567.     ;;
  13568.  
  13569.   *)
  13570.     # Assume MSVC wrapper
  13571.     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  13572.     dynamic_linker='Win32 ld.exe'
  13573.     ;;
  13574.   esac
  13575.   # FIXME: first we should search . and the directory the executable is in
  13576.   shlibpath_var=PATH
  13577.   ;;
  13578.  
  13579. darwin* | rhapsody*)
  13580.   dynamic_linker="$host_os dyld"
  13581.   version_type=darwin
  13582.   need_lib_prefix=no
  13583.   need_version=no
  13584.   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  13585.   soname_spec='$libname$release$major$shared_ext'
  13586.   shlibpath_overrides_runpath=yes
  13587.   shlibpath_var=DYLD_LIBRARY_PATH
  13588.   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13589.  
  13590.   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  13591.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13592.   ;;
  13593.  
  13594. dgux*)
  13595.   version_type=linux # correct to gnu/linux during the next big refactor
  13596.   need_lib_prefix=no
  13597.   need_version=no
  13598.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13599.   soname_spec='$libname$release$shared_ext$major'
  13600.   shlibpath_var=LD_LIBRARY_PATH
  13601.   ;;
  13602.  
  13603. freebsd* | dragonfly*)
  13604.   # DragonFly does not have aout.  When/if they implement a new
  13605.   # versioning mechanism, adjust this.
  13606.   if test -x /usr/bin/objformat; then
  13607.     objformat=`/usr/bin/objformat`
  13608.   else
  13609.     case $host_os in
  13610.     freebsd[23].*) objformat=aout ;;
  13611.     *) objformat=elf ;;
  13612.     esac
  13613.   fi
  13614.   version_type=freebsd-$objformat
  13615.   case $version_type in
  13616.     freebsd-elf*)
  13617.       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13618.       soname_spec='$libname$release$shared_ext$major'
  13619.       need_version=no
  13620.       need_lib_prefix=no
  13621.       ;;
  13622.     freebsd-*)
  13623.       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13624.       need_version=yes
  13625.       ;;
  13626.   esac
  13627.   shlibpath_var=LD_LIBRARY_PATH
  13628.   case $host_os in
  13629.   freebsd2.*)
  13630.     shlibpath_overrides_runpath=yes
  13631.     ;;
  13632.   freebsd3.[01]* | freebsdelf3.[01]*)
  13633.     shlibpath_overrides_runpath=yes
  13634.     hardcode_into_libs=yes
  13635.     ;;
  13636.   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13637.   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13638.     shlibpath_overrides_runpath=no
  13639.     hardcode_into_libs=yes
  13640.     ;;
  13641.   *) # from 4.6 on, and DragonFly
  13642.     shlibpath_overrides_runpath=yes
  13643.     hardcode_into_libs=yes
  13644.     ;;
  13645.   esac
  13646.   ;;
  13647.  
  13648. haiku*)
  13649.   version_type=linux # correct to gnu/linux during the next big refactor
  13650.   need_lib_prefix=no
  13651.   need_version=no
  13652.   dynamic_linker="$host_os runtime_loader"
  13653.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13654.   soname_spec='$libname$release$shared_ext$major'
  13655.   shlibpath_var=LIBRARY_PATH
  13656.   shlibpath_overrides_runpath=no
  13657.   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13658.   hardcode_into_libs=yes
  13659.   ;;
  13660.  
  13661. hpux9* | hpux10* | hpux11*)
  13662.   # Give a soname corresponding to the major version so that dld.sl refuses to
  13663.   # link against other versions.
  13664.   version_type=sunos
  13665.   need_lib_prefix=no
  13666.   need_version=no
  13667.   case $host_cpu in
  13668.   ia64*)
  13669.     shrext_cmds='.so'
  13670.     hardcode_into_libs=yes
  13671.     dynamic_linker="$host_os dld.so"
  13672.     shlibpath_var=LD_LIBRARY_PATH
  13673.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13674.     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13675.     soname_spec='$libname$release$shared_ext$major'
  13676.     if test 32 = "$HPUX_IA64_MODE"; then
  13677.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13678.       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  13679.     else
  13680.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13681.       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  13682.     fi
  13683.     ;;
  13684.   hppa*64*)
  13685.     shrext_cmds='.sl'
  13686.     hardcode_into_libs=yes
  13687.     dynamic_linker="$host_os dld.sl"
  13688.     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13689.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13690.     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13691.     soname_spec='$libname$release$shared_ext$major'
  13692.     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13693.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13694.     ;;
  13695.   *)
  13696.     shrext_cmds='.sl'
  13697.     dynamic_linker="$host_os dld.sl"
  13698.     shlibpath_var=SHLIB_PATH
  13699.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13700.     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13701.     soname_spec='$libname$release$shared_ext$major'
  13702.     ;;
  13703.   esac
  13704.   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13705.   postinstall_cmds='chmod 555 $lib'
  13706.   # or fails outright, so override atomically:
  13707.   install_override_mode=555
  13708.   ;;
  13709.  
  13710. interix[3-9]*)
  13711.   version_type=linux # correct to gnu/linux during the next big refactor
  13712.   need_lib_prefix=no
  13713.   need_version=no
  13714.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13715.   soname_spec='$libname$release$shared_ext$major'
  13716.   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13717.   shlibpath_var=LD_LIBRARY_PATH
  13718.   shlibpath_overrides_runpath=no
  13719.   hardcode_into_libs=yes
  13720.   ;;
  13721.  
  13722. irix5* | irix6* | nonstopux*)
  13723.   case $host_os in
  13724.     nonstopux*) version_type=nonstopux ;;
  13725.     *)
  13726.         if test yes = "$lt_cv_prog_gnu_ld"; then
  13727.                 version_type=linux # correct to gnu/linux during the next big refactor
  13728.         else
  13729.                 version_type=irix
  13730.         fi ;;
  13731.   esac
  13732.   need_lib_prefix=no
  13733.   need_version=no
  13734.   soname_spec='$libname$release$shared_ext$major'
  13735.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  13736.   case $host_os in
  13737.   irix5* | nonstopux*)
  13738.     libsuff= shlibsuff=
  13739.     ;;
  13740.   *)
  13741.     case $LD in # libtool.m4 will add one of these switches to LD
  13742.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13743.       libsuff= shlibsuff= libmagic=32-bit;;
  13744.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13745.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  13746.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13747.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13748.     *) libsuff= shlibsuff= libmagic=never-match;;
  13749.     esac
  13750.     ;;
  13751.   esac
  13752.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13753.   shlibpath_overrides_runpath=no
  13754.   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  13755.   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  13756.   hardcode_into_libs=yes
  13757.   ;;
  13758.  
  13759. # No shared lib support for Linux oldld, aout, or coff.
  13760. linux*oldld* | linux*aout* | linux*coff*)
  13761.   dynamic_linker=no
  13762.   ;;
  13763.  
  13764. linux*android*)
  13765.   version_type=none # Android doesn't support versioned libraries.
  13766.   need_lib_prefix=no
  13767.   need_version=no
  13768.   library_names_spec='$libname$release$shared_ext'
  13769.   soname_spec='$libname$release$shared_ext'
  13770.   finish_cmds=
  13771.   shlibpath_var=LD_LIBRARY_PATH
  13772.   shlibpath_overrides_runpath=yes
  13773.  
  13774.   # This implies no fast_install, which is unacceptable.
  13775.   # Some rework will be needed to allow for fast_install
  13776.   # before this can be enabled.
  13777.   hardcode_into_libs=yes
  13778.  
  13779.   dynamic_linker='Android linker'
  13780.   # Don't embed -rpath directories since the linker doesn't support them.
  13781.   hardcode_libdir_flag_spec='-L$libdir'
  13782.   ;;
  13783.  
  13784. # This must be glibc/ELF.
  13785. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13786.   version_type=linux # correct to gnu/linux during the next big refactor
  13787.   need_lib_prefix=no
  13788.   need_version=no
  13789.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13790.   soname_spec='$libname$release$shared_ext$major'
  13791.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13792.   shlibpath_var=LD_LIBRARY_PATH
  13793.   shlibpath_overrides_runpath=no
  13794.  
  13795.   # Some binutils ld are patched to set DT_RUNPATH
  13796.   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13797.   $as_echo_n "(cached) " >&6
  13798. else
  13799.   lt_cv_shlibpath_overrides_runpath=no
  13800.     save_LDFLAGS=$LDFLAGS
  13801.     save_libdir=$libdir
  13802.     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  13803.          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  13804.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13805. /* end confdefs.h.  */
  13806.  
  13807. int
  13808. main ()
  13809. {
  13810.  
  13811.   ;
  13812.   return 0;
  13813. }
  13814. _ACEOF
  13815. if ac_fn_c_try_link "$LINENO"; then :
  13816.   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13817.   lt_cv_shlibpath_overrides_runpath=yes
  13818. fi
  13819. fi
  13820. rm -f core conftest.err conftest.$ac_objext \
  13821.     conftest$ac_exeext conftest.$ac_ext
  13822.     LDFLAGS=$save_LDFLAGS
  13823.     libdir=$save_libdir
  13824.  
  13825. fi
  13826.  
  13827.   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13828.  
  13829.   # This implies no fast_install, which is unacceptable.
  13830.   # Some rework will be needed to allow for fast_install
  13831.   # before this can be enabled.
  13832.   hardcode_into_libs=yes
  13833.  
  13834.   # Ideally, we could use ldconfig to report *all* directores which are
  13835.   # searched for libraries, however this is still not possible.  Aside from not
  13836.   # being certain /sbin/ldconfig is available, command
  13837.   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  13838.   # even though it is searched at run-time.  Try to do the best guess by
  13839.   # appending ld.so.conf contents (and includes) to the search path.
  13840.   if test -f /etc/ld.so.conf; then
  13841.     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' ' '`
  13842.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13843.   fi
  13844.  
  13845.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  13846.   # powerpc, because MkLinux only supported shared libraries with the
  13847.   # GNU dynamic linker.  Since this was broken with cross compilers,
  13848.   # most powerpc-linux boxes support dynamic linking these days and
  13849.   # people can always --disable-shared, the test was removed, and we
  13850.   # assume the GNU/Linux dynamic linker is in use.
  13851.   dynamic_linker='GNU/Linux ld.so'
  13852.   ;;
  13853.  
  13854. netbsd*)
  13855.   version_type=sunos
  13856.   need_lib_prefix=no
  13857.   need_version=no
  13858.   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13859.     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13860.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13861.     dynamic_linker='NetBSD (a.out) ld.so'
  13862.   else
  13863.     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13864.     soname_spec='$libname$release$shared_ext$major'
  13865.     dynamic_linker='NetBSD ld.elf_so'
  13866.   fi
  13867.   shlibpath_var=LD_LIBRARY_PATH
  13868.   shlibpath_overrides_runpath=yes
  13869.   hardcode_into_libs=yes
  13870.   ;;
  13871.  
  13872. newsos6)
  13873.   version_type=linux # correct to gnu/linux during the next big refactor
  13874.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13875.   shlibpath_var=LD_LIBRARY_PATH
  13876.   shlibpath_overrides_runpath=yes
  13877.   ;;
  13878.  
  13879. *nto* | *qnx*)
  13880.   version_type=qnx
  13881.   need_lib_prefix=no
  13882.   need_version=no
  13883.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13884.   soname_spec='$libname$release$shared_ext$major'
  13885.   shlibpath_var=LD_LIBRARY_PATH
  13886.   shlibpath_overrides_runpath=no
  13887.   hardcode_into_libs=yes
  13888.   dynamic_linker='ldqnx.so'
  13889.   ;;
  13890.  
  13891. openbsd* | bitrig*)
  13892.   version_type=sunos
  13893.   sys_lib_dlsearch_path_spec=/usr/lib
  13894.   need_lib_prefix=no
  13895.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  13896.     need_version=no
  13897.   else
  13898.     need_version=yes
  13899.   fi
  13900.   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13901.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13902.   shlibpath_var=LD_LIBRARY_PATH
  13903.   shlibpath_overrides_runpath=yes
  13904.   ;;
  13905.  
  13906. os2*)
  13907.   libname_spec='$name'
  13908.   version_type=windows
  13909.   shrext_cmds=.dll
  13910.   need_version=no
  13911.   need_lib_prefix=no
  13912.   # OS/2 can only load a DLL with a base name of 8 characters or less.
  13913.   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  13914.     v=$($ECHO $release$versuffix | tr -d .-);
  13915.     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  13916.     $ECHO $n$v`$shared_ext'
  13917.   library_names_spec='${libname}_dll.$libext'
  13918.   dynamic_linker='OS/2 ld.exe'
  13919.   shlibpath_var=BEGINLIBPATH
  13920.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13921.   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13922.   postinstall_cmds='base_file=`basename \$file`~
  13923.     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  13924.     dldir=$destdir/`dirname \$dlpath`~
  13925.     test -d \$dldir || mkdir -p \$dldir~
  13926.     $install_prog $dir/$dlname \$dldir/$dlname~
  13927.     chmod a+x \$dldir/$dlname~
  13928.     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13929.       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13930.     fi'
  13931.   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  13932.     dlpath=$dir/\$dldll~
  13933.     $RM \$dlpath'
  13934.   ;;
  13935.  
  13936. osf3* | osf4* | osf5*)
  13937.   version_type=osf
  13938.   need_lib_prefix=no
  13939.   need_version=no
  13940.   soname_spec='$libname$release$shared_ext$major'
  13941.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13942.   shlibpath_var=LD_LIBRARY_PATH
  13943.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13944.   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13945.   ;;
  13946.  
  13947. rdos*)
  13948.   dynamic_linker=no
  13949.   ;;
  13950.  
  13951. solaris*)
  13952.   version_type=linux # correct to gnu/linux during the next big refactor
  13953.   need_lib_prefix=no
  13954.   need_version=no
  13955.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13956.   soname_spec='$libname$release$shared_ext$major'
  13957.   shlibpath_var=LD_LIBRARY_PATH
  13958.   shlibpath_overrides_runpath=yes
  13959.   hardcode_into_libs=yes
  13960.   # ldd complains unless libraries are executable
  13961.   postinstall_cmds='chmod +x $lib'
  13962.   ;;
  13963.  
  13964. sunos4*)
  13965.   version_type=sunos
  13966.   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  13967.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13968.   shlibpath_var=LD_LIBRARY_PATH
  13969.   shlibpath_overrides_runpath=yes
  13970.   if test yes = "$with_gnu_ld"; then
  13971.     need_lib_prefix=no
  13972.   fi
  13973.   need_version=yes
  13974.   ;;
  13975.  
  13976. sysv4 | sysv4.3*)
  13977.   version_type=linux # correct to gnu/linux during the next big refactor
  13978.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  13979.   soname_spec='$libname$release$shared_ext$major'
  13980.   shlibpath_var=LD_LIBRARY_PATH
  13981.   case $host_vendor in
  13982.     sni)
  13983.       shlibpath_overrides_runpath=no
  13984.       need_lib_prefix=no
  13985.       runpath_var=LD_RUN_PATH
  13986.       ;;
  13987.     siemens)
  13988.       need_lib_prefix=no
  13989.       ;;
  13990.     motorola)
  13991.       need_lib_prefix=no
  13992.       need_version=no
  13993.       shlibpath_overrides_runpath=no
  13994.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13995.       ;;
  13996.   esac
  13997.   ;;
  13998.  
  13999. sysv4*MP*)
  14000.   if test -d /usr/nec; then
  14001.     version_type=linux # correct to gnu/linux during the next big refactor
  14002.     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  14003.     soname_spec='$libname$shared_ext.$major'
  14004.     shlibpath_var=LD_LIBRARY_PATH
  14005.   fi
  14006.   ;;
  14007.  
  14008. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14009.   version_type=sco
  14010.   need_lib_prefix=no
  14011.   need_version=no
  14012.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  14013.   soname_spec='$libname$release$shared_ext$major'
  14014.   shlibpath_var=LD_LIBRARY_PATH
  14015.   shlibpath_overrides_runpath=yes
  14016.   hardcode_into_libs=yes
  14017.   if test yes = "$with_gnu_ld"; then
  14018.     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14019.   else
  14020.     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14021.     case $host_os in
  14022.       sco3.2v5*)
  14023.         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14024.         ;;
  14025.     esac
  14026.   fi
  14027.   sys_lib_dlsearch_path_spec='/usr/lib'
  14028.   ;;
  14029.  
  14030. tpf*)
  14031.   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  14032.   version_type=linux # correct to gnu/linux during the next big refactor
  14033.   need_lib_prefix=no
  14034.   need_version=no
  14035.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14036.   shlibpath_var=LD_LIBRARY_PATH
  14037.   shlibpath_overrides_runpath=no
  14038.   hardcode_into_libs=yes
  14039.   ;;
  14040.  
  14041. uts4*)
  14042.   version_type=linux # correct to gnu/linux during the next big refactor
  14043.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  14044.   soname_spec='$libname$release$shared_ext$major'
  14045.   shlibpath_var=LD_LIBRARY_PATH
  14046.   ;;
  14047.  
  14048. *)
  14049.   dynamic_linker=no
  14050.   ;;
  14051. esac
  14052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14053. $as_echo "$dynamic_linker" >&6; }
  14054. test no = "$dynamic_linker" && can_build_shared=no
  14055.  
  14056. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14057. if test yes = "$GCC"; then
  14058.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14059. fi
  14060.  
  14061. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  14062.   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  14063. fi
  14064.  
  14065. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  14066.   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  14067. fi
  14068.  
  14069. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  14070. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  14071.  
  14072. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  14073. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  14074.  
  14075. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  14076. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  14077.  
  14078.  
  14079.  
  14080.  
  14081.  
  14082.  
  14083.  
  14084.  
  14085.  
  14086.  
  14087.  
  14088.  
  14089.  
  14090.  
  14091.  
  14092.  
  14093.  
  14094.  
  14095.  
  14096.  
  14097.  
  14098.  
  14099.  
  14100.  
  14101.  
  14102.  
  14103.  
  14104.  
  14105.  
  14106.  
  14107.  
  14108.  
  14109.  
  14110.  
  14111.  
  14112.  
  14113.  
  14114.  
  14115.  
  14116.  
  14117.  
  14118.  
  14119.  
  14120.  
  14121.  
  14122.  
  14123.  
  14124.  
  14125.  
  14126.  
  14127.  
  14128.  
  14129.  
  14130.  
  14131.  
  14132.  
  14133.  
  14134.  
  14135.  
  14136.  
  14137.  
  14138.  
  14139.  
  14140.  
  14141.  
  14142.  
  14143.  
  14144.  
  14145.  
  14146.  
  14147.  
  14148.  
  14149.  
  14150.  
  14151.  
  14152.  
  14153.  
  14154.  
  14155.  
  14156.  
  14157.  
  14158.  
  14159.  
  14160.  
  14161.  
  14162.  
  14163.  
  14164.  
  14165.  
  14166.  
  14167.  
  14168.  
  14169.  
  14170.  
  14171.  
  14172.  
  14173.  
  14174.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14175. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14176. hardcode_action=
  14177. if test -n "$hardcode_libdir_flag_spec" ||
  14178.    test -n "$runpath_var" ||
  14179.    test yes = "$hardcode_automatic"; then
  14180.  
  14181.   # We can hardcode non-existent directories.
  14182.   if test no != "$hardcode_direct" &&
  14183.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14184.      # have to relink, otherwise we might link with an installed library
  14185.      # when we should be linking with a yet-to-be-installed one
  14186.      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  14187.      test no != "$hardcode_minus_L"; then
  14188.     # Linking always hardcodes the temporary library directory.
  14189.     hardcode_action=relink
  14190.   else
  14191.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14192.     hardcode_action=immediate
  14193.   fi
  14194. else
  14195.   # We cannot hardcode anything, or else we can only hardcode existing
  14196.   # directories.
  14197.   hardcode_action=unsupported
  14198. fi
  14199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  14200. $as_echo "$hardcode_action" >&6; }
  14201.  
  14202. if test relink = "$hardcode_action" ||
  14203.    test yes = "$inherit_rpath"; then
  14204.   # Fast installation is not supported
  14205.   enable_fast_install=no
  14206. elif test yes = "$shlibpath_overrides_runpath" ||
  14207.      test no = "$enable_shared"; then
  14208.   # Fast installation is not necessary
  14209.   enable_fast_install=needless
  14210. fi
  14211.  
  14212.  
  14213.  
  14214.  
  14215.  
  14216.  
  14217.   if test yes != "$enable_dlopen"; then
  14218.   enable_dlopen=unknown
  14219.   enable_dlopen_self=unknown
  14220.   enable_dlopen_self_static=unknown
  14221. else
  14222.   lt_cv_dlopen=no
  14223.   lt_cv_dlopen_libs=
  14224.  
  14225.   case $host_os in
  14226.   beos*)
  14227.     lt_cv_dlopen=load_add_on
  14228.     lt_cv_dlopen_libs=
  14229.     lt_cv_dlopen_self=yes
  14230.     ;;
  14231.  
  14232.   mingw* | pw32* | cegcc*)
  14233.     lt_cv_dlopen=LoadLibrary
  14234.     lt_cv_dlopen_libs=
  14235.     ;;
  14236.  
  14237.   cygwin*)
  14238.     lt_cv_dlopen=dlopen
  14239.     lt_cv_dlopen_libs=
  14240.     ;;
  14241.  
  14242.   darwin*)
  14243.     # if libdl is installed we need to link against it
  14244.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  14245. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  14246. if ${ac_cv_lib_dl_dlopen+:} false; then :
  14247.   $as_echo_n "(cached) " >&6
  14248. else
  14249.   ac_check_lib_save_LIBS=$LIBS
  14250. LIBS="-ldl  $LIBS"
  14251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14252. /* end confdefs.h.  */
  14253.  
  14254. /* Override any GCC internal prototype to avoid an error.
  14255.    Use char because int might match the return type of a GCC
  14256.    builtin and then its argument prototype would still apply.  */
  14257. #ifdef __cplusplus
  14258. extern "C"
  14259. #endif
  14260. char dlopen ();
  14261. int
  14262. main ()
  14263. {
  14264. return dlopen ();
  14265.   ;
  14266.   return 0;
  14267. }
  14268. _ACEOF
  14269. if ac_fn_c_try_link "$LINENO"; then :
  14270.   ac_cv_lib_dl_dlopen=yes
  14271. else
  14272.   ac_cv_lib_dl_dlopen=no
  14273. fi
  14274. rm -f core conftest.err conftest.$ac_objext \
  14275.     conftest$ac_exeext conftest.$ac_ext
  14276. LIBS=$ac_check_lib_save_LIBS
  14277. fi
  14278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  14279. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  14280. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  14281.   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  14282. else
  14283.  
  14284.     lt_cv_dlopen=dyld
  14285.     lt_cv_dlopen_libs=
  14286.     lt_cv_dlopen_self=yes
  14287.  
  14288. fi
  14289.  
  14290.     ;;
  14291.  
  14292.   tpf*)
  14293.     # Don't try to run any link tests for TPF.  We know it's impossible
  14294.     # because TPF is a cross-compiler, and we know how we open DSOs.
  14295.     lt_cv_dlopen=dlopen
  14296.     lt_cv_dlopen_libs=
  14297.     lt_cv_dlopen_self=no
  14298.     ;;
  14299.  
  14300.   *)
  14301.     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  14302. if test "x$ac_cv_func_shl_load" = xyes; then :
  14303.   lt_cv_dlopen=shl_load
  14304. else
  14305.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  14306. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  14307. if ${ac_cv_lib_dld_shl_load+:} false; then :
  14308.   $as_echo_n "(cached) " >&6
  14309. else
  14310.   ac_check_lib_save_LIBS=$LIBS
  14311. LIBS="-ldld  $LIBS"
  14312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14313. /* end confdefs.h.  */
  14314.  
  14315. /* Override any GCC internal prototype to avoid an error.
  14316.    Use char because int might match the return type of a GCC
  14317.    builtin and then its argument prototype would still apply.  */
  14318. #ifdef __cplusplus
  14319. extern "C"
  14320. #endif
  14321. char shl_load ();
  14322. int
  14323. main ()
  14324. {
  14325. return shl_load ();
  14326.   ;
  14327.   return 0;
  14328. }
  14329. _ACEOF
  14330. if ac_fn_c_try_link "$LINENO"; then :
  14331.   ac_cv_lib_dld_shl_load=yes
  14332. else
  14333.   ac_cv_lib_dld_shl_load=no
  14334. fi
  14335. rm -f core conftest.err conftest.$ac_objext \
  14336.     conftest$ac_exeext conftest.$ac_ext
  14337. LIBS=$ac_check_lib_save_LIBS
  14338. fi
  14339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  14340. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  14341. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  14342.   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  14343. else
  14344.   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  14345. if test "x$ac_cv_func_dlopen" = xyes; then :
  14346.   lt_cv_dlopen=dlopen
  14347. else
  14348.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  14349. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  14350. if ${ac_cv_lib_dl_dlopen+:} false; then :
  14351.   $as_echo_n "(cached) " >&6
  14352. else
  14353.   ac_check_lib_save_LIBS=$LIBS
  14354. LIBS="-ldl  $LIBS"
  14355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14356. /* end confdefs.h.  */
  14357.  
  14358. /* Override any GCC internal prototype to avoid an error.
  14359.    Use char because int might match the return type of a GCC
  14360.    builtin and then its argument prototype would still apply.  */
  14361. #ifdef __cplusplus
  14362. extern "C"
  14363. #endif
  14364. char dlopen ();
  14365. int
  14366. main ()
  14367. {
  14368. return dlopen ();
  14369.   ;
  14370.   return 0;
  14371. }
  14372. _ACEOF
  14373. if ac_fn_c_try_link "$LINENO"; then :
  14374.   ac_cv_lib_dl_dlopen=yes
  14375. else
  14376.   ac_cv_lib_dl_dlopen=no
  14377. fi
  14378. rm -f core conftest.err conftest.$ac_objext \
  14379.     conftest$ac_exeext conftest.$ac_ext
  14380. LIBS=$ac_check_lib_save_LIBS
  14381. fi
  14382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  14383. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  14384. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  14385.   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  14386. else
  14387.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  14388. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  14389. if ${ac_cv_lib_svld_dlopen+:} false; then :
  14390.   $as_echo_n "(cached) " >&6
  14391. else
  14392.   ac_check_lib_save_LIBS=$LIBS
  14393. LIBS="-lsvld  $LIBS"
  14394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14395. /* end confdefs.h.  */
  14396.  
  14397. /* Override any GCC internal prototype to avoid an error.
  14398.    Use char because int might match the return type of a GCC
  14399.    builtin and then its argument prototype would still apply.  */
  14400. #ifdef __cplusplus
  14401. extern "C"
  14402. #endif
  14403. char dlopen ();
  14404. int
  14405. main ()
  14406. {
  14407. return dlopen ();
  14408.   ;
  14409.   return 0;
  14410. }
  14411. _ACEOF
  14412. if ac_fn_c_try_link "$LINENO"; then :
  14413.   ac_cv_lib_svld_dlopen=yes
  14414. else
  14415.   ac_cv_lib_svld_dlopen=no
  14416. fi
  14417. rm -f core conftest.err conftest.$ac_objext \
  14418.     conftest$ac_exeext conftest.$ac_ext
  14419. LIBS=$ac_check_lib_save_LIBS
  14420. fi
  14421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  14422. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  14423. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  14424.   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  14425. else
  14426.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  14427. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  14428. if ${ac_cv_lib_dld_dld_link+:} false; then :
  14429.   $as_echo_n "(cached) " >&6
  14430. else
  14431.   ac_check_lib_save_LIBS=$LIBS
  14432. LIBS="-ldld  $LIBS"
  14433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14434. /* end confdefs.h.  */
  14435.  
  14436. /* Override any GCC internal prototype to avoid an error.
  14437.    Use char because int might match the return type of a GCC
  14438.    builtin and then its argument prototype would still apply.  */
  14439. #ifdef __cplusplus
  14440. extern "C"
  14441. #endif
  14442. char dld_link ();
  14443. int
  14444. main ()
  14445. {
  14446. return dld_link ();
  14447.   ;
  14448.   return 0;
  14449. }
  14450. _ACEOF
  14451. if ac_fn_c_try_link "$LINENO"; then :
  14452.   ac_cv_lib_dld_dld_link=yes
  14453. else
  14454.   ac_cv_lib_dld_dld_link=no
  14455. fi
  14456. rm -f core conftest.err conftest.$ac_objext \
  14457.     conftest$ac_exeext conftest.$ac_ext
  14458. LIBS=$ac_check_lib_save_LIBS
  14459. fi
  14460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  14461. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  14462. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  14463.   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  14464. fi
  14465.  
  14466.  
  14467. fi
  14468.  
  14469.  
  14470. fi
  14471.  
  14472.  
  14473. fi
  14474.  
  14475.  
  14476. fi
  14477.  
  14478.  
  14479. fi
  14480.  
  14481.     ;;
  14482.   esac
  14483.  
  14484.   if test no = "$lt_cv_dlopen"; then
  14485.     enable_dlopen=no
  14486.   else
  14487.     enable_dlopen=yes
  14488.   fi
  14489.  
  14490.   case $lt_cv_dlopen in
  14491.   dlopen)
  14492.     save_CPPFLAGS=$CPPFLAGS
  14493.     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  14494.  
  14495.     save_LDFLAGS=$LDFLAGS
  14496.     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  14497.  
  14498.     save_LIBS=$LIBS
  14499.     LIBS="$lt_cv_dlopen_libs $LIBS"
  14500.  
  14501.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  14502. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  14503. if ${lt_cv_dlopen_self+:} false; then :
  14504.   $as_echo_n "(cached) " >&6
  14505. else
  14506.           if test yes = "$cross_compiling"; then :
  14507.   lt_cv_dlopen_self=cross
  14508. else
  14509.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  14510.   lt_status=$lt_dlunknown
  14511.   cat > conftest.$ac_ext <<_LT_EOF
  14512. #line $LINENO "configure"
  14513. #include "confdefs.h"
  14514.  
  14515. #if HAVE_DLFCN_H
  14516. #include <dlfcn.h>
  14517. #endif
  14518.  
  14519. #include <stdio.h>
  14520.  
  14521. #ifdef RTLD_GLOBAL
  14522. #  define LT_DLGLOBAL           RTLD_GLOBAL
  14523. #else
  14524. #  ifdef DL_GLOBAL
  14525. #    define LT_DLGLOBAL         DL_GLOBAL
  14526. #  else
  14527. #    define LT_DLGLOBAL         0
  14528. #  endif
  14529. #endif
  14530.  
  14531. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  14532.    find out it does not work in some platform. */
  14533. #ifndef LT_DLLAZY_OR_NOW
  14534. #  ifdef RTLD_LAZY
  14535. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  14536. #  else
  14537. #    ifdef DL_LAZY
  14538. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  14539. #    else
  14540. #      ifdef RTLD_NOW
  14541. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  14542. #      else
  14543. #        ifdef DL_NOW
  14544. #          define LT_DLLAZY_OR_NOW      DL_NOW
  14545. #        else
  14546. #          define LT_DLLAZY_OR_NOW      0
  14547. #        endif
  14548. #      endif
  14549. #    endif
  14550. #  endif
  14551. #endif
  14552.  
  14553. /* When -fvisibility=hidden is used, assume the code has been annotated
  14554.    correspondingly for the symbols needed.  */
  14555. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  14556. int fnord () __attribute__((visibility("default")));
  14557. #endif
  14558.  
  14559. int fnord () { return 42; }
  14560. int main ()
  14561. {
  14562.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  14563.   int status = $lt_dlunknown;
  14564.  
  14565.   if (self)
  14566.     {
  14567.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  14568.       else
  14569.         {
  14570.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  14571.           else puts (dlerror ());
  14572.         }
  14573.       /* dlclose (self); */
  14574.     }
  14575.   else
  14576.     puts (dlerror ());
  14577.  
  14578.   return status;
  14579. }
  14580. _LT_EOF
  14581.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  14582.   (eval $ac_link) 2>&5
  14583.   ac_status=$?
  14584.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14585.   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  14586.     (./conftest; exit; ) >&5 2>/dev/null
  14587.     lt_status=$?
  14588.     case x$lt_status in
  14589.       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  14590.       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  14591.       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  14592.     esac
  14593.   else :
  14594.     # compilation failed
  14595.     lt_cv_dlopen_self=no
  14596.   fi
  14597. fi
  14598. rm -fr conftest*
  14599.  
  14600.  
  14601. fi
  14602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  14603. $as_echo "$lt_cv_dlopen_self" >&6; }
  14604.  
  14605.     if test yes = "$lt_cv_dlopen_self"; then
  14606.       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  14607.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  14608. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  14609. if ${lt_cv_dlopen_self_static+:} false; then :
  14610.   $as_echo_n "(cached) " >&6
  14611. else
  14612.           if test yes = "$cross_compiling"; then :
  14613.   lt_cv_dlopen_self_static=cross
  14614. else
  14615.   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  14616.   lt_status=$lt_dlunknown
  14617.   cat > conftest.$ac_ext <<_LT_EOF
  14618. #line $LINENO "configure"
  14619. #include "confdefs.h"
  14620.  
  14621. #if HAVE_DLFCN_H
  14622. #include <dlfcn.h>
  14623. #endif
  14624.  
  14625. #include <stdio.h>
  14626.  
  14627. #ifdef RTLD_GLOBAL
  14628. #  define LT_DLGLOBAL           RTLD_GLOBAL
  14629. #else
  14630. #  ifdef DL_GLOBAL
  14631. #    define LT_DLGLOBAL         DL_GLOBAL
  14632. #  else
  14633. #    define LT_DLGLOBAL         0
  14634. #  endif
  14635. #endif
  14636.  
  14637. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  14638.    find out it does not work in some platform. */
  14639. #ifndef LT_DLLAZY_OR_NOW
  14640. #  ifdef RTLD_LAZY
  14641. #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
  14642. #  else
  14643. #    ifdef DL_LAZY
  14644. #      define LT_DLLAZY_OR_NOW          DL_LAZY
  14645. #    else
  14646. #      ifdef RTLD_NOW
  14647. #        define LT_DLLAZY_OR_NOW        RTLD_NOW
  14648. #      else
  14649. #        ifdef DL_NOW
  14650. #          define LT_DLLAZY_OR_NOW      DL_NOW
  14651. #        else
  14652. #          define LT_DLLAZY_OR_NOW      0
  14653. #        endif
  14654. #      endif
  14655. #    endif
  14656. #  endif
  14657. #endif
  14658.  
  14659. /* When -fvisibility=hidden is used, assume the code has been annotated
  14660.    correspondingly for the symbols needed.  */
  14661. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  14662. int fnord () __attribute__((visibility("default")));
  14663. #endif
  14664.  
  14665. int fnord () { return 42; }
  14666. int main ()
  14667. {
  14668.   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  14669.   int status = $lt_dlunknown;
  14670.  
  14671.   if (self)
  14672.     {
  14673.       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  14674.       else
  14675.         {
  14676.           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  14677.           else puts (dlerror ());
  14678.         }
  14679.       /* dlclose (self); */
  14680.     }
  14681.   else
  14682.     puts (dlerror ());
  14683.  
  14684.   return status;
  14685. }
  14686. _LT_EOF
  14687.   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  14688.   (eval $ac_link) 2>&5
  14689.   ac_status=$?
  14690.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14691.   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  14692.     (./conftest; exit; ) >&5 2>/dev/null
  14693.     lt_status=$?
  14694.     case x$lt_status in
  14695.       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  14696.       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  14697.       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  14698.     esac
  14699.   else :
  14700.     # compilation failed
  14701.     lt_cv_dlopen_self_static=no
  14702.   fi
  14703. fi
  14704. rm -fr conftest*
  14705.  
  14706.  
  14707. fi
  14708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  14709. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  14710.     fi
  14711.  
  14712.     CPPFLAGS=$save_CPPFLAGS
  14713.     LDFLAGS=$save_LDFLAGS
  14714.     LIBS=$save_LIBS
  14715.     ;;
  14716.   esac
  14717.  
  14718.   case $lt_cv_dlopen_self in
  14719.   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  14720.   *) enable_dlopen_self=unknown ;;
  14721.   esac
  14722.  
  14723.   case $lt_cv_dlopen_self_static in
  14724.   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  14725.   *) enable_dlopen_self_static=unknown ;;
  14726.   esac
  14727. fi
  14728.  
  14729.  
  14730.  
  14731.  
  14732.  
  14733.  
  14734.  
  14735.  
  14736.  
  14737.  
  14738.  
  14739.  
  14740.  
  14741.  
  14742.  
  14743.  
  14744.  
  14745. striplib=
  14746. old_striplib=
  14747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  14748. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  14749. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  14750.   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  14751.   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  14752.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14753. $as_echo "yes" >&6; }
  14754. else
  14755. # FIXME - insert some real tests, host_os isn't really good enough
  14756.   case $host_os in
  14757.   darwin*)
  14758.     if test -n "$STRIP"; then
  14759.       striplib="$STRIP -x"
  14760.       old_striplib="$STRIP -S"
  14761.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14762. $as_echo "yes" >&6; }
  14763.     else
  14764.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14765. $as_echo "no" >&6; }
  14766.     fi
  14767.     ;;
  14768.   *)
  14769.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14770. $as_echo "no" >&6; }
  14771.     ;;
  14772.   esac
  14773. fi
  14774.  
  14775.  
  14776.  
  14777.  
  14778.  
  14779.  
  14780.  
  14781.  
  14782.  
  14783.  
  14784.  
  14785.  
  14786.   # Report what library types will actually be built
  14787.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  14788. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  14789.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  14790. $as_echo "$can_build_shared" >&6; }
  14791.  
  14792.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  14793. $as_echo_n "checking whether to build shared libraries... " >&6; }
  14794.   test no = "$can_build_shared" && enable_shared=no
  14795.  
  14796.   # On AIX, shared libraries and static libraries use the same namespace, and
  14797.   # are all built from PIC.
  14798.   case $host_os in
  14799.   aix3*)
  14800.     test yes = "$enable_shared" && enable_static=no
  14801.     if test -n "$RANLIB"; then
  14802.       archive_cmds="$archive_cmds~\$RANLIB \$lib"
  14803.       postinstall_cmds='$RANLIB $lib'
  14804.     fi
  14805.     ;;
  14806.  
  14807.   aix[4-9]*)
  14808.     if test ia64 != "$host_cpu"; then
  14809.       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  14810.       yes,aix,yes) ;;                   # shared object as lib.so file only
  14811.       yes,svr4,*) ;;                    # shared object as lib.so archive member only
  14812.       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
  14813.       esac
  14814.     fi
  14815.     ;;
  14816.   esac
  14817.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  14818. $as_echo "$enable_shared" >&6; }
  14819.  
  14820.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  14821. $as_echo_n "checking whether to build static libraries... " >&6; }
  14822.   # Make sure either enable_shared or enable_static is yes.
  14823.   test yes = "$enable_shared" || enable_static=yes
  14824.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  14825. $as_echo "$enable_static" >&6; }
  14826.  
  14827.  
  14828.  
  14829.  
  14830. fi
  14831. ac_ext=c
  14832. ac_cpp='$CPP $CPPFLAGS'
  14833. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14834. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14835. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14836.  
  14837. CC=$lt_save_CC
  14838.  
  14839.       if test -n "$CXX" && ( test no != "$CXX" &&
  14840.     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  14841.     (test g++ != "$CXX"))); then
  14842.   ac_ext=cpp
  14843. ac_cpp='$CXXCPP $CPPFLAGS'
  14844. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14845. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14846. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  14848. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  14849. if test -z "$CXXCPP"; then
  14850.   if ${ac_cv_prog_CXXCPP+:} false; then :
  14851.   $as_echo_n "(cached) " >&6
  14852. else
  14853.       # Double quotes because CXXCPP needs to be expanded
  14854.     for CXXCPP in "$CXX -E" "/lib/cpp"
  14855.     do
  14856.       ac_preproc_ok=false
  14857. for ac_cxx_preproc_warn_flag in '' yes
  14858. do
  14859.   # Use a header file that comes with gcc, so configuring glibc
  14860.   # with a fresh cross-compiler works.
  14861.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14862.   # <limits.h> exists even on freestanding compilers.
  14863.   # On the NeXT, cc -E runs the code through the compiler's parser,
  14864.   # not just through cpp. "Syntax error" is here to catch this case.
  14865.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14866. /* end confdefs.h.  */
  14867. #ifdef __STDC__
  14868. # include <limits.h>
  14869. #else
  14870. # include <assert.h>
  14871. #endif
  14872.                      Syntax error
  14873. _ACEOF
  14874. if ac_fn_cxx_try_cpp "$LINENO"; then :
  14875.  
  14876. else
  14877.   # Broken: fails on valid input.
  14878. continue
  14879. fi
  14880. rm -f conftest.err conftest.i conftest.$ac_ext
  14881.  
  14882.   # OK, works on sane cases.  Now check whether nonexistent headers
  14883.   # can be detected and how.
  14884.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14885. /* end confdefs.h.  */
  14886. #include <ac_nonexistent.h>
  14887. _ACEOF
  14888. if ac_fn_cxx_try_cpp "$LINENO"; then :
  14889.   # Broken: success on invalid input.
  14890. continue
  14891. else
  14892.   # Passes both tests.
  14893. ac_preproc_ok=:
  14894. break
  14895. fi
  14896. rm -f conftest.err conftest.i conftest.$ac_ext
  14897.  
  14898. done
  14899. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  14900. rm -f conftest.i conftest.err conftest.$ac_ext
  14901. if $ac_preproc_ok; then :
  14902.   break
  14903. fi
  14904.  
  14905.     done
  14906.     ac_cv_prog_CXXCPP=$CXXCPP
  14907.  
  14908. fi
  14909.   CXXCPP=$ac_cv_prog_CXXCPP
  14910. else
  14911.   ac_cv_prog_CXXCPP=$CXXCPP
  14912. fi
  14913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  14914. $as_echo "$CXXCPP" >&6; }
  14915. ac_preproc_ok=false
  14916. for ac_cxx_preproc_warn_flag in '' yes
  14917. do
  14918.   # Use a header file that comes with gcc, so configuring glibc
  14919.   # with a fresh cross-compiler works.
  14920.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14921.   # <limits.h> exists even on freestanding compilers.
  14922.   # On the NeXT, cc -E runs the code through the compiler's parser,
  14923.   # not just through cpp. "Syntax error" is here to catch this case.
  14924.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14925. /* end confdefs.h.  */
  14926. #ifdef __STDC__
  14927. # include <limits.h>
  14928. #else
  14929. # include <assert.h>
  14930. #endif
  14931.                      Syntax error
  14932. _ACEOF
  14933. if ac_fn_cxx_try_cpp "$LINENO"; then :
  14934.  
  14935. else
  14936.   # Broken: fails on valid input.
  14937. continue
  14938. fi
  14939. rm -f conftest.err conftest.i conftest.$ac_ext
  14940.  
  14941.   # OK, works on sane cases.  Now check whether nonexistent headers
  14942.   # can be detected and how.
  14943.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14944. /* end confdefs.h.  */
  14945. #include <ac_nonexistent.h>
  14946. _ACEOF
  14947. if ac_fn_cxx_try_cpp "$LINENO"; then :
  14948.   # Broken: success on invalid input.
  14949. continue
  14950. else
  14951.   # Passes both tests.
  14952. ac_preproc_ok=:
  14953. break
  14954. fi
  14955. rm -f conftest.err conftest.i conftest.$ac_ext
  14956.  
  14957. done
  14958. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  14959. rm -f conftest.i conftest.err conftest.$ac_ext
  14960. if $ac_preproc_ok; then :
  14961.  
  14962. else
  14963.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14964. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14965. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  14966. See \`config.log' for more details" "$LINENO" 5; }
  14967. fi
  14968.  
  14969. ac_ext=c
  14970. ac_cpp='$CPP $CPPFLAGS'
  14971. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14972. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14973. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14974.  
  14975. else
  14976.   _lt_caught_CXX_error=yes
  14977. fi
  14978.  
  14979. ac_ext=cpp
  14980. ac_cpp='$CXXCPP $CPPFLAGS'
  14981. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14982. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14983. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14984.  
  14985. archive_cmds_need_lc_CXX=no
  14986. allow_undefined_flag_CXX=
  14987. always_export_symbols_CXX=no
  14988. archive_expsym_cmds_CXX=
  14989. compiler_needs_object_CXX=no
  14990. export_dynamic_flag_spec_CXX=
  14991. hardcode_direct_CXX=no
  14992. hardcode_direct_absolute_CXX=no
  14993. hardcode_libdir_flag_spec_CXX=
  14994. hardcode_libdir_separator_CXX=
  14995. hardcode_minus_L_CXX=no
  14996. hardcode_shlibpath_var_CXX=unsupported
  14997. hardcode_automatic_CXX=no
  14998. inherit_rpath_CXX=no
  14999. module_cmds_CXX=
  15000. module_expsym_cmds_CXX=
  15001. link_all_deplibs_CXX=unknown
  15002. old_archive_cmds_CXX=$old_archive_cmds
  15003. reload_flag_CXX=$reload_flag
  15004. reload_cmds_CXX=$reload_cmds
  15005. no_undefined_flag_CXX=
  15006. whole_archive_flag_spec_CXX=
  15007. enable_shared_with_static_runtimes_CXX=no
  15008.  
  15009. # Source file extension for C++ test sources.
  15010. ac_ext=cpp
  15011.  
  15012. # Object file extension for compiled C++ test sources.
  15013. objext=o
  15014. objext_CXX=$objext
  15015.  
  15016. # No sense in running all these tests if we already determined that
  15017. # the CXX compiler isn't working.  Some variables (like enable_shared)
  15018. # are currently assumed to apply to all compilers on this platform,
  15019. # and will be corrupted by setting them based on a non-working compiler.
  15020. if test yes != "$_lt_caught_CXX_error"; then
  15021.   # Code to be used in simple compile tests
  15022.   lt_simple_compile_test_code="int some_variable = 0;"
  15023.  
  15024.   # Code to be used in simple link tests
  15025.   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  15026.  
  15027.   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  15028.  
  15029.  
  15030.  
  15031.  
  15032.  
  15033.  
  15034. # If no C compiler was specified, use CC.
  15035. LTCC=${LTCC-"$CC"}
  15036.  
  15037. # If no C compiler flags were specified, use CFLAGS.
  15038. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  15039.  
  15040. # Allow CC to be a program name with arguments.
  15041. compiler=$CC
  15042.  
  15043.  
  15044.   # save warnings/boilerplate of simple test code
  15045.   ac_outfile=conftest.$ac_objext
  15046. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  15047. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15048. _lt_compiler_boilerplate=`cat conftest.err`
  15049. $RM conftest*
  15050.  
  15051.   ac_outfile=conftest.$ac_objext
  15052. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  15053. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15054. _lt_linker_boilerplate=`cat conftest.err`
  15055. $RM -r conftest*
  15056.  
  15057.  
  15058.   # Allow CC to be a program name with arguments.
  15059.   lt_save_CC=$CC
  15060.   lt_save_CFLAGS=$CFLAGS
  15061.   lt_save_LD=$LD
  15062.   lt_save_GCC=$GCC
  15063.   GCC=$GXX
  15064.   lt_save_with_gnu_ld=$with_gnu_ld
  15065.   lt_save_path_LD=$lt_cv_path_LD
  15066.   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  15067.     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  15068.   else
  15069.     $as_unset lt_cv_prog_gnu_ld
  15070.   fi
  15071.   if test -n "${lt_cv_path_LDCXX+set}"; then
  15072.     lt_cv_path_LD=$lt_cv_path_LDCXX
  15073.   else
  15074.     $as_unset lt_cv_path_LD
  15075.   fi
  15076.   test -z "${LDCXX+set}" || LD=$LDCXX
  15077.   CC=${CXX-"c++"}
  15078.   CFLAGS=$CXXFLAGS
  15079.   compiler=$CC
  15080.   compiler_CXX=$CC
  15081.   func_cc_basename $compiler
  15082. cc_basename=$func_cc_basename_result
  15083.  
  15084.  
  15085.   if test -n "$compiler"; then
  15086.     # We don't want -fno-exception when compiling C++ code, so set the
  15087.     # no_builtin_flag separately
  15088.     if test yes = "$GXX"; then
  15089.       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  15090.     else
  15091.       lt_prog_compiler_no_builtin_flag_CXX=
  15092.     fi
  15093.  
  15094.     if test yes = "$GXX"; then
  15095.       # Set up default GNU C++ configuration
  15096.  
  15097.  
  15098.  
  15099. # Check whether --with-gnu-ld was given.
  15100. if test "${with_gnu_ld+set}" = set; then :
  15101.   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  15102. else
  15103.   with_gnu_ld=no
  15104. fi
  15105.  
  15106. ac_prog=ld
  15107. if test yes = "$GCC"; then
  15108.   # Check if gcc -print-prog-name=ld gives a path.
  15109.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  15110. $as_echo_n "checking for ld used by $CC... " >&6; }
  15111.   case $host in
  15112.   *-*-mingw*)
  15113.     # gcc leaves a trailing carriage return, which upsets mingw
  15114.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  15115.   *)
  15116.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  15117.   esac
  15118.   case $ac_prog in
  15119.     # Accept absolute paths.
  15120.     [\\/]* | ?:[\\/]*)
  15121.       re_direlt='/[^/][^/]*/\.\./'
  15122.       # Canonicalize the pathname of ld
  15123.       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  15124.       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  15125.         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  15126.       done
  15127.       test -z "$LD" && LD=$ac_prog
  15128.       ;;
  15129.   "")
  15130.     # If it fails, then pretend we aren't using GCC.
  15131.     ac_prog=ld
  15132.     ;;
  15133.   *)
  15134.     # If it is relative, then search for the first ld in PATH.
  15135.     with_gnu_ld=unknown
  15136.     ;;
  15137.   esac
  15138. elif test yes = "$with_gnu_ld"; then
  15139.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  15140. $as_echo_n "checking for GNU ld... " >&6; }
  15141. else
  15142.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  15143. $as_echo_n "checking for non-GNU ld... " >&6; }
  15144. fi
  15145. if ${lt_cv_path_LD+:} false; then :
  15146.   $as_echo_n "(cached) " >&6
  15147. else
  15148.   if test -z "$LD"; then
  15149.   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  15150.   for ac_dir in $PATH; do
  15151.     IFS=$lt_save_ifs
  15152.     test -z "$ac_dir" && ac_dir=.
  15153.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  15154.       lt_cv_path_LD=$ac_dir/$ac_prog
  15155.       # Check to see if the program is GNU ld.  I'd rather use --version,
  15156.       # but apparently some variants of GNU ld only accept -v.
  15157.       # Break only if it was the GNU/non-GNU ld that we prefer.
  15158.       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  15159.       *GNU* | *'with BFD'*)
  15160.         test no != "$with_gnu_ld" && break
  15161.         ;;
  15162.       *)
  15163.         test yes != "$with_gnu_ld" && break
  15164.         ;;
  15165.       esac
  15166.     fi
  15167.   done
  15168.   IFS=$lt_save_ifs
  15169. else
  15170.   lt_cv_path_LD=$LD # Let the user override the test with a path.
  15171. fi
  15172. fi
  15173.  
  15174. LD=$lt_cv_path_LD
  15175. if test -n "$LD"; then
  15176.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  15177. $as_echo "$LD" >&6; }
  15178. else
  15179.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15180. $as_echo "no" >&6; }
  15181. fi
  15182. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  15183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  15184. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  15185. if ${lt_cv_prog_gnu_ld+:} false; then :
  15186.   $as_echo_n "(cached) " >&6
  15187. else
  15188.   # I'd rather use --version here, but apparently some GNU lds only accept -v.
  15189. case `$LD -v 2>&1 </dev/null` in
  15190. *GNU* | *'with BFD'*)
  15191.   lt_cv_prog_gnu_ld=yes
  15192.   ;;
  15193. *)
  15194.   lt_cv_prog_gnu_ld=no
  15195.   ;;
  15196. esac
  15197. fi
  15198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  15199. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  15200. with_gnu_ld=$lt_cv_prog_gnu_ld
  15201.  
  15202.  
  15203.  
  15204.  
  15205.  
  15206.  
  15207.  
  15208.       # Check if GNU C++ uses GNU ld as the underlying linker, since the
  15209.       # archiving commands below assume that GNU ld is being used.
  15210.       if test yes = "$with_gnu_ld"; then
  15211.         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  15212.         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'
  15213.  
  15214.         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  15215.         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  15216.  
  15217.         # If archive_cmds runs LD, not CC, wlarc should be empty
  15218.         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  15219.         #     investigate it a little bit more. (MM)
  15220.         wlarc='$wl'
  15221.  
  15222.         # ancient GNU ld didn't support --whole-archive et. al.
  15223.         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  15224.           $GREP 'no-whole-archive' > /dev/null; then
  15225.           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  15226.         else
  15227.           whole_archive_flag_spec_CXX=
  15228.         fi
  15229.       else
  15230.         with_gnu_ld=no
  15231.         wlarc=
  15232.  
  15233.         # A generic and very simple default shared library creation
  15234.         # command for GNU C++ for the case where it uses the native
  15235.         # linker, instead of GNU ld.  If possible, this setting should
  15236.         # overridden to take advantage of the native linker features on
  15237.         # the platform it is being used on.
  15238.         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  15239.       fi
  15240.  
  15241.       # Commands to make compiler produce verbose output that lists
  15242.       # what "hidden" libraries, object files and flags are used when
  15243.       # linking a shared library.
  15244.       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  15245.  
  15246.     else
  15247.       GXX=no
  15248.       with_gnu_ld=no
  15249.       wlarc=
  15250.     fi
  15251.  
  15252.     # PORTME: fill in a description of your system's C++ link characteristics
  15253.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15254. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  15255.     ld_shlibs_CXX=yes
  15256.     case $host_os in
  15257.       aix3*)
  15258.         # FIXME: insert proper C++ library support
  15259.         ld_shlibs_CXX=no
  15260.         ;;
  15261.       aix[4-9]*)
  15262.         if test ia64 = "$host_cpu"; then
  15263.           # On IA64, the linker does run time linking by default, so we don't
  15264.           # have to do anything special.
  15265.           aix_use_runtimelinking=no
  15266.           exp_sym_flag='-Bexport'
  15267.           no_entry_flag=
  15268.         else
  15269.           aix_use_runtimelinking=no
  15270.  
  15271.           # Test if we are trying to use run time linking or normal
  15272.           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15273.           # have runtime linking enabled, and use it for executables.
  15274.           # For shared libraries, we enable/disable runtime linking
  15275.           # depending on the kind of the shared library created -
  15276.           # when "with_aix_soname,aix_use_runtimelinking" is:
  15277.           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
  15278.           # "aix,yes"  lib.so          shared, rtl:yes, for executables
  15279.           #            lib.a           static archive
  15280.           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
  15281.           #            lib.a(lib.so.V) shared, rtl:no,  for executables
  15282.           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  15283.           #            lib.a(lib.so.V) shared, rtl:no
  15284.           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
  15285.           #            lib.a           static archive
  15286.           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  15287.             for ld_flag in $LDFLAGS; do
  15288.               case $ld_flag in
  15289.               *-brtl*)
  15290.                 aix_use_runtimelinking=yes
  15291.                 break
  15292.                 ;;
  15293.               esac
  15294.             done
  15295.             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  15296.               # With aix-soname=svr4, we create the lib.so.V shared archives only,
  15297.               # so we don't have lib.a shared libs to link our executables.
  15298.               # We have to force runtime linking in this case.
  15299.               aix_use_runtimelinking=yes
  15300.               LDFLAGS="$LDFLAGS -Wl,-brtl"
  15301.             fi
  15302.             ;;
  15303.           esac
  15304.  
  15305.           exp_sym_flag='-bexport'
  15306.           no_entry_flag='-bnoentry'
  15307.         fi
  15308.  
  15309.         # When large executables or shared objects are built, AIX ld can
  15310.         # have problems creating the table of contents.  If linking a library
  15311.         # or program results in "error TOC overflow" add -mminimal-toc to
  15312.         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  15313.         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15314.  
  15315.         archive_cmds_CXX=''
  15316.         hardcode_direct_CXX=yes
  15317.         hardcode_direct_absolute_CXX=yes
  15318.         hardcode_libdir_separator_CXX=':'
  15319.         link_all_deplibs_CXX=yes
  15320.         file_list_spec_CXX='$wl-f,'
  15321.         case $with_aix_soname,$aix_use_runtimelinking in
  15322.         aix,*) ;;       # no import file
  15323.         svr4,* | *,yes) # use import file
  15324.           # The Import File defines what to hardcode.
  15325.           hardcode_direct_CXX=no
  15326.           hardcode_direct_absolute_CXX=no
  15327.           ;;
  15328.         esac
  15329.  
  15330.         if test yes = "$GXX"; then
  15331.           case $host_os in aix4.[012]|aix4.[012].*)
  15332.           # We only want to do this on AIX 4.2 and lower, the check
  15333.           # below for broken collect2 doesn't work under 4.3+
  15334.           collect2name=`$CC -print-prog-name=collect2`
  15335.           if test -f "$collect2name" &&
  15336.              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  15337.           then
  15338.             # We have reworked collect2
  15339.             :
  15340.           else
  15341.             # We have old collect2
  15342.             hardcode_direct_CXX=unsupported
  15343.             # It fails to find uninstalled libraries when the uninstalled
  15344.             # path is not listed in the libpath.  Setting hardcode_minus_L
  15345.             # to unsupported forces relinking
  15346.             hardcode_minus_L_CXX=yes
  15347.             hardcode_libdir_flag_spec_CXX='-L$libdir'
  15348.             hardcode_libdir_separator_CXX=
  15349.           fi
  15350.           esac
  15351.           shared_flag='-shared'
  15352.           if test yes = "$aix_use_runtimelinking"; then
  15353.             shared_flag=$shared_flag' $wl-G'
  15354.           fi
  15355.           # Need to ensure runtime linking is disabled for the traditional
  15356.           # shared library, or the linker may eventually find shared libraries
  15357.           # /with/ Import File - we do not want to mix them.
  15358.           shared_flag_aix='-shared'
  15359.           shared_flag_svr4='-shared $wl-G'
  15360.         else
  15361.           # not using gcc
  15362.           if test ia64 = "$host_cpu"; then
  15363.           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15364.           # chokes on -Wl,-G. The following line is correct:
  15365.           shared_flag='-G'
  15366.           else
  15367.             if test yes = "$aix_use_runtimelinking"; then
  15368.               shared_flag='$wl-G'
  15369.             else
  15370.               shared_flag='$wl-bM:SRE'
  15371.             fi
  15372.             shared_flag_aix='$wl-bM:SRE'
  15373.             shared_flag_svr4='$wl-G'
  15374.           fi
  15375.         fi
  15376.  
  15377.         export_dynamic_flag_spec_CXX='$wl-bexpall'
  15378.         # It seems that -bexpall does not export symbols beginning with
  15379.         # underscore (_), so it is better to generate a list of symbols to
  15380.         # export.
  15381.         always_export_symbols_CXX=yes
  15382.         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  15383.           # Warning - without using the other runtime loading flags (-brtl),
  15384.           # -berok will link without error, but may produce a broken library.
  15385.           # The "-G" linker flag allows undefined symbols.
  15386.           no_undefined_flag_CXX='-bernotok'
  15387.           # Determine the default libpath from the value encoded in an empty
  15388.           # executable.
  15389.           if test set = "${lt_cv_aix_libpath+set}"; then
  15390.   aix_libpath=$lt_cv_aix_libpath
  15391. else
  15392.   if ${lt_cv_aix_libpath__CXX+:} false; then :
  15393.   $as_echo_n "(cached) " >&6
  15394. else
  15395.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15396. /* end confdefs.h.  */
  15397.  
  15398. int
  15399. main ()
  15400. {
  15401.  
  15402.   ;
  15403.   return 0;
  15404. }
  15405. _ACEOF
  15406. if ac_fn_cxx_try_link "$LINENO"; then :
  15407.  
  15408.   lt_aix_libpath_sed='
  15409.       /Import File Strings/,/^$/ {
  15410.           /^0/ {
  15411.               s/^0  *\([^ ]*\) *$/\1/
  15412.               p
  15413.           }
  15414.       }'
  15415.   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15416.   # Check for a 64-bit object if we didn't find anything.
  15417.   if test -z "$lt_cv_aix_libpath__CXX"; then
  15418.     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15419.   fi
  15420. fi
  15421. rm -f core conftest.err conftest.$ac_objext \
  15422.     conftest$ac_exeext conftest.$ac_ext
  15423.   if test -z "$lt_cv_aix_libpath__CXX"; then
  15424.     lt_cv_aix_libpath__CXX=/usr/lib:/lib
  15425.   fi
  15426.  
  15427. fi
  15428.  
  15429.   aix_libpath=$lt_cv_aix_libpath__CXX
  15430. fi
  15431.  
  15432.           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  15433.  
  15434.           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  15435.         else
  15436.           if test ia64 = "$host_cpu"; then
  15437.             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
  15438.             allow_undefined_flag_CXX="-z nodefs"
  15439.             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"
  15440.           else
  15441.             # Determine the default libpath from the value encoded in an
  15442.             # empty executable.
  15443.             if test set = "${lt_cv_aix_libpath+set}"; then
  15444.   aix_libpath=$lt_cv_aix_libpath
  15445. else
  15446.   if ${lt_cv_aix_libpath__CXX+:} false; then :
  15447.   $as_echo_n "(cached) " >&6
  15448. else
  15449.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15450. /* end confdefs.h.  */
  15451.  
  15452. int
  15453. main ()
  15454. {
  15455.  
  15456.   ;
  15457.   return 0;
  15458. }
  15459. _ACEOF
  15460. if ac_fn_cxx_try_link "$LINENO"; then :
  15461.  
  15462.   lt_aix_libpath_sed='
  15463.       /Import File Strings/,/^$/ {
  15464.           /^0/ {
  15465.               s/^0  *\([^ ]*\) *$/\1/
  15466.               p
  15467.           }
  15468.       }'
  15469.   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15470.   # Check for a 64-bit object if we didn't find anything.
  15471.   if test -z "$lt_cv_aix_libpath__CXX"; then
  15472.     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15473.   fi
  15474. fi
  15475. rm -f core conftest.err conftest.$ac_objext \
  15476.     conftest$ac_exeext conftest.$ac_ext
  15477.   if test -z "$lt_cv_aix_libpath__CXX"; then
  15478.     lt_cv_aix_libpath__CXX=/usr/lib:/lib
  15479.   fi
  15480.  
  15481. fi
  15482.  
  15483.   aix_libpath=$lt_cv_aix_libpath__CXX
  15484. fi
  15485.  
  15486.             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
  15487.             # Warning - without using the other run time loading flags,
  15488.             # -berok will link without error, but may produce a broken library.
  15489.             no_undefined_flag_CXX=' $wl-bernotok'
  15490.             allow_undefined_flag_CXX=' $wl-berok'
  15491.             if test yes = "$with_gnu_ld"; then
  15492.               # We only use this code for GNU lds that support --whole-archive.
  15493.               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  15494.             else
  15495.               # Exported symbols can be pulled into shared objects from archives
  15496.               whole_archive_flag_spec_CXX='$convenience'
  15497.             fi
  15498.             archive_cmds_need_lc_CXX=yes
  15499.             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  15500.             # -brtl affects multiple linker settings, -berok does not and is overridden later
  15501.             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  15502.             if test svr4 != "$with_aix_soname"; then
  15503.               # This is similar to how AIX traditionally builds its shared
  15504.               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  15505.               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  15506.             fi
  15507.             if test aix != "$with_aix_soname"; then
  15508.               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  15509.             else
  15510.               # used by -dlpreopen to get the symbols
  15511.               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
  15512.             fi
  15513.             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
  15514.           fi
  15515.         fi
  15516.         ;;
  15517.  
  15518.       beos*)
  15519.         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  15520.           allow_undefined_flag_CXX=unsupported
  15521.           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15522.           # support --undefined.  This deserves some investigation.  FIXME
  15523.           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  15524.         else
  15525.           ld_shlibs_CXX=no
  15526.         fi
  15527.         ;;
  15528.  
  15529.       chorus*)
  15530.         case $cc_basename in
  15531.           *)
  15532.           # FIXME: insert proper C++ library support
  15533.           ld_shlibs_CXX=no
  15534.           ;;
  15535.         esac
  15536.         ;;
  15537.  
  15538.       cygwin* | mingw* | pw32* | cegcc*)
  15539.         case $GXX,$cc_basename in
  15540.         ,cl* | no,cl*)
  15541.           # Native MSVC
  15542.           # hardcode_libdir_flag_spec is actually meaningless, as there is
  15543.           # no search path for DLLs.
  15544.           hardcode_libdir_flag_spec_CXX=' '
  15545.           allow_undefined_flag_CXX=unsupported
  15546.           always_export_symbols_CXX=yes
  15547.           file_list_spec_CXX='@'
  15548.           # Tell ltmain to make .lib files, not .a files.
  15549.           libext=lib
  15550.           # Tell ltmain to make .dll files, not .so files.
  15551.           shrext_cmds=.dll
  15552.           # FIXME: Setting linknames here is a bad hack.
  15553.           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  15554.           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
  15555.               cp "$export_symbols" "$output_objdir/$soname.def";
  15556.               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  15557.             else
  15558.               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  15559.             fi~
  15560.             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  15561.             linknames='
  15562.           # The linker will not automatically build a static lib if we build a DLL.
  15563.           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  15564.           enable_shared_with_static_runtimes_CXX=yes
  15565.           # Don't use ranlib
  15566.           old_postinstall_cmds_CXX='chmod 644 $oldlib'
  15567.           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  15568.             lt_tool_outputfile="@TOOL_OUTPUT@"~
  15569.             case $lt_outputfile in
  15570.               *.exe|*.EXE) ;;
  15571.               *)
  15572.                 lt_outputfile=$lt_outputfile.exe
  15573.                 lt_tool_outputfile=$lt_tool_outputfile.exe
  15574.                 ;;
  15575.             esac~
  15576.             func_to_tool_file "$lt_outputfile"~
  15577.             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  15578.               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  15579.               $RM "$lt_outputfile.manifest";
  15580.             fi'
  15581.           ;;
  15582.         *)
  15583.           # g++
  15584.           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  15585.           # as there is no search path for DLLs.
  15586.           hardcode_libdir_flag_spec_CXX='-L$libdir'
  15587.           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
  15588.           allow_undefined_flag_CXX=unsupported
  15589.           always_export_symbols_CXX=no
  15590.           enable_shared_with_static_runtimes_CXX=yes
  15591.  
  15592.           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  15593.             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'
  15594.             # If the export-symbols file already is a .def file, use it as
  15595.             # is; otherwise, prepend EXPORTS...
  15596.             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
  15597.               cp $export_symbols $output_objdir/$soname.def;
  15598.             else
  15599.               echo EXPORTS > $output_objdir/$soname.def;
  15600.               cat $export_symbols >> $output_objdir/$soname.def;
  15601.             fi~
  15602.             $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'
  15603.           else
  15604.             ld_shlibs_CXX=no
  15605.           fi
  15606.           ;;
  15607.         esac
  15608.         ;;
  15609.       darwin* | rhapsody*)
  15610.  
  15611.  
  15612.   archive_cmds_need_lc_CXX=no
  15613.   hardcode_direct_CXX=no
  15614.   hardcode_automatic_CXX=yes
  15615.   hardcode_shlibpath_var_CXX=unsupported
  15616.   if test yes = "$lt_cv_ld_force_load"; then
  15617.     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\"`'
  15618.  
  15619.   else
  15620.     whole_archive_flag_spec_CXX=''
  15621.   fi
  15622.   link_all_deplibs_CXX=yes
  15623.   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
  15624.   case $cc_basename in
  15625.      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  15626.      *) _lt_dar_can_shared=$GCC ;;
  15627.   esac
  15628.   if test yes = "$_lt_dar_can_shared"; then
  15629.     output_verbose_link_cmd=func_echo_all
  15630.     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"
  15631.     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  15632.     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"
  15633.     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"
  15634.        if test yes != "$lt_cv_apple_cc_single_mod"; then
  15635.       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"
  15636.       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"
  15637.     fi
  15638.  
  15639.   else
  15640.   ld_shlibs_CXX=no
  15641.   fi
  15642.  
  15643.         ;;
  15644.  
  15645.       os2*)
  15646.         hardcode_libdir_flag_spec_CXX='-L$libdir'
  15647.         hardcode_minus_L_CXX=yes
  15648.         allow_undefined_flag_CXX=unsupported
  15649.         shrext_cmds=.dll
  15650.         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  15651.           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  15652.           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  15653.           $ECHO EXPORTS >> $output_objdir/$libname.def~
  15654.           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  15655.           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  15656.           emximp -o $lib $output_objdir/$libname.def'
  15657.         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  15658.           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  15659.           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  15660.           $ECHO EXPORTS >> $output_objdir/$libname.def~
  15661.           prefix_cmds="$SED"~
  15662.           if test EXPORTS = "`$SED 1q $export_symbols`"; then
  15663.             prefix_cmds="$prefix_cmds -e 1d";
  15664.           fi~
  15665.           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  15666.           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  15667.           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  15668.           emximp -o $lib $output_objdir/$libname.def'
  15669.         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  15670.         enable_shared_with_static_runtimes_CXX=yes
  15671.         ;;
  15672.  
  15673.       dgux*)
  15674.         case $cc_basename in
  15675.           ec++*)
  15676.             # FIXME: insert proper C++ library support
  15677.             ld_shlibs_CXX=no
  15678.             ;;
  15679.           ghcx*)
  15680.             # Green Hills C++ Compiler
  15681.             # FIXME: insert proper C++ library support
  15682.             ld_shlibs_CXX=no
  15683.             ;;
  15684.           *)
  15685.             # FIXME: insert proper C++ library support
  15686.             ld_shlibs_CXX=no
  15687.             ;;
  15688.         esac
  15689.         ;;
  15690.  
  15691.       freebsd2.*)
  15692.         # C++ shared libraries reported to be fairly broken before
  15693.         # switch to ELF
  15694.         ld_shlibs_CXX=no
  15695.         ;;
  15696.  
  15697.       freebsd-elf*)
  15698.         archive_cmds_need_lc_CXX=no
  15699.         ;;
  15700.  
  15701.       freebsd* | dragonfly*)
  15702.         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  15703.         # conventions
  15704.         ld_shlibs_CXX=yes
  15705.         ;;
  15706.  
  15707.       haiku*)
  15708.         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  15709.         link_all_deplibs_CXX=yes
  15710.         ;;
  15711.  
  15712.       hpux9*)
  15713.         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  15714.         hardcode_libdir_separator_CXX=:
  15715.         export_dynamic_flag_spec_CXX='$wl-E'
  15716.         hardcode_direct_CXX=yes
  15717.         hardcode_minus_L_CXX=yes # Not in the search PATH,
  15718.                                              # but as the default
  15719.                                              # location of the library.
  15720.  
  15721.         case $cc_basename in
  15722.           CC*)
  15723.             # FIXME: insert proper C++ library support
  15724.             ld_shlibs_CXX=no
  15725.             ;;
  15726.           aCC*)
  15727.             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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  15728.             # Commands to make compiler produce verbose output that lists
  15729.             # what "hidden" libraries, object files and flags are used when
  15730.             # linking a shared library.
  15731.             #
  15732.             # There doesn't appear to be a way to prevent this compiler from
  15733.             # explicitly linking system object files so we need to strip them
  15734.             # from the output so that they don't get included in the library
  15735.             # dependencies.
  15736.             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"'
  15737.             ;;
  15738.           *)
  15739.             if test yes = "$GXX"; then
  15740.               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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  15741.             else
  15742.               # FIXME: insert proper C++ library support
  15743.               ld_shlibs_CXX=no
  15744.             fi
  15745.             ;;
  15746.         esac
  15747.         ;;
  15748.  
  15749.       hpux10*|hpux11*)
  15750.         if test no = "$with_gnu_ld"; then
  15751.           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
  15752.           hardcode_libdir_separator_CXX=:
  15753.  
  15754.           case $host_cpu in
  15755.             hppa*64*|ia64*)
  15756.               ;;
  15757.             *)
  15758.               export_dynamic_flag_spec_CXX='$wl-E'
  15759.               ;;
  15760.           esac
  15761.         fi
  15762.         case $host_cpu in
  15763.           hppa*64*|ia64*)
  15764.             hardcode_direct_CXX=no
  15765.             hardcode_shlibpath_var_CXX=no
  15766.             ;;
  15767.           *)
  15768.             hardcode_direct_CXX=yes
  15769.             hardcode_direct_absolute_CXX=yes
  15770.             hardcode_minus_L_CXX=yes # Not in the search PATH,
  15771.                                                  # but as the default
  15772.                                                  # location of the library.
  15773.             ;;
  15774.         esac
  15775.  
  15776.         case $cc_basename in
  15777.           CC*)
  15778.             # FIXME: insert proper C++ library support
  15779.             ld_shlibs_CXX=no
  15780.             ;;
  15781.           aCC*)
  15782.             case $host_cpu in
  15783.               hppa*64*)
  15784.                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15785.                 ;;
  15786.               ia64*)
  15787.                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15788.                 ;;
  15789.               *)
  15790.                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15791.                 ;;
  15792.             esac
  15793.             # Commands to make compiler produce verbose output that lists
  15794.             # what "hidden" libraries, object files and flags are used when
  15795.             # linking a shared library.
  15796.             #
  15797.             # There doesn't appear to be a way to prevent this compiler from
  15798.             # explicitly linking system object files so we need to strip them
  15799.             # from the output so that they don't get included in the library
  15800.             # dependencies.
  15801.             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"'
  15802.             ;;
  15803.           *)
  15804.             if test yes = "$GXX"; then
  15805.               if test no = "$with_gnu_ld"; then
  15806.                 case $host_cpu in
  15807.                   hppa*64*)
  15808.                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15809.                     ;;
  15810.                   ia64*)
  15811.                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15812.                     ;;
  15813.                   *)
  15814.                     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'
  15815.                     ;;
  15816.                 esac
  15817.               fi
  15818.             else
  15819.               # FIXME: insert proper C++ library support
  15820.               ld_shlibs_CXX=no
  15821.             fi
  15822.             ;;
  15823.         esac
  15824.         ;;
  15825.  
  15826.       interix[3-9]*)
  15827.         hardcode_direct_CXX=no
  15828.         hardcode_shlibpath_var_CXX=no
  15829.         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  15830.         export_dynamic_flag_spec_CXX='$wl-E'
  15831.         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15832.         # Instead, shared libraries are loaded at an image base (0x10000000 by
  15833.         # default) and relocated if they conflict, which is a slow very memory
  15834.         # consuming and fragmenting process.  To avoid this, we pick a random,
  15835.         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15836.         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  15837.         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'
  15838.         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'
  15839.         ;;
  15840.       irix5* | irix6*)
  15841.         case $cc_basename in
  15842.           CC*)
  15843.             # SGI C++
  15844.             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'
  15845.  
  15846.             # Archives containing C++ object files must be created using
  15847.             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  15848.             # necessary to make sure instantiated templates are included
  15849.             # in the archive.
  15850.             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  15851.             ;;
  15852.           *)
  15853.             if test yes = "$GXX"; then
  15854.               if test no = "$with_gnu_ld"; then
  15855.                 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'
  15856.               else
  15857.                 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'
  15858.               fi
  15859.             fi
  15860.             link_all_deplibs_CXX=yes
  15861.             ;;
  15862.         esac
  15863.         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  15864.         hardcode_libdir_separator_CXX=:
  15865.         inherit_rpath_CXX=yes
  15866.         ;;
  15867.  
  15868.       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  15869.         case $cc_basename in
  15870.           KCC*)
  15871.             # Kuck and Associates, Inc. (KAI) C++ Compiler
  15872.  
  15873.             # KCC will only create a shared library if the output file
  15874.             # ends with ".so" (or ".sl" for HP-UX), so rename the library
  15875.             # to its proper name (with version) after linking.
  15876.             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'
  15877.             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'
  15878.             # Commands to make compiler produce verbose output that lists
  15879.             # what "hidden" libraries, object files and flags are used when
  15880.             # linking a shared library.
  15881.             #
  15882.             # There doesn't appear to be a way to prevent this compiler from
  15883.             # explicitly linking system object files so we need to strip them
  15884.             # from the output so that they don't get included in the library
  15885.             # dependencies.
  15886.             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"'
  15887.  
  15888.             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  15889.             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  15890.  
  15891.             # Archives containing C++ object files must be created using
  15892.             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  15893.             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  15894.             ;;
  15895.           icpc* | ecpc* )
  15896.             # Intel C++
  15897.             with_gnu_ld=yes
  15898.             # version 8.0 and above of icpc choke on multiply defined symbols
  15899.             # if we add $predep_objects and $postdep_objects, however 7.1 and
  15900.             # earlier do not add the objects themselves.
  15901.             case `$CC -V 2>&1` in
  15902.               *"Version 7."*)
  15903.                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  15904.                 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'
  15905.                 ;;
  15906.               *)  # Version 8.0 or newer
  15907.                 tmp_idyn=
  15908.                 case $host_cpu in
  15909.                   ia64*) tmp_idyn=' -i_dynamic';;
  15910.                 esac
  15911.                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  15912.                 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'
  15913.                 ;;
  15914.             esac
  15915.             archive_cmds_need_lc_CXX=no
  15916.             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  15917.             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  15918.             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
  15919.             ;;
  15920.           pgCC* | pgcpp*)
  15921.             # Portland Group C++ compiler
  15922.             case `$CC -V` in
  15923.             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  15924.               prelink_cmds_CXX='tpldir=Template.dir~
  15925.                rm -rf $tpldir~
  15926.                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  15927.                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  15928.               old_archive_cmds_CXX='tpldir=Template.dir~
  15929.                 rm -rf $tpldir~
  15930.                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  15931.                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  15932.                 $RANLIB $oldlib'
  15933.               archive_cmds_CXX='tpldir=Template.dir~
  15934.                 rm -rf $tpldir~
  15935.                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  15936.                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  15937.               archive_expsym_cmds_CXX='tpldir=Template.dir~
  15938.                 rm -rf $tpldir~
  15939.                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  15940.                 $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'
  15941.               ;;
  15942.             *) # Version 6 and above use weak symbols
  15943.               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  15944.               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'
  15945.               ;;
  15946.             esac
  15947.  
  15948.             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
  15949.             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  15950.             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'
  15951.             ;;
  15952.           cxx*)
  15953.             # Compaq C++
  15954.             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  15955.             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'
  15956.  
  15957.             runpath_var=LD_RUN_PATH
  15958.             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  15959.             hardcode_libdir_separator_CXX=:
  15960.  
  15961.             # Commands to make compiler produce verbose output that lists
  15962.             # what "hidden" libraries, object files and flags are used when
  15963.             # linking a shared library.
  15964.             #
  15965.             # There doesn't appear to be a way to prevent this compiler from
  15966.             # explicitly linking system object files so we need to strip them
  15967.             # from the output so that they don't get included in the library
  15968.             # dependencies.
  15969.             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'
  15970.             ;;
  15971.           xl* | mpixl* | bgxl*)
  15972.             # IBM XL 8.0 on PPC, with GNU ld
  15973.             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  15974.             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
  15975.             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  15976.             if test yes = "$supports_anon_versioning"; then
  15977.               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  15978.                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15979.                 echo "local: *; };" >> $output_objdir/$libname.ver~
  15980.                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  15981.             fi
  15982.             ;;
  15983.           *)
  15984.             case `$CC -V 2>&1 | sed 5q` in
  15985.             *Sun\ C*)
  15986.               # Sun C++ 5.9
  15987.               no_undefined_flag_CXX=' -zdefs'
  15988.               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  15989.               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'
  15990.               hardcode_libdir_flag_spec_CXX='-R$libdir'
  15991.               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'
  15992.               compiler_needs_object_CXX=yes
  15993.  
  15994.               # Not sure whether something based on
  15995.               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  15996.               # would be better.
  15997.               output_verbose_link_cmd='func_echo_all'
  15998.  
  15999.               # Archives containing C++ object files must be created using
  16000.               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  16001.               # necessary to make sure instantiated templates are included
  16002.               # in the archive.
  16003.               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  16004.               ;;
  16005.             esac
  16006.             ;;
  16007.         esac
  16008.         ;;
  16009.  
  16010.       lynxos*)
  16011.         # FIXME: insert proper C++ library support
  16012.         ld_shlibs_CXX=no
  16013.         ;;
  16014.  
  16015.       m88k*)
  16016.         # FIXME: insert proper C++ library support
  16017.         ld_shlibs_CXX=no
  16018.         ;;
  16019.  
  16020.       mvs*)
  16021.         case $cc_basename in
  16022.           cxx*)
  16023.             # FIXME: insert proper C++ library support
  16024.             ld_shlibs_CXX=no
  16025.             ;;
  16026.           *)
  16027.             # FIXME: insert proper C++ library support
  16028.             ld_shlibs_CXX=no
  16029.             ;;
  16030.         esac
  16031.         ;;
  16032.  
  16033.       netbsd*)
  16034.         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  16035.           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  16036.           wlarc=
  16037.           hardcode_libdir_flag_spec_CXX='-R$libdir'
  16038.           hardcode_direct_CXX=yes
  16039.           hardcode_shlibpath_var_CXX=no
  16040.         fi
  16041.         # Workaround some broken pre-1.5 toolchains
  16042.         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  16043.         ;;
  16044.  
  16045.       *nto* | *qnx*)
  16046.         ld_shlibs_CXX=yes
  16047.         ;;
  16048.  
  16049.       openbsd* | bitrig*)
  16050.         if test -f /usr/libexec/ld.so; then
  16051.           hardcode_direct_CXX=yes
  16052.           hardcode_shlibpath_var_CXX=no
  16053.           hardcode_direct_absolute_CXX=yes
  16054.           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  16055.           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  16056.           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  16057.             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
  16058.             export_dynamic_flag_spec_CXX='$wl-E'
  16059.             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  16060.           fi
  16061.           output_verbose_link_cmd=func_echo_all
  16062.         else
  16063.           ld_shlibs_CXX=no
  16064.         fi
  16065.         ;;
  16066.  
  16067.       osf3* | osf4* | osf5*)
  16068.         case $cc_basename in
  16069.           KCC*)
  16070.             # Kuck and Associates, Inc. (KAI) C++ Compiler
  16071.  
  16072.             # KCC will only create a shared library if the output file
  16073.             # ends with ".so" (or ".sl" for HP-UX), so rename the library
  16074.             # to its proper name (with version) after linking.
  16075.             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'
  16076.  
  16077.             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
  16078.             hardcode_libdir_separator_CXX=:
  16079.  
  16080.             # Archives containing C++ object files must be created using
  16081.             # the KAI C++ compiler.
  16082.             case $host in
  16083.               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  16084.               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  16085.             esac
  16086.             ;;
  16087.           RCC*)
  16088.             # Rational C++ 2.4.1
  16089.             # FIXME: insert proper C++ library support
  16090.             ld_shlibs_CXX=no
  16091.             ;;
  16092.           cxx*)
  16093.             case $host in
  16094.               osf3*)
  16095.                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  16096.                 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'
  16097.                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  16098.                 ;;
  16099.               *)
  16100.                 allow_undefined_flag_CXX=' -expect_unresolved \*'
  16101.                 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'
  16102.                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  16103.                   echo "-hidden">> $lib.exp~
  16104.                   $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~
  16105.                   $RM $lib.exp'
  16106.                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  16107.                 ;;
  16108.             esac
  16109.  
  16110.             hardcode_libdir_separator_CXX=:
  16111.  
  16112.             # Commands to make compiler produce verbose output that lists
  16113.             # what "hidden" libraries, object files and flags are used when
  16114.             # linking a shared library.
  16115.             #
  16116.             # There doesn't appear to be a way to prevent this compiler from
  16117.             # explicitly linking system object files so we need to strip them
  16118.             # from the output so that they don't get included in the library
  16119.             # dependencies.
  16120.             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"'
  16121.             ;;
  16122.           *)
  16123.             if test yes,no = "$GXX,$with_gnu_ld"; then
  16124.               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
  16125.               case $host in
  16126.                 osf3*)
  16127.                   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'
  16128.                   ;;
  16129.                 *)
  16130.                   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'
  16131.                   ;;
  16132.               esac
  16133.  
  16134.               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
  16135.               hardcode_libdir_separator_CXX=:
  16136.  
  16137.               # Commands to make compiler produce verbose output that lists
  16138.               # what "hidden" libraries, object files and flags are used when
  16139.               # linking a shared library.
  16140.               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  16141.  
  16142.             else
  16143.               # FIXME: insert proper C++ library support
  16144.               ld_shlibs_CXX=no
  16145.             fi
  16146.             ;;
  16147.         esac
  16148.         ;;
  16149.  
  16150.       psos*)
  16151.         # FIXME: insert proper C++ library support
  16152.         ld_shlibs_CXX=no
  16153.         ;;
  16154.  
  16155.       sunos4*)
  16156.         case $cc_basename in
  16157.           CC*)
  16158.             # Sun C++ 4.x
  16159.             # FIXME: insert proper C++ library support
  16160.             ld_shlibs_CXX=no
  16161.             ;;
  16162.           lcc*)
  16163.             # Lucid
  16164.             # FIXME: insert proper C++ library support
  16165.             ld_shlibs_CXX=no
  16166.             ;;
  16167.           *)
  16168.             # FIXME: insert proper C++ library support
  16169.             ld_shlibs_CXX=no
  16170.             ;;
  16171.         esac
  16172.         ;;
  16173.  
  16174.       solaris*)
  16175.         case $cc_basename in
  16176.           CC* | sunCC*)
  16177.             # Sun C++ 4.2, 5.x and Centerline C++
  16178.             archive_cmds_need_lc_CXX=yes
  16179.             no_undefined_flag_CXX=' -zdefs'
  16180.             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16181.             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  16182.               $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'
  16183.  
  16184.             hardcode_libdir_flag_spec_CXX='-R$libdir'
  16185.             hardcode_shlibpath_var_CXX=no
  16186.             case $host_os in
  16187.               solaris2.[0-5] | solaris2.[0-5].*) ;;
  16188.               *)
  16189.                 # The compiler driver will combine and reorder linker options,
  16190.                 # but understands '-z linker_flag'.
  16191.                 # Supported since Solaris 2.6 (maybe 2.5.1?)
  16192.                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  16193.                 ;;
  16194.             esac
  16195.             link_all_deplibs_CXX=yes
  16196.  
  16197.             output_verbose_link_cmd='func_echo_all'
  16198.  
  16199.             # Archives containing C++ object files must be created using
  16200.             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  16201.             # necessary to make sure instantiated templates are included
  16202.             # in the archive.
  16203.             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  16204.             ;;
  16205.           gcx*)
  16206.             # Green Hills C++ Compiler
  16207.             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  16208.  
  16209.             # The C++ compiler must be used to create the archive.
  16210.             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  16211.             ;;
  16212.           *)
  16213.             # GNU C++ compiler with Solaris linker
  16214.             if test yes,no = "$GXX,$with_gnu_ld"; then
  16215.               no_undefined_flag_CXX=' $wl-z ${wl}defs'
  16216.               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  16217.                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  16218.                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  16219.                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  16220.  
  16221.                 # Commands to make compiler produce verbose output that lists
  16222.                 # what "hidden" libraries, object files and flags are used when
  16223.                 # linking a shared library.
  16224.                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  16225.               else
  16226.                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
  16227.                 # platform.
  16228.                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  16229.                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  16230.                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  16231.  
  16232.                 # Commands to make compiler produce verbose output that lists
  16233.                 # what "hidden" libraries, object files and flags are used when
  16234.                 # linking a shared library.
  16235.                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  16236.               fi
  16237.  
  16238.               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
  16239.               case $host_os in
  16240.                 solaris2.[0-5] | solaris2.[0-5].*) ;;
  16241.                 *)
  16242.                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  16243.                   ;;
  16244.               esac
  16245.             fi
  16246.             ;;
  16247.         esac
  16248.         ;;
  16249.  
  16250.     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  16251.       no_undefined_flag_CXX='$wl-z,text'
  16252.       archive_cmds_need_lc_CXX=no
  16253.       hardcode_shlibpath_var_CXX=no
  16254.       runpath_var='LD_RUN_PATH'
  16255.  
  16256.       case $cc_basename in
  16257.         CC*)
  16258.           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16259.           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16260.           ;;
  16261.         *)
  16262.           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16263.           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16264.           ;;
  16265.       esac
  16266.       ;;
  16267.  
  16268.       sysv5* | sco3.2v5* | sco5v6*)
  16269.         # Note: We CANNOT use -z defs as we might desire, because we do not
  16270.         # link with -lc, and that would cause any symbols used from libc to
  16271.         # always be unresolved, which means just about no library would
  16272.         # ever link correctly.  If we're not using GNU ld we use -z text
  16273.         # though, which does catch some bad symbols but isn't as heavy-handed
  16274.         # as -z defs.
  16275.         no_undefined_flag_CXX='$wl-z,text'
  16276.         allow_undefined_flag_CXX='$wl-z,nodefs'
  16277.         archive_cmds_need_lc_CXX=no
  16278.         hardcode_shlibpath_var_CXX=no
  16279.         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
  16280.         hardcode_libdir_separator_CXX=':'
  16281.         link_all_deplibs_CXX=yes
  16282.         export_dynamic_flag_spec_CXX='$wl-Bexport'
  16283.         runpath_var='LD_RUN_PATH'
  16284.  
  16285.         case $cc_basename in
  16286.           CC*)
  16287.             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16288.             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16289.             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  16290.               '"$old_archive_cmds_CXX"
  16291.             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  16292.               '"$reload_cmds_CXX"
  16293.             ;;
  16294.           *)
  16295.             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16296.             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16297.             ;;
  16298.         esac
  16299.       ;;
  16300.  
  16301.       tandem*)
  16302.         case $cc_basename in
  16303.           NCC*)
  16304.             # NonStop-UX NCC 3.20
  16305.             # FIXME: insert proper C++ library support
  16306.             ld_shlibs_CXX=no
  16307.             ;;
  16308.           *)
  16309.             # FIXME: insert proper C++ library support
  16310.             ld_shlibs_CXX=no
  16311.             ;;
  16312.         esac
  16313.         ;;
  16314.  
  16315.       vxworks*)
  16316.         # FIXME: insert proper C++ library support
  16317.         ld_shlibs_CXX=no
  16318.         ;;
  16319.  
  16320.       *)
  16321.         # FIXME: insert proper C++ library support
  16322.         ld_shlibs_CXX=no
  16323.         ;;
  16324.     esac
  16325.  
  16326.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  16327. $as_echo "$ld_shlibs_CXX" >&6; }
  16328.     test no = "$ld_shlibs_CXX" && can_build_shared=no
  16329.  
  16330.     GCC_CXX=$GXX
  16331.     LD_CXX=$LD
  16332.  
  16333.     ## CAVEAT EMPTOR:
  16334.     ## There is no encapsulation within the following macros, do not change
  16335.     ## the running order or otherwise move them around unless you know exactly
  16336.     ## what you are doing...
  16337.     # Dependencies to place before and after the object being linked:
  16338. predep_objects_CXX=
  16339. postdep_objects_CXX=
  16340. predeps_CXX=
  16341. postdeps_CXX=
  16342. compiler_lib_search_path_CXX=
  16343.  
  16344. cat > conftest.$ac_ext <<_LT_EOF
  16345. class Foo
  16346. {
  16347. public:
  16348.   Foo (void) { a = 0; }
  16349. private:
  16350.   int a;
  16351. };
  16352. _LT_EOF
  16353.  
  16354.  
  16355. _lt_libdeps_save_CFLAGS=$CFLAGS
  16356. case "$CC $CFLAGS " in #(
  16357. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  16358. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  16359. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  16360. esac
  16361.  
  16362. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  16363.   (eval $ac_compile) 2>&5
  16364.   ac_status=$?
  16365.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16366.   test $ac_status = 0; }; then
  16367.   # Parse the compiler output and extract the necessary
  16368.   # objects, libraries and library flags.
  16369.  
  16370.   # Sentinel used to keep track of whether or not we are before
  16371.   # the conftest object file.
  16372.   pre_test_object_deps_done=no
  16373.  
  16374.   for p in `eval "$output_verbose_link_cmd"`; do
  16375.     case $prev$p in
  16376.  
  16377.     -L* | -R* | -l*)
  16378.        # Some compilers place space between "-{L,R}" and the path.
  16379.        # Remove the space.
  16380.        if test x-L = "$p" ||
  16381.           test x-R = "$p"; then
  16382.          prev=$p
  16383.          continue
  16384.        fi
  16385.  
  16386.        # Expand the sysroot to ease extracting the directories later.
  16387.        if test -z "$prev"; then
  16388.          case $p in
  16389.          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  16390.          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  16391.          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  16392.          esac
  16393.        fi
  16394.        case $p in
  16395.        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  16396.        esac
  16397.        if test no = "$pre_test_object_deps_done"; then
  16398.          case $prev in
  16399.          -L | -R)
  16400.            # Internal compiler library paths should come after those
  16401.            # provided the user.  The postdeps already come after the
  16402.            # user supplied libs so there is no need to process them.
  16403.            if test -z "$compiler_lib_search_path_CXX"; then
  16404.              compiler_lib_search_path_CXX=$prev$p
  16405.            else
  16406.              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
  16407.            fi
  16408.            ;;
  16409.          # The "-l" case would never come before the object being
  16410.          # linked, so don't bother handling this case.
  16411.          esac
  16412.        else
  16413.          if test -z "$postdeps_CXX"; then
  16414.            postdeps_CXX=$prev$p
  16415.          else
  16416.            postdeps_CXX="${postdeps_CXX} $prev$p"
  16417.          fi
  16418.        fi
  16419.        prev=
  16420.        ;;
  16421.  
  16422.     *.lto.$objext) ;; # Ignore GCC LTO objects
  16423.     *.$objext)
  16424.        # This assumes that the test object file only shows up
  16425.        # once in the compiler output.
  16426.        if test "$p" = "conftest.$objext"; then
  16427.          pre_test_object_deps_done=yes
  16428.          continue
  16429.        fi
  16430.  
  16431.        if test no = "$pre_test_object_deps_done"; then
  16432.          if test -z "$predep_objects_CXX"; then
  16433.            predep_objects_CXX=$p
  16434.          else
  16435.            predep_objects_CXX="$predep_objects_CXX $p"
  16436.          fi
  16437.        else
  16438.          if test -z "$postdep_objects_CXX"; then
  16439.            postdep_objects_CXX=$p
  16440.          else
  16441.            postdep_objects_CXX="$postdep_objects_CXX $p"
  16442.          fi
  16443.        fi
  16444.        ;;
  16445.  
  16446.     *) ;; # Ignore the rest.
  16447.  
  16448.     esac
  16449.   done
  16450.  
  16451.   # Clean up.
  16452.   rm -f a.out a.exe
  16453. else
  16454.   echo "libtool.m4: error: problem compiling CXX test program"
  16455. fi
  16456.  
  16457. $RM -f confest.$objext
  16458. CFLAGS=$_lt_libdeps_save_CFLAGS
  16459.  
  16460. # PORTME: override above test on systems where it is broken
  16461. case $host_os in
  16462. interix[3-9]*)
  16463.   # Interix 3.5 installs completely hosed .la files for C++, so rather than
  16464.   # hack all around it, let's just trust "g++" to DTRT.
  16465.   predep_objects_CXX=
  16466.   postdep_objects_CXX=
  16467.   postdeps_CXX=
  16468.   ;;
  16469. esac
  16470.  
  16471.  
  16472. case " $postdeps_CXX " in
  16473. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  16474. esac
  16475.  compiler_lib_search_dirs_CXX=
  16476. if test -n "${compiler_lib_search_path_CXX}"; then
  16477.  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  16478. fi
  16479.  
  16480.  
  16481.  
  16482.  
  16483.  
  16484.  
  16485.  
  16486.  
  16487.  
  16488.  
  16489.  
  16490.  
  16491.  
  16492.  
  16493.  
  16494.  
  16495.  
  16496.  
  16497.  
  16498.  
  16499.  
  16500.  
  16501.  
  16502.  
  16503.  
  16504.  
  16505.  
  16506.  
  16507.  
  16508.  
  16509.  
  16510.     lt_prog_compiler_wl_CXX=
  16511. lt_prog_compiler_pic_CXX=
  16512. lt_prog_compiler_static_CXX=
  16513.  
  16514.  
  16515.   # C++ specific cases for pic, static, wl, etc.
  16516.   if test yes = "$GXX"; then
  16517.     lt_prog_compiler_wl_CXX='-Wl,'
  16518.     lt_prog_compiler_static_CXX='-static'
  16519.  
  16520.     case $host_os in
  16521.     aix*)
  16522.       # All AIX code is PIC.
  16523.       if test ia64 = "$host_cpu"; then
  16524.         # AIX 5 now supports IA64 processor
  16525.         lt_prog_compiler_static_CXX='-Bstatic'
  16526.       fi
  16527.       lt_prog_compiler_pic_CXX='-fPIC'
  16528.       ;;
  16529.  
  16530.     amigaos*)
  16531.       case $host_cpu in
  16532.       powerpc)
  16533.             # see comment about AmigaOS4 .so support
  16534.             lt_prog_compiler_pic_CXX='-fPIC'
  16535.         ;;
  16536.       m68k)
  16537.             # FIXME: we need at least 68020 code to build shared libraries, but
  16538.             # adding the '-m68020' flag to GCC prevents building anything better,
  16539.             # like '-m68040'.
  16540.             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  16541.         ;;
  16542.       esac
  16543.       ;;
  16544.  
  16545.     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  16546.       # PIC is the default for these OSes.
  16547.       ;;
  16548.     mingw* | cygwin* | os2* | pw32* | cegcc*)
  16549.       # This hack is so that the source file can tell whether it is being
  16550.       # built for inclusion in a dll (and should export symbols for example).
  16551.       # Although the cygwin gcc ignores -fPIC, still need this for old-style
  16552.       # (--disable-auto-import) libraries
  16553.       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  16554.       case $host_os in
  16555.       os2*)
  16556.         lt_prog_compiler_static_CXX='$wl-static'
  16557.         ;;
  16558.       esac
  16559.       ;;
  16560.     darwin* | rhapsody*)
  16561.       # PIC is the default on this platform
  16562.       # Common symbols not allowed in MH_DYLIB files
  16563.       lt_prog_compiler_pic_CXX='-fno-common'
  16564.       ;;
  16565.     *djgpp*)
  16566.       # DJGPP does not support shared libraries at all
  16567.       lt_prog_compiler_pic_CXX=
  16568.       ;;
  16569.     haiku*)
  16570.       # PIC is the default for Haiku.
  16571.       # The "-static" flag exists, but is broken.
  16572.       lt_prog_compiler_static_CXX=
  16573.       ;;
  16574.     interix[3-9]*)
  16575.       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  16576.       # Instead, we relocate shared libraries at runtime.
  16577.       ;;
  16578.     sysv4*MP*)
  16579.       if test -d /usr/nec; then
  16580.         lt_prog_compiler_pic_CXX=-Kconform_pic
  16581.       fi
  16582.       ;;
  16583.     hpux*)
  16584.       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  16585.       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  16586.       # sets the default TLS model and affects inlining.
  16587.       case $host_cpu in
  16588.       hppa*64*)
  16589.         ;;
  16590.       *)
  16591.         lt_prog_compiler_pic_CXX='-fPIC'
  16592.         ;;
  16593.       esac
  16594.       ;;
  16595.     *qnx* | *nto*)
  16596.       # QNX uses GNU C++, but need to define -shared option too, otherwise
  16597.       # it will coredump.
  16598.       lt_prog_compiler_pic_CXX='-fPIC -shared'
  16599.       ;;
  16600.     *)
  16601.       lt_prog_compiler_pic_CXX='-fPIC'
  16602.       ;;
  16603.     esac
  16604.   else
  16605.     case $host_os in
  16606.       aix[4-9]*)
  16607.         # All AIX code is PIC.
  16608.         if test ia64 = "$host_cpu"; then
  16609.           # AIX 5 now supports IA64 processor
  16610.           lt_prog_compiler_static_CXX='-Bstatic'
  16611.         else
  16612.           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  16613.         fi
  16614.         ;;
  16615.       chorus*)
  16616.         case $cc_basename in
  16617.         cxch68*)
  16618.           # Green Hills C++ Compiler
  16619.           # _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"
  16620.           ;;
  16621.         esac
  16622.         ;;
  16623.       mingw* | cygwin* | os2* | pw32* | cegcc*)
  16624.         # This hack is so that the source file can tell whether it is being
  16625.         # built for inclusion in a dll (and should export symbols for example).
  16626.         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  16627.         ;;
  16628.       dgux*)
  16629.         case $cc_basename in
  16630.           ec++*)
  16631.             lt_prog_compiler_pic_CXX='-KPIC'
  16632.             ;;
  16633.           ghcx*)
  16634.             # Green Hills C++ Compiler
  16635.             lt_prog_compiler_pic_CXX='-pic'
  16636.             ;;
  16637.           *)
  16638.             ;;
  16639.         esac
  16640.         ;;
  16641.       freebsd* | dragonfly*)
  16642.         # FreeBSD uses GNU C++
  16643.         ;;
  16644.       hpux9* | hpux10* | hpux11*)
  16645.         case $cc_basename in
  16646.           CC*)
  16647.             lt_prog_compiler_wl_CXX='-Wl,'
  16648.             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  16649.             if test ia64 != "$host_cpu"; then
  16650.               lt_prog_compiler_pic_CXX='+Z'
  16651.             fi
  16652.             ;;
  16653.           aCC*)
  16654.             lt_prog_compiler_wl_CXX='-Wl,'
  16655.             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
  16656.             case $host_cpu in
  16657.             hppa*64*|ia64*)
  16658.               # +Z the default
  16659.               ;;
  16660.             *)
  16661.               lt_prog_compiler_pic_CXX='+Z'
  16662.               ;;
  16663.             esac
  16664.             ;;
  16665.           *)
  16666.             ;;
  16667.         esac
  16668.         ;;
  16669.       interix*)
  16670.         # This is c89, which is MS Visual C++ (no shared libs)
  16671.         # Anyone wants to do a port?
  16672.         ;;
  16673.       irix5* | irix6* | nonstopux*)
  16674.         case $cc_basename in
  16675.           CC*)
  16676.             lt_prog_compiler_wl_CXX='-Wl,'
  16677.             lt_prog_compiler_static_CXX='-non_shared'
  16678.             # CC pic flag -KPIC is the default.
  16679.             ;;
  16680.           *)
  16681.             ;;
  16682.         esac
  16683.         ;;
  16684.       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  16685.         case $cc_basename in
  16686.           KCC*)
  16687.             # KAI C++ Compiler
  16688.             lt_prog_compiler_wl_CXX='--backend -Wl,'
  16689.             lt_prog_compiler_pic_CXX='-fPIC'
  16690.             ;;
  16691.           ecpc* )
  16692.             # old Intel C++ for x86_64, which still supported -KPIC.
  16693.             lt_prog_compiler_wl_CXX='-Wl,'
  16694.             lt_prog_compiler_pic_CXX='-KPIC'
  16695.             lt_prog_compiler_static_CXX='-static'
  16696.             ;;
  16697.           icpc* )
  16698.             # Intel C++, used to be incompatible with GCC.
  16699.             # ICC 10 doesn't accept -KPIC any more.
  16700.             lt_prog_compiler_wl_CXX='-Wl,'
  16701.             lt_prog_compiler_pic_CXX='-fPIC'
  16702.             lt_prog_compiler_static_CXX='-static'
  16703.             ;;
  16704.           pgCC* | pgcpp*)
  16705.             # Portland Group C++ compiler
  16706.             lt_prog_compiler_wl_CXX='-Wl,'
  16707.             lt_prog_compiler_pic_CXX='-fpic'
  16708.             lt_prog_compiler_static_CXX='-Bstatic'
  16709.             ;;
  16710.           cxx*)
  16711.             # Compaq C++
  16712.             # Make sure the PIC flag is empty.  It appears that all Alpha
  16713.             # Linux and Compaq Tru64 Unix objects are PIC.
  16714.             lt_prog_compiler_pic_CXX=
  16715.             lt_prog_compiler_static_CXX='-non_shared'
  16716.             ;;
  16717.           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  16718.             # IBM XL 8.0, 9.0 on PPC and BlueGene
  16719.             lt_prog_compiler_wl_CXX='-Wl,'
  16720.             lt_prog_compiler_pic_CXX='-qpic'
  16721.             lt_prog_compiler_static_CXX='-qstaticlink'
  16722.             ;;
  16723.           *)
  16724.             case `$CC -V 2>&1 | sed 5q` in
  16725.             *Sun\ C*)
  16726.               # Sun C++ 5.9
  16727.               lt_prog_compiler_pic_CXX='-KPIC'
  16728.               lt_prog_compiler_static_CXX='-Bstatic'
  16729.               lt_prog_compiler_wl_CXX='-Qoption ld '
  16730.               ;;
  16731.             esac
  16732.             ;;
  16733.         esac
  16734.         ;;
  16735.       lynxos*)
  16736.         ;;
  16737.       m88k*)
  16738.         ;;
  16739.       mvs*)
  16740.         case $cc_basename in
  16741.           cxx*)
  16742.             lt_prog_compiler_pic_CXX='-W c,exportall'
  16743.             ;;
  16744.           *)
  16745.             ;;
  16746.         esac
  16747.         ;;
  16748.       netbsd*)
  16749.         ;;
  16750.       *qnx* | *nto*)
  16751.         # QNX uses GNU C++, but need to define -shared option too, otherwise
  16752.         # it will coredump.
  16753.         lt_prog_compiler_pic_CXX='-fPIC -shared'
  16754.         ;;
  16755.       osf3* | osf4* | osf5*)
  16756.         case $cc_basename in
  16757.           KCC*)
  16758.             lt_prog_compiler_wl_CXX='--backend -Wl,'
  16759.             ;;
  16760.           RCC*)
  16761.             # Rational C++ 2.4.1
  16762.             lt_prog_compiler_pic_CXX='-pic'
  16763.             ;;
  16764.           cxx*)
  16765.             # Digital/Compaq C++
  16766.             lt_prog_compiler_wl_CXX='-Wl,'
  16767.             # Make sure the PIC flag is empty.  It appears that all Alpha
  16768.             # Linux and Compaq Tru64 Unix objects are PIC.
  16769.             lt_prog_compiler_pic_CXX=
  16770.             lt_prog_compiler_static_CXX='-non_shared'
  16771.             ;;
  16772.           *)
  16773.             ;;
  16774.         esac
  16775.         ;;
  16776.       psos*)
  16777.         ;;
  16778.       solaris*)
  16779.         case $cc_basename in
  16780.           CC* | sunCC*)
  16781.             # Sun C++ 4.2, 5.x and Centerline C++
  16782.             lt_prog_compiler_pic_CXX='-KPIC'
  16783.             lt_prog_compiler_static_CXX='-Bstatic'
  16784.             lt_prog_compiler_wl_CXX='-Qoption ld '
  16785.             ;;
  16786.           gcx*)
  16787.             # Green Hills C++ Compiler
  16788.             lt_prog_compiler_pic_CXX='-PIC'
  16789.             ;;
  16790.           *)
  16791.             ;;
  16792.         esac
  16793.         ;;
  16794.       sunos4*)
  16795.         case $cc_basename in
  16796.           CC*)
  16797.             # Sun C++ 4.x
  16798.             lt_prog_compiler_pic_CXX='-pic'
  16799.             lt_prog_compiler_static_CXX='-Bstatic'
  16800.             ;;
  16801.           lcc*)
  16802.             # Lucid
  16803.             lt_prog_compiler_pic_CXX='-pic'
  16804.             ;;
  16805.           *)
  16806.             ;;
  16807.         esac
  16808.         ;;
  16809.       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  16810.         case $cc_basename in
  16811.           CC*)
  16812.             lt_prog_compiler_wl_CXX='-Wl,'
  16813.             lt_prog_compiler_pic_CXX='-KPIC'
  16814.             lt_prog_compiler_static_CXX='-Bstatic'
  16815.             ;;
  16816.         esac
  16817.         ;;
  16818.       tandem*)
  16819.         case $cc_basename in
  16820.           NCC*)
  16821.             # NonStop-UX NCC 3.20
  16822.             lt_prog_compiler_pic_CXX='-KPIC'
  16823.             ;;
  16824.           *)
  16825.             ;;
  16826.         esac
  16827.         ;;
  16828.       vxworks*)
  16829.         ;;
  16830.       *)
  16831.         lt_prog_compiler_can_build_shared_CXX=no
  16832.         ;;
  16833.     esac
  16834.   fi
  16835.  
  16836. case $host_os in
  16837.   # For platforms that do not support PIC, -DPIC is meaningless:
  16838.   *djgpp*)
  16839.     lt_prog_compiler_pic_CXX=
  16840.     ;;
  16841.   *)
  16842.     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  16843.     ;;
  16844. esac
  16845.  
  16846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  16847. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  16848. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  16849.   $as_echo_n "(cached) " >&6
  16850. else
  16851.   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  16852. fi
  16853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  16854. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  16855. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  16856.  
  16857. #
  16858. # Check to make sure the PIC flag actually works.
  16859. #
  16860. if test -n "$lt_prog_compiler_pic_CXX"; then
  16861.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  16862. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  16863. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  16864.   $as_echo_n "(cached) " >&6
  16865. else
  16866.   lt_cv_prog_compiler_pic_works_CXX=no
  16867.    ac_outfile=conftest.$ac_objext
  16868.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16869.    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
  16870.    # Insert the option either (1) after the last *FLAGS variable, or
  16871.    # (2) before a word containing "conftest.", or (3) at the end.
  16872.    # Note that $ac_compile itself does not contain backslashes and begins
  16873.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  16874.    # The option is referenced via a variable to avoid confusing sed.
  16875.    lt_compile=`echo "$ac_compile" | $SED \
  16876.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  16877.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16878.    -e 's:$: $lt_compiler_flag:'`
  16879.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  16880.    (eval "$lt_compile" 2>conftest.err)
  16881.    ac_status=$?
  16882.    cat conftest.err >&5
  16883.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16884.    if (exit $ac_status) && test -s "$ac_outfile"; then
  16885.      # The compiler can only warn and ignore the option if not recognized
  16886.      # So say no if there are warnings other than the usual output.
  16887.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  16888.      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  16889.      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  16890.        lt_cv_prog_compiler_pic_works_CXX=yes
  16891.      fi
  16892.    fi
  16893.    $RM conftest*
  16894.  
  16895. fi
  16896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  16897. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  16898.  
  16899. if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
  16900.     case $lt_prog_compiler_pic_CXX in
  16901.      "" | " "*) ;;
  16902.      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  16903.      esac
  16904. else
  16905.     lt_prog_compiler_pic_CXX=
  16906.      lt_prog_compiler_can_build_shared_CXX=no
  16907. fi
  16908.  
  16909. fi
  16910.  
  16911.  
  16912.  
  16913.  
  16914.  
  16915. #
  16916. # Check to make sure the static flag actually works.
  16917. #
  16918. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  16919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  16920. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  16921. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  16922.   $as_echo_n "(cached) " >&6
  16923. else
  16924.   lt_cv_prog_compiler_static_works_CXX=no
  16925.    save_LDFLAGS=$LDFLAGS
  16926.    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  16927.    echo "$lt_simple_link_test_code" > conftest.$ac_ext
  16928.    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  16929.      # The linker can only warn and ignore the option if not recognized
  16930.      # So say no if there are warnings
  16931.      if test -s conftest.err; then
  16932.        # Append any errors to the config.log.
  16933.        cat conftest.err 1>&5
  16934.        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  16935.        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  16936.        if diff conftest.exp conftest.er2 >/dev/null; then
  16937.          lt_cv_prog_compiler_static_works_CXX=yes
  16938.        fi
  16939.      else
  16940.        lt_cv_prog_compiler_static_works_CXX=yes
  16941.      fi
  16942.    fi
  16943.    $RM -r conftest*
  16944.    LDFLAGS=$save_LDFLAGS
  16945.  
  16946. fi
  16947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  16948. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  16949.  
  16950. if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
  16951.     :
  16952. else
  16953.     lt_prog_compiler_static_CXX=
  16954. fi
  16955.  
  16956.  
  16957.  
  16958.  
  16959.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  16960. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  16961. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  16962.   $as_echo_n "(cached) " >&6
  16963. else
  16964.   lt_cv_prog_compiler_c_o_CXX=no
  16965.    $RM -r conftest 2>/dev/null
  16966.    mkdir conftest
  16967.    cd conftest
  16968.    mkdir out
  16969.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16970.  
  16971.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  16972.    # Insert the option either (1) after the last *FLAGS variable, or
  16973.    # (2) before a word containing "conftest.", or (3) at the end.
  16974.    # Note that $ac_compile itself does not contain backslashes and begins
  16975.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  16976.    lt_compile=`echo "$ac_compile" | $SED \
  16977.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  16978.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  16979.    -e 's:$: $lt_compiler_flag:'`
  16980.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  16981.    (eval "$lt_compile" 2>out/conftest.err)
  16982.    ac_status=$?
  16983.    cat out/conftest.err >&5
  16984.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16985.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  16986.    then
  16987.      # The compiler can only warn and ignore the option if not recognized
  16988.      # So say no if there are warnings
  16989.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  16990.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  16991.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  16992.        lt_cv_prog_compiler_c_o_CXX=yes
  16993.      fi
  16994.    fi
  16995.    chmod u+w . 2>&5
  16996.    $RM conftest*
  16997.    # SGI C++ compiler will create directory out/ii_files/ for
  16998.    # template instantiation
  16999.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  17000.    $RM out/* && rmdir out
  17001.    cd ..
  17002.    $RM -r conftest
  17003.    $RM conftest*
  17004.  
  17005. fi
  17006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  17007. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  17008.  
  17009.  
  17010.  
  17011.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  17012. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  17013. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  17014.   $as_echo_n "(cached) " >&6
  17015. else
  17016.   lt_cv_prog_compiler_c_o_CXX=no
  17017.    $RM -r conftest 2>/dev/null
  17018.    mkdir conftest
  17019.    cd conftest
  17020.    mkdir out
  17021.    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17022.  
  17023.    lt_compiler_flag="-o out/conftest2.$ac_objext"
  17024.    # Insert the option either (1) after the last *FLAGS variable, or
  17025.    # (2) before a word containing "conftest.", or (3) at the end.
  17026.    # Note that $ac_compile itself does not contain backslashes and begins
  17027.    # with a dollar sign (not a hyphen), so the echo should work correctly.
  17028.    lt_compile=`echo "$ac_compile" | $SED \
  17029.    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17030.    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17031.    -e 's:$: $lt_compiler_flag:'`
  17032.    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  17033.    (eval "$lt_compile" 2>out/conftest.err)
  17034.    ac_status=$?
  17035.    cat out/conftest.err >&5
  17036.    echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17037.    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  17038.    then
  17039.      # The compiler can only warn and ignore the option if not recognized
  17040.      # So say no if there are warnings
  17041.      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  17042.      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  17043.      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  17044.        lt_cv_prog_compiler_c_o_CXX=yes
  17045.      fi
  17046.    fi
  17047.    chmod u+w . 2>&5
  17048.    $RM conftest*
  17049.    # SGI C++ compiler will create directory out/ii_files/ for
  17050.    # template instantiation
  17051.    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  17052.    $RM out/* && rmdir out
  17053.    cd ..
  17054.    $RM -r conftest
  17055.    $RM conftest*
  17056.  
  17057. fi
  17058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  17059. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  17060.  
  17061.  
  17062.  
  17063.  
  17064. hard_links=nottested
  17065. if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
  17066.   # do not overwrite the value of need_locks provided by the user
  17067.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  17068. $as_echo_n "checking if we can lock with hard links... " >&6; }
  17069.   hard_links=yes
  17070.   $RM conftest*
  17071.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  17072.   touch conftest.a
  17073.   ln conftest.a conftest.b 2>&5 || hard_links=no
  17074.   ln conftest.a conftest.b 2>/dev/null && hard_links=no
  17075.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  17076. $as_echo "$hard_links" >&6; }
  17077.   if test no = "$hard_links"; then
  17078.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  17079. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  17080.     need_locks=warn
  17081.   fi
  17082. else
  17083.   need_locks=no
  17084. fi
  17085.  
  17086.  
  17087.  
  17088.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  17089. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  17090.  
  17091.   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  17092.   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  17093.   case $host_os in
  17094.   aix[4-9]*)
  17095.     # If we're using GNU nm, then we don't want the "-C" option.
  17096.     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  17097.     # Without the "-l" option, or with the "-B" option, AIX nm treats
  17098.     # weak defined symbols like other global defined symbols, whereas
  17099.     # GNU nm marks them as "W".
  17100.     # While the 'weak' keyword is ignored in the Export File, we need
  17101.     # it in the Import File for the 'aix-soname' feature, so we have
  17102.     # to replace the "-B" option with "-P" for AIX nm.
  17103.     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  17104.       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  17105.     else
  17106.       export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  17107.     fi
  17108.     ;;
  17109.   pw32*)
  17110.     export_symbols_cmds_CXX=$ltdll_cmds
  17111.     ;;
  17112.   cygwin* | mingw* | cegcc*)
  17113.     case $cc_basename in
  17114.     cl*)
  17115.       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  17116.       ;;
  17117.     *)
  17118.       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'
  17119.       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  17120.       ;;
  17121.     esac
  17122.     ;;
  17123.   *)
  17124.     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  17125.     ;;
  17126.   esac
  17127.  
  17128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  17129. $as_echo "$ld_shlibs_CXX" >&6; }
  17130. test no = "$ld_shlibs_CXX" && can_build_shared=no
  17131.  
  17132. with_gnu_ld_CXX=$with_gnu_ld
  17133.  
  17134.  
  17135.  
  17136.  
  17137.  
  17138.  
  17139. #
  17140. # Do we need to explicitly link libc?
  17141. #
  17142. case "x$archive_cmds_need_lc_CXX" in
  17143. x|xyes)
  17144.   # Assume -lc should be added
  17145.   archive_cmds_need_lc_CXX=yes
  17146.  
  17147.   if test yes,yes = "$GCC,$enable_shared"; then
  17148.     case $archive_cmds_CXX in
  17149.     *'~'*)
  17150.       # FIXME: we may have to deal with multi-command sequences.
  17151.       ;;
  17152.     '$CC '*)
  17153.       # Test whether the compiler implicitly links with -lc since on some
  17154.       # systems, -lgcc has to come before -lc. If gcc already passes -lc
  17155.       # to ld, don't add -lc before -lgcc.
  17156.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  17157. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  17158. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  17159.   $as_echo_n "(cached) " >&6
  17160. else
  17161.   $RM conftest*
  17162.         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17163.  
  17164.         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  17165.   (eval $ac_compile) 2>&5
  17166.   ac_status=$?
  17167.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17168.   test $ac_status = 0; } 2>conftest.err; then
  17169.           soname=conftest
  17170.           lib=conftest
  17171.           libobjs=conftest.$ac_objext
  17172.           deplibs=
  17173.           wl=$lt_prog_compiler_wl_CXX
  17174.           pic_flag=$lt_prog_compiler_pic_CXX
  17175.           compiler_flags=-v
  17176.           linker_flags=-v
  17177.           verstring=
  17178.           output_objdir=.
  17179.           libname=conftest
  17180.           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  17181.           allow_undefined_flag_CXX=
  17182.           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  17183.   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  17184.   ac_status=$?
  17185.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17186.   test $ac_status = 0; }
  17187.           then
  17188.             lt_cv_archive_cmds_need_lc_CXX=no
  17189.           else
  17190.             lt_cv_archive_cmds_need_lc_CXX=yes
  17191.           fi
  17192.           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  17193.         else
  17194.           cat conftest.err 1>&5
  17195.         fi
  17196.         $RM conftest*
  17197.  
  17198. fi
  17199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  17200. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  17201.       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  17202.       ;;
  17203.     esac
  17204.   fi
  17205.   ;;
  17206. esac
  17207.  
  17208.  
  17209.  
  17210.  
  17211.  
  17212.  
  17213.  
  17214.  
  17215.  
  17216.  
  17217.  
  17218.  
  17219.  
  17220.  
  17221.  
  17222.  
  17223.  
  17224.  
  17225.  
  17226.  
  17227.  
  17228.  
  17229.  
  17230.  
  17231.  
  17232.  
  17233.  
  17234.  
  17235.  
  17236.  
  17237.  
  17238.  
  17239.  
  17240.  
  17241.  
  17242.  
  17243.  
  17244.  
  17245.  
  17246.  
  17247.  
  17248.  
  17249.  
  17250.  
  17251.  
  17252.  
  17253.  
  17254.  
  17255.  
  17256.  
  17257.  
  17258.  
  17259.  
  17260.  
  17261.  
  17262.  
  17263.  
  17264.  
  17265.  
  17266.  
  17267.  
  17268.  
  17269.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  17270. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  17271.  
  17272. library_names_spec=
  17273. libname_spec='lib$name'
  17274. soname_spec=
  17275. shrext_cmds=.so
  17276. postinstall_cmds=
  17277. postuninstall_cmds=
  17278. finish_cmds=
  17279. finish_eval=
  17280. shlibpath_var=
  17281. shlibpath_overrides_runpath=unknown
  17282. version_type=none
  17283. dynamic_linker="$host_os ld.so"
  17284. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  17285. need_lib_prefix=unknown
  17286. hardcode_into_libs=no
  17287.  
  17288. # when you set need_version to no, make sure it does not cause -set_version
  17289. # flags to be left without arguments
  17290. need_version=unknown
  17291.  
  17292.  
  17293.  
  17294. case $host_os in
  17295. aix3*)
  17296.   version_type=linux # correct to gnu/linux during the next big refactor
  17297.   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  17298.   shlibpath_var=LIBPATH
  17299.  
  17300.   # AIX 3 has no versioning support, so we append a major version to the name.
  17301.   soname_spec='$libname$release$shared_ext$major'
  17302.   ;;
  17303.  
  17304. aix[4-9]*)
  17305.   version_type=linux # correct to gnu/linux during the next big refactor
  17306.   need_lib_prefix=no
  17307.   need_version=no
  17308.   hardcode_into_libs=yes
  17309.   if test ia64 = "$host_cpu"; then
  17310.     # AIX 5 supports IA64
  17311.     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  17312.     shlibpath_var=LD_LIBRARY_PATH
  17313.   else
  17314.     # With GCC up to 2.95.x, collect2 would create an import file
  17315.     # for dependence libraries.  The import file would start with
  17316.     # the line '#! .'.  This would cause the generated library to
  17317.     # depend on '.', always an invalid library.  This was fixed in
  17318.     # development snapshots of GCC prior to 3.0.
  17319.     case $host_os in
  17320.       aix4 | aix4.[01] | aix4.[01].*)
  17321.       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  17322.            echo ' yes '
  17323.            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  17324.         :
  17325.       else
  17326.         can_build_shared=no
  17327.       fi
  17328.       ;;
  17329.     esac
  17330.     # Using Import Files as archive members, it is possible to support
  17331.     # filename-based versioning of shared library archives on AIX. While
  17332.     # this would work for both with and without runtime linking, it will
  17333.     # prevent static linking of such archives. So we do filename-based
  17334.     # shared library versioning with .so extension only, which is used
  17335.     # when both runtime linking and shared linking is enabled.
  17336.     # Unfortunately, runtime linking may impact performance, so we do
  17337.     # not want this to be the default eventually. Also, we use the
  17338.     # versioned .so libs for executables only if there is the -brtl
  17339.     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  17340.     # To allow for filename-based versioning support, we need to create
  17341.     # libNAME.so.V as an archive file, containing:
  17342.     # *) an Import File, referring to the versioned filename of the
  17343.     #    archive as well as the shared archive member, telling the
  17344.     #    bitwidth (32 or 64) of that shared object, and providing the
  17345.     #    list of exported symbols of that shared object, eventually
  17346.     #    decorated with the 'weak' keyword
  17347.     # *) the shared object with the F_LOADONLY flag set, to really avoid
  17348.     #    it being seen by the linker.
  17349.     # At run time we better use the real file rather than another symlink,
  17350.     # but for link time we create the symlink libNAME.so -> libNAME.so.V
  17351.  
  17352.     case $with_aix_soname,$aix_use_runtimelinking in
  17353.     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  17354.     # soname into executable. Probably we can add versioning support to
  17355.     # collect2, so additional links can be useful in future.
  17356.     aix,yes) # traditional libtool
  17357.       dynamic_linker='AIX unversionable lib.so'
  17358.       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  17359.       # instead of lib<name>.a to let people know that these are not
  17360.       # typical AIX shared libraries.
  17361.       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17362.       ;;
  17363.     aix,no) # traditional AIX only
  17364.       dynamic_linker='AIX lib.a(lib.so.V)'
  17365.       # We preserve .a as extension for shared libraries through AIX4.2
  17366.       # and later when we are not doing run time linking.
  17367.       library_names_spec='$libname$release.a $libname.a'
  17368.       soname_spec='$libname$release$shared_ext$major'
  17369.       ;;
  17370.     svr4,*) # full svr4 only
  17371.       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  17372.       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  17373.       # We do not specify a path in Import Files, so LIBPATH fires.
  17374.       shlibpath_overrides_runpath=yes
  17375.       ;;
  17376.     *,yes) # both, prefer svr4
  17377.       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  17378.       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  17379.       # unpreferred sharedlib libNAME.a needs extra handling
  17380.       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  17381.       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  17382.       # We do not specify a path in Import Files, so LIBPATH fires.
  17383.       shlibpath_overrides_runpath=yes
  17384.       ;;
  17385.     *,no) # both, prefer aix
  17386.       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  17387.       library_names_spec='$libname$release.a $libname.a'
  17388.       soname_spec='$libname$release$shared_ext$major'
  17389.       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  17390.       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  17391.       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  17392.       ;;
  17393.     esac
  17394.     shlibpath_var=LIBPATH
  17395.   fi
  17396.   ;;
  17397.  
  17398. amigaos*)
  17399.   case $host_cpu in
  17400.   powerpc)
  17401.     # Since July 2007 AmigaOS4 officially supports .so libraries.
  17402.     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  17403.     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17404.     ;;
  17405.   m68k)
  17406.     library_names_spec='$libname.ixlibrary $libname.a'
  17407.     # Create ${libname}_ixlibrary.a entries in /sys/libs.
  17408.     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  17409.     ;;
  17410.   esac
  17411.   ;;
  17412.  
  17413. beos*)
  17414.   library_names_spec='$libname$shared_ext'
  17415.   dynamic_linker="$host_os ld.so"
  17416.   shlibpath_var=LIBRARY_PATH
  17417.   ;;
  17418.  
  17419. bsdi[45]*)
  17420.   version_type=linux # correct to gnu/linux during the next big refactor
  17421.   need_version=no
  17422.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17423.   soname_spec='$libname$release$shared_ext$major'
  17424.   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  17425.   shlibpath_var=LD_LIBRARY_PATH
  17426.   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  17427.   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  17428.   # the default ld.so.conf also contains /usr/contrib/lib and
  17429.   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  17430.   # libtool to hard-code these into programs
  17431.   ;;
  17432.  
  17433. cygwin* | mingw* | pw32* | cegcc*)
  17434.   version_type=windows
  17435.   shrext_cmds=.dll
  17436.   need_version=no
  17437.   need_lib_prefix=no
  17438.  
  17439.   case $GCC,$cc_basename in
  17440.   yes,*)
  17441.     # gcc
  17442.     library_names_spec='$libname.dll.a'
  17443.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  17444.     postinstall_cmds='base_file=`basename \$file`~
  17445.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  17446.       dldir=$destdir/`dirname \$dlpath`~
  17447.       test -d \$dldir || mkdir -p \$dldir~
  17448.       $install_prog $dir/$dlname \$dldir/$dlname~
  17449.       chmod a+x \$dldir/$dlname~
  17450.       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  17451.         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  17452.       fi'
  17453.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  17454.       dlpath=$dir/\$dldll~
  17455.        $RM \$dlpath'
  17456.     shlibpath_overrides_runpath=yes
  17457.  
  17458.     case $host_os in
  17459.     cygwin*)
  17460.       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  17461.       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  17462.  
  17463.       ;;
  17464.     mingw* | cegcc*)
  17465.       # MinGW DLLs use traditional 'lib' prefix
  17466.       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  17467.       ;;
  17468.     pw32*)
  17469.       # pw32 DLLs use 'pw' prefix rather than 'lib'
  17470.       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  17471.       ;;
  17472.     esac
  17473.     dynamic_linker='Win32 ld.exe'
  17474.     ;;
  17475.  
  17476.   *,cl*)
  17477.     # Native MSVC
  17478.     libname_spec='$name'
  17479.     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  17480.     library_names_spec='$libname.dll.lib'
  17481.  
  17482.     case $build_os in
  17483.     mingw*)
  17484.       sys_lib_search_path_spec=
  17485.       lt_save_ifs=$IFS
  17486.       IFS=';'
  17487.       for lt_path in $LIB
  17488.       do
  17489.         IFS=$lt_save_ifs
  17490.         # Let DOS variable expansion print the short 8.3 style file name.
  17491.         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  17492.         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  17493.       done
  17494.       IFS=$lt_save_ifs
  17495.       # Convert to MSYS style.
  17496.       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  17497.       ;;
  17498.     cygwin*)
  17499.       # Convert to unix form, then to dos form, then back to unix form
  17500.       # but this time dos style (no spaces!) so that the unix form looks
  17501.       # like /cygdrive/c/PROGRA~1:/cygdr...
  17502.       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  17503.       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  17504.       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  17505.       ;;
  17506.     *)
  17507.       sys_lib_search_path_spec=$LIB
  17508.       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  17509.         # It is most probably a Windows format PATH.
  17510.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  17511.       else
  17512.         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  17513.       fi
  17514.       # FIXME: find the short name or the path components, as spaces are
  17515.       # common. (e.g. "Program Files" -> "PROGRA~1")
  17516.       ;;
  17517.     esac
  17518.  
  17519.     # DLL is installed to $(libdir)/../bin by postinstall_cmds
  17520.     postinstall_cmds='base_file=`basename \$file`~
  17521.       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  17522.       dldir=$destdir/`dirname \$dlpath`~
  17523.       test -d \$dldir || mkdir -p \$dldir~
  17524.       $install_prog $dir/$dlname \$dldir/$dlname'
  17525.     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  17526.       dlpath=$dir/\$dldll~
  17527.        $RM \$dlpath'
  17528.     shlibpath_overrides_runpath=yes
  17529.     dynamic_linker='Win32 link.exe'
  17530.     ;;
  17531.  
  17532.   *)
  17533.     # Assume MSVC wrapper
  17534.     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  17535.     dynamic_linker='Win32 ld.exe'
  17536.     ;;
  17537.   esac
  17538.   # FIXME: first we should search . and the directory the executable is in
  17539.   shlibpath_var=PATH
  17540.   ;;
  17541.  
  17542. darwin* | rhapsody*)
  17543.   dynamic_linker="$host_os dyld"
  17544.   version_type=darwin
  17545.   need_lib_prefix=no
  17546.   need_version=no
  17547.   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  17548.   soname_spec='$libname$release$major$shared_ext'
  17549.   shlibpath_overrides_runpath=yes
  17550.   shlibpath_var=DYLD_LIBRARY_PATH
  17551.   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  17552.  
  17553.   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  17554.   ;;
  17555.  
  17556. dgux*)
  17557.   version_type=linux # correct to gnu/linux during the next big refactor
  17558.   need_lib_prefix=no
  17559.   need_version=no
  17560.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17561.   soname_spec='$libname$release$shared_ext$major'
  17562.   shlibpath_var=LD_LIBRARY_PATH
  17563.   ;;
  17564.  
  17565. freebsd* | dragonfly*)
  17566.   # DragonFly does not have aout.  When/if they implement a new
  17567.   # versioning mechanism, adjust this.
  17568.   if test -x /usr/bin/objformat; then
  17569.     objformat=`/usr/bin/objformat`
  17570.   else
  17571.     case $host_os in
  17572.     freebsd[23].*) objformat=aout ;;
  17573.     *) objformat=elf ;;
  17574.     esac
  17575.   fi
  17576.   version_type=freebsd-$objformat
  17577.   case $version_type in
  17578.     freebsd-elf*)
  17579.       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17580.       soname_spec='$libname$release$shared_ext$major'
  17581.       need_version=no
  17582.       need_lib_prefix=no
  17583.       ;;
  17584.     freebsd-*)
  17585.       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  17586.       need_version=yes
  17587.       ;;
  17588.   esac
  17589.   shlibpath_var=LD_LIBRARY_PATH
  17590.   case $host_os in
  17591.   freebsd2.*)
  17592.     shlibpath_overrides_runpath=yes
  17593.     ;;
  17594.   freebsd3.[01]* | freebsdelf3.[01]*)
  17595.     shlibpath_overrides_runpath=yes
  17596.     hardcode_into_libs=yes
  17597.     ;;
  17598.   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  17599.   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  17600.     shlibpath_overrides_runpath=no
  17601.     hardcode_into_libs=yes
  17602.     ;;
  17603.   *) # from 4.6 on, and DragonFly
  17604.     shlibpath_overrides_runpath=yes
  17605.     hardcode_into_libs=yes
  17606.     ;;
  17607.   esac
  17608.   ;;
  17609.  
  17610. haiku*)
  17611.   version_type=linux # correct to gnu/linux during the next big refactor
  17612.   need_lib_prefix=no
  17613.   need_version=no
  17614.   dynamic_linker="$host_os runtime_loader"
  17615.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17616.   soname_spec='$libname$release$shared_ext$major'
  17617.   shlibpath_var=LIBRARY_PATH
  17618.   shlibpath_overrides_runpath=no
  17619.   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  17620.   hardcode_into_libs=yes
  17621.   ;;
  17622.  
  17623. hpux9* | hpux10* | hpux11*)
  17624.   # Give a soname corresponding to the major version so that dld.sl refuses to
  17625.   # link against other versions.
  17626.   version_type=sunos
  17627.   need_lib_prefix=no
  17628.   need_version=no
  17629.   case $host_cpu in
  17630.   ia64*)
  17631.     shrext_cmds='.so'
  17632.     hardcode_into_libs=yes
  17633.     dynamic_linker="$host_os dld.so"
  17634.     shlibpath_var=LD_LIBRARY_PATH
  17635.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  17636.     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17637.     soname_spec='$libname$release$shared_ext$major'
  17638.     if test 32 = "$HPUX_IA64_MODE"; then
  17639.       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  17640.       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  17641.     else
  17642.       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  17643.       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  17644.     fi
  17645.     ;;
  17646.   hppa*64*)
  17647.     shrext_cmds='.sl'
  17648.     hardcode_into_libs=yes
  17649.     dynamic_linker="$host_os dld.sl"
  17650.     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  17651.     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  17652.     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17653.     soname_spec='$libname$release$shared_ext$major'
  17654.     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  17655.     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17656.     ;;
  17657.   *)
  17658.     shrext_cmds='.sl'
  17659.     dynamic_linker="$host_os dld.sl"
  17660.     shlibpath_var=SHLIB_PATH
  17661.     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  17662.     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17663.     soname_spec='$libname$release$shared_ext$major'
  17664.     ;;
  17665.   esac
  17666.   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  17667.   postinstall_cmds='chmod 555 $lib'
  17668.   # or fails outright, so override atomically:
  17669.   install_override_mode=555
  17670.   ;;
  17671.  
  17672. interix[3-9]*)
  17673.   version_type=linux # correct to gnu/linux during the next big refactor
  17674.   need_lib_prefix=no
  17675.   need_version=no
  17676.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17677.   soname_spec='$libname$release$shared_ext$major'
  17678.   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  17679.   shlibpath_var=LD_LIBRARY_PATH
  17680.   shlibpath_overrides_runpath=no
  17681.   hardcode_into_libs=yes
  17682.   ;;
  17683.  
  17684. irix5* | irix6* | nonstopux*)
  17685.   case $host_os in
  17686.     nonstopux*) version_type=nonstopux ;;
  17687.     *)
  17688.         if test yes = "$lt_cv_prog_gnu_ld"; then
  17689.                 version_type=linux # correct to gnu/linux during the next big refactor
  17690.         else
  17691.                 version_type=irix
  17692.         fi ;;
  17693.   esac
  17694.   need_lib_prefix=no
  17695.   need_version=no
  17696.   soname_spec='$libname$release$shared_ext$major'
  17697.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  17698.   case $host_os in
  17699.   irix5* | nonstopux*)
  17700.     libsuff= shlibsuff=
  17701.     ;;
  17702.   *)
  17703.     case $LD in # libtool.m4 will add one of these switches to LD
  17704.     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  17705.       libsuff= shlibsuff= libmagic=32-bit;;
  17706.     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  17707.       libsuff=32 shlibsuff=N32 libmagic=N32;;
  17708.     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  17709.       libsuff=64 shlibsuff=64 libmagic=64-bit;;
  17710.     *) libsuff= shlibsuff= libmagic=never-match;;
  17711.     esac
  17712.     ;;
  17713.   esac
  17714.   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  17715.   shlibpath_overrides_runpath=no
  17716.   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  17717.   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  17718.   hardcode_into_libs=yes
  17719.   ;;
  17720.  
  17721. # No shared lib support for Linux oldld, aout, or coff.
  17722. linux*oldld* | linux*aout* | linux*coff*)
  17723.   dynamic_linker=no
  17724.   ;;
  17725.  
  17726. linux*android*)
  17727.   version_type=none # Android doesn't support versioned libraries.
  17728.   need_lib_prefix=no
  17729.   need_version=no
  17730.   library_names_spec='$libname$release$shared_ext'
  17731.   soname_spec='$libname$release$shared_ext'
  17732.   finish_cmds=
  17733.   shlibpath_var=LD_LIBRARY_PATH
  17734.   shlibpath_overrides_runpath=yes
  17735.  
  17736.   # This implies no fast_install, which is unacceptable.
  17737.   # Some rework will be needed to allow for fast_install
  17738.   # before this can be enabled.
  17739.   hardcode_into_libs=yes
  17740.  
  17741.   dynamic_linker='Android linker'
  17742.   # Don't embed -rpath directories since the linker doesn't support them.
  17743.   hardcode_libdir_flag_spec_CXX='-L$libdir'
  17744.   ;;
  17745.  
  17746. # This must be glibc/ELF.
  17747. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  17748.   version_type=linux # correct to gnu/linux during the next big refactor
  17749.   need_lib_prefix=no
  17750.   need_version=no
  17751.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17752.   soname_spec='$libname$release$shared_ext$major'
  17753.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  17754.   shlibpath_var=LD_LIBRARY_PATH
  17755.   shlibpath_overrides_runpath=no
  17756.  
  17757.   # Some binutils ld are patched to set DT_RUNPATH
  17758.   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  17759.   $as_echo_n "(cached) " >&6
  17760. else
  17761.   lt_cv_shlibpath_overrides_runpath=no
  17762.     save_LDFLAGS=$LDFLAGS
  17763.     save_libdir=$libdir
  17764.     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  17765.          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  17766.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17767. /* end confdefs.h.  */
  17768.  
  17769. int
  17770. main ()
  17771. {
  17772.  
  17773.   ;
  17774.   return 0;
  17775. }
  17776. _ACEOF
  17777. if ac_fn_cxx_try_link "$LINENO"; then :
  17778.   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  17779.   lt_cv_shlibpath_overrides_runpath=yes
  17780. fi
  17781. fi
  17782. rm -f core conftest.err conftest.$ac_objext \
  17783.     conftest$ac_exeext conftest.$ac_ext
  17784.     LDFLAGS=$save_LDFLAGS
  17785.     libdir=$save_libdir
  17786.  
  17787. fi
  17788.  
  17789.   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  17790.  
  17791.   # This implies no fast_install, which is unacceptable.
  17792.   # Some rework will be needed to allow for fast_install
  17793.   # before this can be enabled.
  17794.   hardcode_into_libs=yes
  17795.  
  17796.   # Ideally, we could use ldconfig to report *all* directores which are
  17797.   # searched for libraries, however this is still not possible.  Aside from not
  17798.   # being certain /sbin/ldconfig is available, command
  17799.   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  17800.   # even though it is searched at run-time.  Try to do the best guess by
  17801.   # appending ld.so.conf contents (and includes) to the search path.
  17802.   if test -f /etc/ld.so.conf; then
  17803.     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' ' '`
  17804.     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  17805.   fi
  17806.  
  17807.   # We used to test for /lib/ld.so.1 and disable shared libraries on
  17808.   # powerpc, because MkLinux only supported shared libraries with the
  17809.   # GNU dynamic linker.  Since this was broken with cross compilers,
  17810.   # most powerpc-linux boxes support dynamic linking these days and
  17811.   # people can always --disable-shared, the test was removed, and we
  17812.   # assume the GNU/Linux dynamic linker is in use.
  17813.   dynamic_linker='GNU/Linux ld.so'
  17814.   ;;
  17815.  
  17816. netbsd*)
  17817.   version_type=sunos
  17818.   need_lib_prefix=no
  17819.   need_version=no
  17820.   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  17821.     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  17822.     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  17823.     dynamic_linker='NetBSD (a.out) ld.so'
  17824.   else
  17825.     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17826.     soname_spec='$libname$release$shared_ext$major'
  17827.     dynamic_linker='NetBSD ld.elf_so'
  17828.   fi
  17829.   shlibpath_var=LD_LIBRARY_PATH
  17830.   shlibpath_overrides_runpath=yes
  17831.   hardcode_into_libs=yes
  17832.   ;;
  17833.  
  17834. newsos6)
  17835.   version_type=linux # correct to gnu/linux during the next big refactor
  17836.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17837.   shlibpath_var=LD_LIBRARY_PATH
  17838.   shlibpath_overrides_runpath=yes
  17839.   ;;
  17840.  
  17841. *nto* | *qnx*)
  17842.   version_type=qnx
  17843.   need_lib_prefix=no
  17844.   need_version=no
  17845.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17846.   soname_spec='$libname$release$shared_ext$major'
  17847.   shlibpath_var=LD_LIBRARY_PATH
  17848.   shlibpath_overrides_runpath=no
  17849.   hardcode_into_libs=yes
  17850.   dynamic_linker='ldqnx.so'
  17851.   ;;
  17852.  
  17853. openbsd* | bitrig*)
  17854.   version_type=sunos
  17855.   sys_lib_dlsearch_path_spec=/usr/lib
  17856.   need_lib_prefix=no
  17857.   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  17858.     need_version=no
  17859.   else
  17860.     need_version=yes
  17861.   fi
  17862.   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  17863.   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  17864.   shlibpath_var=LD_LIBRARY_PATH
  17865.   shlibpath_overrides_runpath=yes
  17866.   ;;
  17867.  
  17868. os2*)
  17869.   libname_spec='$name'
  17870.   version_type=windows
  17871.   shrext_cmds=.dll
  17872.   need_version=no
  17873.   need_lib_prefix=no
  17874.   # OS/2 can only load a DLL with a base name of 8 characters or less.
  17875.   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  17876.     v=$($ECHO $release$versuffix | tr -d .-);
  17877.     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  17878.     $ECHO $n$v`$shared_ext'
  17879.   library_names_spec='${libname}_dll.$libext'
  17880.   dynamic_linker='OS/2 ld.exe'
  17881.   shlibpath_var=BEGINLIBPATH
  17882.   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  17883.   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17884.   postinstall_cmds='base_file=`basename \$file`~
  17885.     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  17886.     dldir=$destdir/`dirname \$dlpath`~
  17887.     test -d \$dldir || mkdir -p \$dldir~
  17888.     $install_prog $dir/$dlname \$dldir/$dlname~
  17889.     chmod a+x \$dldir/$dlname~
  17890.     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  17891.       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  17892.     fi'
  17893.   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  17894.     dlpath=$dir/\$dldll~
  17895.     $RM \$dlpath'
  17896.   ;;
  17897.  
  17898. osf3* | osf4* | osf5*)
  17899.   version_type=osf
  17900.   need_lib_prefix=no
  17901.   need_version=no
  17902.   soname_spec='$libname$release$shared_ext$major'
  17903.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17904.   shlibpath_var=LD_LIBRARY_PATH
  17905.   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  17906.   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17907.   ;;
  17908.  
  17909. rdos*)
  17910.   dynamic_linker=no
  17911.   ;;
  17912.  
  17913. solaris*)
  17914.   version_type=linux # correct to gnu/linux during the next big refactor
  17915.   need_lib_prefix=no
  17916.   need_version=no
  17917.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17918.   soname_spec='$libname$release$shared_ext$major'
  17919.   shlibpath_var=LD_LIBRARY_PATH
  17920.   shlibpath_overrides_runpath=yes
  17921.   hardcode_into_libs=yes
  17922.   # ldd complains unless libraries are executable
  17923.   postinstall_cmds='chmod +x $lib'
  17924.   ;;
  17925.  
  17926. sunos4*)
  17927.   version_type=sunos
  17928.   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  17929.   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  17930.   shlibpath_var=LD_LIBRARY_PATH
  17931.   shlibpath_overrides_runpath=yes
  17932.   if test yes = "$with_gnu_ld"; then
  17933.     need_lib_prefix=no
  17934.   fi
  17935.   need_version=yes
  17936.   ;;
  17937.  
  17938. sysv4 | sysv4.3*)
  17939.   version_type=linux # correct to gnu/linux during the next big refactor
  17940.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17941.   soname_spec='$libname$release$shared_ext$major'
  17942.   shlibpath_var=LD_LIBRARY_PATH
  17943.   case $host_vendor in
  17944.     sni)
  17945.       shlibpath_overrides_runpath=no
  17946.       need_lib_prefix=no
  17947.       runpath_var=LD_RUN_PATH
  17948.       ;;
  17949.     siemens)
  17950.       need_lib_prefix=no
  17951.       ;;
  17952.     motorola)
  17953.       need_lib_prefix=no
  17954.       need_version=no
  17955.       shlibpath_overrides_runpath=no
  17956.       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  17957.       ;;
  17958.   esac
  17959.   ;;
  17960.  
  17961. sysv4*MP*)
  17962.   if test -d /usr/nec; then
  17963.     version_type=linux # correct to gnu/linux during the next big refactor
  17964.     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  17965.     soname_spec='$libname$shared_ext.$major'
  17966.     shlibpath_var=LD_LIBRARY_PATH
  17967.   fi
  17968.   ;;
  17969.  
  17970. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  17971.   version_type=sco
  17972.   need_lib_prefix=no
  17973.   need_version=no
  17974.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  17975.   soname_spec='$libname$release$shared_ext$major'
  17976.   shlibpath_var=LD_LIBRARY_PATH
  17977.   shlibpath_overrides_runpath=yes
  17978.   hardcode_into_libs=yes
  17979.   if test yes = "$with_gnu_ld"; then
  17980.     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  17981.   else
  17982.     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  17983.     case $host_os in
  17984.       sco3.2v5*)
  17985.         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  17986.         ;;
  17987.     esac
  17988.   fi
  17989.   sys_lib_dlsearch_path_spec='/usr/lib'
  17990.   ;;
  17991.  
  17992. tpf*)
  17993.   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  17994.   version_type=linux # correct to gnu/linux during the next big refactor
  17995.   need_lib_prefix=no
  17996.   need_version=no
  17997.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  17998.   shlibpath_var=LD_LIBRARY_PATH
  17999.   shlibpath_overrides_runpath=no
  18000.   hardcode_into_libs=yes
  18001.   ;;
  18002.  
  18003. uts4*)
  18004.   version_type=linux # correct to gnu/linux during the next big refactor
  18005.   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  18006.   soname_spec='$libname$release$shared_ext$major'
  18007.   shlibpath_var=LD_LIBRARY_PATH
  18008.   ;;
  18009.  
  18010. *)
  18011.   dynamic_linker=no
  18012.   ;;
  18013. esac
  18014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  18015. $as_echo "$dynamic_linker" >&6; }
  18016. test no = "$dynamic_linker" && can_build_shared=no
  18017.  
  18018. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  18019. if test yes = "$GCC"; then
  18020.   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  18021. fi
  18022.  
  18023. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  18024.   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  18025. fi
  18026.  
  18027. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  18028.   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  18029. fi
  18030.  
  18031. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  18032. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  18033.  
  18034. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  18035. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  18036.  
  18037. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  18038. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  18039.  
  18040.  
  18041.  
  18042.  
  18043.  
  18044.  
  18045.  
  18046.  
  18047.  
  18048.  
  18049.  
  18050.  
  18051.  
  18052.  
  18053.  
  18054.  
  18055.  
  18056.  
  18057.  
  18058.  
  18059.  
  18060.  
  18061.  
  18062.  
  18063.  
  18064.  
  18065.  
  18066.  
  18067.  
  18068.  
  18069.  
  18070.  
  18071.  
  18072.  
  18073.  
  18074.  
  18075.  
  18076.  
  18077.  
  18078.  
  18079.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  18080. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  18081. hardcode_action_CXX=
  18082. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  18083.    test -n "$runpath_var_CXX" ||
  18084.    test yes = "$hardcode_automatic_CXX"; then
  18085.  
  18086.   # We can hardcode non-existent directories.
  18087.   if test no != "$hardcode_direct_CXX" &&
  18088.      # If the only mechanism to avoid hardcoding is shlibpath_var, we
  18089.      # have to relink, otherwise we might link with an installed library
  18090.      # when we should be linking with a yet-to-be-installed one
  18091.      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
  18092.      test no != "$hardcode_minus_L_CXX"; then
  18093.     # Linking always hardcodes the temporary library directory.
  18094.     hardcode_action_CXX=relink
  18095.   else
  18096.     # We can link without hardcoding, and we can hardcode nonexisting dirs.
  18097.     hardcode_action_CXX=immediate
  18098.   fi
  18099. else
  18100.   # We cannot hardcode anything, or else we can only hardcode existing
  18101.   # directories.
  18102.   hardcode_action_CXX=unsupported
  18103. fi
  18104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  18105. $as_echo "$hardcode_action_CXX" >&6; }
  18106.  
  18107. if test relink = "$hardcode_action_CXX" ||
  18108.    test yes = "$inherit_rpath_CXX"; then
  18109.   # Fast installation is not supported
  18110.   enable_fast_install=no
  18111. elif test yes = "$shlibpath_overrides_runpath" ||
  18112.      test no = "$enable_shared"; then
  18113.   # Fast installation is not necessary
  18114.   enable_fast_install=needless
  18115. fi
  18116.  
  18117.  
  18118.  
  18119.  
  18120.  
  18121.  
  18122.  
  18123.   fi # test -n "$compiler"
  18124.  
  18125.   CC=$lt_save_CC
  18126.   CFLAGS=$lt_save_CFLAGS
  18127.   LDCXX=$LD
  18128.   LD=$lt_save_LD
  18129.   GCC=$lt_save_GCC
  18130.   with_gnu_ld=$lt_save_with_gnu_ld
  18131.   lt_cv_path_LDCXX=$lt_cv_path_LD
  18132.   lt_cv_path_LD=$lt_save_path_LD
  18133.   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  18134.   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  18135. fi # test yes != "$_lt_caught_CXX_error"
  18136.  
  18137. ac_ext=c
  18138. ac_cpp='$CPP $CPPFLAGS'
  18139. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18140. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18141. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18142.  
  18143.  
  18144.  
  18145.  
  18146.  
  18147.  
  18148.  
  18149.  
  18150.  
  18151.  
  18152.  
  18153.  
  18154.  
  18155.  
  18156.  
  18157.         ac_config_commands="$ac_config_commands libtool"
  18158.  
  18159.  
  18160.  
  18161.  
  18162. # Only expand once:
  18163.  
  18164.  
  18165.  
  18166. for ac_prog in 'bison -y' byacc
  18167. do
  18168.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  18169. set dummy $ac_prog; ac_word=$2
  18170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18171. $as_echo_n "checking for $ac_word... " >&6; }
  18172. if ${ac_cv_prog_YACC+:} false; then :
  18173.   $as_echo_n "(cached) " >&6
  18174. else
  18175.   if test -n "$YACC"; then
  18176.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  18177. else
  18178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18179. for as_dir in $PATH
  18180. do
  18181.   IFS=$as_save_IFS
  18182.   test -z "$as_dir" && as_dir=.
  18183.     for ac_exec_ext in '' $ac_executable_extensions; do
  18184.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18185.     ac_cv_prog_YACC="$ac_prog"
  18186.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18187.     break 2
  18188.   fi
  18189. done
  18190.   done
  18191. IFS=$as_save_IFS
  18192.  
  18193. fi
  18194. fi
  18195. YACC=$ac_cv_prog_YACC
  18196. if test -n "$YACC"; then
  18197.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  18198. $as_echo "$YACC" >&6; }
  18199. else
  18200.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18201. $as_echo "no" >&6; }
  18202. fi
  18203.  
  18204.  
  18205.   test -n "$YACC" && break
  18206. done
  18207. test -n "$YACC" || YACC="yacc"
  18208.  
  18209.  
  18210.  
  18211.  
  18212.  
  18213.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
  18214. $as_echo_n "checking if bison is the parser generator... " >&6; }
  18215. if ${ax_cv_prog_bison+:} false; then :
  18216.   $as_echo_n "(cached) " >&6
  18217. else
  18218.  
  18219.     if $YACC --version 2>/dev/null | $EGREP -q '^bison '; then :
  18220.   ax_cv_prog_bison=yes
  18221. else
  18222.   ax_cv_prog_bison=no
  18223. fi
  18224.  
  18225. fi
  18226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
  18227. $as_echo "$ax_cv_prog_bison" >&6; }
  18228.   if test "$ax_cv_prog_bison" = "yes"; then :
  18229.  
  18230.                               YACC="${YACC% -y}"
  18231.  
  18232. else
  18233.   if test ! -f "$srcdir/src/glsl/glcpp/glcpp-parse.c"; then :
  18234.   as_fn_error $? "bison not found - unable to compile glcpp-parse.y" "$LINENO" 5
  18235. fi
  18236.  
  18237. fi
  18238.  
  18239. for ac_prog in flex lex
  18240. do
  18241.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  18242. set dummy $ac_prog; ac_word=$2
  18243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18244. $as_echo_n "checking for $ac_word... " >&6; }
  18245. if ${ac_cv_prog_LEX+:} false; then :
  18246.   $as_echo_n "(cached) " >&6
  18247. else
  18248.   if test -n "$LEX"; then
  18249.   ac_cv_prog_LEX="$LEX" # Let the user override the test.
  18250. else
  18251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18252. for as_dir in $PATH
  18253. do
  18254.   IFS=$as_save_IFS
  18255.   test -z "$as_dir" && as_dir=.
  18256.     for ac_exec_ext in '' $ac_executable_extensions; do
  18257.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18258.     ac_cv_prog_LEX="$ac_prog"
  18259.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18260.     break 2
  18261.   fi
  18262. done
  18263.   done
  18264. IFS=$as_save_IFS
  18265.  
  18266. fi
  18267. fi
  18268. LEX=$ac_cv_prog_LEX
  18269. if test -n "$LEX"; then
  18270.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  18271. $as_echo "$LEX" >&6; }
  18272. else
  18273.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18274. $as_echo "no" >&6; }
  18275. fi
  18276.  
  18277.  
  18278.   test -n "$LEX" && break
  18279. done
  18280. test -n "$LEX" || LEX=":"
  18281.  
  18282. if test "x$LEX" != "x:"; then
  18283.   cat >conftest.l <<_ACEOF
  18284. %%
  18285. a { ECHO; }
  18286. b { REJECT; }
  18287. c { yymore (); }
  18288. d { yyless (1); }
  18289. e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
  18290.     yyless ((input () != 0)); }
  18291. f { unput (yytext[0]); }
  18292. . { BEGIN INITIAL; }
  18293. %%
  18294. #ifdef YYTEXT_POINTER
  18295. extern char *yytext;
  18296. #endif
  18297. int
  18298. main (void)
  18299. {
  18300.   return ! yylex () + ! yywrap ();
  18301. }
  18302. _ACEOF
  18303. { { ac_try="$LEX conftest.l"
  18304. case "(($ac_try" in
  18305.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18306.   *) ac_try_echo=$ac_try;;
  18307. esac
  18308. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18309. $as_echo "$ac_try_echo"; } >&5
  18310.   (eval "$LEX conftest.l") 2>&5
  18311.   ac_status=$?
  18312.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18313.   test $ac_status = 0; }
  18314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  18315. $as_echo_n "checking lex output file root... " >&6; }
  18316. if ${ac_cv_prog_lex_root+:} false; then :
  18317.   $as_echo_n "(cached) " >&6
  18318. else
  18319.  
  18320. if test -f lex.yy.c; then
  18321.   ac_cv_prog_lex_root=lex.yy
  18322. elif test -f lexyy.c; then
  18323.   ac_cv_prog_lex_root=lexyy
  18324. else
  18325.   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
  18326. fi
  18327. fi
  18328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  18329. $as_echo "$ac_cv_prog_lex_root" >&6; }
  18330. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  18331.  
  18332. if test -z "${LEXLIB+set}"; then
  18333.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  18334. $as_echo_n "checking lex library... " >&6; }
  18335. if ${ac_cv_lib_lex+:} false; then :
  18336.   $as_echo_n "(cached) " >&6
  18337. else
  18338.  
  18339.     ac_save_LIBS=$LIBS
  18340.     ac_cv_lib_lex='none needed'
  18341.     for ac_lib in '' -lfl -ll; do
  18342.       LIBS="$ac_lib $ac_save_LIBS"
  18343.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18344. /* end confdefs.h.  */
  18345. `cat $LEX_OUTPUT_ROOT.c`
  18346. _ACEOF
  18347. if ac_fn_c_try_link "$LINENO"; then :
  18348.   ac_cv_lib_lex=$ac_lib
  18349. fi
  18350. rm -f core conftest.err conftest.$ac_objext \
  18351.     conftest$ac_exeext conftest.$ac_ext
  18352.       test "$ac_cv_lib_lex" != 'none needed' && break
  18353.     done
  18354.     LIBS=$ac_save_LIBS
  18355.  
  18356. fi
  18357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  18358. $as_echo "$ac_cv_lib_lex" >&6; }
  18359.   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  18360. fi
  18361.  
  18362.  
  18363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  18364. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  18365. if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
  18366.   $as_echo_n "(cached) " >&6
  18367. else
  18368.   # POSIX says lex can declare yytext either as a pointer or an array; the
  18369. # default is implementation-dependent.  Figure out which it is, since
  18370. # not all implementations provide the %pointer and %array declarations.
  18371. ac_cv_prog_lex_yytext_pointer=no
  18372. ac_save_LIBS=$LIBS
  18373. LIBS="$LEXLIB $ac_save_LIBS"
  18374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18375. /* end confdefs.h.  */
  18376.  
  18377.   #define YYTEXT_POINTER 1
  18378. `cat $LEX_OUTPUT_ROOT.c`
  18379. _ACEOF
  18380. if ac_fn_c_try_link "$LINENO"; then :
  18381.   ac_cv_prog_lex_yytext_pointer=yes
  18382. fi
  18383. rm -f core conftest.err conftest.$ac_objext \
  18384.     conftest$ac_exeext conftest.$ac_ext
  18385. LIBS=$ac_save_LIBS
  18386.  
  18387. fi
  18388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  18389. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  18390. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  18391.  
  18392. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  18393.  
  18394. fi
  18395. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  18396.  
  18397. fi
  18398. if test "$LEX" = :; then
  18399.   LEX=${am_missing_run}flex
  18400. fi
  18401.  
  18402.  
  18403.  
  18404.  
  18405.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if flex is the lexer generator" >&5
  18406. $as_echo_n "checking if flex is the lexer generator... " >&6; }
  18407. if ${ax_cv_prog_flex+:} false; then :
  18408.   $as_echo_n "(cached) " >&6
  18409. else
  18410.  
  18411.     if $LEX --version 2>/dev/null | $EGREP -qw '^g?flex'; then :
  18412.   ax_cv_prog_flex=yes
  18413. else
  18414.   ax_cv_prog_flex=no
  18415. fi
  18416.  
  18417. fi
  18418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_flex" >&5
  18419. $as_echo "$ax_cv_prog_flex" >&6; }
  18420.   if test "$ax_cv_prog_flex" = "yes"; then :
  18421.  
  18422. else
  18423.   if test ! -f "$srcdir/src/glsl/glcpp/glcpp-lex.c"; then :
  18424.   as_fn_error $? "flex not found - unable to compile glcpp-lex.l" "$LINENO" 5
  18425. fi
  18426.  
  18427. fi
  18428.  
  18429.  
  18430. # Extract the first word of "indent", so it can be a program name with args.
  18431. set dummy indent; ac_word=$2
  18432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18433. $as_echo_n "checking for $ac_word... " >&6; }
  18434. if ${ac_cv_prog_INDENT+:} false; then :
  18435.   $as_echo_n "(cached) " >&6
  18436. else
  18437.   if test -n "$INDENT"; then
  18438.   ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
  18439. else
  18440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18441. for as_dir in $PATH
  18442. do
  18443.   IFS=$as_save_IFS
  18444.   test -z "$as_dir" && as_dir=.
  18445.     for ac_exec_ext in '' $ac_executable_extensions; do
  18446.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18447.     ac_cv_prog_INDENT="indent"
  18448.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18449.     break 2
  18450.   fi
  18451. done
  18452.   done
  18453. IFS=$as_save_IFS
  18454.  
  18455.   test -z "$ac_cv_prog_INDENT" && ac_cv_prog_INDENT="cat"
  18456. fi
  18457. fi
  18458. INDENT=$ac_cv_prog_INDENT
  18459. if test -n "$INDENT"; then
  18460.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
  18461. $as_echo "$INDENT" >&6; }
  18462. else
  18463.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18464. $as_echo "no" >&6; }
  18465. fi
  18466.  
  18467.  
  18468. if test "x$INDENT" != "xcat"; then
  18469.     # Only GNU indent is supported
  18470.     INDENT_VERSION=`indent --version | grep GNU`
  18471.     if test $? -eq 0; then
  18472.        INDENT_FLAGS='-i4 -nut -br -brs -npcs -ce -TGLubyte -TGLbyte -TBool'
  18473.  
  18474.     else
  18475.        INDENT="cat"
  18476.     fi
  18477. fi
  18478.  
  18479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if module mako in python is installed" >&5
  18480. $as_echo_n "checking if module mako in python is installed... " >&6; }
  18481.     echo "
  18482. try:
  18483.     import sys
  18484.     import mako
  18485. except ImportError as err:
  18486.     sys.exit(err)
  18487. else:
  18488.     ver_req = map(int, '$PYTHON_MAKO_REQUIRED'.split('.'))
  18489.     ver_act = map(int, mako.__version__.split('.'))
  18490.     sys.exit(int(ver_req > ver_act))
  18491.     " | $PYTHON2 -
  18492.  
  18493.     if test $? -ne 0 ; then
  18494.        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18495. $as_echo "no" >&6; }
  18496.        acv_mako_found='no'
  18497.  
  18498.     else
  18499.        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18500. $as_echo "yes" >&6; }
  18501.        acv_mako_found='yes'
  18502.  
  18503.     fi
  18504.  
  18505.  
  18506. if test -z "$PYTHON2"; then
  18507.     if test ! -f "$srcdir/src/util/format_srgb.c"; then
  18508.         as_fn_error $? "Python not found - unable to generate sources" "$LINENO" 5
  18509.     fi
  18510. else
  18511.     if test "x$acv_mako_found" = xno; then
  18512.         if test ! -f "$srcdir/src/mesa/main/format_unpack.c"; then
  18513.             as_fn_error $? "Python mako module v$PYTHON_MAKO_REQUIRED or higher not found" "$LINENO" 5
  18514.         fi
  18515.     fi
  18516. fi
  18517.  
  18518.  
  18519.  
  18520. case "$host_os" in
  18521. solaris*)
  18522.     # Solaris /bin/sh is too old/non-POSIX compliant
  18523.     for ac_prog in ksh93 ksh sh
  18524. do
  18525.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  18526. set dummy $ac_prog; ac_word=$2
  18527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18528. $as_echo_n "checking for $ac_word... " >&6; }
  18529. if ${ac_cv_path_POSIX_SHELL+:} false; then :
  18530.   $as_echo_n "(cached) " >&6
  18531. else
  18532.   case $POSIX_SHELL in
  18533.   [\\/]* | ?:[\\/]*)
  18534.   ac_cv_path_POSIX_SHELL="$POSIX_SHELL" # Let the user override the test with a path.
  18535.   ;;
  18536.   *)
  18537.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18538. for as_dir in $PATH
  18539. do
  18540.   IFS=$as_save_IFS
  18541.   test -z "$as_dir" && as_dir=.
  18542.     for ac_exec_ext in '' $ac_executable_extensions; do
  18543.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18544.     ac_cv_path_POSIX_SHELL="$as_dir/$ac_word$ac_exec_ext"
  18545.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18546.     break 2
  18547.   fi
  18548. done
  18549.   done
  18550. IFS=$as_save_IFS
  18551.  
  18552.   ;;
  18553. esac
  18554. fi
  18555. POSIX_SHELL=$ac_cv_path_POSIX_SHELL
  18556. if test -n "$POSIX_SHELL"; then
  18557.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSIX_SHELL" >&5
  18558. $as_echo "$POSIX_SHELL" >&6; }
  18559. else
  18560.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18561. $as_echo "no" >&6; }
  18562. fi
  18563.  
  18564.  
  18565.   test -n "$POSIX_SHELL" && break
  18566. done
  18567.  
  18568.     SHELL="$POSIX_SHELL"
  18569.     ;;
  18570. esac
  18571.  
  18572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiling with clang" >&5
  18573. $as_echo_n "checking if compiling with clang... " >&6; }
  18574.  
  18575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18576. /* end confdefs.h.  */
  18577.  
  18578. int
  18579. main ()
  18580. {
  18581.  
  18582. #ifndef __clang__
  18583.        not clang
  18584. #endif
  18585.  
  18586.   ;
  18587.   return 0;
  18588. }
  18589. _ACEOF
  18590. if ac_fn_c_try_compile "$LINENO"; then :
  18591.   acv_mesa_CLANG=yes
  18592. else
  18593.   acv_mesa_CLANG=no
  18594. fi
  18595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18596.  
  18597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acv_mesa_CLANG" >&5
  18598. $as_echo "$acv_mesa_CLANG" >&6; }
  18599.  
  18600. GEN_ASM_OFFSETS=no
  18601. USE_GNU99=no
  18602. if test "x$GCC" = xyes -a "x$acv_mesa_CLANG" = xno; then
  18603.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc version is sufficient" >&5
  18604. $as_echo_n "checking whether gcc version is sufficient... " >&6; }
  18605.     major=0
  18606.     minor=0
  18607.  
  18608.     GCC_VERSION=`$CC -dumpversion`
  18609.     if test $? -eq 0; then
  18610.         GCC_VERSION_MAJOR=`echo $GCC_VERSION | cut -d. -f1`
  18611.         GCC_VERSION_MINOR=`echo $GCC_VERSION | cut -d. -f2`
  18612.     fi
  18613.  
  18614.     if test $GCC_VERSION_MAJOR -lt 4 -o $GCC_VERSION_MAJOR -eq 4 -a $GCC_VERSION_MINOR -lt 2 ; then
  18615.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18616. $as_echo "no" >&6; }
  18617.         as_fn_error $? "If using GCC, version 4.2.0 or later is required." "$LINENO" 5
  18618.     else
  18619.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18620. $as_echo "yes" >&6; }
  18621.     fi
  18622.  
  18623.     if test $GCC_VERSION_MAJOR -lt 4 -o $GCC_VERSION_MAJOR -eq 4 -a $GCC_VERSION_MINOR -lt 6 ; then
  18624.         USE_GNU99=yes
  18625.     fi
  18626.     if test "x$cross_compiling" = xyes; then
  18627.         GEN_ASM_OFFSETS=yes
  18628.     fi
  18629. fi
  18630.  
  18631.  
  18632.  
  18633.  
  18634.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
  18635. $as_echo_n "checking for __builtin_bswap32... " >&6; }
  18636. if ${ax_cv_have___builtin_bswap32+:} false; then :
  18637.   $as_echo_n "(cached) " >&6
  18638. else
  18639.  
  18640.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18641. /* end confdefs.h.  */
  18642.  
  18643. int
  18644. main ()
  18645. {
  18646.  
  18647.             __builtin_bswap32(0)
  18648.  
  18649.   ;
  18650.   return 0;
  18651. }
  18652. _ACEOF
  18653. if ac_fn_c_try_link "$LINENO"; then :
  18654.   ax_cv_have___builtin_bswap32=yes
  18655. else
  18656.   ax_cv_have___builtin_bswap32=no
  18657. fi
  18658. rm -f core conftest.err conftest.$ac_objext \
  18659.     conftest$ac_exeext conftest.$ac_ext
  18660.  
  18661. fi
  18662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_bswap32" >&5
  18663. $as_echo "$ax_cv_have___builtin_bswap32" >&6; }
  18664.  
  18665.     if test yes = $ax_cv_have___builtin_bswap32; then :
  18666.  
  18667. cat >>confdefs.h <<_ACEOF
  18668. #define HAVE___BUILTIN_BSWAP32 1
  18669. _ACEOF
  18670.  
  18671. fi
  18672.  
  18673.  
  18674.  
  18675.  
  18676.  
  18677.  
  18678.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
  18679. $as_echo_n "checking for __builtin_bswap64... " >&6; }
  18680. if ${ax_cv_have___builtin_bswap64+:} false; then :
  18681.   $as_echo_n "(cached) " >&6
  18682. else
  18683.  
  18684.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18685. /* end confdefs.h.  */
  18686.  
  18687. int
  18688. main ()
  18689. {
  18690.  
  18691.             __builtin_bswap64(0)
  18692.  
  18693.   ;
  18694.   return 0;
  18695. }
  18696. _ACEOF
  18697. if ac_fn_c_try_link "$LINENO"; then :
  18698.   ax_cv_have___builtin_bswap64=yes
  18699. else
  18700.   ax_cv_have___builtin_bswap64=no
  18701. fi
  18702. rm -f core conftest.err conftest.$ac_objext \
  18703.     conftest$ac_exeext conftest.$ac_ext
  18704.  
  18705. fi
  18706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_bswap64" >&5
  18707. $as_echo "$ax_cv_have___builtin_bswap64" >&6; }
  18708.  
  18709.     if test yes = $ax_cv_have___builtin_bswap64; then :
  18710.  
  18711. cat >>confdefs.h <<_ACEOF
  18712. #define HAVE___BUILTIN_BSWAP64 1
  18713. _ACEOF
  18714.  
  18715. fi
  18716.  
  18717.  
  18718.  
  18719.  
  18720.  
  18721.  
  18722.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
  18723. $as_echo_n "checking for __builtin_clz... " >&6; }
  18724. if ${ax_cv_have___builtin_clz+:} false; then :
  18725.   $as_echo_n "(cached) " >&6
  18726. else
  18727.  
  18728.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18729. /* end confdefs.h.  */
  18730.  
  18731. int
  18732. main ()
  18733. {
  18734.  
  18735.             __builtin_clz(0)
  18736.  
  18737.   ;
  18738.   return 0;
  18739. }
  18740. _ACEOF
  18741. if ac_fn_c_try_link "$LINENO"; then :
  18742.   ax_cv_have___builtin_clz=yes
  18743. else
  18744.   ax_cv_have___builtin_clz=no
  18745. fi
  18746. rm -f core conftest.err conftest.$ac_objext \
  18747.     conftest$ac_exeext conftest.$ac_ext
  18748.  
  18749. fi
  18750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_clz" >&5
  18751. $as_echo "$ax_cv_have___builtin_clz" >&6; }
  18752.  
  18753.     if test yes = $ax_cv_have___builtin_clz; then :
  18754.  
  18755. cat >>confdefs.h <<_ACEOF
  18756. #define HAVE___BUILTIN_CLZ 1
  18757. _ACEOF
  18758.  
  18759. fi
  18760.  
  18761.  
  18762.  
  18763.  
  18764.  
  18765.  
  18766.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5
  18767. $as_echo_n "checking for __builtin_clzll... " >&6; }
  18768. if ${ax_cv_have___builtin_clzll+:} false; then :
  18769.   $as_echo_n "(cached) " >&6
  18770. else
  18771.  
  18772.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18773. /* end confdefs.h.  */
  18774.  
  18775. int
  18776. main ()
  18777. {
  18778.  
  18779.             __builtin_clzll(0)
  18780.  
  18781.   ;
  18782.   return 0;
  18783. }
  18784. _ACEOF
  18785. if ac_fn_c_try_link "$LINENO"; then :
  18786.   ax_cv_have___builtin_clzll=yes
  18787. else
  18788.   ax_cv_have___builtin_clzll=no
  18789. fi
  18790. rm -f core conftest.err conftest.$ac_objext \
  18791.     conftest$ac_exeext conftest.$ac_ext
  18792.  
  18793. fi
  18794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_clzll" >&5
  18795. $as_echo "$ax_cv_have___builtin_clzll" >&6; }
  18796.  
  18797.     if test yes = $ax_cv_have___builtin_clzll; then :
  18798.  
  18799. cat >>confdefs.h <<_ACEOF
  18800. #define HAVE___BUILTIN_CLZLL 1
  18801. _ACEOF
  18802.  
  18803. fi
  18804.  
  18805.  
  18806.  
  18807.  
  18808.  
  18809.  
  18810.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
  18811. $as_echo_n "checking for __builtin_ctz... " >&6; }
  18812. if ${ax_cv_have___builtin_ctz+:} false; then :
  18813.   $as_echo_n "(cached) " >&6
  18814. else
  18815.  
  18816.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18817. /* end confdefs.h.  */
  18818.  
  18819. int
  18820. main ()
  18821. {
  18822.  
  18823.             __builtin_ctz(0)
  18824.  
  18825.   ;
  18826.   return 0;
  18827. }
  18828. _ACEOF
  18829. if ac_fn_c_try_link "$LINENO"; then :
  18830.   ax_cv_have___builtin_ctz=yes
  18831. else
  18832.   ax_cv_have___builtin_ctz=no
  18833. fi
  18834. rm -f core conftest.err conftest.$ac_objext \
  18835.     conftest$ac_exeext conftest.$ac_ext
  18836.  
  18837. fi
  18838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_ctz" >&5
  18839. $as_echo "$ax_cv_have___builtin_ctz" >&6; }
  18840.  
  18841.     if test yes = $ax_cv_have___builtin_ctz; then :
  18842.  
  18843. cat >>confdefs.h <<_ACEOF
  18844. #define HAVE___BUILTIN_CTZ 1
  18845. _ACEOF
  18846.  
  18847. fi
  18848.  
  18849.  
  18850.  
  18851.  
  18852.  
  18853.  
  18854.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
  18855. $as_echo_n "checking for __builtin_expect... " >&6; }
  18856. if ${ax_cv_have___builtin_expect+:} false; then :
  18857.   $as_echo_n "(cached) " >&6
  18858. else
  18859.  
  18860.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18861. /* end confdefs.h.  */
  18862.  
  18863. int
  18864. main ()
  18865. {
  18866.  
  18867.             __builtin_expect(0, 0)
  18868.  
  18869.   ;
  18870.   return 0;
  18871. }
  18872. _ACEOF
  18873. if ac_fn_c_try_link "$LINENO"; then :
  18874.   ax_cv_have___builtin_expect=yes
  18875. else
  18876.   ax_cv_have___builtin_expect=no
  18877. fi
  18878. rm -f core conftest.err conftest.$ac_objext \
  18879.     conftest$ac_exeext conftest.$ac_ext
  18880.  
  18881. fi
  18882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_expect" >&5
  18883. $as_echo "$ax_cv_have___builtin_expect" >&6; }
  18884.  
  18885.     if test yes = $ax_cv_have___builtin_expect; then :
  18886.  
  18887. cat >>confdefs.h <<_ACEOF
  18888. #define HAVE___BUILTIN_EXPECT 1
  18889. _ACEOF
  18890.  
  18891. fi
  18892.  
  18893.  
  18894.  
  18895.  
  18896.  
  18897.  
  18898.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffs" >&5
  18899. $as_echo_n "checking for __builtin_ffs... " >&6; }
  18900. if ${ax_cv_have___builtin_ffs+:} false; then :
  18901.   $as_echo_n "(cached) " >&6
  18902. else
  18903.  
  18904.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18905. /* end confdefs.h.  */
  18906.  
  18907. int
  18908. main ()
  18909. {
  18910.  
  18911.             __builtin_ffs(0)
  18912.  
  18913.   ;
  18914.   return 0;
  18915. }
  18916. _ACEOF
  18917. if ac_fn_c_try_link "$LINENO"; then :
  18918.   ax_cv_have___builtin_ffs=yes
  18919. else
  18920.   ax_cv_have___builtin_ffs=no
  18921. fi
  18922. rm -f core conftest.err conftest.$ac_objext \
  18923.     conftest$ac_exeext conftest.$ac_ext
  18924.  
  18925. fi
  18926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_ffs" >&5
  18927. $as_echo "$ax_cv_have___builtin_ffs" >&6; }
  18928.  
  18929.     if test yes = $ax_cv_have___builtin_ffs; then :
  18930.  
  18931. cat >>confdefs.h <<_ACEOF
  18932. #define HAVE___BUILTIN_FFS 1
  18933. _ACEOF
  18934.  
  18935. fi
  18936.  
  18937.  
  18938.  
  18939.  
  18940.  
  18941.  
  18942.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffsll" >&5
  18943. $as_echo_n "checking for __builtin_ffsll... " >&6; }
  18944. if ${ax_cv_have___builtin_ffsll+:} false; then :
  18945.   $as_echo_n "(cached) " >&6
  18946. else
  18947.  
  18948.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18949. /* end confdefs.h.  */
  18950.  
  18951. int
  18952. main ()
  18953. {
  18954.  
  18955.             __builtin_ffsll(0)
  18956.  
  18957.   ;
  18958.   return 0;
  18959. }
  18960. _ACEOF
  18961. if ac_fn_c_try_link "$LINENO"; then :
  18962.   ax_cv_have___builtin_ffsll=yes
  18963. else
  18964.   ax_cv_have___builtin_ffsll=no
  18965. fi
  18966. rm -f core conftest.err conftest.$ac_objext \
  18967.     conftest$ac_exeext conftest.$ac_ext
  18968.  
  18969. fi
  18970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_ffsll" >&5
  18971. $as_echo "$ax_cv_have___builtin_ffsll" >&6; }
  18972.  
  18973.     if test yes = $ax_cv_have___builtin_ffsll; then :
  18974.  
  18975. cat >>confdefs.h <<_ACEOF
  18976. #define HAVE___BUILTIN_FFSLL 1
  18977. _ACEOF
  18978.  
  18979. fi
  18980.  
  18981.  
  18982.  
  18983.  
  18984.  
  18985.  
  18986.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5
  18987. $as_echo_n "checking for __builtin_popcount... " >&6; }
  18988. if ${ax_cv_have___builtin_popcount+:} false; then :
  18989.   $as_echo_n "(cached) " >&6
  18990. else
  18991.  
  18992.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18993. /* end confdefs.h.  */
  18994.  
  18995. int
  18996. main ()
  18997. {
  18998.  
  18999.             __builtin_popcount(0)
  19000.  
  19001.   ;
  19002.   return 0;
  19003. }
  19004. _ACEOF
  19005. if ac_fn_c_try_link "$LINENO"; then :
  19006.   ax_cv_have___builtin_popcount=yes
  19007. else
  19008.   ax_cv_have___builtin_popcount=no
  19009. fi
  19010. rm -f core conftest.err conftest.$ac_objext \
  19011.     conftest$ac_exeext conftest.$ac_ext
  19012.  
  19013. fi
  19014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcount" >&5
  19015. $as_echo "$ax_cv_have___builtin_popcount" >&6; }
  19016.  
  19017.     if test yes = $ax_cv_have___builtin_popcount; then :
  19018.  
  19019. cat >>confdefs.h <<_ACEOF
  19020. #define HAVE___BUILTIN_POPCOUNT 1
  19021. _ACEOF
  19022.  
  19023. fi
  19024.  
  19025.  
  19026.  
  19027.  
  19028.  
  19029.  
  19030.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountll" >&5
  19031. $as_echo_n "checking for __builtin_popcountll... " >&6; }
  19032. if ${ax_cv_have___builtin_popcountll+:} false; then :
  19033.   $as_echo_n "(cached) " >&6
  19034. else
  19035.  
  19036.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19037. /* end confdefs.h.  */
  19038.  
  19039. int
  19040. main ()
  19041. {
  19042.  
  19043.             __builtin_popcountll(0)
  19044.  
  19045.   ;
  19046.   return 0;
  19047. }
  19048. _ACEOF
  19049. if ac_fn_c_try_link "$LINENO"; then :
  19050.   ax_cv_have___builtin_popcountll=yes
  19051. else
  19052.   ax_cv_have___builtin_popcountll=no
  19053. fi
  19054. rm -f core conftest.err conftest.$ac_objext \
  19055.     conftest$ac_exeext conftest.$ac_ext
  19056.  
  19057. fi
  19058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_popcountll" >&5
  19059. $as_echo "$ax_cv_have___builtin_popcountll" >&6; }
  19060.  
  19061.     if test yes = $ax_cv_have___builtin_popcountll; then :
  19062.  
  19063. cat >>confdefs.h <<_ACEOF
  19064. #define HAVE___BUILTIN_POPCOUNTLL 1
  19065. _ACEOF
  19066.  
  19067. fi
  19068.  
  19069.  
  19070.  
  19071.  
  19072.  
  19073.  
  19074.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
  19075. $as_echo_n "checking for __builtin_unreachable... " >&6; }
  19076. if ${ax_cv_have___builtin_unreachable+:} false; then :
  19077.   $as_echo_n "(cached) " >&6
  19078. else
  19079.  
  19080.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19081. /* end confdefs.h.  */
  19082.  
  19083. int
  19084. main ()
  19085. {
  19086.  
  19087.             __builtin_unreachable()
  19088.  
  19089.   ;
  19090.   return 0;
  19091. }
  19092. _ACEOF
  19093. if ac_fn_c_try_link "$LINENO"; then :
  19094.   ax_cv_have___builtin_unreachable=yes
  19095. else
  19096.   ax_cv_have___builtin_unreachable=no
  19097. fi
  19098. rm -f core conftest.err conftest.$ac_objext \
  19099.     conftest$ac_exeext conftest.$ac_ext
  19100.  
  19101. fi
  19102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_unreachable" >&5
  19103. $as_echo "$ax_cv_have___builtin_unreachable" >&6; }
  19104.  
  19105.     if test yes = $ax_cv_have___builtin_unreachable; then :
  19106.  
  19107. cat >>confdefs.h <<_ACEOF
  19108. #define HAVE___BUILTIN_UNREACHABLE 1
  19109. _ACEOF
  19110.  
  19111. fi
  19112.  
  19113.  
  19114.  
  19115.  
  19116.  
  19117.  
  19118.  
  19119.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((flatten))" >&5
  19120. $as_echo_n "checking for __attribute__((flatten))... " >&6; }
  19121. if ${ax_cv_have_func_attribute_flatten+:} false; then :
  19122.   $as_echo_n "(cached) " >&6
  19123. else
  19124.  
  19125.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19126. /* end confdefs.h.  */
  19127.  
  19128.  
  19129.                     int foo( void ) __attribute__((flatten));
  19130.  
  19131. int
  19132. main ()
  19133. {
  19134.  
  19135.   ;
  19136.   return 0;
  19137. }
  19138.  
  19139. _ACEOF
  19140. if ac_fn_c_try_link "$LINENO"; then :
  19141.                                       if test -s conftest.err; then :
  19142.   ax_cv_have_func_attribute_flatten=no
  19143. else
  19144.   ax_cv_have_func_attribute_flatten=yes
  19145. fi
  19146. else
  19147.   ax_cv_have_func_attribute_flatten=no
  19148. fi
  19149. rm -f core conftest.err conftest.$ac_objext \
  19150.     conftest$ac_exeext conftest.$ac_ext
  19151.  
  19152. fi
  19153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_flatten" >&5
  19154. $as_echo "$ax_cv_have_func_attribute_flatten" >&6; }
  19155.  
  19156.     if test yes = $ax_cv_have_func_attribute_flatten; then :
  19157.  
  19158. cat >>confdefs.h <<_ACEOF
  19159. #define HAVE_FUNC_ATTRIBUTE_FLATTEN 1
  19160. _ACEOF
  19161.  
  19162. fi
  19163.  
  19164.  
  19165.  
  19166.  
  19167.  
  19168.  
  19169.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((format))" >&5
  19170. $as_echo_n "checking for __attribute__((format))... " >&6; }
  19171. if ${ax_cv_have_func_attribute_format+:} false; then :
  19172.   $as_echo_n "(cached) " >&6
  19173. else
  19174.  
  19175.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19176. /* end confdefs.h.  */
  19177.  
  19178.  
  19179.                     int foo(const char *p, ...) __attribute__((format(printf, 1, 2)));
  19180.  
  19181. int
  19182. main ()
  19183. {
  19184.  
  19185.   ;
  19186.   return 0;
  19187. }
  19188.  
  19189. _ACEOF
  19190. if ac_fn_c_try_link "$LINENO"; then :
  19191.                                       if test -s conftest.err; then :
  19192.   ax_cv_have_func_attribute_format=no
  19193. else
  19194.   ax_cv_have_func_attribute_format=yes
  19195. fi
  19196. else
  19197.   ax_cv_have_func_attribute_format=no
  19198. fi
  19199. rm -f core conftest.err conftest.$ac_objext \
  19200.     conftest$ac_exeext conftest.$ac_ext
  19201.  
  19202. fi
  19203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_format" >&5
  19204. $as_echo "$ax_cv_have_func_attribute_format" >&6; }
  19205.  
  19206.     if test yes = $ax_cv_have_func_attribute_format; then :
  19207.  
  19208. cat >>confdefs.h <<_ACEOF
  19209. #define HAVE_FUNC_ATTRIBUTE_FORMAT 1
  19210. _ACEOF
  19211.  
  19212. fi
  19213.  
  19214.  
  19215.  
  19216.  
  19217.  
  19218.  
  19219.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((malloc))" >&5
  19220. $as_echo_n "checking for __attribute__((malloc))... " >&6; }
  19221. if ${ax_cv_have_func_attribute_malloc+:} false; then :
  19222.   $as_echo_n "(cached) " >&6
  19223. else
  19224.  
  19225.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19226. /* end confdefs.h.  */
  19227.  
  19228.  
  19229.                     void *foo( void ) __attribute__((malloc));
  19230.  
  19231. int
  19232. main ()
  19233. {
  19234.  
  19235.   ;
  19236.   return 0;
  19237. }
  19238.  
  19239. _ACEOF
  19240. if ac_fn_c_try_link "$LINENO"; then :
  19241.                                       if test -s conftest.err; then :
  19242.   ax_cv_have_func_attribute_malloc=no
  19243. else
  19244.   ax_cv_have_func_attribute_malloc=yes
  19245. fi
  19246. else
  19247.   ax_cv_have_func_attribute_malloc=no
  19248. fi
  19249. rm -f core conftest.err conftest.$ac_objext \
  19250.     conftest$ac_exeext conftest.$ac_ext
  19251.  
  19252. fi
  19253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_malloc" >&5
  19254. $as_echo "$ax_cv_have_func_attribute_malloc" >&6; }
  19255.  
  19256.     if test yes = $ax_cv_have_func_attribute_malloc; then :
  19257.  
  19258. cat >>confdefs.h <<_ACEOF
  19259. #define HAVE_FUNC_ATTRIBUTE_MALLOC 1
  19260. _ACEOF
  19261.  
  19262. fi
  19263.  
  19264.  
  19265.  
  19266.  
  19267.  
  19268.  
  19269.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((packed))" >&5
  19270. $as_echo_n "checking for __attribute__((packed))... " >&6; }
  19271. if ${ax_cv_have_func_attribute_packed+:} false; then :
  19272.   $as_echo_n "(cached) " >&6
  19273. else
  19274.  
  19275.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19276. /* end confdefs.h.  */
  19277.  
  19278.  
  19279.                     struct __attribute__((packed)) foo { int bar; };
  19280.  
  19281. int
  19282. main ()
  19283. {
  19284.  
  19285.   ;
  19286.   return 0;
  19287. }
  19288.  
  19289. _ACEOF
  19290. if ac_fn_c_try_link "$LINENO"; then :
  19291.                                       if test -s conftest.err; then :
  19292.   ax_cv_have_func_attribute_packed=no
  19293. else
  19294.   ax_cv_have_func_attribute_packed=yes
  19295. fi
  19296. else
  19297.   ax_cv_have_func_attribute_packed=no
  19298. fi
  19299. rm -f core conftest.err conftest.$ac_objext \
  19300.     conftest$ac_exeext conftest.$ac_ext
  19301.  
  19302. fi
  19303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_packed" >&5
  19304. $as_echo "$ax_cv_have_func_attribute_packed" >&6; }
  19305.  
  19306.     if test yes = $ax_cv_have_func_attribute_packed; then :
  19307.  
  19308. cat >>confdefs.h <<_ACEOF
  19309. #define HAVE_FUNC_ATTRIBUTE_PACKED 1
  19310. _ACEOF
  19311.  
  19312. fi
  19313.  
  19314.  
  19315.  
  19316.  
  19317.  
  19318.  
  19319.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((unused))" >&5
  19320. $as_echo_n "checking for __attribute__((unused))... " >&6; }
  19321. if ${ax_cv_have_func_attribute_unused+:} false; then :
  19322.   $as_echo_n "(cached) " >&6
  19323. else
  19324.  
  19325.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19326. /* end confdefs.h.  */
  19327.  
  19328.  
  19329.                     int foo( void ) __attribute__((unused));
  19330.  
  19331. int
  19332. main ()
  19333. {
  19334.  
  19335.   ;
  19336.   return 0;
  19337. }
  19338.  
  19339. _ACEOF
  19340. if ac_fn_c_try_link "$LINENO"; then :
  19341.                                       if test -s conftest.err; then :
  19342.   ax_cv_have_func_attribute_unused=no
  19343. else
  19344.   ax_cv_have_func_attribute_unused=yes
  19345. fi
  19346. else
  19347.   ax_cv_have_func_attribute_unused=no
  19348. fi
  19349. rm -f core conftest.err conftest.$ac_objext \
  19350.     conftest$ac_exeext conftest.$ac_ext
  19351.  
  19352. fi
  19353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_unused" >&5
  19354. $as_echo "$ax_cv_have_func_attribute_unused" >&6; }
  19355.  
  19356.     if test yes = $ax_cv_have_func_attribute_unused; then :
  19357.  
  19358. cat >>confdefs.h <<_ACEOF
  19359. #define HAVE_FUNC_ATTRIBUTE_UNUSED 1
  19360. _ACEOF
  19361.  
  19362. fi
  19363.  
  19364.  
  19365.  
  19366.  
  19367.  if test "x$GEN_ASM_OFFSETS" = xyes; then
  19368.   GEN_ASM_OFFSETS_TRUE=
  19369.   GEN_ASM_OFFSETS_FALSE='#'
  19370. else
  19371.   GEN_ASM_OFFSETS_TRUE='#'
  19372.   GEN_ASM_OFFSETS_FALSE=
  19373. fi
  19374.  
  19375.  
  19376.  
  19377.  
  19378.  
  19379.  
  19380.  
  19381.  
  19382.  
  19383.  
  19384. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  19385.         if test -n "$ac_tool_prefix"; then
  19386.   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  19387. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  19388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19389. $as_echo_n "checking for $ac_word... " >&6; }
  19390. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19391.   $as_echo_n "(cached) " >&6
  19392. else
  19393.   case $PKG_CONFIG in
  19394.   [\\/]* | ?:[\\/]*)
  19395.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19396.   ;;
  19397.   *)
  19398.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19399. for as_dir in $PATH
  19400. do
  19401.   IFS=$as_save_IFS
  19402.   test -z "$as_dir" && as_dir=.
  19403.     for ac_exec_ext in '' $ac_executable_extensions; do
  19404.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19405.     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19406.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19407.     break 2
  19408.   fi
  19409. done
  19410.   done
  19411. IFS=$as_save_IFS
  19412.  
  19413.   ;;
  19414. esac
  19415. fi
  19416. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19417. if test -n "$PKG_CONFIG"; then
  19418.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19419. $as_echo "$PKG_CONFIG" >&6; }
  19420. else
  19421.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19422. $as_echo "no" >&6; }
  19423. fi
  19424.  
  19425.  
  19426. fi
  19427. if test -z "$ac_cv_path_PKG_CONFIG"; then
  19428.   ac_pt_PKG_CONFIG=$PKG_CONFIG
  19429.   # Extract the first word of "pkg-config", so it can be a program name with args.
  19430. set dummy pkg-config; ac_word=$2
  19431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19432. $as_echo_n "checking for $ac_word... " >&6; }
  19433. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  19434.   $as_echo_n "(cached) " >&6
  19435. else
  19436.   case $ac_pt_PKG_CONFIG in
  19437.   [\\/]* | ?:[\\/]*)
  19438.   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  19439.   ;;
  19440.   *)
  19441.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19442. for as_dir in $PATH
  19443. do
  19444.   IFS=$as_save_IFS
  19445.   test -z "$as_dir" && as_dir=.
  19446.     for ac_exec_ext in '' $ac_executable_extensions; do
  19447.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19448.     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19449.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19450.     break 2
  19451.   fi
  19452. done
  19453.   done
  19454. IFS=$as_save_IFS
  19455.  
  19456.   ;;
  19457. esac
  19458. fi
  19459. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  19460. if test -n "$ac_pt_PKG_CONFIG"; then
  19461.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  19462. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  19463. else
  19464.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19465. $as_echo "no" >&6; }
  19466. fi
  19467.  
  19468.   if test "x$ac_pt_PKG_CONFIG" = x; then
  19469.     PKG_CONFIG=""
  19470.   else
  19471.     case $cross_compiling:$ac_tool_warned in
  19472. yes:)
  19473. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19474. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19475. ac_tool_warned=yes ;;
  19476. esac
  19477.     PKG_CONFIG=$ac_pt_PKG_CONFIG
  19478.   fi
  19479. else
  19480.   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  19481. fi
  19482.  
  19483. fi
  19484. if test -n "$PKG_CONFIG"; then
  19485.         _pkg_min_version=0.9.0
  19486.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  19487. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  19488.         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  19489.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19490. $as_echo "yes" >&6; }
  19491.         else
  19492.                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19493. $as_echo "no" >&6; }
  19494.                 PKG_CONFIG=""
  19495.         fi
  19496. fi
  19497.  
  19498. LIB_DIR=`echo $libdir | $SED 's%.*/%%'`
  19499.  
  19500.  
  19501. _SAVE_LDFLAGS="$LDFLAGS"
  19502. _SAVE_CPPFLAGS="$CPPFLAGS"
  19503.  
  19504. DEFINES=""
  19505.  
  19506. case "$host_os" in
  19507. linux*|*-gnu*|gnu*)
  19508.     DEFINES="$DEFINES -D_GNU_SOURCE"
  19509.     ;;
  19510. solaris*)
  19511.     DEFINES="$DEFINES -DSVR4"
  19512.     ;;
  19513. cygwin*)
  19514.     DEFINES="$DEFINES -D_XOPEN_SOURCE=700"
  19515.     ;;
  19516. esac
  19517.  
  19518. if test "x$GCC" = xyes; then
  19519.     CFLAGS="$CFLAGS -Wall"
  19520.  
  19521.     if test "x$USE_GNU99" = xyes; then
  19522.         CFLAGS="$CFLAGS -std=gnu99"
  19523.     else
  19524.         CFLAGS="$CFLAGS -std=c99"
  19525.     fi
  19526.  
  19527.     # Enable -Werror=implicit-function-declaration and
  19528.     # -Werror=missing-prototypes, if available, or otherwise, just
  19529.     # -Wmissing-prototypes.  This is particularly useful to avoid
  19530.     # generating a loadable driver module that has undefined symbols.
  19531.     save_CFLAGS="$CFLAGS"
  19532.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror=missing-prototypes" >&5
  19533. $as_echo_n "checking whether $CC supports -Werror=missing-prototypes... " >&6; }
  19534.     CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
  19535.     CFLAGS="$CFLAGS -Werror=missing-prototypes"
  19536.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19537. /* end confdefs.h.  */
  19538.  
  19539. int
  19540. main ()
  19541. {
  19542.  
  19543.   ;
  19544.   return 0;
  19545. }
  19546. _ACEOF
  19547. if ac_fn_c_try_link "$LINENO"; then :
  19548.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19549. $as_echo "yes" >&6; }
  19550. else
  19551.   CFLAGS="$save_CFLAGS -Wmissing-prototypes";
  19552.                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19553. $as_echo "no" >&6; }
  19554. fi
  19555. rm -f core conftest.err conftest.$ac_objext \
  19556.     conftest$ac_exeext conftest.$ac_ext;
  19557.  
  19558.     # Enable -fvisibility=hidden if using a gcc that supports it
  19559.     save_CFLAGS="$CFLAGS"
  19560.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fvisibility=hidden" >&5
  19561. $as_echo_n "checking whether $CC supports -fvisibility=hidden... " >&6; }
  19562.     VISIBILITY_CFLAGS="-fvisibility=hidden"
  19563.     CFLAGS="$CFLAGS $VISIBILITY_CFLAGS"
  19564.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19565. /* end confdefs.h.  */
  19566.  
  19567. int
  19568. main ()
  19569. {
  19570.  
  19571.   ;
  19572.   return 0;
  19573. }
  19574. _ACEOF
  19575. if ac_fn_c_try_link "$LINENO"; then :
  19576.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19577. $as_echo "yes" >&6; }
  19578. else
  19579.   VISIBILITY_CFLAGS=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19580. $as_echo "no" >&6; }
  19581. fi
  19582. rm -f core conftest.err conftest.$ac_objext \
  19583.     conftest$ac_exeext conftest.$ac_ext;
  19584.  
  19585.     # Restore CFLAGS; VISIBILITY_CFLAGS are added to it where needed.
  19586.     CFLAGS=$save_CFLAGS
  19587.  
  19588.     # Work around aliasing bugs - developers should comment this out
  19589.     CFLAGS="$CFLAGS -fno-strict-aliasing"
  19590.  
  19591.     # gcc's builtin memcmp is slower than glibc's
  19592.     # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052
  19593.     CFLAGS="$CFLAGS -fno-builtin-memcmp"
  19594.  
  19595.     # Flags to help ensure that certain portions of the code -- and only those
  19596.     # portions -- can be built with MSVC:
  19597.     # - src/util, src/gallium/auxiliary, and src/gallium/drivers/llvmpipe needs
  19598.     #   to build with Windows SDK 7.0.7600, which bundles MSVC 2008
  19599.     # - non-Linux/Posix OpenGL portions needs to build on MSVC 2013 (which
  19600.     #   supports most of C99)
  19601.     # - the rest has no compiler compiler restrictions
  19602.     MSVC2013_COMPAT_CFLAGS="-Werror=pointer-arith"
  19603.     MSVC2013_COMPAT_CXXFLAGS="-Werror=pointer-arith"
  19604.  
  19605.     # Enable -Werror=vla if compiler supports it
  19606.     save_CFLAGS="$CFLAGS"
  19607.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror=vla" >&5
  19608. $as_echo_n "checking whether $CC supports -Werror=vla... " >&6; }
  19609.     CFLAGS="$CFLAGS -Werror=vla"
  19610.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19611. /* end confdefs.h.  */
  19612.  
  19613. int
  19614. main ()
  19615. {
  19616.  
  19617.   ;
  19618.   return 0;
  19619. }
  19620. _ACEOF
  19621. if ac_fn_c_try_link "$LINENO"; then :
  19622.   MSVC2013_COMPAT_CFLAGS="$MSVC2013_COMPAT_CFLAGS -Werror=vla";
  19623.                     MSVC2013_COMPAT_CXXFLAGS="$MSVC2013_COMPAT_CXXFLAGS -Werror=vla";
  19624.                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19625. $as_echo "yes" >&6; }
  19626. else
  19627.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19628. $as_echo "no" >&6; }
  19629. fi
  19630. rm -f core conftest.err conftest.$ac_objext \
  19631.     conftest$ac_exeext conftest.$ac_ext;
  19632.     CFLAGS="$save_CFLAGS"
  19633.  
  19634.     MSVC2008_COMPAT_CFLAGS="$MSVC2013_COMPAT_CFLAGS -Werror=declaration-after-statement"
  19635.     MSVC2008_COMPAT_CXXFLAGS="$MSVC2013_COMPAT_CXXFLAGS"
  19636. fi
  19637. if test "x$GXX" = xyes; then
  19638.     CXXFLAGS="$CXXFLAGS -Wall"
  19639.  
  19640.     # Enable -fvisibility=hidden if using a gcc that supports it
  19641.     save_CXXFLAGS="$CXXFLAGS"
  19642.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -fvisibility=hidden" >&5
  19643. $as_echo_n "checking whether $CXX supports -fvisibility=hidden... " >&6; }
  19644.     VISIBILITY_CXXFLAGS="-fvisibility=hidden"
  19645.     CXXFLAGS="$CXXFLAGS $VISIBILITY_CXXFLAGS"
  19646.     ac_ext=cpp
  19647. ac_cpp='$CXXCPP $CPPFLAGS'
  19648. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19649. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19650. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  19651.  
  19652.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19653. /* end confdefs.h.  */
  19654.  
  19655. int
  19656. main ()
  19657. {
  19658.  
  19659.   ;
  19660.   return 0;
  19661. }
  19662. _ACEOF
  19663. if ac_fn_cxx_try_link "$LINENO"; then :
  19664.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19665. $as_echo "yes" >&6; }
  19666. else
  19667.   VISIBILITY_CXXFLAGS="" ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19668. $as_echo "no" >&6; }
  19669. fi
  19670. rm -f core conftest.err conftest.$ac_objext \
  19671.     conftest$ac_exeext conftest.$ac_ext;
  19672.     ac_ext=c
  19673. ac_cpp='$CPP $CPPFLAGS'
  19674. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  19675. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  19676. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  19677.  
  19678.  
  19679.     # Restore CXXFLAGS; VISIBILITY_CXXFLAGS are added to it where needed.
  19680.     CXXFLAGS=$save_CXXFLAGS
  19681.  
  19682.     # Work around aliasing bugs - developers should comment this out
  19683.     CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
  19684.  
  19685.     # gcc's builtin memcmp is slower than glibc's
  19686.     # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052
  19687.     CXXFLAGS="$CXXFLAGS -fno-builtin-memcmp"
  19688. fi
  19689.  
  19690.  
  19691.  
  19692.  
  19693.  
  19694.  
  19695. case "$host_os" in
  19696. cygwin*)
  19697.     VISIBILITY_CFLAGS=""
  19698.     VISIBILITY_CXXFLAGS=""
  19699.     ;;
  19700. esac
  19701.  
  19702.  
  19703.  
  19704.  
  19705. SSE41_CFLAGS="-msse4.1"
  19706. case "$target_cpu" in
  19707. i?86)
  19708.     SSE41_CFLAGS="$SSE41_CFLAGS -mstackrealign"
  19709.     ;;
  19710. esac
  19711. save_CFLAGS="$CFLAGS"
  19712. CFLAGS="$SSE41_CFLAGS $CFLAGS"
  19713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19714. /* end confdefs.h.  */
  19715.  
  19716. #include <smmintrin.h>
  19717. int main () {
  19718.     __m128i a = _mm_set1_epi32 (0), b = _mm_set1_epi32 (0), c;
  19719.     c = _mm_max_epu32(a, b);
  19720.     return 0;
  19721. }
  19722. _ACEOF
  19723. if ac_fn_c_try_compile "$LINENO"; then :
  19724.   SSE41_SUPPORTED=1
  19725. fi
  19726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19727. CFLAGS="$save_CFLAGS"
  19728. if test "x$SSE41_SUPPORTED" = x1; then
  19729.     DEFINES="$DEFINES -DUSE_SSE41"
  19730. fi
  19731.  if test x$SSE41_SUPPORTED = x1; then
  19732.   SSE41_SUPPORTED_TRUE=
  19733.   SSE41_SUPPORTED_FALSE='#'
  19734. else
  19735.   SSE41_SUPPORTED_TRUE='#'
  19736.   SSE41_SUPPORTED_FALSE=
  19737. fi
  19738.  
  19739. SSE41_CFLAGS=$SSE41_CFLAGS
  19740.  
  19741.  
  19742. case "x$enable_static$enable_shared" in
  19743. xyesyes)
  19744.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build static and shared libraries, disabling shared" >&5
  19745. $as_echo "$as_me: WARNING: Cannot build static and shared libraries, disabling shared" >&2;}
  19746.     enable_shared=no
  19747.     ;;
  19748. xnono)
  19749.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot disable both static and shared libraries, enabling shared" >&5
  19750. $as_echo "$as_me: WARNING: Cannot disable both static and shared libraries, enabling shared" >&2;}
  19751.     enable_shared=yes
  19752.     ;;
  19753. esac
  19754.  
  19755.  if test "x$enable_shared" = xyes; then
  19756.   BUILD_SHARED_TRUE=
  19757.   BUILD_SHARED_FALSE='#'
  19758. else
  19759.   BUILD_SHARED_TRUE='#'
  19760.   BUILD_SHARED_FALSE=
  19761. fi
  19762.  
  19763.  
  19764. # Check whether --enable-debug was given.
  19765. if test "${enable_debug+set}" = set; then :
  19766.   enableval=$enable_debug; enable_debug="$enableval"
  19767. else
  19768.   enable_debug=no
  19769.  
  19770. fi
  19771.  
  19772. if test "x$enable_debug" = xyes; then
  19773.     DEFINES="$DEFINES -DDEBUG"
  19774.     if test "x$GCC" = xyes; then
  19775.         if ! echo "$CFLAGS" | grep -q -e '-g'; then
  19776.             CFLAGS="$CFLAGS -g"
  19777.         fi
  19778.         if ! echo "$CFLAGS" | grep -q -e '-O'; then
  19779.             CFLAGS="$CFLAGS -O0"
  19780.         fi
  19781.     fi
  19782.     if test "x$GXX" = xyes; then
  19783.         if ! echo "$CXXFLAGS" | grep -q -e '-g'; then
  19784.             CXXFLAGS="$CXXFLAGS -g"
  19785.         fi
  19786.         if ! echo "$CXXFLAGS" | grep -q -e '-O'; then
  19787.             CXXFLAGS="$CXXFLAGS -O0"
  19788.         fi
  19789.     fi
  19790. else
  19791.    DEFINES="$DEFINES -DNDEBUG"
  19792. fi
  19793.  
  19794. save_LDFLAGS=$LDFLAGS
  19795. LDFLAGS="$LDFLAGS -Wl,-Bsymbolic"
  19796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld supports -Bsymbolic" >&5
  19797. $as_echo_n "checking if ld supports -Bsymbolic... " >&6; }
  19798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19799. /* end confdefs.h.  */
  19800. int main() { return 0;}
  19801. _ACEOF
  19802. if ac_fn_c_try_link "$LINENO"; then :
  19803.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19804. $as_echo "yes" >&6; }
  19805.         BSYMBOLIC="-Wl,-Bsymbolic";
  19806. else
  19807.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19808. $as_echo "no" >&6; }
  19809.         BSYMBOLIC="";
  19810. fi
  19811. rm -f core conftest.err conftest.$ac_objext \
  19812.     conftest$ac_exeext conftest.$ac_ext
  19813. LDFLAGS=$save_LDFLAGS
  19814.  
  19815.  
  19816.  
  19817. save_LDFLAGS=$LDFLAGS
  19818. LDFLAGS="$LDFLAGS -Wl,--gc-sections"
  19819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports --gc-sections" >&5
  19820. $as_echo_n "checking whether ld supports --gc-sections... " >&6; }
  19821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19822. /* end confdefs.h.  */
  19823. static char UnusedFunc() { return 5; } int main() { return 0;}
  19824. _ACEOF
  19825. if ac_fn_c_try_link "$LINENO"; then :
  19826.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19827. $as_echo "yes" >&6; }
  19828.         GC_SECTIONS="-Wl,--gc-sections";
  19829. else
  19830.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19831. $as_echo "no" >&6; }
  19832.         GC_SECTIONS="";
  19833. fi
  19834. rm -f core conftest.err conftest.$ac_objext \
  19835.     conftest$ac_exeext conftest.$ac_ext
  19836. LDFLAGS=$save_LDFLAGS
  19837.  
  19838.  
  19839.  
  19840. case "$host_os" in
  19841. openbsd* | darwin* )
  19842.     LD_NO_UNDEFINED="" ;;
  19843. *)
  19844.     LD_NO_UNDEFINED="-Wl,--no-undefined" ;;
  19845. esac
  19846.  
  19847.  
  19848.  
  19849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker supports version-scripts" >&5
  19850. $as_echo_n "checking if the linker supports version-scripts... " >&6; }
  19851. save_LDFLAGS=$LDFLAGS
  19852. LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
  19853. cat > conftest.map <<EOF
  19854. VERSION_1 {
  19855.      global:
  19856.          main;
  19857.  
  19858.      local:
  19859.          *;
  19860. };
  19861. EOF
  19862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19863. /* end confdefs.h.  */
  19864. int main() { return 0;}
  19865. _ACEOF
  19866. if ac_fn_c_try_link "$LINENO"; then :
  19867.   have_ld_version_script=yes;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19868. $as_echo "yes" >&6; }
  19869. else
  19870.   have_ld_version_script=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19871. $as_echo "no" >&6; }
  19872. fi
  19873. rm -f core conftest.err conftest.$ac_objext \
  19874.     conftest$ac_exeext conftest.$ac_ext
  19875. LDFLAGS=$save_LDFLAGS
  19876.  if test "$have_ld_version_script" = "yes"; then
  19877.   HAVE_LD_VERSION_SCRIPT_TRUE=
  19878.   HAVE_LD_VERSION_SCRIPT_FALSE='#'
  19879. else
  19880.   HAVE_LD_VERSION_SCRIPT_TRUE='#'
  19881.   HAVE_LD_VERSION_SCRIPT_FALSE=
  19882. fi
  19883.  
  19884.  
  19885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker supports --dynamic-list" >&5
  19886. $as_echo_n "checking if the linker supports --dynamic-list... " >&6; }
  19887. save_LDFLAGS=$LDFLAGS
  19888. LDFLAGS="$LDFLAGS -Wl,--dynamic-list=conftest.dyn"
  19889. cat > conftest.dyn <<EOF
  19890. {
  19891.         radeon_drm_winsys_create;
  19892. };
  19893. EOF
  19894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19895. /* end confdefs.h.  */
  19896. int main() { return 0;}
  19897. _ACEOF
  19898. if ac_fn_c_try_link "$LINENO"; then :
  19899.   have_ld_dynamic_list=yes;{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19900. $as_echo "yes" >&6; }
  19901. else
  19902.   have_ld_dynamic_list=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19903. $as_echo "no" >&6; }
  19904. fi
  19905. rm -f core conftest.err conftest.$ac_objext \
  19906.     conftest$ac_exeext conftest.$ac_ext
  19907. LDFLAGS=$save_LDFLAGS
  19908.  if test "$have_ld_dynamic_list" = "yes"; then
  19909.   HAVE_LD_DYNAMIC_LIST_TRUE=
  19910.   HAVE_LD_DYNAMIC_LIST_FALSE='#'
  19911. else
  19912.   HAVE_LD_DYNAMIC_LIST_TRUE='#'
  19913.   HAVE_LD_DYNAMIC_LIST_FALSE=
  19914. fi
  19915.  
  19916.  
  19917. case "$host_os" in
  19918. linux* )
  19919.     HAVE_COMPAT_SYMLINKS=yes ;;
  19920. * )
  19921.     HAVE_COMPAT_SYMLINKS=no ;;
  19922. esac
  19923.  
  19924.  if test "x$HAVE_COMPAT_SYMLINKS" = xyes; then
  19925.   HAVE_COMPAT_SYMLINKS_TRUE=
  19926.   HAVE_COMPAT_SYMLINKS_FALSE='#'
  19927. else
  19928.   HAVE_COMPAT_SYMLINKS_TRUE='#'
  19929.   HAVE_COMPAT_SYMLINKS_FALSE=
  19930. fi
  19931.  
  19932.  
  19933. case "$host_os" in
  19934. darwin* )
  19935.     LIB_EXT='dylib' ;;
  19936. cygwin* )
  19937.     LIB_EXT='dll' ;;
  19938. aix* )
  19939.     LIB_EXT='a' ;;
  19940. * )
  19941.     LIB_EXT='so' ;;
  19942. esac
  19943.  
  19944.  
  19945.  
  19946.  
  19947. # Check whether --with-gl-lib-name was given.
  19948. if test "${with_gl_lib_name+set}" = set; then :
  19949.   withval=$with_gl_lib_name; GL_LIB=$withval
  19950. else
  19951.   GL_LIB=GL
  19952. fi
  19953.  
  19954.  
  19955. # Check whether --with-osmesa-lib-name was given.
  19956. if test "${with_osmesa_lib_name+set}" = set; then :
  19957.   withval=$with_osmesa_lib_name; OSMESA_LIB=$withval
  19958. else
  19959.   OSMESA_LIB=OSMesa
  19960. fi
  19961.  
  19962. if test "x$GL_LIB" = xyes; then :
  19963.   GL_LIB=GL
  19964. fi
  19965. if test "x$OSMESA_LIB" = xyes; then :
  19966.   OSMESA_LIB=OSMesa
  19967. fi
  19968.  
  19969. # Check whether --enable-mangling was given.
  19970. if test "${enable_mangling+set}" = set; then :
  19971.   enableval=$enable_mangling; enable_mangling="${enableval}"
  19972. else
  19973.   enable_mangling=no
  19974.  
  19975. fi
  19976.  
  19977. if test "x${enable_mangling}" = "xyes" ; then
  19978.   DEFINES="${DEFINES} -DUSE_MGL_NAMESPACE"
  19979.   GL_LIB="Mangled${GL_LIB}"
  19980.   OSMESA_LIB="Mangled${OSMESA_LIB}"
  19981. fi
  19982.  
  19983.  
  19984.  
  19985. # Check whether --enable-texture-float was given.
  19986. if test "${enable_texture_float+set}" = set; then :
  19987.   enableval=$enable_texture_float; enable_texture_float="$enableval"
  19988. else
  19989.   enable_texture_float=no
  19990.  
  19991. fi
  19992.  
  19993. if test "x$enable_texture_float" = xyes; then
  19994.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Floating-point textures enabled." >&5
  19995. $as_echo "$as_me: WARNING: Floating-point textures enabled." >&2;}
  19996.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please consult docs/patents.txt with your lawyer before building Mesa." >&5
  19997. $as_echo "$as_me: WARNING: Please consult docs/patents.txt with your lawyer before building Mesa." >&2;}
  19998.     DEFINES="$DEFINES -DTEXTURE_FLOAT_ENABLED"
  19999. fi
  20000.  
  20001. # Check whether --enable-asm was given.
  20002. if test "${enable_asm+set}" = set; then :
  20003.   enableval=$enable_asm; enable_asm="$enableval"
  20004. else
  20005.   enable_asm=yes
  20006.  
  20007. fi
  20008.  
  20009. asm_arch=""
  20010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assembly" >&5
  20011. $as_echo_n "checking whether to enable assembly... " >&6; }
  20012. test "x$enable_asm" = xno && { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20013. $as_echo "no" >&6; }
  20014. # disable if cross compiling on x86/x86_64 since we must run gen_matypes
  20015. if test "x$enable_asm" = xyes -a "x$cross_compiling" = xyes; then
  20016.     case "$host_cpu" in
  20017.     i?86 | x86_64 | amd64)
  20018.         enable_asm=no
  20019.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cross compiling" >&5
  20020. $as_echo "no, cross compiling" >&6; }
  20021.         ;;
  20022.     esac
  20023. fi
  20024. # check for supported arches
  20025. if test "x$enable_asm" = xyes; then
  20026.     case "$host_cpu" in
  20027.     i?86)
  20028.         case "$host_os" in
  20029.         linux* | *freebsd* | dragonfly* | *netbsd* | openbsd* | gnu*)
  20030.             asm_arch=x86
  20031.             ;;
  20032.         esac
  20033.         ;;
  20034.     x86_64|amd64)
  20035.         case "$host_os" in
  20036.         linux* | *freebsd* | dragonfly* | *netbsd* | openbsd*)
  20037.             asm_arch=x86_64
  20038.             ;;
  20039.         esac
  20040.         ;;
  20041.     sparc*)
  20042.         case "$host_os" in
  20043.         linux*)
  20044.             asm_arch=sparc
  20045.             ;;
  20046.         esac
  20047.         ;;
  20048.     esac
  20049.  
  20050.     case "$asm_arch" in
  20051.     x86)
  20052.         DEFINES="$DEFINES -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM"
  20053.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, x86" >&5
  20054. $as_echo "yes, x86" >&6; }
  20055.         ;;
  20056.     x86_64|amd64)
  20057.         DEFINES="$DEFINES -DUSE_X86_64_ASM"
  20058.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, x86_64" >&5
  20059. $as_echo "yes, x86_64" >&6; }
  20060.         ;;
  20061.     sparc)
  20062.         DEFINES="$DEFINES -DUSE_SPARC_ASM"
  20063.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, sparc" >&5
  20064. $as_echo "yes, sparc" >&6; }
  20065.         ;;
  20066.     *)
  20067.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, platform not supported" >&5
  20068. $as_echo "no, platform not supported" >&6; }
  20069.         ;;
  20070.     esac
  20071. fi
  20072.  
  20073. ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
  20074. if test "x$ac_cv_header_xlocale_h" = xyes; then :
  20075.   DEFINES="$DEFINES -DHAVE_XLOCALE_H"
  20076. fi
  20077.  
  20078.  
  20079. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default"
  20080. if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
  20081.   DEFINES="$DEFINES -DHAVE_SYS_SYSCTL_H"
  20082. fi
  20083.  
  20084.  
  20085. ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
  20086. if test "x$ac_cv_func_strtof" = xyes; then :
  20087.   DEFINES="$DEFINES -DHAVE_STRTOF"
  20088. fi
  20089.  
  20090.  
  20091. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  20092. if test "x$ac_cv_func_dlopen" = xyes; then :
  20093.   DEFINES="$DEFINES -DHAVE_DLOPEN"
  20094. else
  20095.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20096. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20097. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20098.   $as_echo_n "(cached) " >&6
  20099. else
  20100.   ac_check_lib_save_LIBS=$LIBS
  20101. LIBS="-ldl  $LIBS"
  20102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20103. /* end confdefs.h.  */
  20104.  
  20105. /* Override any GCC internal prototype to avoid an error.
  20106.    Use char because int might match the return type of a GCC
  20107.    builtin and then its argument prototype would still apply.  */
  20108. #ifdef __cplusplus
  20109. extern "C"
  20110. #endif
  20111. char dlopen ();
  20112. int
  20113. main ()
  20114. {
  20115. return dlopen ();
  20116.   ;
  20117.   return 0;
  20118. }
  20119. _ACEOF
  20120. if ac_fn_c_try_link "$LINENO"; then :
  20121.   ac_cv_lib_dl_dlopen=yes
  20122. else
  20123.   ac_cv_lib_dl_dlopen=no
  20124. fi
  20125. rm -f core conftest.err conftest.$ac_objext \
  20126.     conftest$ac_exeext conftest.$ac_ext
  20127. LIBS=$ac_check_lib_save_LIBS
  20128. fi
  20129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20130. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20131. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20132.   DEFINES="$DEFINES -DHAVE_DLOPEN"; DLOPEN_LIBS="-ldl"
  20133. fi
  20134.  
  20135. fi
  20136.  
  20137.  
  20138.  
  20139. save_LIBS="$LIBS"
  20140. LIBS="$LIBS $DLOPEN_LIBS"
  20141. for ac_func in dladdr
  20142. do :
  20143.   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
  20144. if test "x$ac_cv_func_dladdr" = xyes; then :
  20145.   cat >>confdefs.h <<_ACEOF
  20146. #define HAVE_DLADDR 1
  20147. _ACEOF
  20148.  
  20149. fi
  20150. done
  20151.  
  20152. LIBS="$save_LIBS"
  20153.  
  20154. case "$host_os" in
  20155. darwin*)
  20156.     ;;
  20157. *)
  20158.     for ac_func in clock_gettime
  20159. do :
  20160.   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
  20161. if test "x$ac_cv_func_clock_gettime" = xyes; then :
  20162.   cat >>confdefs.h <<_ACEOF
  20163. #define HAVE_CLOCK_GETTIME 1
  20164. _ACEOF
  20165.  CLOCK_LIB=
  20166. else
  20167.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20168. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20169. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20170.   $as_echo_n "(cached) " >&6
  20171. else
  20172.   ac_check_lib_save_LIBS=$LIBS
  20173. LIBS="-lrt  $LIBS"
  20174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20175. /* end confdefs.h.  */
  20176.  
  20177. /* Override any GCC internal prototype to avoid an error.
  20178.    Use char because int might match the return type of a GCC
  20179.    builtin and then its argument prototype would still apply.  */
  20180. #ifdef __cplusplus
  20181. extern "C"
  20182. #endif
  20183. char clock_gettime ();
  20184. int
  20185. main ()
  20186. {
  20187. return clock_gettime ();
  20188.   ;
  20189.   return 0;
  20190. }
  20191. _ACEOF
  20192. if ac_fn_c_try_link "$LINENO"; then :
  20193.   ac_cv_lib_rt_clock_gettime=yes
  20194. else
  20195.   ac_cv_lib_rt_clock_gettime=no
  20196. fi
  20197. rm -f core conftest.err conftest.$ac_objext \
  20198.     conftest$ac_exeext conftest.$ac_ext
  20199. LIBS=$ac_check_lib_save_LIBS
  20200. fi
  20201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20202. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20203. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20204.   CLOCK_LIB=-lrt
  20205. else
  20206.   as_fn_error $? "Could not find clock_gettime" "$LINENO" 5
  20207. fi
  20208.  
  20209. fi
  20210. done
  20211.  
  20212.  
  20213.     ;;
  20214. esac
  20215.  
  20216. ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
  20217. if test "x$ac_cv_func_posix_memalign" = xyes; then :
  20218.   DEFINES="$DEFINES -DHAVE_POSIX_MEMALIGN"
  20219. fi
  20220.  
  20221.  
  20222.  
  20223.  
  20224. ac_ext=c
  20225. ac_cpp='$CPP $CPPFLAGS'
  20226. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20227. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20228. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20229.  
  20230. ax_pthread_ok=no
  20231.  
  20232. # We used to check for pthread.h first, but this fails if pthread.h
  20233. # requires special compiler flags (e.g. on True64 or Sequent).
  20234. # It gets checked for in the link test anyway.
  20235.  
  20236. # First of all, check if the user has set any of the PTHREAD_LIBS,
  20237. # etcetera environment variables, and if threads linking works using
  20238. # them:
  20239. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  20240.         save_CFLAGS="$CFLAGS"
  20241.         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  20242.         save_LIBS="$LIBS"
  20243.         LIBS="$PTHREAD_LIBS $LIBS"
  20244.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  20245. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  20246.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20247. /* end confdefs.h.  */
  20248.  
  20249. /* Override any GCC internal prototype to avoid an error.
  20250.    Use char because int might match the return type of a GCC
  20251.    builtin and then its argument prototype would still apply.  */
  20252. #ifdef __cplusplus
  20253. extern "C"
  20254. #endif
  20255. char pthread_join ();
  20256. int
  20257. main ()
  20258. {
  20259. return pthread_join ();
  20260.   ;
  20261.   return 0;
  20262. }
  20263. _ACEOF
  20264. if ac_fn_c_try_link "$LINENO"; then :
  20265.   ax_pthread_ok=yes
  20266. fi
  20267. rm -f core conftest.err conftest.$ac_objext \
  20268.     conftest$ac_exeext conftest.$ac_ext
  20269.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  20270. $as_echo "$ax_pthread_ok" >&6; }
  20271.         if test x"$ax_pthread_ok" = xno; then
  20272.                 PTHREAD_LIBS=""
  20273.                 PTHREAD_CFLAGS=""
  20274.         fi
  20275.         LIBS="$save_LIBS"
  20276.         CFLAGS="$save_CFLAGS"
  20277. fi
  20278.  
  20279. # We must check for the threads library under a number of different
  20280. # names; the ordering is very important because some systems
  20281. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  20282. # libraries is broken (non-POSIX).
  20283.  
  20284. # Create a list of thread flags to try.  Items starting with a "-" are
  20285. # C compiler flags, and other items are library names, except for "none"
  20286. # which indicates that we try without any flags at all, and "pthread-config"
  20287. # which is a program returning the flags for the Pth emulation library.
  20288.  
  20289. ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  20290.  
  20291. # The ordering *is* (sometimes) important.  Some notes on the
  20292. # individual items follow:
  20293.  
  20294. # pthreads: AIX (must check this before -lpthread)
  20295. # none: in case threads are in libc; should be tried before -Kthread and
  20296. #       other compiler flags to prevent continual compiler warnings
  20297. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  20298. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  20299. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  20300. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  20301. # -pthreads: Solaris/gcc
  20302. # -mthreads: Mingw32/gcc, Lynx/gcc
  20303. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  20304. #      doesn't hurt to check since this sometimes defines pthreads too;
  20305. #      also defines -D_REENTRANT)
  20306. #      ... -mt is also the pthreads flag for HP/aCC
  20307. # pthread: Linux, etcetera
  20308. # --thread-safe: KAI C++
  20309. # pthread-config: use pthread-config program (for GNU Pth library)
  20310.  
  20311. case ${host_os} in
  20312.         solaris*)
  20313.  
  20314.         # On Solaris (at least, for some versions), libc contains stubbed
  20315.         # (non-functional) versions of the pthreads routines, so link-based
  20316.         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
  20317.         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
  20318.         # a function called by this macro, so we could check for that, but
  20319.         # who knows whether they'll stub that too in a future libc.)  So,
  20320.         # we'll just look for -pthreads and -lpthread first:
  20321.  
  20322.         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
  20323.         ;;
  20324.  
  20325.         darwin*)
  20326.         ax_pthread_flags="-pthread $ax_pthread_flags"
  20327.         ;;
  20328. esac
  20329.  
  20330. if test x"$ax_pthread_ok" = xno; then
  20331. for flag in $ax_pthread_flags; do
  20332.  
  20333.         case $flag in
  20334.                 none)
  20335.                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  20336. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  20337.                 ;;
  20338.  
  20339.                 -*)
  20340.                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  20341. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  20342.                 PTHREAD_CFLAGS="$flag"
  20343.                 ;;
  20344.  
  20345.                 pthread-config)
  20346.                 # Extract the first word of "pthread-config", so it can be a program name with args.
  20347. set dummy pthread-config; ac_word=$2
  20348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20349. $as_echo_n "checking for $ac_word... " >&6; }
  20350. if ${ac_cv_prog_ax_pthread_config+:} false; then :
  20351.   $as_echo_n "(cached) " >&6
  20352. else
  20353.   if test -n "$ax_pthread_config"; then
  20354.   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  20355. else
  20356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20357. for as_dir in $PATH
  20358. do
  20359.   IFS=$as_save_IFS
  20360.   test -z "$as_dir" && as_dir=.
  20361.     for ac_exec_ext in '' $ac_executable_extensions; do
  20362.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20363.     ac_cv_prog_ax_pthread_config="yes"
  20364.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20365.     break 2
  20366.   fi
  20367. done
  20368.   done
  20369. IFS=$as_save_IFS
  20370.  
  20371.   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  20372. fi
  20373. fi
  20374. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  20375. if test -n "$ax_pthread_config"; then
  20376.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  20377. $as_echo "$ax_pthread_config" >&6; }
  20378. else
  20379.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20380. $as_echo "no" >&6; }
  20381. fi
  20382.  
  20383.  
  20384.                 if test x"$ax_pthread_config" = xno; then continue; fi
  20385.                 PTHREAD_CFLAGS="`pthread-config --cflags`"
  20386.                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  20387.                 ;;
  20388.  
  20389.                 *)
  20390.                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  20391. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  20392.                 PTHREAD_LIBS="-l$flag"
  20393.                 ;;
  20394.         esac
  20395.  
  20396.         save_LIBS="$LIBS"
  20397.         save_CFLAGS="$CFLAGS"
  20398.         LIBS="$PTHREAD_LIBS $LIBS"
  20399.         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  20400.  
  20401.         # Check for various functions.  We must include pthread.h,
  20402.         # since some functions may be macros.  (On the Sequent, we
  20403.         # need a special flag -Kthread to make this header compile.)
  20404.         # We check for pthread_join because it is in -lpthread on IRIX
  20405.         # while pthread_create is in libc.  We check for pthread_attr_init
  20406.         # due to DEC craziness with -lpthreads.  We check for
  20407.         # pthread_cleanup_push because it is one of the few pthread
  20408.         # functions on Solaris that doesn't have a non-functional libc stub.
  20409.         # We try pthread_create on general principles.
  20410.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20411. /* end confdefs.h.  */
  20412. #include <pthread.h>
  20413.                         static void routine(void *a) { a = 0; }
  20414.                         static void *start_routine(void *a) { return a; }
  20415. int
  20416. main ()
  20417. {
  20418. pthread_t th; pthread_attr_t attr;
  20419.                         pthread_create(&th, 0, start_routine, 0);
  20420.                         pthread_join(th, 0);
  20421.                         pthread_attr_init(&attr);
  20422.                         pthread_cleanup_push(routine, 0);
  20423.                         pthread_cleanup_pop(0) /* ; */
  20424.   ;
  20425.   return 0;
  20426. }
  20427. _ACEOF
  20428. if ac_fn_c_try_link "$LINENO"; then :
  20429.   ax_pthread_ok=yes
  20430. fi
  20431. rm -f core conftest.err conftest.$ac_objext \
  20432.     conftest$ac_exeext conftest.$ac_ext
  20433.  
  20434.         LIBS="$save_LIBS"
  20435.         CFLAGS="$save_CFLAGS"
  20436.  
  20437.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  20438. $as_echo "$ax_pthread_ok" >&6; }
  20439.         if test "x$ax_pthread_ok" = xyes; then
  20440.                 break;
  20441.         fi
  20442.  
  20443.         PTHREAD_LIBS=""
  20444.         PTHREAD_CFLAGS=""
  20445. done
  20446. fi
  20447.  
  20448. # Various other checks:
  20449. if test "x$ax_pthread_ok" = xyes; then
  20450.         save_LIBS="$LIBS"
  20451.         LIBS="$PTHREAD_LIBS $LIBS"
  20452.         save_CFLAGS="$CFLAGS"
  20453.         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  20454.  
  20455.         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  20456.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  20457. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  20458.         attr_name=unknown
  20459.         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  20460.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20461. /* end confdefs.h.  */
  20462. #include <pthread.h>
  20463. int
  20464. main ()
  20465. {
  20466. int attr = $attr; return attr /* ; */
  20467.   ;
  20468.   return 0;
  20469. }
  20470. _ACEOF
  20471. if ac_fn_c_try_link "$LINENO"; then :
  20472.   attr_name=$attr; break
  20473. fi
  20474. rm -f core conftest.err conftest.$ac_objext \
  20475.     conftest$ac_exeext conftest.$ac_ext
  20476.         done
  20477.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  20478. $as_echo "$attr_name" >&6; }
  20479.         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  20480.  
  20481. cat >>confdefs.h <<_ACEOF
  20482. #define PTHREAD_CREATE_JOINABLE $attr_name
  20483. _ACEOF
  20484.  
  20485.         fi
  20486.  
  20487.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  20488. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  20489.         flag=no
  20490.         case ${host_os} in
  20491.             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
  20492.             osf* | hpux*) flag="-D_REENTRANT";;
  20493.             solaris*)
  20494.             if test "$GCC" = "yes"; then
  20495.                 flag="-D_REENTRANT"
  20496.             else
  20497.                 flag="-mt -D_REENTRANT"
  20498.             fi
  20499.             ;;
  20500.         esac
  20501.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  20502. $as_echo "${flag}" >&6; }
  20503.         if test "x$flag" != xno; then
  20504.             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  20505.         fi
  20506.  
  20507.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  20508. $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  20509. if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
  20510.   $as_echo_n "(cached) " >&6
  20511. else
  20512.  
  20513.                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20514. /* end confdefs.h.  */
  20515.  
  20516.                     #include <pthread.h>
  20517. int
  20518. main ()
  20519. {
  20520. int i = PTHREAD_PRIO_INHERIT;
  20521.   ;
  20522.   return 0;
  20523. }
  20524. _ACEOF
  20525. if ac_fn_c_try_link "$LINENO"; then :
  20526.   ax_cv_PTHREAD_PRIO_INHERIT=yes
  20527. else
  20528.   ax_cv_PTHREAD_PRIO_INHERIT=no
  20529. fi
  20530. rm -f core conftest.err conftest.$ac_objext \
  20531.     conftest$ac_exeext conftest.$ac_ext
  20532.  
  20533. fi
  20534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  20535. $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  20536.         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
  20537.  
  20538. $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  20539.  
  20540. fi
  20541.  
  20542.         LIBS="$save_LIBS"
  20543.         CFLAGS="$save_CFLAGS"
  20544.  
  20545.         # More AIX lossage: must compile with xlc_r or cc_r
  20546.         if test x"$GCC" != xyes; then
  20547.           for ac_prog in xlc_r cc_r
  20548. do
  20549.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  20550. set dummy $ac_prog; ac_word=$2
  20551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20552. $as_echo_n "checking for $ac_word... " >&6; }
  20553. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  20554.   $as_echo_n "(cached) " >&6
  20555. else
  20556.   if test -n "$PTHREAD_CC"; then
  20557.   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  20558. else
  20559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20560. for as_dir in $PATH
  20561. do
  20562.   IFS=$as_save_IFS
  20563.   test -z "$as_dir" && as_dir=.
  20564.     for ac_exec_ext in '' $ac_executable_extensions; do
  20565.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20566.     ac_cv_prog_PTHREAD_CC="$ac_prog"
  20567.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20568.     break 2
  20569.   fi
  20570. done
  20571.   done
  20572. IFS=$as_save_IFS
  20573.  
  20574. fi
  20575. fi
  20576. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  20577. if test -n "$PTHREAD_CC"; then
  20578.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  20579. $as_echo "$PTHREAD_CC" >&6; }
  20580. else
  20581.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20582. $as_echo "no" >&6; }
  20583. fi
  20584.  
  20585.  
  20586.   test -n "$PTHREAD_CC" && break
  20587. done
  20588. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  20589.  
  20590.         else
  20591.           PTHREAD_CC=$CC
  20592.         fi
  20593. else
  20594.         PTHREAD_CC="$CC"
  20595. fi
  20596.  
  20597.  
  20598.  
  20599.  
  20600.  
  20601. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  20602. if test x"$ax_pthread_ok" = xyes; then
  20603.  
  20604. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  20605.  
  20606.         :
  20607. else
  20608.         ax_pthread_ok=no
  20609.  
  20610. fi
  20611. ac_ext=c
  20612. ac_cpp='$CPP $CPPFLAGS'
  20613. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20614. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20615. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20616.  
  20617.  
  20618. if test "x$ax_pthread_ok" = xno; then
  20619.     as_fn_error $? "Building mesa on this platform requires pthreads" "$LINENO" 5
  20620. fi
  20621. test -z "$PTHREAD_LIBS" && PTHREAD_LIBS="-lpthread"
  20622.  
  20623. # Check whether --enable-selinux was given.
  20624. if test "${enable_selinux+set}" = set; then :
  20625.   enableval=$enable_selinux; MESA_SELINUX="$enableval"
  20626. else
  20627.   MESA_SELINUX=no
  20628. fi
  20629.  
  20630. if test "x$enable_selinux" = "xyes"; then
  20631.  
  20632. pkg_failed=no
  20633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5
  20634. $as_echo_n "checking for SELINUX... " >&6; }
  20635.  
  20636. if test -n "$SELINUX_CFLAGS"; then
  20637.     pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
  20638.  elif test -n "$PKG_CONFIG"; then
  20639.     if test -n "$PKG_CONFIG" && \
  20640.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
  20641.   ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
  20642.   ac_status=$?
  20643.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20644.   test $ac_status = 0; }; then
  20645.   pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null`
  20646.                       test "x$?" != "x0" && pkg_failed=yes
  20647. else
  20648.   pkg_failed=yes
  20649. fi
  20650.  else
  20651.     pkg_failed=untried
  20652. fi
  20653. if test -n "$SELINUX_LIBS"; then
  20654.     pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
  20655.  elif test -n "$PKG_CONFIG"; then
  20656.     if test -n "$PKG_CONFIG" && \
  20657.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
  20658.   ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
  20659.   ac_status=$?
  20660.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20661.   test $ac_status = 0; }; then
  20662.   pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null`
  20663.                       test "x$?" != "x0" && pkg_failed=yes
  20664. else
  20665.   pkg_failed=yes
  20666. fi
  20667.  else
  20668.     pkg_failed=untried
  20669. fi
  20670.  
  20671.  
  20672.  
  20673. if test $pkg_failed = yes; then
  20674.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20675. $as_echo "no" >&6; }
  20676.  
  20677. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20678.         _pkg_short_errors_supported=yes
  20679. else
  20680.         _pkg_short_errors_supported=no
  20681. fi
  20682.         if test $_pkg_short_errors_supported = yes; then
  20683.                 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1`
  20684.         else
  20685.                 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1`
  20686.         fi
  20687.         # Put the nasty error message in config.log where it belongs
  20688.         echo "$SELINUX_PKG_ERRORS" >&5
  20689.  
  20690.         ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
  20691. if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
  20692.  
  20693. else
  20694.   as_fn_error $? "SELinux headers not found" "$LINENO" 5
  20695. fi
  20696.  
  20697.  
  20698.          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
  20699. $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
  20700. if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
  20701.   $as_echo_n "(cached) " >&6
  20702. else
  20703.   ac_check_lib_save_LIBS=$LIBS
  20704. LIBS="-lselinux  $LIBS"
  20705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20706. /* end confdefs.h.  */
  20707.  
  20708. /* Override any GCC internal prototype to avoid an error.
  20709.    Use char because int might match the return type of a GCC
  20710.    builtin and then its argument prototype would still apply.  */
  20711. #ifdef __cplusplus
  20712. extern "C"
  20713. #endif
  20714. char is_selinux_enabled ();
  20715. int
  20716. main ()
  20717. {
  20718. return is_selinux_enabled ();
  20719.   ;
  20720.   return 0;
  20721. }
  20722. _ACEOF
  20723. if ac_fn_c_try_link "$LINENO"; then :
  20724.   ac_cv_lib_selinux_is_selinux_enabled=yes
  20725. else
  20726.   ac_cv_lib_selinux_is_selinux_enabled=no
  20727. fi
  20728. rm -f core conftest.err conftest.$ac_objext \
  20729.     conftest$ac_exeext conftest.$ac_ext
  20730. LIBS=$ac_check_lib_save_LIBS
  20731. fi
  20732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
  20733. $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
  20734. if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
  20735.   cat >>confdefs.h <<_ACEOF
  20736. #define HAVE_LIBSELINUX 1
  20737. _ACEOF
  20738.  
  20739.   LIBS="-lselinux $LIBS"
  20740.  
  20741. else
  20742.   as_fn_error $? "SELinux library not found" "$LINENO" 5
  20743. fi
  20744.  
  20745.          SELINUX_LIBS="-lselinux"
  20746. elif test $pkg_failed = untried; then
  20747.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20748. $as_echo "no" >&6; }
  20749.         ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
  20750. if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
  20751.  
  20752. else
  20753.   as_fn_error $? "SELinux headers not found" "$LINENO" 5
  20754. fi
  20755.  
  20756.  
  20757.          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
  20758. $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
  20759. if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
  20760.   $as_echo_n "(cached) " >&6
  20761. else
  20762.   ac_check_lib_save_LIBS=$LIBS
  20763. LIBS="-lselinux  $LIBS"
  20764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20765. /* end confdefs.h.  */
  20766.  
  20767. /* Override any GCC internal prototype to avoid an error.
  20768.    Use char because int might match the return type of a GCC
  20769.    builtin and then its argument prototype would still apply.  */
  20770. #ifdef __cplusplus
  20771. extern "C"
  20772. #endif
  20773. char is_selinux_enabled ();
  20774. int
  20775. main ()
  20776. {
  20777. return is_selinux_enabled ();
  20778.   ;
  20779.   return 0;
  20780. }
  20781. _ACEOF
  20782. if ac_fn_c_try_link "$LINENO"; then :
  20783.   ac_cv_lib_selinux_is_selinux_enabled=yes
  20784. else
  20785.   ac_cv_lib_selinux_is_selinux_enabled=no
  20786. fi
  20787. rm -f core conftest.err conftest.$ac_objext \
  20788.     conftest$ac_exeext conftest.$ac_ext
  20789. LIBS=$ac_check_lib_save_LIBS
  20790. fi
  20791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
  20792. $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
  20793. if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
  20794.   cat >>confdefs.h <<_ACEOF
  20795. #define HAVE_LIBSELINUX 1
  20796. _ACEOF
  20797.  
  20798.   LIBS="-lselinux $LIBS"
  20799.  
  20800. else
  20801.   as_fn_error $? "SELinux library not found" "$LINENO" 5
  20802. fi
  20803.  
  20804.          SELINUX_LIBS="-lselinux"
  20805. else
  20806.         SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
  20807.         SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
  20808.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20809. $as_echo "yes" >&6; }
  20810.  
  20811. fi
  20812.     DEFINES="$DEFINES -DMESA_SELINUX"
  20813. fi
  20814.  
  20815.  
  20816.  
  20817. # Check whether --enable-opengl was given.
  20818. if test "${enable_opengl+set}" = set; then :
  20819.   enableval=$enable_opengl; enable_opengl="$enableval"
  20820. else
  20821.   enable_opengl=yes
  20822. fi
  20823.  
  20824. # Check whether --enable-gles1 was given.
  20825. if test "${enable_gles1+set}" = set; then :
  20826.   enableval=$enable_gles1; enable_gles1="$enableval"
  20827. else
  20828.   enable_gles1=no
  20829. fi
  20830.  
  20831. # Check whether --enable-gles2 was given.
  20832. if test "${enable_gles2+set}" = set; then :
  20833.   enableval=$enable_gles2; enable_gles2="$enableval"
  20834. else
  20835.   enable_gles2=no
  20836. fi
  20837.  
  20838.  
  20839. # Check whether --enable-dri was given.
  20840. if test "${enable_dri+set}" = set; then :
  20841.   enableval=$enable_dri; enable_dri="$enableval"
  20842. else
  20843.   enable_dri=yes
  20844. fi
  20845.  
  20846.  
  20847. case "$host_os" in
  20848. linux*)
  20849.     dri3_default=yes
  20850.     ;;
  20851. *)
  20852.     dri3_default=no
  20853.     ;;
  20854. esac
  20855. # Check whether --enable-dri3 was given.
  20856. if test "${enable_dri3+set}" = set; then :
  20857.   enableval=$enable_dri3; enable_dri3="$enableval"
  20858. else
  20859.   enable_dri3="$dri3_default"
  20860. fi
  20861.  
  20862. # Check whether --enable-glx was given.
  20863. if test "${enable_glx+set}" = set; then :
  20864.   enableval=$enable_glx; enable_glx="$enableval"
  20865. else
  20866.   enable_glx=yes
  20867. fi
  20868.  
  20869. # Check whether --enable-osmesa was given.
  20870. if test "${enable_osmesa+set}" = set; then :
  20871.   enableval=$enable_osmesa; enable_osmesa="$enableval"
  20872. else
  20873.   enable_osmesa=no
  20874. fi
  20875.  
  20876. # Check whether --enable-gallium-osmesa was given.
  20877. if test "${enable_gallium_osmesa+set}" = set; then :
  20878.   enableval=$enable_gallium_osmesa; enable_gallium_osmesa="$enableval"
  20879. else
  20880.   enable_gallium_osmesa=no
  20881. fi
  20882.  
  20883. # Check whether --enable-egl was given.
  20884. if test "${enable_egl+set}" = set; then :
  20885.   enableval=$enable_egl; enable_egl="$enableval"
  20886. else
  20887.   enable_egl=yes
  20888. fi
  20889.  
  20890.  
  20891. # Check whether --enable-xa was given.
  20892. if test "${enable_xa+set}" = set; then :
  20893.   enableval=$enable_xa; enable_xa="$enableval"
  20894. else
  20895.   enable_xa=no
  20896. fi
  20897.  
  20898. # Check whether --enable-gbm was given.
  20899. if test "${enable_gbm+set}" = set; then :
  20900.   enableval=$enable_gbm; enable_gbm="$enableval"
  20901. else
  20902.   enable_gbm=auto
  20903. fi
  20904.  
  20905. # Check whether --enable-nine was given.
  20906. if test "${enable_nine+set}" = set; then :
  20907.   enableval=$enable_nine; enable_nine="$enableval"
  20908. else
  20909.   enable_nine=no
  20910. fi
  20911.  
  20912.  
  20913. # Check whether --enable-xvmc was given.
  20914. if test "${enable_xvmc+set}" = set; then :
  20915.   enableval=$enable_xvmc; enable_xvmc="$enableval"
  20916. else
  20917.   enable_xvmc=auto
  20918. fi
  20919.  
  20920. # Check whether --enable-vdpau was given.
  20921. if test "${enable_vdpau+set}" = set; then :
  20922.   enableval=$enable_vdpau; enable_vdpau="$enableval"
  20923. else
  20924.   enable_vdpau=auto
  20925. fi
  20926.  
  20927. # Check whether --enable-omx was given.
  20928. if test "${enable_omx+set}" = set; then :
  20929.   enableval=$enable_omx; enable_omx="$enableval"
  20930. else
  20931.   enable_omx=no
  20932. fi
  20933.  
  20934. # Check whether --enable-va was given.
  20935. if test "${enable_va+set}" = set; then :
  20936.   enableval=$enable_va; enable_va="$enableval"
  20937. else
  20938.   enable_va=auto
  20939. fi
  20940.  
  20941. # Check whether --enable-opencl was given.
  20942. if test "${enable_opencl+set}" = set; then :
  20943.   enableval=$enable_opencl; enable_opencl="$enableval"
  20944. else
  20945.   enable_opencl=no
  20946. fi
  20947.  
  20948. # Check whether --enable-opencl_icd was given.
  20949. if test "${enable_opencl_icd+set}" = set; then :
  20950.   enableval=$enable_opencl_icd; enable_opencl_icd="$enableval"
  20951. else
  20952.   enable_opencl_icd=no
  20953. fi
  20954.  
  20955. # Check whether --enable-xlib-glx was given.
  20956. if test "${enable_xlib_glx+set}" = set; then :
  20957.   enableval=$enable_xlib_glx; enable_xlib_glx="$enableval"
  20958. else
  20959.   enable_xlib_glx=no
  20960. fi
  20961.  
  20962.  
  20963. # Check whether --enable-r600-llvm-compiler was given.
  20964. if test "${enable_r600_llvm_compiler+set}" = set; then :
  20965.   enableval=$enable_r600_llvm_compiler; enable_r600_llvm="$enableval"
  20966. else
  20967.   enable_r600_llvm=no
  20968. fi
  20969.  
  20970.  
  20971. # Check whether --enable-gallium-tests was given.
  20972. if test "${enable_gallium_tests+set}" = set; then :
  20973.   enableval=$enable_gallium_tests; enable_gallium_tests="$enableval"
  20974. else
  20975.   enable_gallium_tests=no
  20976. fi
  20977.  
  20978.  
  20979. # Option for Gallium drivers
  20980.  
  20981. # Keep this in sync with the --with-gallium-drivers help string default value
  20982. GALLIUM_DRIVERS_DEFAULT="r300,r600,svga,swrast"
  20983.  
  20984.  
  20985. # Check whether --with-gallium-drivers was given.
  20986. if test "${with_gallium_drivers+set}" = set; then :
  20987.   withval=$with_gallium_drivers; with_gallium_drivers="$withval"
  20988. else
  20989.   with_gallium_drivers="$GALLIUM_DRIVERS_DEFAULT"
  20990. fi
  20991.  
  20992.  
  20993. # Doing '--without-gallium-drivers' will set this variable to 'no'.  Clear it
  20994. # here so that the script doesn't choke on an unknown driver name later.
  20995. case "$with_gallium_drivers" in
  20996.     yes) with_gallium_drivers="$GALLIUM_DRIVERS_DEFAULT" ;;
  20997.     no) with_gallium_drivers='' ;;
  20998. esac
  20999.  
  21000. if test "x$enable_opengl" = xno -a \
  21001.         "x$enable_gles1" = xno -a \
  21002.         "x$enable_gles2" = xno -a \
  21003.         "x$enable_nine" = xno -a \
  21004.         "x$enable_xa" = xno -a \
  21005.         "x$enable_xvmc" = xno -a \
  21006.         "x$enable_vdpau" = xno -a \
  21007.         "x$enable_omx" = xno -a \
  21008.         "x$enable_va" = xno -a \
  21009.         "x$enable_opencl" = xno; then
  21010.     as_fn_error $? "at least one API should be enabled" "$LINENO" 5
  21011. fi
  21012.  
  21013. # Building OpenGL ES1 and/or ES2 without OpenGL is not supported on mesa 9.0.x
  21014. if test "x$enable_opengl" = xno -a \
  21015.         "x$enable_gles1" = xyes; then
  21016.     as_fn_error $? "Building OpenGL ES1 without OpenGL is not supported" "$LINENO" 5
  21017. fi
  21018.  
  21019. if test "x$enable_opengl" = xno -a \
  21020.         "x$enable_gles2" = xyes; then
  21021.     as_fn_error $? "Building OpenGL ES2 without OpenGL is not supported" "$LINENO" 5
  21022. fi
  21023.  
  21024.  if test "x$enable_opengl" = xyes; then
  21025.   HAVE_OPENGL_TRUE=
  21026.   HAVE_OPENGL_FALSE='#'
  21027. else
  21028.   HAVE_OPENGL_TRUE='#'
  21029.   HAVE_OPENGL_FALSE=
  21030. fi
  21031.  
  21032.  if test "x$enable_gles1" = xyes; then
  21033.   HAVE_OPENGL_ES1_TRUE=
  21034.   HAVE_OPENGL_ES1_FALSE='#'
  21035. else
  21036.   HAVE_OPENGL_ES1_TRUE='#'
  21037.   HAVE_OPENGL_ES1_FALSE=
  21038. fi
  21039.  
  21040.  if test "x$enable_gles2" = xyes; then
  21041.   HAVE_OPENGL_ES2_TRUE=
  21042.   HAVE_OPENGL_ES2_FALSE='#'
  21043. else
  21044.   HAVE_OPENGL_ES2_TRUE='#'
  21045.   HAVE_OPENGL_ES2_FALSE=
  21046. fi
  21047.  
  21048.  if test "x$enable_opengl" = xyes -o \
  21049.                                         "x$enable_gles1" = xyes -o \
  21050.                                         "x$enable_gles2" = xyes; then
  21051.   NEED_OPENGL_COMMON_TRUE=
  21052.   NEED_OPENGL_COMMON_FALSE='#'
  21053. else
  21054.   NEED_OPENGL_COMMON_TRUE='#'
  21055.   NEED_OPENGL_COMMON_FALSE=
  21056. fi
  21057.  
  21058.  
  21059. if test "x$enable_glx" = xno; then
  21060.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GLX disabled, disabling Xlib-GLX" >&5
  21061. $as_echo "$as_me: WARNING: GLX disabled, disabling Xlib-GLX" >&2;}
  21062.     enable_xlib_glx=no
  21063. fi
  21064.  
  21065. if test "x$enable_dri$enable_xlib_glx" = xyesyes; then
  21066.     as_fn_error $? "DRI and Xlib-GLX cannot be built together" "$LINENO" 5
  21067. fi
  21068.  
  21069. if test "x$enable_opengl$enable_xlib_glx" = xnoyes; then
  21070.     as_fn_error $? "Xlib-GLX cannot be built without OpenGL" "$LINENO" 5
  21071. fi
  21072.  
  21073. # Disable GLX if OpenGL is not enabled
  21074. if test "x$enable_glx$enable_opengl" = xyesno; then
  21075.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenGL not enabled, disabling GLX" >&5
  21076. $as_echo "$as_me: WARNING: OpenGL not enabled, disabling GLX" >&2;}
  21077.     enable_glx=no
  21078. fi
  21079.  
  21080. # Disable GLX if DRI and Xlib-GLX are not enabled
  21081. if test "x$enable_glx" = xyes -a \
  21082.         "x$enable_dri" = xno -a \
  21083.         "x$enable_xlib_glx" = xno; then
  21084.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Neither DRI nor Xlib-GLX enabled, disabling GLX" >&5
  21085. $as_echo "$as_me: WARNING: Neither DRI nor Xlib-GLX enabled, disabling GLX" >&2;}
  21086.     enable_glx=no
  21087. fi
  21088.  
  21089.  if test "x$enable_glx" = xyes -a \
  21090.                                   "x$enable_dri" = xyes; then
  21091.   HAVE_DRI_GLX_TRUE=
  21092.   HAVE_DRI_GLX_FALSE='#'
  21093. else
  21094.   HAVE_DRI_GLX_TRUE='#'
  21095.   HAVE_DRI_GLX_FALSE=
  21096. fi
  21097.  
  21098.  
  21099. # Select which platform-dependent DRI code gets built
  21100. case "$host_os" in
  21101. darwin*)
  21102.     dri_platform='apple' ;;
  21103. gnu*|cygwin*)
  21104.     dri_platform='none' ;;
  21105. *)
  21106.     dri_platform='drm' ;;
  21107. esac
  21108.  
  21109.  if test "x$enable_dri" = xyes ; then
  21110.   HAVE_DRICOMMON_TRUE=
  21111.   HAVE_DRICOMMON_FALSE='#'
  21112. else
  21113.   HAVE_DRICOMMON_TRUE='#'
  21114.   HAVE_DRICOMMON_FALSE=
  21115. fi
  21116.  
  21117.  if test "x$enable_dri" = xyes ; then
  21118.   HAVE_DRISW_TRUE=
  21119.   HAVE_DRISW_FALSE='#'
  21120. else
  21121.   HAVE_DRISW_TRUE='#'
  21122.   HAVE_DRISW_FALSE=
  21123. fi
  21124.  
  21125.  if test "x$enable_dri" = xyes -a "x$dri_platform" = xdrm ; then
  21126.   HAVE_DRI2_TRUE=
  21127.   HAVE_DRI2_FALSE='#'
  21128. else
  21129.   HAVE_DRI2_TRUE='#'
  21130.   HAVE_DRI2_FALSE=
  21131. fi
  21132.  
  21133.  if test "x$enable_dri3" = xyes -a "x$dri_platform" = xdrm ; then
  21134.   HAVE_DRI3_TRUE=
  21135.   HAVE_DRI3_FALSE='#'
  21136. else
  21137.   HAVE_DRI3_TRUE='#'
  21138.   HAVE_DRI3_FALSE=
  21139. fi
  21140.  
  21141.  if test "x$enable_dri" = xyes -a "x$dri_platform" = xapple ; then
  21142.   HAVE_APPLEDRI_TRUE=
  21143.   HAVE_APPLEDRI_FALSE='#'
  21144. else
  21145.   HAVE_APPLEDRI_TRUE='#'
  21146.   HAVE_APPLEDRI_FALSE=
  21147. fi
  21148.  
  21149.  
  21150. # Check whether --enable-shared-glapi was given.
  21151. if test "${enable_shared_glapi+set}" = set; then :
  21152.   enableval=$enable_shared_glapi; enable_shared_glapi="$enableval"
  21153. else
  21154.   enable_shared_glapi=yes
  21155. fi
  21156.  
  21157.  
  21158. case "x$enable_opengl$enable_gles1$enable_gles2" in
  21159. x*yes*yes*)
  21160.     if test "x$enable_shared_glapi" = xno; then
  21161.         as_fn_error $? "shared GLAPI required when building two or more of
  21162.                       the following APIs - opengl, gles1 gles2" "$LINENO" 5
  21163.     fi
  21164.     ;;
  21165. esac
  21166.  
  21167. # Building Xlib-GLX requires shared glapi to be disabled.
  21168. if test "x$enable_xlib_glx" = xyes; then
  21169.     { $as_echo "$as_me:${as_lineno-$LINENO}: Shared GLAPI should not used with Xlib-GLX, disabling" >&5
  21170. $as_echo "$as_me: Shared GLAPI should not used with Xlib-GLX, disabling" >&6;}
  21171.     enable_shared_glapi=no
  21172. fi
  21173.  
  21174.  if test "x$enable_shared_glapi" = xyes; then
  21175.   HAVE_SHARED_GLAPI_TRUE=
  21176.   HAVE_SHARED_GLAPI_FALSE='#'
  21177. else
  21178.   HAVE_SHARED_GLAPI_TRUE='#'
  21179.   HAVE_SHARED_GLAPI_FALSE=
  21180. fi
  21181.  
  21182.  
  21183. # Build the pipe-drivers as separate libraries/modules.
  21184. # Do not touch this unless you know what you are doing.
  21185. # XXX: Expose via configure option ?
  21186. enable_shared_pipe_drivers=no
  21187.  
  21188.  
  21189. case "x$enable_glx$enable_xlib_glx" in
  21190. xyesyes)
  21191.     NEED_WINSYS_XLIB="yes"
  21192.     ;;
  21193. esac
  21194.  
  21195. if test "x$enable_dri" = xyes; then
  21196.     enable_gallium_loader="$enable_shared_pipe_drivers"
  21197. fi
  21198.  
  21199. if test "x$enable_gallium_osmesa" = xyes; then
  21200.     if ! echo "$with_gallium_drivers" | grep -q 'swrast'; then
  21201.         as_fn_error $? "gallium_osmesa requires the gallium swrast driver" "$LINENO" 5
  21202.     fi
  21203.     if test "x$enable_osmesa" = xyes; then
  21204.         as_fn_error $? "Cannot enable both classic and Gallium OSMesa implementations" "$LINENO" 5
  21205.     fi
  21206. fi
  21207.  
  21208.  
  21209.  
  21210. # SHA1 hashing
  21211.  
  21212. # Check whether --with-sha1 was given.
  21213. if test "${with_sha1+set}" = set; then :
  21214.   withval=$with_sha1;
  21215. fi
  21216.  
  21217. case "x$with_sha1" in
  21218. x | xlibc | xlibmd | xlibnettle | xlibgcrypt | xlibcrypto | xlibsha1 | xCommonCrypto | xCryptoAPI)
  21219.   ;;
  21220. *)
  21221.         as_fn_error $? "Illegal value for --with-sha1: $with_sha1" "$LINENO" 5
  21222. esac
  21223.  
  21224. ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init"
  21225. if test "x$ac_cv_func_SHA1Init" = xyes; then :
  21226.   HAVE_SHA1_IN_LIBC=yes
  21227. fi
  21228.  
  21229. if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then
  21230.         with_sha1=libc
  21231. fi
  21232. if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then
  21233.         as_fn_error $? "sha1 in libc requested but not found" "$LINENO" 5
  21234. fi
  21235. if test "x$with_sha1" = xlibc; then
  21236.  
  21237. $as_echo "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h
  21238.  
  21239.         SHA1_LIBS=""
  21240. fi
  21241. ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init"
  21242. if test "x$ac_cv_func_CC_SHA1_Init" = xyes; then :
  21243.   HAVE_SHA1_IN_COMMONCRYPTO=yes
  21244. fi
  21245.  
  21246. if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then
  21247.         with_sha1=CommonCrypto
  21248. fi
  21249. if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then
  21250.         as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5
  21251. fi
  21252. if test "x$with_sha1" = xCommonCrypto; then
  21253.  
  21254. $as_echo "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h
  21255.  
  21256.         SHA1_LIBS=""
  21257. fi
  21258. ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#include <windows.h>
  21259. "
  21260. if test "x$ac_cv_header_wincrypt_h" = xyes; then :
  21261.   HAVE_SHA1_IN_CRYPTOAPI=yes
  21262. fi
  21263.  
  21264.  
  21265. if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_CRYPTOAPI" = xyes; then
  21266.         with_sha1=CryptoAPI
  21267. fi
  21268. if test "x$with_sha1" = xCryptoAPI && test "x$HAVE_SHA1_IN_CRYPTOAPI" != xyes; then
  21269.         as_fn_error $? "CryptoAPI requested but not found" "$LINENO" 5
  21270. fi
  21271. if test "x$with_sha1" = xCryptoAPI; then
  21272.  
  21273. $as_echo "#define HAVE_SHA1_IN_CRYPTOAPI 1" >>confdefs.h
  21274.  
  21275.         SHA1_LIBS=""
  21276. fi
  21277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5
  21278. $as_echo_n "checking for SHA1Init in -lmd... " >&6; }
  21279. if ${ac_cv_lib_md_SHA1Init+:} false; then :
  21280.   $as_echo_n "(cached) " >&6
  21281. else
  21282.   ac_check_lib_save_LIBS=$LIBS
  21283. LIBS="-lmd  $LIBS"
  21284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21285. /* end confdefs.h.  */
  21286.  
  21287. /* Override any GCC internal prototype to avoid an error.
  21288.    Use char because int might match the return type of a GCC
  21289.    builtin and then its argument prototype would still apply.  */
  21290. #ifdef __cplusplus
  21291. extern "C"
  21292. #endif
  21293. char SHA1Init ();
  21294. int
  21295. main ()
  21296. {
  21297. return SHA1Init ();
  21298.   ;
  21299.   return 0;
  21300. }
  21301. _ACEOF
  21302. if ac_fn_c_try_link "$LINENO"; then :
  21303.   ac_cv_lib_md_SHA1Init=yes
  21304. else
  21305.   ac_cv_lib_md_SHA1Init=no
  21306. fi
  21307. rm -f core conftest.err conftest.$ac_objext \
  21308.     conftest$ac_exeext conftest.$ac_ext
  21309. LIBS=$ac_check_lib_save_LIBS
  21310. fi
  21311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5
  21312. $as_echo "$ac_cv_lib_md_SHA1Init" >&6; }
  21313. if test "x$ac_cv_lib_md_SHA1Init" = xyes; then :
  21314.   HAVE_LIBMD=yes
  21315. fi
  21316.  
  21317. if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then
  21318.         with_sha1=libmd
  21319. fi
  21320. if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then
  21321.         as_fn_error $? "libmd requested but not found" "$LINENO" 5
  21322. fi
  21323. if test "x$with_sha1" = xlibmd; then
  21324.  
  21325. $as_echo "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h
  21326.  
  21327.         SHA1_LIBS=-lmd
  21328. fi
  21329.  
  21330. pkg_failed=no
  21331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSHA1" >&5
  21332. $as_echo_n "checking for LIBSHA1... " >&6; }
  21333.  
  21334. if test -n "$LIBSHA1_CFLAGS"; then
  21335.     pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS"
  21336.  elif test -n "$PKG_CONFIG"; then
  21337.     if test -n "$PKG_CONFIG" && \
  21338.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
  21339.   ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
  21340.   ac_status=$?
  21341.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21342.   test $ac_status = 0; }; then
  21343.   pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null`
  21344.                       test "x$?" != "x0" && pkg_failed=yes
  21345. else
  21346.   pkg_failed=yes
  21347. fi
  21348.  else
  21349.     pkg_failed=untried
  21350. fi
  21351. if test -n "$LIBSHA1_LIBS"; then
  21352.     pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS"
  21353.  elif test -n "$PKG_CONFIG"; then
  21354.     if test -n "$PKG_CONFIG" && \
  21355.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
  21356.   ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
  21357.   ac_status=$?
  21358.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21359.   test $ac_status = 0; }; then
  21360.   pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null`
  21361.                       test "x$?" != "x0" && pkg_failed=yes
  21362. else
  21363.   pkg_failed=yes
  21364. fi
  21365.  else
  21366.     pkg_failed=untried
  21367. fi
  21368.  
  21369.  
  21370.  
  21371. if test $pkg_failed = yes; then
  21372.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21373. $as_echo "no" >&6; }
  21374.  
  21375. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21376.         _pkg_short_errors_supported=yes
  21377. else
  21378.         _pkg_short_errors_supported=no
  21379. fi
  21380.         if test $_pkg_short_errors_supported = yes; then
  21381.                 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsha1" 2>&1`
  21382.         else
  21383.                 LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsha1" 2>&1`
  21384.         fi
  21385.         # Put the nasty error message in config.log where it belongs
  21386.         echo "$LIBSHA1_PKG_ERRORS" >&5
  21387.  
  21388.         HAVE_LIBSHA1=no
  21389. elif test $pkg_failed = untried; then
  21390.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21391. $as_echo "no" >&6; }
  21392.         HAVE_LIBSHA1=no
  21393. else
  21394.         LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS
  21395.         LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS
  21396.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21397. $as_echo "yes" >&6; }
  21398.         HAVE_LIBSHA1=yes
  21399. fi
  21400. if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then
  21401.    with_sha1=libsha1
  21402. fi
  21403. if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then
  21404.         as_fn_error $? "libsha1 requested but not found" "$LINENO" 5
  21405. fi
  21406. if test "x$with_sha1" = xlibsha1; then
  21407.  
  21408. $as_echo "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h
  21409.  
  21410.         SHA1_LIBS=-lsha1
  21411. fi
  21412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5
  21413. $as_echo_n "checking for nettle_sha1_init in -lnettle... " >&6; }
  21414. if ${ac_cv_lib_nettle_nettle_sha1_init+:} false; then :
  21415.   $as_echo_n "(cached) " >&6
  21416. else
  21417.   ac_check_lib_save_LIBS=$LIBS
  21418. LIBS="-lnettle  $LIBS"
  21419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21420. /* end confdefs.h.  */
  21421.  
  21422. /* Override any GCC internal prototype to avoid an error.
  21423.    Use char because int might match the return type of a GCC
  21424.    builtin and then its argument prototype would still apply.  */
  21425. #ifdef __cplusplus
  21426. extern "C"
  21427. #endif
  21428. char nettle_sha1_init ();
  21429. int
  21430. main ()
  21431. {
  21432. return nettle_sha1_init ();
  21433.   ;
  21434.   return 0;
  21435. }
  21436. _ACEOF
  21437. if ac_fn_c_try_link "$LINENO"; then :
  21438.   ac_cv_lib_nettle_nettle_sha1_init=yes
  21439. else
  21440.   ac_cv_lib_nettle_nettle_sha1_init=no
  21441. fi
  21442. rm -f core conftest.err conftest.$ac_objext \
  21443.     conftest$ac_exeext conftest.$ac_ext
  21444. LIBS=$ac_check_lib_save_LIBS
  21445. fi
  21446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5
  21447. $as_echo "$ac_cv_lib_nettle_nettle_sha1_init" >&6; }
  21448. if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes; then :
  21449.   HAVE_LIBNETTLE=yes
  21450. fi
  21451.  
  21452. if test "x$with_sha1" = x && test "x$HAVE_LIBNETTLE" = xyes; then
  21453.         with_sha1=libnettle
  21454. fi
  21455. if test "x$with_sha1" = xlibnettle && test "x$HAVE_LIBNETTLE" != xyes; then
  21456.         as_fn_error $? "libnettle requested but not found" "$LINENO" 5
  21457. fi
  21458. if test "x$with_sha1" = xlibnettle; then
  21459.  
  21460. $as_echo "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h
  21461.  
  21462.         SHA1_LIBS=-lnettle
  21463. fi
  21464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5
  21465. $as_echo_n "checking for gcry_md_open in -lgcrypt... " >&6; }
  21466. if ${ac_cv_lib_gcrypt_gcry_md_open+:} false; then :
  21467.   $as_echo_n "(cached) " >&6
  21468. else
  21469.   ac_check_lib_save_LIBS=$LIBS
  21470. LIBS="-lgcrypt  $LIBS"
  21471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21472. /* end confdefs.h.  */
  21473.  
  21474. /* Override any GCC internal prototype to avoid an error.
  21475.    Use char because int might match the return type of a GCC
  21476.    builtin and then its argument prototype would still apply.  */
  21477. #ifdef __cplusplus
  21478. extern "C"
  21479. #endif
  21480. char gcry_md_open ();
  21481. int
  21482. main ()
  21483. {
  21484. return gcry_md_open ();
  21485.   ;
  21486.   return 0;
  21487. }
  21488. _ACEOF
  21489. if ac_fn_c_try_link "$LINENO"; then :
  21490.   ac_cv_lib_gcrypt_gcry_md_open=yes
  21491. else
  21492.   ac_cv_lib_gcrypt_gcry_md_open=no
  21493. fi
  21494. rm -f core conftest.err conftest.$ac_objext \
  21495.     conftest$ac_exeext conftest.$ac_ext
  21496. LIBS=$ac_check_lib_save_LIBS
  21497. fi
  21498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5
  21499. $as_echo "$ac_cv_lib_gcrypt_gcry_md_open" >&6; }
  21500. if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes; then :
  21501.   HAVE_LIBGCRYPT=yes
  21502. fi
  21503.  
  21504. if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then
  21505.         with_sha1=libgcrypt
  21506. fi
  21507. if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then
  21508.         as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5
  21509. fi
  21510. if test "x$with_sha1" = xlibgcrypt; then
  21511.  
  21512. $as_echo "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h
  21513.  
  21514.         SHA1_LIBS=-lgcrypt
  21515. fi
  21516. # We don't need all of the OpenSSL libraries, just libcrypto
  21517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5
  21518. $as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; }
  21519. if ${ac_cv_lib_crypto_SHA1_Init+:} false; then :
  21520.   $as_echo_n "(cached) " >&6
  21521. else
  21522.   ac_check_lib_save_LIBS=$LIBS
  21523. LIBS="-lcrypto  $LIBS"
  21524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21525. /* end confdefs.h.  */
  21526.  
  21527. /* Override any GCC internal prototype to avoid an error.
  21528.    Use char because int might match the return type of a GCC
  21529.    builtin and then its argument prototype would still apply.  */
  21530. #ifdef __cplusplus
  21531. extern "C"
  21532. #endif
  21533. char SHA1_Init ();
  21534. int
  21535. main ()
  21536. {
  21537. return SHA1_Init ();
  21538.   ;
  21539.   return 0;
  21540. }
  21541. _ACEOF
  21542. if ac_fn_c_try_link "$LINENO"; then :
  21543.   ac_cv_lib_crypto_SHA1_Init=yes
  21544. else
  21545.   ac_cv_lib_crypto_SHA1_Init=no
  21546. fi
  21547. rm -f core conftest.err conftest.$ac_objext \
  21548.     conftest$ac_exeext conftest.$ac_ext
  21549. LIBS=$ac_check_lib_save_LIBS
  21550. fi
  21551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
  21552. $as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; }
  21553. if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then :
  21554.   HAVE_LIBCRYPTO=yes
  21555. fi
  21556.  
  21557.  
  21558. pkg_failed=no
  21559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
  21560. $as_echo_n "checking for OPENSSL... " >&6; }
  21561.  
  21562. if test -n "$OPENSSL_CFLAGS"; then
  21563.     pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
  21564.  elif test -n "$PKG_CONFIG"; then
  21565.     if test -n "$PKG_CONFIG" && \
  21566.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
  21567.   ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
  21568.   ac_status=$?
  21569.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21570.   test $ac_status = 0; }; then
  21571.   pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
  21572.                       test "x$?" != "x0" && pkg_failed=yes
  21573. else
  21574.   pkg_failed=yes
  21575. fi
  21576.  else
  21577.     pkg_failed=untried
  21578. fi
  21579. if test -n "$OPENSSL_LIBS"; then
  21580.     pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
  21581.  elif test -n "$PKG_CONFIG"; then
  21582.     if test -n "$PKG_CONFIG" && \
  21583.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
  21584.   ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
  21585.   ac_status=$?
  21586.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21587.   test $ac_status = 0; }; then
  21588.   pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
  21589.                       test "x$?" != "x0" && pkg_failed=yes
  21590. else
  21591.   pkg_failed=yes
  21592. fi
  21593.  else
  21594.     pkg_failed=untried
  21595. fi
  21596.  
  21597.  
  21598.  
  21599. if test $pkg_failed = yes; then
  21600.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21601. $as_echo "no" >&6; }
  21602.  
  21603. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21604.         _pkg_short_errors_supported=yes
  21605. else
  21606.         _pkg_short_errors_supported=no
  21607. fi
  21608.         if test $_pkg_short_errors_supported = yes; then
  21609.                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
  21610.         else
  21611.                 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
  21612.         fi
  21613.         # Put the nasty error message in config.log where it belongs
  21614.         echo "$OPENSSL_PKG_ERRORS" >&5
  21615.  
  21616.         HAVE_OPENSSL_PKC=no
  21617. elif test $pkg_failed = untried; then
  21618.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21619. $as_echo "no" >&6; }
  21620.         HAVE_OPENSSL_PKC=no
  21621. else
  21622.         OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
  21623.         OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
  21624.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21625. $as_echo "yes" >&6; }
  21626.         HAVE_OPENSSL_PKC=yes
  21627. fi
  21628. if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then
  21629.         if test "x$with_sha1" = x; then
  21630.                 with_sha1=libcrypto
  21631.         fi
  21632. else
  21633.         if test "x$with_sha1" = xlibcrypto; then
  21634.                 as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5
  21635.         fi
  21636. fi
  21637. if test "x$with_sha1" = xlibcrypto; then
  21638.         if test "x$HAVE_LIBCRYPTO" = xyes; then
  21639.                 SHA1_LIBS=-lcrypto
  21640.         else
  21641.                 SHA1_LIBS="$OPENSSL_LIBS"
  21642.                 SHA1_CFLAGS="$OPENSSL_CFLAGS"
  21643.         fi
  21644. fi
  21645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5
  21646. $as_echo_n "checking for SHA1 implementation... " >&6; }
  21647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5
  21648. $as_echo "$with_sha1" >&6; }
  21649.  
  21650.  
  21651.  
  21652. # Allow user to configure out the shader-cache feature
  21653. # Check whether --enable-shader-cache was given.
  21654. if test "${enable_shader_cache+set}" = set; then :
  21655.   enableval=$enable_shader_cache; enable_shader_cache="$enableval"
  21656. else
  21657.   if test "x$with_sha1" != "x"; then
  21658.         enable_shader_cache=yes
  21659.      else
  21660.         enable_shader_cache=no
  21661.      fi
  21662. fi
  21663.  
  21664. if test "x$with_sha1" = "x"; then
  21665.     if test "x$enable_shader_cache" = "xyes"; then
  21666.         as_fn_error $? "Cannot enable shader cache (no SHA-1 implementation found)" "$LINENO" 5
  21667.     fi
  21668. fi
  21669.  if test x$enable_shader_cache = xyes; then
  21670.   ENABLE_SHADER_CACHE_TRUE=
  21671.   ENABLE_SHADER_CACHE_FALSE='#'
  21672. else
  21673.   ENABLE_SHADER_CACHE_TRUE='#'
  21674.   ENABLE_SHADER_CACHE_FALSE=
  21675. fi
  21676.  
  21677.  
  21678. # Check for libdrm
  21679.  
  21680. pkg_failed=no
  21681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
  21682. $as_echo_n "checking for LIBDRM... " >&6; }
  21683.  
  21684. if test -n "$LIBDRM_CFLAGS"; then
  21685.     pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  21686.  elif test -n "$PKG_CONFIG"; then
  21687.     if test -n "$PKG_CONFIG" && \
  21688.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= \$LIBDRM_REQUIRED\""; } >&5
  21689.   ($PKG_CONFIG --exists --print-errors "libdrm >= $LIBDRM_REQUIRED") 2>&5
  21690.   ac_status=$?
  21691.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21692.   test $ac_status = 0; }; then
  21693.   pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= $LIBDRM_REQUIRED" 2>/dev/null`
  21694.                       test "x$?" != "x0" && pkg_failed=yes
  21695. else
  21696.   pkg_failed=yes
  21697. fi
  21698.  else
  21699.     pkg_failed=untried
  21700. fi
  21701. if test -n "$LIBDRM_LIBS"; then
  21702.     pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  21703.  elif test -n "$PKG_CONFIG"; then
  21704.     if test -n "$PKG_CONFIG" && \
  21705.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= \$LIBDRM_REQUIRED\""; } >&5
  21706.   ($PKG_CONFIG --exists --print-errors "libdrm >= $LIBDRM_REQUIRED") 2>&5
  21707.   ac_status=$?
  21708.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21709.   test $ac_status = 0; }; then
  21710.   pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= $LIBDRM_REQUIRED" 2>/dev/null`
  21711.                       test "x$?" != "x0" && pkg_failed=yes
  21712. else
  21713.   pkg_failed=yes
  21714. fi
  21715.  else
  21716.     pkg_failed=untried
  21717. fi
  21718.  
  21719.  
  21720.  
  21721. if test $pkg_failed = yes; then
  21722.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21723. $as_echo "no" >&6; }
  21724.  
  21725. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21726.         _pkg_short_errors_supported=yes
  21727. else
  21728.         _pkg_short_errors_supported=no
  21729. fi
  21730.         if test $_pkg_short_errors_supported = yes; then
  21731.                 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= $LIBDRM_REQUIRED" 2>&1`
  21732.         else
  21733.                 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= $LIBDRM_REQUIRED" 2>&1`
  21734.         fi
  21735.         # Put the nasty error message in config.log where it belongs
  21736.         echo "$LIBDRM_PKG_ERRORS" >&5
  21737.  
  21738.         have_libdrm=no
  21739. elif test $pkg_failed = untried; then
  21740.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21741. $as_echo "no" >&6; }
  21742.         have_libdrm=no
  21743. else
  21744.         LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  21745.         LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  21746.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21747. $as_echo "yes" >&6; }
  21748.         have_libdrm=yes
  21749. fi
  21750. if test "x$have_libdrm" = xyes; then
  21751.         DEFINES="$DEFINES -DHAVE_LIBDRM"
  21752. fi
  21753.  
  21754. case "$host_os" in
  21755. linux*)
  21756.     need_pci_id=yes ;;
  21757. *)
  21758.     need_pci_id=no ;;
  21759. esac
  21760.  
  21761.  
  21762. pkg_failed=no
  21763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
  21764. $as_echo_n "checking for LIBUDEV... " >&6; }
  21765.  
  21766. if test -n "$LIBUDEV_CFLAGS"; then
  21767.     pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
  21768.  elif test -n "$PKG_CONFIG"; then
  21769.     if test -n "$PKG_CONFIG" && \
  21770.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= \$LIBUDEV_REQUIRED\""; } >&5
  21771.   ($PKG_CONFIG --exists --print-errors "libudev >= $LIBUDEV_REQUIRED") 2>&5
  21772.   ac_status=$?
  21773.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21774.   test $ac_status = 0; }; then
  21775.   pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= $LIBUDEV_REQUIRED" 2>/dev/null`
  21776.                       test "x$?" != "x0" && pkg_failed=yes
  21777. else
  21778.   pkg_failed=yes
  21779. fi
  21780.  else
  21781.     pkg_failed=untried
  21782. fi
  21783. if test -n "$LIBUDEV_LIBS"; then
  21784.     pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
  21785.  elif test -n "$PKG_CONFIG"; then
  21786.     if test -n "$PKG_CONFIG" && \
  21787.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= \$LIBUDEV_REQUIRED\""; } >&5
  21788.   ($PKG_CONFIG --exists --print-errors "libudev >= $LIBUDEV_REQUIRED") 2>&5
  21789.   ac_status=$?
  21790.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21791.   test $ac_status = 0; }; then
  21792.   pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev >= $LIBUDEV_REQUIRED" 2>/dev/null`
  21793.                       test "x$?" != "x0" && pkg_failed=yes
  21794. else
  21795.   pkg_failed=yes
  21796. fi
  21797.  else
  21798.     pkg_failed=untried
  21799. fi
  21800.  
  21801.  
  21802.  
  21803. if test $pkg_failed = yes; then
  21804.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21805. $as_echo "no" >&6; }
  21806.  
  21807. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21808.         _pkg_short_errors_supported=yes
  21809. else
  21810.         _pkg_short_errors_supported=no
  21811. fi
  21812.         if test $_pkg_short_errors_supported = yes; then
  21813.                 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev >= $LIBUDEV_REQUIRED" 2>&1`
  21814.         else
  21815.                 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev >= $LIBUDEV_REQUIRED" 2>&1`
  21816.         fi
  21817.         # Put the nasty error message in config.log where it belongs
  21818.         echo "$LIBUDEV_PKG_ERRORS" >&5
  21819.  
  21820.         have_libudev=no
  21821. elif test $pkg_failed = untried; then
  21822.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21823. $as_echo "no" >&6; }
  21824.         have_libudev=no
  21825. else
  21826.         LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
  21827.         LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
  21828.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21829. $as_echo "yes" >&6; }
  21830.         have_libudev=yes
  21831. fi
  21832.  
  21833. # Check whether --enable-sysfs was given.
  21834. if test "${enable_sysfs+set}" = set; then :
  21835.   enableval=$enable_sysfs; have_sysfs="$enableval"
  21836. else
  21837.   have_sysfs=no
  21838.  
  21839. fi
  21840.  
  21841.  
  21842. if test "x$enable_dri" = xyes; then
  21843.     if test "$enable_static" = yes; then
  21844.         as_fn_error $? "Cannot use static libraries for DRI drivers" "$LINENO" 5
  21845.     fi
  21846.  
  21847.     # not a hard requirement as swrast does not depend on it
  21848.     if test "x$have_libdrm" = xyes; then
  21849.         DRI_PC_REQ_PRIV="libdrm >= $LIBDRM_REQUIRED"
  21850.     fi
  21851. fi
  21852.  
  21853. # Check whether --enable-driglx-direct was given.
  21854. if test "${enable_driglx_direct+set}" = set; then :
  21855.   enableval=$enable_driglx_direct; driglx_direct="$enableval"
  21856. else
  21857.   driglx_direct="yes"
  21858. fi
  21859.  
  21860.  
  21861. case "x$enable_glx$enable_xlib_glx" in
  21862. xyesyes)
  21863.     # Xlib-based GLX
  21864.     dri_modules="x11 xext xcb"
  21865.  
  21866. pkg_failed=no
  21867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIBGL" >&5
  21868. $as_echo_n "checking for XLIBGL... " >&6; }
  21869.  
  21870. if test -n "$XLIBGL_CFLAGS"; then
  21871.     pkg_cv_XLIBGL_CFLAGS="$XLIBGL_CFLAGS"
  21872.  elif test -n "$PKG_CONFIG"; then
  21873.     if test -n "$PKG_CONFIG" && \
  21874.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$dri_modules\""; } >&5
  21875.   ($PKG_CONFIG --exists --print-errors "$dri_modules") 2>&5
  21876.   ac_status=$?
  21877.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21878.   test $ac_status = 0; }; then
  21879.   pkg_cv_XLIBGL_CFLAGS=`$PKG_CONFIG --cflags "$dri_modules" 2>/dev/null`
  21880.                       test "x$?" != "x0" && pkg_failed=yes
  21881. else
  21882.   pkg_failed=yes
  21883. fi
  21884.  else
  21885.     pkg_failed=untried
  21886. fi
  21887. if test -n "$XLIBGL_LIBS"; then
  21888.     pkg_cv_XLIBGL_LIBS="$XLIBGL_LIBS"
  21889.  elif test -n "$PKG_CONFIG"; then
  21890.     if test -n "$PKG_CONFIG" && \
  21891.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$dri_modules\""; } >&5
  21892.   ($PKG_CONFIG --exists --print-errors "$dri_modules") 2>&5
  21893.   ac_status=$?
  21894.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21895.   test $ac_status = 0; }; then
  21896.   pkg_cv_XLIBGL_LIBS=`$PKG_CONFIG --libs "$dri_modules" 2>/dev/null`
  21897.                       test "x$?" != "x0" && pkg_failed=yes
  21898. else
  21899.   pkg_failed=yes
  21900. fi
  21901.  else
  21902.     pkg_failed=untried
  21903. fi
  21904.  
  21905.  
  21906.  
  21907. if test $pkg_failed = yes; then
  21908.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21909. $as_echo "no" >&6; }
  21910.  
  21911. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21912.         _pkg_short_errors_supported=yes
  21913. else
  21914.         _pkg_short_errors_supported=no
  21915. fi
  21916.         if test $_pkg_short_errors_supported = yes; then
  21917.                 XLIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$dri_modules" 2>&1`
  21918.         else
  21919.                 XLIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$dri_modules" 2>&1`
  21920.         fi
  21921.         # Put the nasty error message in config.log where it belongs
  21922.         echo "$XLIBGL_PKG_ERRORS" >&5
  21923.  
  21924.         as_fn_error $? "Package requirements ($dri_modules) were not met:
  21925.  
  21926. $XLIBGL_PKG_ERRORS
  21927.  
  21928. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  21929. installed software in a non-standard prefix.
  21930.  
  21931. Alternatively, you may set the environment variables XLIBGL_CFLAGS
  21932. and XLIBGL_LIBS to avoid the need to call pkg-config.
  21933. See the pkg-config man page for more details." "$LINENO" 5
  21934. elif test $pkg_failed = untried; then
  21935.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21936. $as_echo "no" >&6; }
  21937.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  21938. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  21939. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  21940. is in your PATH or set the PKG_CONFIG environment variable to the full
  21941. path to pkg-config.
  21942.  
  21943. Alternatively, you may set the environment variables XLIBGL_CFLAGS
  21944. and XLIBGL_LIBS to avoid the need to call pkg-config.
  21945. See the pkg-config man page for more details.
  21946.  
  21947. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  21948. See \`config.log' for more details" "$LINENO" 5; }
  21949. else
  21950.         XLIBGL_CFLAGS=$pkg_cv_XLIBGL_CFLAGS
  21951.         XLIBGL_LIBS=$pkg_cv_XLIBGL_LIBS
  21952.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21953. $as_echo "yes" >&6; }
  21954.  
  21955. fi
  21956.     GL_PC_REQ_PRIV="$GL_PC_REQ_PRIV $dri_modules"
  21957.     X11_INCLUDES="$X11_INCLUDES $XLIBGL_CFLAGS"
  21958.     GL_LIB_DEPS="$XLIBGL_LIBS"
  21959.     GL_LIB_DEPS="$GL_LIB_DEPS $SELINUX_LIBS -lm $PTHREAD_LIBS $DLOPEN_LIBS"
  21960.     GL_PC_LIB_PRIV="$GL_PC_LIB_PRIV $SELINUX_LIBS -lm $PTHREAD_LIBS"
  21961.     ;;
  21962. xyesno)
  21963.     # DRI-based GLX
  21964.  
  21965. pkg_failed=no
  21966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLPROTO" >&5
  21967. $as_echo_n "checking for GLPROTO... " >&6; }
  21968.  
  21969. if test -n "$GLPROTO_CFLAGS"; then
  21970.     pkg_cv_GLPROTO_CFLAGS="$GLPROTO_CFLAGS"
  21971.  elif test -n "$PKG_CONFIG"; then
  21972.     if test -n "$PKG_CONFIG" && \
  21973.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glproto >= \$GLPROTO_REQUIRED\""; } >&5
  21974.   ($PKG_CONFIG --exists --print-errors "glproto >= $GLPROTO_REQUIRED") 2>&5
  21975.   ac_status=$?
  21976.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21977.   test $ac_status = 0; }; then
  21978.   pkg_cv_GLPROTO_CFLAGS=`$PKG_CONFIG --cflags "glproto >= $GLPROTO_REQUIRED" 2>/dev/null`
  21979.                       test "x$?" != "x0" && pkg_failed=yes
  21980. else
  21981.   pkg_failed=yes
  21982. fi
  21983.  else
  21984.     pkg_failed=untried
  21985. fi
  21986. if test -n "$GLPROTO_LIBS"; then
  21987.     pkg_cv_GLPROTO_LIBS="$GLPROTO_LIBS"
  21988.  elif test -n "$PKG_CONFIG"; then
  21989.     if test -n "$PKG_CONFIG" && \
  21990.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glproto >= \$GLPROTO_REQUIRED\""; } >&5
  21991.   ($PKG_CONFIG --exists --print-errors "glproto >= $GLPROTO_REQUIRED") 2>&5
  21992.   ac_status=$?
  21993.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21994.   test $ac_status = 0; }; then
  21995.   pkg_cv_GLPROTO_LIBS=`$PKG_CONFIG --libs "glproto >= $GLPROTO_REQUIRED" 2>/dev/null`
  21996.                       test "x$?" != "x0" && pkg_failed=yes
  21997. else
  21998.   pkg_failed=yes
  21999. fi
  22000.  else
  22001.     pkg_failed=untried
  22002. fi
  22003.  
  22004.  
  22005.  
  22006. if test $pkg_failed = yes; then
  22007.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22008. $as_echo "no" >&6; }
  22009.  
  22010. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22011.         _pkg_short_errors_supported=yes
  22012. else
  22013.         _pkg_short_errors_supported=no
  22014. fi
  22015.         if test $_pkg_short_errors_supported = yes; then
  22016.                 GLPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glproto >= $GLPROTO_REQUIRED" 2>&1`
  22017.         else
  22018.                 GLPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glproto >= $GLPROTO_REQUIRED" 2>&1`
  22019.         fi
  22020.         # Put the nasty error message in config.log where it belongs
  22021.         echo "$GLPROTO_PKG_ERRORS" >&5
  22022.  
  22023.         as_fn_error $? "Package requirements (glproto >= $GLPROTO_REQUIRED) were not met:
  22024.  
  22025. $GLPROTO_PKG_ERRORS
  22026.  
  22027. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  22028. installed software in a non-standard prefix.
  22029.  
  22030. Alternatively, you may set the environment variables GLPROTO_CFLAGS
  22031. and GLPROTO_LIBS to avoid the need to call pkg-config.
  22032. See the pkg-config man page for more details." "$LINENO" 5
  22033. elif test $pkg_failed = untried; then
  22034.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22035. $as_echo "no" >&6; }
  22036.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22037. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22038. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  22039. is in your PATH or set the PKG_CONFIG environment variable to the full
  22040. path to pkg-config.
  22041.  
  22042. Alternatively, you may set the environment variables GLPROTO_CFLAGS
  22043. and GLPROTO_LIBS to avoid the need to call pkg-config.
  22044. See the pkg-config man page for more details.
  22045.  
  22046. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  22047. See \`config.log' for more details" "$LINENO" 5; }
  22048. else
  22049.         GLPROTO_CFLAGS=$pkg_cv_GLPROTO_CFLAGS
  22050.         GLPROTO_LIBS=$pkg_cv_GLPROTO_LIBS
  22051.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22052. $as_echo "yes" >&6; }
  22053.  
  22054. fi
  22055.  
  22056.     # find the DRI deps for libGL
  22057.     dri_modules="x11 xext xdamage xfixes x11-xcb xcb xcb-glx >= $XCBGLX_REQUIRED"
  22058.  
  22059.     if test x"$driglx_direct" = xyes; then
  22060.         if test x"$dri_platform" = xdrm ; then
  22061.             DEFINES="$DEFINES -DGLX_USE_DRM"
  22062.             if test "x$have_libdrm" != xyes; then
  22063.                as_fn_error $? "Direct rendering requires libdrm >= $LIBDRM_REQUIRED" "$LINENO" 5
  22064.             fi
  22065.  
  22066.  
  22067. pkg_failed=no
  22068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2PROTO" >&5
  22069. $as_echo_n "checking for DRI2PROTO... " >&6; }
  22070.  
  22071. if test -n "$DRI2PROTO_CFLAGS"; then
  22072.     pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS"
  22073.  elif test -n "$PKG_CONFIG"; then
  22074.     if test -n "$PKG_CONFIG" && \
  22075.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= \$DRI2PROTO_REQUIRED\""; } >&5
  22076.   ($PKG_CONFIG --exists --print-errors "dri2proto >= $DRI2PROTO_REQUIRED") 2>&5
  22077.   ac_status=$?
  22078.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22079.   test $ac_status = 0; }; then
  22080.   pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "dri2proto >= $DRI2PROTO_REQUIRED" 2>/dev/null`
  22081.                       test "x$?" != "x0" && pkg_failed=yes
  22082. else
  22083.   pkg_failed=yes
  22084. fi
  22085.  else
  22086.     pkg_failed=untried
  22087. fi
  22088. if test -n "$DRI2PROTO_LIBS"; then
  22089.     pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS"
  22090.  elif test -n "$PKG_CONFIG"; then
  22091.     if test -n "$PKG_CONFIG" && \
  22092.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= \$DRI2PROTO_REQUIRED\""; } >&5
  22093.   ($PKG_CONFIG --exists --print-errors "dri2proto >= $DRI2PROTO_REQUIRED") 2>&5
  22094.   ac_status=$?
  22095.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22096.   test $ac_status = 0; }; then
  22097.   pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "dri2proto >= $DRI2PROTO_REQUIRED" 2>/dev/null`
  22098.                       test "x$?" != "x0" && pkg_failed=yes
  22099. else
  22100.   pkg_failed=yes
  22101. fi
  22102.  else
  22103.     pkg_failed=untried
  22104. fi
  22105.  
  22106.  
  22107.  
  22108. if test $pkg_failed = yes; then
  22109.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22110. $as_echo "no" >&6; }
  22111.  
  22112. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22113.         _pkg_short_errors_supported=yes
  22114. else
  22115.         _pkg_short_errors_supported=no
  22116. fi
  22117.         if test $_pkg_short_errors_supported = yes; then
  22118.                 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri2proto >= $DRI2PROTO_REQUIRED" 2>&1`
  22119.         else
  22120.                 DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri2proto >= $DRI2PROTO_REQUIRED" 2>&1`
  22121.         fi
  22122.         # Put the nasty error message in config.log where it belongs
  22123.         echo "$DRI2PROTO_PKG_ERRORS" >&5
  22124.  
  22125.         as_fn_error $? "Package requirements (dri2proto >= $DRI2PROTO_REQUIRED) were not met:
  22126.  
  22127. $DRI2PROTO_PKG_ERRORS
  22128.  
  22129. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  22130. installed software in a non-standard prefix.
  22131.  
  22132. Alternatively, you may set the environment variables DRI2PROTO_CFLAGS
  22133. and DRI2PROTO_LIBS to avoid the need to call pkg-config.
  22134. See the pkg-config man page for more details." "$LINENO" 5
  22135. elif test $pkg_failed = untried; then
  22136.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22137. $as_echo "no" >&6; }
  22138.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22139. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22140. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  22141. is in your PATH or set the PKG_CONFIG environment variable to the full
  22142. path to pkg-config.
  22143.  
  22144. Alternatively, you may set the environment variables DRI2PROTO_CFLAGS
  22145. and DRI2PROTO_LIBS to avoid the need to call pkg-config.
  22146. See the pkg-config man page for more details.
  22147.  
  22148. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  22149. See \`config.log' for more details" "$LINENO" 5; }
  22150. else
  22151.         DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS
  22152.         DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS
  22153.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22154. $as_echo "yes" >&6; }
  22155.  
  22156. fi
  22157.             GL_PC_REQ_PRIV="$GL_PC_REQ_PRIV libdrm >= $LIBDRM_REQUIRED"
  22158.             if test x"$enable_dri3" = xyes; then
  22159.  
  22160. pkg_failed=no
  22161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI3PROTO" >&5
  22162. $as_echo_n "checking for DRI3PROTO... " >&6; }
  22163.  
  22164. if test -n "$DRI3PROTO_CFLAGS"; then
  22165.     pkg_cv_DRI3PROTO_CFLAGS="$DRI3PROTO_CFLAGS"
  22166.  elif test -n "$PKG_CONFIG"; then
  22167.     if test -n "$PKG_CONFIG" && \
  22168.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri3proto >= \$DRI3PROTO_REQUIRED\""; } >&5
  22169.   ($PKG_CONFIG --exists --print-errors "dri3proto >= $DRI3PROTO_REQUIRED") 2>&5
  22170.   ac_status=$?
  22171.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22172.   test $ac_status = 0; }; then
  22173.   pkg_cv_DRI3PROTO_CFLAGS=`$PKG_CONFIG --cflags "dri3proto >= $DRI3PROTO_REQUIRED" 2>/dev/null`
  22174.                       test "x$?" != "x0" && pkg_failed=yes
  22175. else
  22176.   pkg_failed=yes
  22177. fi
  22178.  else
  22179.     pkg_failed=untried
  22180. fi
  22181. if test -n "$DRI3PROTO_LIBS"; then
  22182.     pkg_cv_DRI3PROTO_LIBS="$DRI3PROTO_LIBS"
  22183.  elif test -n "$PKG_CONFIG"; then
  22184.     if test -n "$PKG_CONFIG" && \
  22185.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri3proto >= \$DRI3PROTO_REQUIRED\""; } >&5
  22186.   ($PKG_CONFIG --exists --print-errors "dri3proto >= $DRI3PROTO_REQUIRED") 2>&5
  22187.   ac_status=$?
  22188.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22189.   test $ac_status = 0; }; then
  22190.   pkg_cv_DRI3PROTO_LIBS=`$PKG_CONFIG --libs "dri3proto >= $DRI3PROTO_REQUIRED" 2>/dev/null`
  22191.                       test "x$?" != "x0" && pkg_failed=yes
  22192. else
  22193.   pkg_failed=yes
  22194. fi
  22195.  else
  22196.     pkg_failed=untried
  22197. fi
  22198.  
  22199.  
  22200.  
  22201. if test $pkg_failed = yes; then
  22202.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22203. $as_echo "no" >&6; }
  22204.  
  22205. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22206.         _pkg_short_errors_supported=yes
  22207. else
  22208.         _pkg_short_errors_supported=no
  22209. fi
  22210.         if test $_pkg_short_errors_supported = yes; then
  22211.                 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri3proto >= $DRI3PROTO_REQUIRED" 2>&1`
  22212.         else
  22213.                 DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri3proto >= $DRI3PROTO_REQUIRED" 2>&1`
  22214.         fi
  22215.         # Put the nasty error message in config.log where it belongs
  22216.         echo "$DRI3PROTO_PKG_ERRORS" >&5
  22217.  
  22218.         as_fn_error $? "Package requirements (dri3proto >= $DRI3PROTO_REQUIRED) were not met:
  22219.  
  22220. $DRI3PROTO_PKG_ERRORS
  22221.  
  22222. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  22223. installed software in a non-standard prefix.
  22224.  
  22225. Alternatively, you may set the environment variables DRI3PROTO_CFLAGS
  22226. and DRI3PROTO_LIBS to avoid the need to call pkg-config.
  22227. See the pkg-config man page for more details." "$LINENO" 5
  22228. elif test $pkg_failed = untried; then
  22229.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22230. $as_echo "no" >&6; }
  22231.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22232. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22233. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  22234. is in your PATH or set the PKG_CONFIG environment variable to the full
  22235. path to pkg-config.
  22236.  
  22237. Alternatively, you may set the environment variables DRI3PROTO_CFLAGS
  22238. and DRI3PROTO_LIBS to avoid the need to call pkg-config.
  22239. See the pkg-config man page for more details.
  22240.  
  22241. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  22242. See \`config.log' for more details" "$LINENO" 5; }
  22243. else
  22244.         DRI3PROTO_CFLAGS=$pkg_cv_DRI3PROTO_CFLAGS
  22245.         DRI3PROTO_LIBS=$pkg_cv_DRI3PROTO_LIBS
  22246.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22247. $as_echo "yes" >&6; }
  22248.  
  22249. fi
  22250.  
  22251. pkg_failed=no
  22252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRESENTPROTO" >&5
  22253. $as_echo_n "checking for PRESENTPROTO... " >&6; }
  22254.  
  22255. if test -n "$PRESENTPROTO_CFLAGS"; then
  22256.     pkg_cv_PRESENTPROTO_CFLAGS="$PRESENTPROTO_CFLAGS"
  22257.  elif test -n "$PKG_CONFIG"; then
  22258.     if test -n "$PKG_CONFIG" && \
  22259.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"presentproto >= \$PRESENTPROTO_REQUIRED\""; } >&5
  22260.   ($PKG_CONFIG --exists --print-errors "presentproto >= $PRESENTPROTO_REQUIRED") 2>&5
  22261.   ac_status=$?
  22262.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22263.   test $ac_status = 0; }; then
  22264.   pkg_cv_PRESENTPROTO_CFLAGS=`$PKG_CONFIG --cflags "presentproto >= $PRESENTPROTO_REQUIRED" 2>/dev/null`
  22265.                       test "x$?" != "x0" && pkg_failed=yes
  22266. else
  22267.   pkg_failed=yes
  22268. fi
  22269.  else
  22270.     pkg_failed=untried
  22271. fi
  22272. if test -n "$PRESENTPROTO_LIBS"; then
  22273.     pkg_cv_PRESENTPROTO_LIBS="$PRESENTPROTO_LIBS"
  22274.  elif test -n "$PKG_CONFIG"; then
  22275.     if test -n "$PKG_CONFIG" && \
  22276.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"presentproto >= \$PRESENTPROTO_REQUIRED\""; } >&5
  22277.   ($PKG_CONFIG --exists --print-errors "presentproto >= $PRESENTPROTO_REQUIRED") 2>&5
  22278.   ac_status=$?
  22279.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22280.   test $ac_status = 0; }; then
  22281.   pkg_cv_PRESENTPROTO_LIBS=`$PKG_CONFIG --libs "presentproto >= $PRESENTPROTO_REQUIRED" 2>/dev/null`
  22282.                       test "x$?" != "x0" && pkg_failed=yes
  22283. else
  22284.   pkg_failed=yes
  22285. fi
  22286.  else
  22287.     pkg_failed=untried
  22288. fi
  22289.  
  22290.  
  22291.  
  22292. if test $pkg_failed = yes; then
  22293.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22294. $as_echo "no" >&6; }
  22295.  
  22296. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22297.         _pkg_short_errors_supported=yes
  22298. else
  22299.         _pkg_short_errors_supported=no
  22300. fi
  22301.         if test $_pkg_short_errors_supported = yes; then
  22302.                 PRESENTPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "presentproto >= $PRESENTPROTO_REQUIRED" 2>&1`
  22303.         else
  22304.                 PRESENTPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "presentproto >= $PRESENTPROTO_REQUIRED" 2>&1`
  22305.         fi
  22306.         # Put the nasty error message in config.log where it belongs
  22307.         echo "$PRESENTPROTO_PKG_ERRORS" >&5
  22308.  
  22309.         as_fn_error $? "Package requirements (presentproto >= $PRESENTPROTO_REQUIRED) were not met:
  22310.  
  22311. $PRESENTPROTO_PKG_ERRORS
  22312.  
  22313. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  22314. installed software in a non-standard prefix.
  22315.  
  22316. Alternatively, you may set the environment variables PRESENTPROTO_CFLAGS
  22317. and PRESENTPROTO_LIBS to avoid the need to call pkg-config.
  22318. See the pkg-config man page for more details." "$LINENO" 5
  22319. elif test $pkg_failed = untried; then
  22320.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22321. $as_echo "no" >&6; }
  22322.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22323. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22324. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  22325. is in your PATH or set the PKG_CONFIG environment variable to the full
  22326. path to pkg-config.
  22327.  
  22328. Alternatively, you may set the environment variables PRESENTPROTO_CFLAGS
  22329. and PRESENTPROTO_LIBS to avoid the need to call pkg-config.
  22330. See the pkg-config man page for more details.
  22331.  
  22332. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  22333. See \`config.log' for more details" "$LINENO" 5; }
  22334. else
  22335.         PRESENTPROTO_CFLAGS=$pkg_cv_PRESENTPROTO_CFLAGS
  22336.         PRESENTPROTO_LIBS=$pkg_cv_PRESENTPROTO_LIBS
  22337.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22338. $as_echo "yes" >&6; }
  22339.  
  22340. fi
  22341.             fi
  22342.  
  22343.             if test x"$enable_dri" = xyes; then
  22344.                dri_modules="$dri_modules xcb-dri2 >= $XCBDRI2_REQUIRED"
  22345.             fi
  22346.  
  22347.             if test x"$enable_dri3" = xyes; then
  22348.                if test -n "$PKG_CONFIG" && \
  22349.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= \$XCB_REQUIRED\""; } >&5
  22350.   ($PKG_CONFIG --exists --print-errors "xcb >= $XCB_REQUIRED") 2>&5
  22351.   ac_status=$?
  22352.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22353.   test $ac_status = 0; }; then
  22354.   :
  22355. else
  22356.   as_fn_error $? "DRI3 requires xcb >= $XCB_REQUIRED" "$LINENO" 5
  22357. fi
  22358.                dri_modules="$dri_modules xcb-dri3 xcb-present xcb-sync xshmfence >= $XSHMFENCE_REQUIRED"
  22359.             fi
  22360.         fi
  22361.         if test x"$dri_platform" = xapple ; then
  22362.             DEFINES="$DEFINES -DGLX_USE_APPLEGL"
  22363.         fi
  22364.     fi
  22365.  
  22366.     # add xf86vidmode if available
  22367.  
  22368. pkg_failed=no
  22369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VIDMODE" >&5
  22370. $as_echo_n "checking for XF86VIDMODE... " >&6; }
  22371.  
  22372. if test -n "$XF86VIDMODE_CFLAGS"; then
  22373.     pkg_cv_XF86VIDMODE_CFLAGS="$XF86VIDMODE_CFLAGS"
  22374.  elif test -n "$PKG_CONFIG"; then
  22375.     if test -n "$PKG_CONFIG" && \
  22376.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
  22377.   ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
  22378.   ac_status=$?
  22379.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22380.   test $ac_status = 0; }; then
  22381.   pkg_cv_XF86VIDMODE_CFLAGS=`$PKG_CONFIG --cflags "xxf86vm" 2>/dev/null`
  22382.                       test "x$?" != "x0" && pkg_failed=yes
  22383. else
  22384.   pkg_failed=yes
  22385. fi
  22386.  else
  22387.     pkg_failed=untried
  22388. fi
  22389. if test -n "$XF86VIDMODE_LIBS"; then
  22390.     pkg_cv_XF86VIDMODE_LIBS="$XF86VIDMODE_LIBS"
  22391.  elif test -n "$PKG_CONFIG"; then
  22392.     if test -n "$PKG_CONFIG" && \
  22393.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xxf86vm\""; } >&5
  22394.   ($PKG_CONFIG --exists --print-errors "xxf86vm") 2>&5
  22395.   ac_status=$?
  22396.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22397.   test $ac_status = 0; }; then
  22398.   pkg_cv_XF86VIDMODE_LIBS=`$PKG_CONFIG --libs "xxf86vm" 2>/dev/null`
  22399.                       test "x$?" != "x0" && pkg_failed=yes
  22400. else
  22401.   pkg_failed=yes
  22402. fi
  22403.  else
  22404.     pkg_failed=untried
  22405. fi
  22406.  
  22407.  
  22408.  
  22409. if test $pkg_failed = yes; then
  22410.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22411. $as_echo "no" >&6; }
  22412.  
  22413. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22414.         _pkg_short_errors_supported=yes
  22415. else
  22416.         _pkg_short_errors_supported=no
  22417. fi
  22418.         if test $_pkg_short_errors_supported = yes; then
  22419.                 XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xxf86vm" 2>&1`
  22420.         else
  22421.                 XF86VIDMODE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xxf86vm" 2>&1`
  22422.         fi
  22423.         # Put the nasty error message in config.log where it belongs
  22424.         echo "$XF86VIDMODE_PKG_ERRORS" >&5
  22425.  
  22426.         HAVE_XF86VIDMODE=no
  22427. elif test $pkg_failed = untried; then
  22428.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22429. $as_echo "no" >&6; }
  22430.         HAVE_XF86VIDMODE=no
  22431. else
  22432.         XF86VIDMODE_CFLAGS=$pkg_cv_XF86VIDMODE_CFLAGS
  22433.         XF86VIDMODE_LIBS=$pkg_cv_XF86VIDMODE_LIBS
  22434.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22435. $as_echo "yes" >&6; }
  22436.         HAVE_XF86VIDMODE=yes
  22437. fi
  22438.     if test "$HAVE_XF86VIDMODE" = yes ; then
  22439.         dri_modules="$dri_modules xxf86vm"
  22440.     fi
  22441.  
  22442.  
  22443. pkg_failed=no
  22444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRIGL" >&5
  22445. $as_echo_n "checking for DRIGL... " >&6; }
  22446.  
  22447. if test -n "$DRIGL_CFLAGS"; then
  22448.     pkg_cv_DRIGL_CFLAGS="$DRIGL_CFLAGS"
  22449.  elif test -n "$PKG_CONFIG"; then
  22450.     if test -n "$PKG_CONFIG" && \
  22451.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$dri_modules\""; } >&5
  22452.   ($PKG_CONFIG --exists --print-errors "$dri_modules") 2>&5
  22453.   ac_status=$?
  22454.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22455.   test $ac_status = 0; }; then
  22456.   pkg_cv_DRIGL_CFLAGS=`$PKG_CONFIG --cflags "$dri_modules" 2>/dev/null`
  22457.                       test "x$?" != "x0" && pkg_failed=yes
  22458. else
  22459.   pkg_failed=yes
  22460. fi
  22461.  else
  22462.     pkg_failed=untried
  22463. fi
  22464. if test -n "$DRIGL_LIBS"; then
  22465.     pkg_cv_DRIGL_LIBS="$DRIGL_LIBS"
  22466.  elif test -n "$PKG_CONFIG"; then
  22467.     if test -n "$PKG_CONFIG" && \
  22468.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$dri_modules\""; } >&5
  22469.   ($PKG_CONFIG --exists --print-errors "$dri_modules") 2>&5
  22470.   ac_status=$?
  22471.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22472.   test $ac_status = 0; }; then
  22473.   pkg_cv_DRIGL_LIBS=`$PKG_CONFIG --libs "$dri_modules" 2>/dev/null`
  22474.                       test "x$?" != "x0" && pkg_failed=yes
  22475. else
  22476.   pkg_failed=yes
  22477. fi
  22478.  else
  22479.     pkg_failed=untried
  22480. fi
  22481.  
  22482.  
  22483.  
  22484. if test $pkg_failed = yes; then
  22485.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22486. $as_echo "no" >&6; }
  22487.  
  22488. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22489.         _pkg_short_errors_supported=yes
  22490. else
  22491.         _pkg_short_errors_supported=no
  22492. fi
  22493.         if test $_pkg_short_errors_supported = yes; then
  22494.                 DRIGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$dri_modules" 2>&1`
  22495.         else
  22496.                 DRIGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$dri_modules" 2>&1`
  22497.         fi
  22498.         # Put the nasty error message in config.log where it belongs
  22499.         echo "$DRIGL_PKG_ERRORS" >&5
  22500.  
  22501.         as_fn_error $? "Package requirements ($dri_modules) were not met:
  22502.  
  22503. $DRIGL_PKG_ERRORS
  22504.  
  22505. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  22506. installed software in a non-standard prefix.
  22507.  
  22508. Alternatively, you may set the environment variables DRIGL_CFLAGS
  22509. and DRIGL_LIBS to avoid the need to call pkg-config.
  22510. See the pkg-config man page for more details." "$LINENO" 5
  22511. elif test $pkg_failed = untried; then
  22512.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22513. $as_echo "no" >&6; }
  22514.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22515. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22516. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  22517. is in your PATH or set the PKG_CONFIG environment variable to the full
  22518. path to pkg-config.
  22519.  
  22520. Alternatively, you may set the environment variables DRIGL_CFLAGS
  22521. and DRIGL_LIBS to avoid the need to call pkg-config.
  22522. See the pkg-config man page for more details.
  22523.  
  22524. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  22525. See \`config.log' for more details" "$LINENO" 5; }
  22526. else
  22527.         DRIGL_CFLAGS=$pkg_cv_DRIGL_CFLAGS
  22528.         DRIGL_LIBS=$pkg_cv_DRIGL_LIBS
  22529.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22530. $as_echo "yes" >&6; }
  22531.  
  22532. fi
  22533.     GL_PC_REQ_PRIV="$GL_PC_REQ_PRIV $dri_modules"
  22534.     X11_INCLUDES="$X11_INCLUDES $DRIGL_CFLAGS"
  22535.     GL_LIB_DEPS="$DRIGL_LIBS"
  22536.  
  22537.     # need DRM libs, $PTHREAD_LIBS, etc.
  22538.     GL_LIB_DEPS="$GL_LIB_DEPS $LIBDRM_LIBS -lm $PTHREAD_LIBS $DLOPEN_LIBS"
  22539.     GL_PC_LIB_PRIV="-lm $PTHREAD_LIBS $DLOPEN_LIBS"
  22540.     ;;
  22541. esac
  22542.  
  22543. have_pci_id=no
  22544. if test "$have_libudev" = yes; then
  22545.     DEFINES="$DEFINES -DHAVE_LIBUDEV"
  22546.     have_pci_id=yes
  22547. fi
  22548.  
  22549. if test "$have_sysfs" = yes; then
  22550.     DEFINES="$DEFINES -DHAVE_SYSFS"
  22551.     have_pci_id=yes
  22552. fi
  22553.  
  22554. # This is outside the case (above) so that it is invoked even for non-GLX
  22555. # builds.
  22556.  if test "x$HAVE_XF86VIDMODE" = xyes; then
  22557.   HAVE_XF86VIDMODE_TRUE=
  22558.   HAVE_XF86VIDMODE_FALSE='#'
  22559. else
  22560.   HAVE_XF86VIDMODE_TRUE='#'
  22561.   HAVE_XF86VIDMODE_FALSE=
  22562. fi
  22563.  
  22564.  
  22565. GLESv1_CM_LIB_DEPS="$LIBDRM_LIBS -lm $PTHREAD_LIBS $DLOPEN_LIBS"
  22566. GLESv1_CM_PC_LIB_PRIV="-lm $PTHREAD_LIBS $DLOPEN_LIBS"
  22567. GLESv2_LIB_DEPS="$LIBDRM_LIBS -lm $PTHREAD_LIBS $DLOPEN_LIBS"
  22568. GLESv2_PC_LIB_PRIV="-lm $PTHREAD_LIBS $DLOPEN_LIBS"
  22569.  
  22570.  
  22571.  
  22572.  
  22573.  
  22574.  
  22575.  
  22576.  
  22577.  
  22578.  
  22579.  
  22580.  
  22581.  
  22582.  
  22583. case "x$enable_glx$enable_xlib_glx" in
  22584. xyesyes)
  22585.     DEFINES="$DEFINES -DUSE_XSHM"
  22586.     ;;
  22587. xyesno)
  22588.     DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING"
  22589.     if test "x$driglx_direct" = xyes; then
  22590.         DEFINES="$DEFINES -DGLX_DIRECT_RENDERING"
  22591.     fi
  22592.     ;;
  22593. esac
  22594.  
  22595.  
  22596. # Check whether --enable-glx-tls was given.
  22597. if test "${enable_glx_tls+set}" = set; then :
  22598.   enableval=$enable_glx_tls; GLX_USE_TLS="$enableval"
  22599. else
  22600.   GLX_USE_TLS=no
  22601. fi
  22602.  
  22603. GLX_TLS=${GLX_USE_TLS}
  22604.  
  22605.  
  22606. if test "x$GLX_USE_TLS" = xyes -a "x$ax_pthread_ok" = xyes; then :
  22607.   DEFINES="${DEFINES} -DGLX_USE_TLS"
  22608. fi
  22609.  
  22610.  
  22611. # Check whether --with-dri-driverdir was given.
  22612. if test "${with_dri_driverdir+set}" = set; then :
  22613.   withval=$with_dri_driverdir; DRI_DRIVER_INSTALL_DIR="$withval"
  22614. else
  22615.   DRI_DRIVER_INSTALL_DIR='${libdir}/dri'
  22616. fi
  22617.  
  22618.  
  22619.  
  22620. # Check whether --with-dri-searchpath was given.
  22621. if test "${with_dri_searchpath+set}" = set; then :
  22622.   withval=$with_dri_searchpath; DRI_DRIVER_SEARCH_DIR="$withval"
  22623. else
  22624.   DRI_DRIVER_SEARCH_DIR='${DRI_DRIVER_INSTALL_DIR}'
  22625. fi
  22626.  
  22627.  
  22628.  
  22629. # Check whether --with-dri-drivers was given.
  22630. if test "${with_dri_drivers+set}" = set; then :
  22631.   withval=$with_dri_drivers; with_dri_drivers="$withval"
  22632. else
  22633.   with_dri_drivers=auto
  22634. fi
  22635.  
  22636.  
  22637. if test "x$with_dri_drivers" = xauto; then
  22638.     if test "x$enable_opengl" = xyes -a "x$enable_dri" = xyes; then
  22639.         with_dri_drivers="yes"
  22640.     else
  22641.         with_dri_drivers="no"
  22642.     fi
  22643. fi
  22644. if test "x$with_dri_drivers" = xno; then
  22645.     with_dri_drivers=''
  22646. fi
  22647.  
  22648. if test "x$enable_dri" = xyes; then
  22649.     # Platform specific settings and drivers to build
  22650.     case "$host_os" in
  22651.     linux*)
  22652.         DEFINES="$DEFINES -DHAVE_ALIAS"
  22653.         if test "x$enable_dri3" = xyes; then
  22654.             DEFINES="$DEFINES -DHAVE_DRI3"
  22655.         fi
  22656.  
  22657.         if test "x$have_pci_id" != xyes; then
  22658.             as_fn_error $? "libudev-dev or sysfs required for building DRI" "$LINENO" 5
  22659.         fi
  22660.  
  22661.         case "$host_cpu" in
  22662.         powerpc* | sparc*)
  22663.             # Build only the drivers for cards that exist on PowerPC/sparc
  22664.             if test "x$with_dri_drivers" = "xyes"; then
  22665.                 with_dri_drivers="r200 radeon swrast"
  22666.             fi
  22667.             ;;
  22668.         esac
  22669.         ;;
  22670.     *freebsd* | dragonfly* | *netbsd* | openbsd*)
  22671.         DEFINES="$DEFINES -DHAVE_ALIAS"
  22672.         ;;
  22673.     gnu*)
  22674.         DEFINES="$DEFINES -DHAVE_ALIAS"
  22675.         ;;
  22676.     cygwin*)
  22677.         if test "x$with_dri_drivers" = "xyes"; then
  22678.             with_dri_drivers="swrast"
  22679.         fi
  22680.         ;;
  22681.     darwin*)
  22682.         DEFINES="$DEFINES -DGLX_ALIAS_UNSUPPORTED"
  22683.         if test "x$with_dri_drivers" = "xyes"; then
  22684.             with_dri_drivers="swrast"
  22685.         fi
  22686.         ;;
  22687.     esac
  22688.  
  22689.     # default drivers
  22690.     if test "x$with_dri_drivers" = "xyes"; then
  22691.         with_dri_drivers="i915 i965 nouveau r200 radeon swrast"
  22692.     fi
  22693.  
  22694.     # Check for expat
  22695.  
  22696. pkg_failed=no
  22697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
  22698. $as_echo_n "checking for EXPAT... " >&6; }
  22699.  
  22700. if test -n "$EXPAT_CFLAGS"; then
  22701.     pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
  22702.  elif test -n "$PKG_CONFIG"; then
  22703.     if test -n "$PKG_CONFIG" && \
  22704.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
  22705.   ($PKG_CONFIG --exists --print-errors "expat") 2>&5
  22706.   ac_status=$?
  22707.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22708.   test $ac_status = 0; }; then
  22709.   pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
  22710.                       test "x$?" != "x0" && pkg_failed=yes
  22711. else
  22712.   pkg_failed=yes
  22713. fi
  22714.  else
  22715.     pkg_failed=untried
  22716. fi
  22717. if test -n "$EXPAT_LIBS"; then
  22718.     pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
  22719.  elif test -n "$PKG_CONFIG"; then
  22720.     if test -n "$PKG_CONFIG" && \
  22721.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
  22722.   ($PKG_CONFIG --exists --print-errors "expat") 2>&5
  22723.   ac_status=$?
  22724.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22725.   test $ac_status = 0; }; then
  22726.   pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
  22727.                       test "x$?" != "x0" && pkg_failed=yes
  22728. else
  22729.   pkg_failed=yes
  22730. fi
  22731.  else
  22732.     pkg_failed=untried
  22733. fi
  22734.  
  22735.  
  22736.  
  22737. if test $pkg_failed = yes; then
  22738.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22739. $as_echo "no" >&6; }
  22740.  
  22741. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22742.         _pkg_short_errors_supported=yes
  22743. else
  22744.         _pkg_short_errors_supported=no
  22745. fi
  22746.         if test $_pkg_short_errors_supported = yes; then
  22747.                 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
  22748.         else
  22749.                 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
  22750.         fi
  22751.         # Put the nasty error message in config.log where it belongs
  22752.         echo "$EXPAT_PKG_ERRORS" >&5
  22753.  
  22754.         # expat version 2.0 and earlier do not provide expat.pc
  22755.         ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  22756. if test "x$ac_cv_header_expat_h" = xyes; then :
  22757.  
  22758. else
  22759.   as_fn_error $? "Expat headers required for DRI not found" "$LINENO" 5
  22760. fi
  22761.  
  22762.  
  22763.          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  22764. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  22765. if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
  22766.   $as_echo_n "(cached) " >&6
  22767. else
  22768.   ac_check_lib_save_LIBS=$LIBS
  22769. LIBS="-lexpat  $LIBS"
  22770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22771. /* end confdefs.h.  */
  22772.  
  22773. /* Override any GCC internal prototype to avoid an error.
  22774.    Use char because int might match the return type of a GCC
  22775.    builtin and then its argument prototype would still apply.  */
  22776. #ifdef __cplusplus
  22777. extern "C"
  22778. #endif
  22779. char XML_ParserCreate ();
  22780. int
  22781. main ()
  22782. {
  22783. return XML_ParserCreate ();
  22784.   ;
  22785.   return 0;
  22786. }
  22787. _ACEOF
  22788. if ac_fn_c_try_link "$LINENO"; then :
  22789.   ac_cv_lib_expat_XML_ParserCreate=yes
  22790. else
  22791.   ac_cv_lib_expat_XML_ParserCreate=no
  22792. fi
  22793. rm -f core conftest.err conftest.$ac_objext \
  22794.     conftest$ac_exeext conftest.$ac_ext
  22795. LIBS=$ac_check_lib_save_LIBS
  22796. fi
  22797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  22798. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  22799. if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
  22800.   cat >>confdefs.h <<_ACEOF
  22801. #define HAVE_LIBEXPAT 1
  22802. _ACEOF
  22803.  
  22804.   LIBS="-lexpat $LIBS"
  22805.  
  22806. else
  22807.   as_fn_error $? "Expat library required for DRI not found" "$LINENO" 5
  22808. fi
  22809.  
  22810.          EXPAT_LIBS="-lexpat"
  22811. elif test $pkg_failed = untried; then
  22812.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22813. $as_echo "no" >&6; }
  22814.         # expat version 2.0 and earlier do not provide expat.pc
  22815.         ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  22816. if test "x$ac_cv_header_expat_h" = xyes; then :
  22817.  
  22818. else
  22819.   as_fn_error $? "Expat headers required for DRI not found" "$LINENO" 5
  22820. fi
  22821.  
  22822.  
  22823.          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  22824. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  22825. if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
  22826.   $as_echo_n "(cached) " >&6
  22827. else
  22828.   ac_check_lib_save_LIBS=$LIBS
  22829. LIBS="-lexpat  $LIBS"
  22830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22831. /* end confdefs.h.  */
  22832.  
  22833. /* Override any GCC internal prototype to avoid an error.
  22834.    Use char because int might match the return type of a GCC
  22835.    builtin and then its argument prototype would still apply.  */
  22836. #ifdef __cplusplus
  22837. extern "C"
  22838. #endif
  22839. char XML_ParserCreate ();
  22840. int
  22841. main ()
  22842. {
  22843. return XML_ParserCreate ();
  22844.   ;
  22845.   return 0;
  22846. }
  22847. _ACEOF
  22848. if ac_fn_c_try_link "$LINENO"; then :
  22849.   ac_cv_lib_expat_XML_ParserCreate=yes
  22850. else
  22851.   ac_cv_lib_expat_XML_ParserCreate=no
  22852. fi
  22853. rm -f core conftest.err conftest.$ac_objext \
  22854.     conftest$ac_exeext conftest.$ac_ext
  22855. LIBS=$ac_check_lib_save_LIBS
  22856. fi
  22857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  22858. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  22859. if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
  22860.   cat >>confdefs.h <<_ACEOF
  22861. #define HAVE_LIBEXPAT 1
  22862. _ACEOF
  22863.  
  22864.   LIBS="-lexpat $LIBS"
  22865.  
  22866. else
  22867.   as_fn_error $? "Expat library required for DRI not found" "$LINENO" 5
  22868. fi
  22869.  
  22870.          EXPAT_LIBS="-lexpat"
  22871. else
  22872.         EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
  22873.         EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
  22874.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22875. $as_echo "yes" >&6; }
  22876.  
  22877. fi
  22878.  
  22879.     DRICOMMON_NEED_LIBDRM=no
  22880.     # If we are building any DRI driver other than swrast.
  22881.     if test -n "$with_dri_drivers"; then
  22882.         if test "x$with_dri_drivers" != xswrast; then
  22883.             # ... libdrm is required
  22884.             if test "x$have_libdrm" != xyes; then
  22885.                 as_fn_error $? "DRI drivers requires libdrm >= $LIBDRM_REQUIRED" "$LINENO" 5
  22886.             fi
  22887.             DRICOMMON_NEED_LIBDRM=yes
  22888.         fi
  22889.     fi
  22890.  
  22891.     # If we're building any gallium DRI driver other than swrast
  22892.     if test -n "$with_gallium_drivers" -a "x$DRICOMMON_NEED_LIBDRM" = xno; then
  22893.         if test "x$with_gallium_drivers" != xswrast; then
  22894.             # ... build a libdrm aware dricommon
  22895.             DRICOMMON_NEED_LIBDRM=yes
  22896.         fi
  22897.     fi
  22898.  
  22899.     # put all the necessary libs together
  22900.     DRI_LIB_DEPS="$DRI_LIB_DEPS $SELINUX_LIBS $LIBDRM_LIBS $EXPAT_LIBS -lm $PTHREAD_LIBS $DLOPEN_LIBS"
  22901. fi
  22902.  
  22903.  
  22904.  
  22905. DRI_DIRS=''
  22906. if test -n "$with_dri_drivers"; then
  22907.     if test "x$enable_opengl" != xyes; then
  22908.         as_fn_error $? "--with-dri-drivers requires OpenGL" "$LINENO" 5
  22909.     fi
  22910.  
  22911.     dri_drivers=`IFS=', '; echo $with_dri_drivers`
  22912.     for driver in $dri_drivers; do
  22913.         DRI_DIRS="$DRI_DIRS $driver"
  22914.         case "x$driver" in
  22915.         xi915)
  22916.             HAVE_I915_DRI=yes;
  22917.  
  22918. pkg_failed=no
  22919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INTEL" >&5
  22920. $as_echo_n "checking for INTEL... " >&6; }
  22921.  
  22922. if test -n "$INTEL_CFLAGS"; then
  22923.     pkg_cv_INTEL_CFLAGS="$INTEL_CFLAGS"
  22924.  elif test -n "$PKG_CONFIG"; then
  22925.     if test -n "$PKG_CONFIG" && \
  22926.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$LIBDRM_INTEL_REQUIRED\""; } >&5
  22927.   ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $LIBDRM_INTEL_REQUIRED") 2>&5
  22928.   ac_status=$?
  22929.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22930.   test $ac_status = 0; }; then
  22931.   pkg_cv_INTEL_CFLAGS=`$PKG_CONFIG --cflags "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>/dev/null`
  22932.                       test "x$?" != "x0" && pkg_failed=yes
  22933. else
  22934.   pkg_failed=yes
  22935. fi
  22936.  else
  22937.     pkg_failed=untried
  22938. fi
  22939. if test -n "$INTEL_LIBS"; then
  22940.     pkg_cv_INTEL_LIBS="$INTEL_LIBS"
  22941.  elif test -n "$PKG_CONFIG"; then
  22942.     if test -n "$PKG_CONFIG" && \
  22943.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$LIBDRM_INTEL_REQUIRED\""; } >&5
  22944.   ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $LIBDRM_INTEL_REQUIRED") 2>&5
  22945.   ac_status=$?
  22946.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22947.   test $ac_status = 0; }; then
  22948.   pkg_cv_INTEL_LIBS=`$PKG_CONFIG --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>/dev/null`
  22949.                       test "x$?" != "x0" && pkg_failed=yes
  22950. else
  22951.   pkg_failed=yes
  22952. fi
  22953.  else
  22954.     pkg_failed=untried
  22955. fi
  22956.  
  22957.  
  22958.  
  22959. if test $pkg_failed = yes; then
  22960.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22961. $as_echo "no" >&6; }
  22962.  
  22963. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22964.         _pkg_short_errors_supported=yes
  22965. else
  22966.         _pkg_short_errors_supported=no
  22967. fi
  22968.         if test $_pkg_short_errors_supported = yes; then
  22969.                 INTEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>&1`
  22970.         else
  22971.                 INTEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>&1`
  22972.         fi
  22973.         # Put the nasty error message in config.log where it belongs
  22974.         echo "$INTEL_PKG_ERRORS" >&5
  22975.  
  22976.         as_fn_error $? "Package requirements (libdrm_intel >= $LIBDRM_INTEL_REQUIRED) were not met:
  22977.  
  22978. $INTEL_PKG_ERRORS
  22979.  
  22980. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  22981. installed software in a non-standard prefix.
  22982.  
  22983. Alternatively, you may set the environment variables INTEL_CFLAGS
  22984. and INTEL_LIBS to avoid the need to call pkg-config.
  22985. See the pkg-config man page for more details." "$LINENO" 5
  22986. elif test $pkg_failed = untried; then
  22987.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22988. $as_echo "no" >&6; }
  22989.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  22990. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  22991. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  22992. is in your PATH or set the PKG_CONFIG environment variable to the full
  22993. path to pkg-config.
  22994.  
  22995. Alternatively, you may set the environment variables INTEL_CFLAGS
  22996. and INTEL_LIBS to avoid the need to call pkg-config.
  22997. See the pkg-config man page for more details.
  22998.  
  22999. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  23000. See \`config.log' for more details" "$LINENO" 5; }
  23001. else
  23002.         INTEL_CFLAGS=$pkg_cv_INTEL_CFLAGS
  23003.         INTEL_LIBS=$pkg_cv_INTEL_LIBS
  23004.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23005. $as_echo "yes" >&6; }
  23006.  
  23007. fi
  23008.             ;;
  23009.         xi965)
  23010.             HAVE_I965_DRI=yes;
  23011.  
  23012. pkg_failed=no
  23013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INTEL" >&5
  23014. $as_echo_n "checking for INTEL... " >&6; }
  23015.  
  23016. if test -n "$INTEL_CFLAGS"; then
  23017.     pkg_cv_INTEL_CFLAGS="$INTEL_CFLAGS"
  23018.  elif test -n "$PKG_CONFIG"; then
  23019.     if test -n "$PKG_CONFIG" && \
  23020.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$LIBDRM_INTEL_REQUIRED\""; } >&5
  23021.   ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $LIBDRM_INTEL_REQUIRED") 2>&5
  23022.   ac_status=$?
  23023.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23024.   test $ac_status = 0; }; then
  23025.   pkg_cv_INTEL_CFLAGS=`$PKG_CONFIG --cflags "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>/dev/null`
  23026.                       test "x$?" != "x0" && pkg_failed=yes
  23027. else
  23028.   pkg_failed=yes
  23029. fi
  23030.  else
  23031.     pkg_failed=untried
  23032. fi
  23033. if test -n "$INTEL_LIBS"; then
  23034.     pkg_cv_INTEL_LIBS="$INTEL_LIBS"
  23035.  elif test -n "$PKG_CONFIG"; then
  23036.     if test -n "$PKG_CONFIG" && \
  23037.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$LIBDRM_INTEL_REQUIRED\""; } >&5
  23038.   ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $LIBDRM_INTEL_REQUIRED") 2>&5
  23039.   ac_status=$?
  23040.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23041.   test $ac_status = 0; }; then
  23042.   pkg_cv_INTEL_LIBS=`$PKG_CONFIG --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>/dev/null`
  23043.                       test "x$?" != "x0" && pkg_failed=yes
  23044. else
  23045.   pkg_failed=yes
  23046. fi
  23047.  else
  23048.     pkg_failed=untried
  23049. fi
  23050.  
  23051.  
  23052.  
  23053. if test $pkg_failed = yes; then
  23054.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23055. $as_echo "no" >&6; }
  23056.  
  23057. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23058.         _pkg_short_errors_supported=yes
  23059. else
  23060.         _pkg_short_errors_supported=no
  23061. fi
  23062.         if test $_pkg_short_errors_supported = yes; then
  23063.                 INTEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>&1`
  23064.         else
  23065.                 INTEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>&1`
  23066.         fi
  23067.         # Put the nasty error message in config.log where it belongs
  23068.         echo "$INTEL_PKG_ERRORS" >&5
  23069.  
  23070.         as_fn_error $? "Package requirements (libdrm_intel >= $LIBDRM_INTEL_REQUIRED) were not met:
  23071.  
  23072. $INTEL_PKG_ERRORS
  23073.  
  23074. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  23075. installed software in a non-standard prefix.
  23076.  
  23077. Alternatively, you may set the environment variables INTEL_CFLAGS
  23078. and INTEL_LIBS to avoid the need to call pkg-config.
  23079. See the pkg-config man page for more details." "$LINENO" 5
  23080. elif test $pkg_failed = untried; then
  23081.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23082. $as_echo "no" >&6; }
  23083.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23084. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23085. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  23086. is in your PATH or set the PKG_CONFIG environment variable to the full
  23087. path to pkg-config.
  23088.  
  23089. Alternatively, you may set the environment variables INTEL_CFLAGS
  23090. and INTEL_LIBS to avoid the need to call pkg-config.
  23091. See the pkg-config man page for more details.
  23092.  
  23093. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  23094. See \`config.log' for more details" "$LINENO" 5; }
  23095. else
  23096.         INTEL_CFLAGS=$pkg_cv_INTEL_CFLAGS
  23097.         INTEL_LIBS=$pkg_cv_INTEL_LIBS
  23098.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23099. $as_echo "yes" >&6; }
  23100.  
  23101. fi
  23102.             ;;
  23103.         xnouveau)
  23104.             HAVE_NOUVEAU_DRI=yes;
  23105.  
  23106. pkg_failed=no
  23107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NOUVEAU" >&5
  23108. $as_echo_n "checking for NOUVEAU... " >&6; }
  23109.  
  23110. if test -n "$NOUVEAU_CFLAGS"; then
  23111.     pkg_cv_NOUVEAU_CFLAGS="$NOUVEAU_CFLAGS"
  23112.  elif test -n "$PKG_CONFIG"; then
  23113.     if test -n "$PKG_CONFIG" && \
  23114.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= \$LIBDRM_NVVIEUX_REQUIRED\""; } >&5
  23115.   ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= $LIBDRM_NVVIEUX_REQUIRED") 2>&5
  23116.   ac_status=$?
  23117.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23118.   test $ac_status = 0; }; then
  23119.   pkg_cv_NOUVEAU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_nouveau >= $LIBDRM_NVVIEUX_REQUIRED" 2>/dev/null`
  23120.                       test "x$?" != "x0" && pkg_failed=yes
  23121. else
  23122.   pkg_failed=yes
  23123. fi
  23124.  else
  23125.     pkg_failed=untried
  23126. fi
  23127. if test -n "$NOUVEAU_LIBS"; then
  23128.     pkg_cv_NOUVEAU_LIBS="$NOUVEAU_LIBS"
  23129.  elif test -n "$PKG_CONFIG"; then
  23130.     if test -n "$PKG_CONFIG" && \
  23131.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= \$LIBDRM_NVVIEUX_REQUIRED\""; } >&5
  23132.   ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= $LIBDRM_NVVIEUX_REQUIRED") 2>&5
  23133.   ac_status=$?
  23134.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23135.   test $ac_status = 0; }; then
  23136.   pkg_cv_NOUVEAU_LIBS=`$PKG_CONFIG --libs "libdrm_nouveau >= $LIBDRM_NVVIEUX_REQUIRED" 2>/dev/null`
  23137.                       test "x$?" != "x0" && pkg_failed=yes
  23138. else
  23139.   pkg_failed=yes
  23140. fi
  23141.  else
  23142.     pkg_failed=untried
  23143. fi
  23144.  
  23145.  
  23146.  
  23147. if test $pkg_failed = yes; then
  23148.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23149. $as_echo "no" >&6; }
  23150.  
  23151. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23152.         _pkg_short_errors_supported=yes
  23153. else
  23154.         _pkg_short_errors_supported=no
  23155. fi
  23156.         if test $_pkg_short_errors_supported = yes; then
  23157.                 NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_nouveau >= $LIBDRM_NVVIEUX_REQUIRED" 2>&1`
  23158.         else
  23159.                 NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_nouveau >= $LIBDRM_NVVIEUX_REQUIRED" 2>&1`
  23160.         fi
  23161.         # Put the nasty error message in config.log where it belongs
  23162.         echo "$NOUVEAU_PKG_ERRORS" >&5
  23163.  
  23164.         as_fn_error $? "Package requirements (libdrm_nouveau >= $LIBDRM_NVVIEUX_REQUIRED) were not met:
  23165.  
  23166. $NOUVEAU_PKG_ERRORS
  23167.  
  23168. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  23169. installed software in a non-standard prefix.
  23170.  
  23171. Alternatively, you may set the environment variables NOUVEAU_CFLAGS
  23172. and NOUVEAU_LIBS to avoid the need to call pkg-config.
  23173. See the pkg-config man page for more details." "$LINENO" 5
  23174. elif test $pkg_failed = untried; then
  23175.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23176. $as_echo "no" >&6; }
  23177.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23178. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23179. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  23180. is in your PATH or set the PKG_CONFIG environment variable to the full
  23181. path to pkg-config.
  23182.  
  23183. Alternatively, you may set the environment variables NOUVEAU_CFLAGS
  23184. and NOUVEAU_LIBS to avoid the need to call pkg-config.
  23185. See the pkg-config man page for more details.
  23186.  
  23187. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  23188. See \`config.log' for more details" "$LINENO" 5; }
  23189. else
  23190.         NOUVEAU_CFLAGS=$pkg_cv_NOUVEAU_CFLAGS
  23191.         NOUVEAU_LIBS=$pkg_cv_NOUVEAU_LIBS
  23192.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23193. $as_echo "yes" >&6; }
  23194.  
  23195. fi
  23196.             ;;
  23197.         xradeon)
  23198.             HAVE_RADEON_DRI=yes;
  23199.  
  23200. pkg_failed=no
  23201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RADEON" >&5
  23202. $as_echo_n "checking for RADEON... " >&6; }
  23203.  
  23204. if test -n "$RADEON_CFLAGS"; then
  23205.     pkg_cv_RADEON_CFLAGS="$RADEON_CFLAGS"
  23206.  elif test -n "$PKG_CONFIG"; then
  23207.     if test -n "$PKG_CONFIG" && \
  23208.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  23209.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  23210.   ac_status=$?
  23211.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23212.   test $ac_status = 0; }; then
  23213.   pkg_cv_RADEON_CFLAGS=`$PKG_CONFIG --cflags "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  23214.                       test "x$?" != "x0" && pkg_failed=yes
  23215. else
  23216.   pkg_failed=yes
  23217. fi
  23218.  else
  23219.     pkg_failed=untried
  23220. fi
  23221. if test -n "$RADEON_LIBS"; then
  23222.     pkg_cv_RADEON_LIBS="$RADEON_LIBS"
  23223.  elif test -n "$PKG_CONFIG"; then
  23224.     if test -n "$PKG_CONFIG" && \
  23225.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  23226.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  23227.   ac_status=$?
  23228.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23229.   test $ac_status = 0; }; then
  23230.   pkg_cv_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  23231.                       test "x$?" != "x0" && pkg_failed=yes
  23232. else
  23233.   pkg_failed=yes
  23234. fi
  23235.  else
  23236.     pkg_failed=untried
  23237. fi
  23238.  
  23239.  
  23240.  
  23241. if test $pkg_failed = yes; then
  23242.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23243. $as_echo "no" >&6; }
  23244.  
  23245. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23246.         _pkg_short_errors_supported=yes
  23247. else
  23248.         _pkg_short_errors_supported=no
  23249. fi
  23250.         if test $_pkg_short_errors_supported = yes; then
  23251.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  23252.         else
  23253.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  23254.         fi
  23255.         # Put the nasty error message in config.log where it belongs
  23256.         echo "$RADEON_PKG_ERRORS" >&5
  23257.  
  23258.         as_fn_error $? "Package requirements (libdrm_radeon >= $LIBDRM_RADEON_REQUIRED) were not met:
  23259.  
  23260. $RADEON_PKG_ERRORS
  23261.  
  23262. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  23263. installed software in a non-standard prefix.
  23264.  
  23265. Alternatively, you may set the environment variables RADEON_CFLAGS
  23266. and RADEON_LIBS to avoid the need to call pkg-config.
  23267. See the pkg-config man page for more details." "$LINENO" 5
  23268. elif test $pkg_failed = untried; then
  23269.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23270. $as_echo "no" >&6; }
  23271.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23272. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23273. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  23274. is in your PATH or set the PKG_CONFIG environment variable to the full
  23275. path to pkg-config.
  23276.  
  23277. Alternatively, you may set the environment variables RADEON_CFLAGS
  23278. and RADEON_LIBS to avoid the need to call pkg-config.
  23279. See the pkg-config man page for more details.
  23280.  
  23281. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  23282. See \`config.log' for more details" "$LINENO" 5; }
  23283. else
  23284.         RADEON_CFLAGS=$pkg_cv_RADEON_CFLAGS
  23285.         RADEON_LIBS=$pkg_cv_RADEON_LIBS
  23286.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23287. $as_echo "yes" >&6; }
  23288.  
  23289. fi
  23290.             ;;
  23291.         xr200)
  23292.             HAVE_R200_DRI=yes;
  23293.  
  23294. pkg_failed=no
  23295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RADEON" >&5
  23296. $as_echo_n "checking for RADEON... " >&6; }
  23297.  
  23298. if test -n "$RADEON_CFLAGS"; then
  23299.     pkg_cv_RADEON_CFLAGS="$RADEON_CFLAGS"
  23300.  elif test -n "$PKG_CONFIG"; then
  23301.     if test -n "$PKG_CONFIG" && \
  23302.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  23303.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  23304.   ac_status=$?
  23305.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23306.   test $ac_status = 0; }; then
  23307.   pkg_cv_RADEON_CFLAGS=`$PKG_CONFIG --cflags "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  23308.                       test "x$?" != "x0" && pkg_failed=yes
  23309. else
  23310.   pkg_failed=yes
  23311. fi
  23312.  else
  23313.     pkg_failed=untried
  23314. fi
  23315. if test -n "$RADEON_LIBS"; then
  23316.     pkg_cv_RADEON_LIBS="$RADEON_LIBS"
  23317.  elif test -n "$PKG_CONFIG"; then
  23318.     if test -n "$PKG_CONFIG" && \
  23319.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  23320.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  23321.   ac_status=$?
  23322.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23323.   test $ac_status = 0; }; then
  23324.   pkg_cv_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  23325.                       test "x$?" != "x0" && pkg_failed=yes
  23326. else
  23327.   pkg_failed=yes
  23328. fi
  23329.  else
  23330.     pkg_failed=untried
  23331. fi
  23332.  
  23333.  
  23334.  
  23335. if test $pkg_failed = yes; then
  23336.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23337. $as_echo "no" >&6; }
  23338.  
  23339. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23340.         _pkg_short_errors_supported=yes
  23341. else
  23342.         _pkg_short_errors_supported=no
  23343. fi
  23344.         if test $_pkg_short_errors_supported = yes; then
  23345.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  23346.         else
  23347.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  23348.         fi
  23349.         # Put the nasty error message in config.log where it belongs
  23350.         echo "$RADEON_PKG_ERRORS" >&5
  23351.  
  23352.         as_fn_error $? "Package requirements (libdrm_radeon >= $LIBDRM_RADEON_REQUIRED) were not met:
  23353.  
  23354. $RADEON_PKG_ERRORS
  23355.  
  23356. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  23357. installed software in a non-standard prefix.
  23358.  
  23359. Alternatively, you may set the environment variables RADEON_CFLAGS
  23360. and RADEON_LIBS to avoid the need to call pkg-config.
  23361. See the pkg-config man page for more details." "$LINENO" 5
  23362. elif test $pkg_failed = untried; then
  23363.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23364. $as_echo "no" >&6; }
  23365.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23366. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23367. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  23368. is in your PATH or set the PKG_CONFIG environment variable to the full
  23369. path to pkg-config.
  23370.  
  23371. Alternatively, you may set the environment variables RADEON_CFLAGS
  23372. and RADEON_LIBS to avoid the need to call pkg-config.
  23373. See the pkg-config man page for more details.
  23374.  
  23375. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  23376. See \`config.log' for more details" "$LINENO" 5; }
  23377. else
  23378.         RADEON_CFLAGS=$pkg_cv_RADEON_CFLAGS
  23379.         RADEON_LIBS=$pkg_cv_RADEON_LIBS
  23380.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23381. $as_echo "yes" >&6; }
  23382.  
  23383. fi
  23384.             ;;
  23385.         xswrast)
  23386.             HAVE_SWRAST_DRI=yes;
  23387.             ;;
  23388.         *)
  23389.             as_fn_error $? "classic DRI driver '$driver' does not exist" "$LINENO" 5
  23390.             ;;
  23391.         esac
  23392.     done
  23393.     DRI_DIRS=`echo $DRI_DIRS|tr " " "\n"|sort -u|tr "\n" " "`
  23394. fi
  23395.  
  23396.  if test -n "$DRI_DIRS"; then
  23397.   NEED_MEGADRIVER_TRUE=
  23398.   NEED_MEGADRIVER_FALSE='#'
  23399. else
  23400.   NEED_MEGADRIVER_TRUE='#'
  23401.   NEED_MEGADRIVER_FALSE=
  23402. fi
  23403.  
  23404.  if test "x$enable_xlib_glx" = xyes -o \
  23405.                                   "x$enable_osmesa" = xyes -o \
  23406.                                   -n "$DRI_DIRS"; then
  23407.   NEED_LIBMESA_TRUE=
  23408.   NEED_LIBMESA_FALSE='#'
  23409. else
  23410.   NEED_LIBMESA_TRUE='#'
  23411.   NEED_LIBMESA_FALSE=
  23412. fi
  23413.  
  23414.  
  23415.  
  23416.  
  23417. # Check whether --with-osmesa-bits was given.
  23418. if test "${with_osmesa_bits+set}" = set; then :
  23419.   withval=$with_osmesa_bits; osmesa_bits="$withval"
  23420. else
  23421.   osmesa_bits=8
  23422. fi
  23423.  
  23424. if test "x$osmesa_bits" != x8; then
  23425.     if test "x$enable_dri" = xyes -o "x$enable_glx" = xyes; then
  23426.         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring OSMesa channel bits because of non-OSMesa driver" >&5
  23427. $as_echo "$as_me: WARNING: Ignoring OSMesa channel bits because of non-OSMesa driver" >&2;}
  23428.         osmesa_bits=8
  23429.     fi
  23430. fi
  23431. case "x$osmesa_bits" in
  23432. x8)
  23433.     OSMESA_LIB="${OSMESA_LIB}"
  23434.     ;;
  23435. x16|x32)
  23436.     OSMESA_LIB="${OSMESA_LIB}$osmesa_bits"
  23437.     DEFINES="$DEFINES -DCHAN_BITS=$osmesa_bits -DDEFAULT_SOFTWARE_DEPTH_BITS=31"
  23438.     ;;
  23439. *)
  23440.     as_fn_error $? "OSMesa bits '$osmesa_bits' is not a valid option" "$LINENO" 5
  23441.     ;;
  23442. esac
  23443.  
  23444. if test "x$enable_osmesa" = xyes -o "x$enable_gallium_osmesa" = xyes; then
  23445.     # only link libraries with osmesa if shared
  23446.     if test "$enable_static" = no; then
  23447.         OSMESA_LIB_DEPS="-lm $PTHREAD_LIBS $SELINUX_LIBS $DLOPEN_LIBS"
  23448.     else
  23449.         OSMESA_LIB_DEPS=""
  23450.     fi
  23451.     OSMESA_PC_LIB_PRIV="-lm $PTHREAD_LIBS $SELINUX_LIBS $DLOPEN_LIBS"
  23452. fi
  23453.  
  23454.  
  23455.  
  23456.  
  23457.  
  23458. if test "x$enable_gbm" = xauto; then
  23459.     case "$with_egl_platforms" in
  23460.         *drm*)
  23461.             enable_gbm=yes ;;
  23462.          *)
  23463.             enable_gbm=no ;;
  23464.     esac
  23465. fi
  23466. if test "x$enable_gbm" = xyes; then
  23467.     if test "x$need_pci_id$have_pci_id" = xyesno; then
  23468.         as_fn_error $? "gbm requires udev >= $LIBUDEV_REQUIRED or sysfs" "$LINENO" 5
  23469.     fi
  23470.  
  23471.     if test "x$enable_dri" = xyes; then
  23472.         GBM_BACKEND_DIRS="$GBM_BACKEND_DIRS dri"
  23473.         if test "x$enable_shared_glapi" = xno; then
  23474.             as_fn_error $? "gbm_dri requires --enable-shared-glapi" "$LINENO" 5
  23475.         fi
  23476.     else
  23477.         # Strictly speaking libgbm does not require --enable-dri, although
  23478.         # both of its backends do. Thus one can build libgbm without any
  23479.         # backends if --disable-dri is set.
  23480.         # To avoid unnecessary complexity of checking if at least one backend
  23481.         # is available when building, just mandate --enable-dri.
  23482.         as_fn_error $? "gbm requires --enable-dri" "$LINENO" 5
  23483.     fi
  23484. fi
  23485.  if test "x$enable_gbm" = xyes; then
  23486.   HAVE_GBM_TRUE=
  23487.   HAVE_GBM_FALSE='#'
  23488. else
  23489.   HAVE_GBM_TRUE='#'
  23490.   HAVE_GBM_FALSE=
  23491. fi
  23492.  
  23493. if test "x$need_pci_id$have_libudev" = xyesyes; then
  23494.     GBM_PC_REQ_PRIV="libudev >= $LIBUDEV_REQUIRED"
  23495. else
  23496.     GBM_PC_REQ_PRIV=""
  23497. fi
  23498. GBM_PC_LIB_PRIV="$DLOPEN_LIBS"
  23499.  
  23500.  
  23501.  
  23502. EGL_CLIENT_APIS=""
  23503.  
  23504. if test "x$enable_egl" = xyes; then
  23505.     EGL_LIB_DEPS="$DLOPEN_LIBS $SELINUX_LIBS $PTHREAD_LIBS"
  23506.  
  23507.     ac_fn_c_check_func "$LINENO" "mincore" "ac_cv_func_mincore"
  23508. if test "x$ac_cv_func_mincore" = xyes; then :
  23509.   DEFINES="$DEFINES -DHAVE_MINCORE"
  23510. fi
  23511.  
  23512.  
  23513.     if test "$enable_static" != yes; then
  23514.         if test "x$enable_dri" = xyes; then
  23515.             HAVE_EGL_DRIVER_DRI2=1
  23516.         fi
  23517.  
  23518.     fi
  23519. fi
  23520.  if test "x$enable_egl" = xyes; then
  23521.   HAVE_EGL_TRUE=
  23522.   HAVE_EGL_FALSE='#'
  23523. else
  23524.   HAVE_EGL_TRUE='#'
  23525.   HAVE_EGL_FALSE=
  23526. fi
  23527.  
  23528.  
  23529.  
  23530. if test "x$enable_xa" = xyes; then
  23531.     if test "x$with_gallium_drivers" = xswrast; then
  23532.        as_fn_error $? "
  23533.           Building xa requires at least one non swrast gallium driver.
  23534.           If you are looking to use libxatracker.so with the VMware driver,
  23535.           make sure to include svga in the gallium drivers list, apart from
  23536.           enabling XA.
  23537.           Example: ./configure --enable-xa --with-gallium-drivers=svga..." "$LINENO" 5
  23538.     fi
  23539.     enable_gallium_loader=$enable_shared_pipe_drivers
  23540. fi
  23541.  if test "x$enable_xa" = xyes; then
  23542.   HAVE_ST_XA_TRUE=
  23543.   HAVE_ST_XA_FALSE='#'
  23544. else
  23545.   HAVE_ST_XA_TRUE='#'
  23546.   HAVE_ST_XA_FALSE=
  23547. fi
  23548.  
  23549.  
  23550. if test -n "$with_gallium_drivers" -a "x$with_gallium_drivers" != xswrast; then
  23551.     if test "x$enable_xvmc" = xauto; then
  23552.         if test -n "$PKG_CONFIG" && \
  23553.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc >= \$XVMC_REQUIRED\""; } >&5
  23554.   ($PKG_CONFIG --exists --print-errors "xvmc >= $XVMC_REQUIRED") 2>&5
  23555.   ac_status=$?
  23556.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23557.   test $ac_status = 0; }; then
  23558.   enable_xvmc=yes
  23559. else
  23560.   enable_xvmc=no
  23561. fi
  23562.     fi
  23563.  
  23564.     if test "x$enable_vdpau" = xauto; then
  23565.         if test -n "$PKG_CONFIG" && \
  23566.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vdpau >= \$VDPAU_REQUIRED\""; } >&5
  23567.   ($PKG_CONFIG --exists --print-errors "vdpau >= $VDPAU_REQUIRED") 2>&5
  23568.   ac_status=$?
  23569.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23570.   test $ac_status = 0; }; then
  23571.   enable_vdpau=yes
  23572. else
  23573.   enable_vdpau=no
  23574. fi
  23575.     fi
  23576.  
  23577.     if test "x$enable_omx" = xauto; then
  23578.         if test -n "$PKG_CONFIG" && \
  23579.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libomxil-bellagio >= \$LIBOMXIL_BELLAGIO_REQUIRED\""; } >&5
  23580.   ($PKG_CONFIG --exists --print-errors "libomxil-bellagio >= $LIBOMXIL_BELLAGIO_REQUIRED") 2>&5
  23581.   ac_status=$?
  23582.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23583.   test $ac_status = 0; }; then
  23584.   enable_omx=yes
  23585. else
  23586.   enable_omx=no
  23587. fi
  23588.     fi
  23589.  
  23590.     if test "x$enable_va" = xauto; then
  23591.         if test -n "$PKG_CONFIG" && \
  23592.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva >= \$LIBVA_REQUIRED\""; } >&5
  23593.   ($PKG_CONFIG --exists --print-errors "libva >= $LIBVA_REQUIRED") 2>&5
  23594.   ac_status=$?
  23595.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23596.   test $ac_status = 0; }; then
  23597.   enable_va=yes
  23598. else
  23599.   enable_va=no
  23600. fi
  23601.     fi
  23602. fi
  23603.  
  23604. if test "x$enable_dri" = xyes -o \
  23605.         "x$enable_xvmc" = xyes -o \
  23606.         "x$enable_vdpau" = xyes -o \
  23607.         "x$enable_omx" = xyes -o \
  23608.         "x$enable_va" = xyes; then
  23609.     need_gallium_vl=yes
  23610. fi
  23611.  if test "x$need_gallium_vl" = xyes; then
  23612.   NEED_GALLIUM_VL_TRUE=
  23613.   NEED_GALLIUM_VL_FALSE='#'
  23614. else
  23615.   NEED_GALLIUM_VL_TRUE='#'
  23616.   NEED_GALLIUM_VL_FALSE=
  23617. fi
  23618.  
  23619.  
  23620. if test "x$enable_xvmc" = xyes -o \
  23621.         "x$enable_vdpau" = xyes -o \
  23622.         "x$enable_omx" = xyes -o \
  23623.         "x$enable_va" = xyes; then
  23624.  
  23625. pkg_failed=no
  23626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VL" >&5
  23627. $as_echo_n "checking for VL... " >&6; }
  23628.  
  23629. if test -n "$VL_CFLAGS"; then
  23630.     pkg_cv_VL_CFLAGS="$VL_CFLAGS"
  23631.  elif test -n "$PKG_CONFIG"; then
  23632.     if test -n "$PKG_CONFIG" && \
  23633.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb xcb-dri2 >= \$XCBDRI2_REQUIRED\""; } >&5
  23634.   ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED") 2>&5
  23635.   ac_status=$?
  23636.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23637.   test $ac_status = 0; }; then
  23638.   pkg_cv_VL_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED" 2>/dev/null`
  23639.                       test "x$?" != "x0" && pkg_failed=yes
  23640. else
  23641.   pkg_failed=yes
  23642. fi
  23643.  else
  23644.     pkg_failed=untried
  23645. fi
  23646. if test -n "$VL_LIBS"; then
  23647.     pkg_cv_VL_LIBS="$VL_LIBS"
  23648.  elif test -n "$PKG_CONFIG"; then
  23649.     if test -n "$PKG_CONFIG" && \
  23650.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb xcb-dri2 >= \$XCBDRI2_REQUIRED\""; } >&5
  23651.   ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED") 2>&5
  23652.   ac_status=$?
  23653.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23654.   test $ac_status = 0; }; then
  23655.   pkg_cv_VL_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED" 2>/dev/null`
  23656.                       test "x$?" != "x0" && pkg_failed=yes
  23657. else
  23658.   pkg_failed=yes
  23659. fi
  23660.  else
  23661.     pkg_failed=untried
  23662. fi
  23663.  
  23664.  
  23665.  
  23666. if test $pkg_failed = yes; then
  23667.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23668. $as_echo "no" >&6; }
  23669.  
  23670. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23671.         _pkg_short_errors_supported=yes
  23672. else
  23673.         _pkg_short_errors_supported=no
  23674. fi
  23675.         if test $_pkg_short_errors_supported = yes; then
  23676.                 VL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED" 2>&1`
  23677.         else
  23678.                 VL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED" 2>&1`
  23679.         fi
  23680.         # Put the nasty error message in config.log where it belongs
  23681.         echo "$VL_PKG_ERRORS" >&5
  23682.  
  23683.         as_fn_error $? "Package requirements (x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED) were not met:
  23684.  
  23685. $VL_PKG_ERRORS
  23686.  
  23687. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  23688. installed software in a non-standard prefix.
  23689.  
  23690. Alternatively, you may set the environment variables VL_CFLAGS
  23691. and VL_LIBS to avoid the need to call pkg-config.
  23692. See the pkg-config man page for more details." "$LINENO" 5
  23693. elif test $pkg_failed = untried; then
  23694.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23695. $as_echo "no" >&6; }
  23696.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23697. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23698. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  23699. is in your PATH or set the PKG_CONFIG environment variable to the full
  23700. path to pkg-config.
  23701.  
  23702. Alternatively, you may set the environment variables VL_CFLAGS
  23703. and VL_LIBS to avoid the need to call pkg-config.
  23704. See the pkg-config man page for more details.
  23705.  
  23706. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  23707. See \`config.log' for more details" "$LINENO" 5; }
  23708. else
  23709.         VL_CFLAGS=$pkg_cv_VL_CFLAGS
  23710.         VL_LIBS=$pkg_cv_VL_LIBS
  23711.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23712. $as_echo "yes" >&6; }
  23713.  
  23714. fi
  23715.     need_gallium_vl_winsys=yes
  23716. fi
  23717.  if test "x$need_gallium_vl_winsys" = xyes; then
  23718.   NEED_GALLIUM_VL_WINSYS_TRUE=
  23719.   NEED_GALLIUM_VL_WINSYS_FALSE='#'
  23720. else
  23721.   NEED_GALLIUM_VL_WINSYS_TRUE='#'
  23722.   NEED_GALLIUM_VL_WINSYS_FALSE=
  23723. fi
  23724.  
  23725.  
  23726. if test "x$enable_xvmc" = xyes; then
  23727.  
  23728. pkg_failed=no
  23729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMC" >&5
  23730. $as_echo_n "checking for XVMC... " >&6; }
  23731.  
  23732. if test -n "$XVMC_CFLAGS"; then
  23733.     pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS"
  23734.  elif test -n "$PKG_CONFIG"; then
  23735.     if test -n "$PKG_CONFIG" && \
  23736.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc >= \$XVMC_REQUIRED\""; } >&5
  23737.   ($PKG_CONFIG --exists --print-errors "xvmc >= $XVMC_REQUIRED") 2>&5
  23738.   ac_status=$?
  23739.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23740.   test $ac_status = 0; }; then
  23741.   pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "xvmc >= $XVMC_REQUIRED" 2>/dev/null`
  23742.                       test "x$?" != "x0" && pkg_failed=yes
  23743. else
  23744.   pkg_failed=yes
  23745. fi
  23746.  else
  23747.     pkg_failed=untried
  23748. fi
  23749. if test -n "$XVMC_LIBS"; then
  23750.     pkg_cv_XVMC_LIBS="$XVMC_LIBS"
  23751.  elif test -n "$PKG_CONFIG"; then
  23752.     if test -n "$PKG_CONFIG" && \
  23753.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc >= \$XVMC_REQUIRED\""; } >&5
  23754.   ($PKG_CONFIG --exists --print-errors "xvmc >= $XVMC_REQUIRED") 2>&5
  23755.   ac_status=$?
  23756.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23757.   test $ac_status = 0; }; then
  23758.   pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "xvmc >= $XVMC_REQUIRED" 2>/dev/null`
  23759.                       test "x$?" != "x0" && pkg_failed=yes
  23760. else
  23761.   pkg_failed=yes
  23762. fi
  23763.  else
  23764.     pkg_failed=untried
  23765. fi
  23766.  
  23767.  
  23768.  
  23769. if test $pkg_failed = yes; then
  23770.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23771. $as_echo "no" >&6; }
  23772.  
  23773. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23774.         _pkg_short_errors_supported=yes
  23775. else
  23776.         _pkg_short_errors_supported=no
  23777. fi
  23778.         if test $_pkg_short_errors_supported = yes; then
  23779.                 XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xvmc >= $XVMC_REQUIRED" 2>&1`
  23780.         else
  23781.                 XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xvmc >= $XVMC_REQUIRED" 2>&1`
  23782.         fi
  23783.         # Put the nasty error message in config.log where it belongs
  23784.         echo "$XVMC_PKG_ERRORS" >&5
  23785.  
  23786.         as_fn_error $? "Package requirements (xvmc >= $XVMC_REQUIRED) were not met:
  23787.  
  23788. $XVMC_PKG_ERRORS
  23789.  
  23790. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  23791. installed software in a non-standard prefix.
  23792.  
  23793. Alternatively, you may set the environment variables XVMC_CFLAGS
  23794. and XVMC_LIBS to avoid the need to call pkg-config.
  23795. See the pkg-config man page for more details." "$LINENO" 5
  23796. elif test $pkg_failed = untried; then
  23797.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23798. $as_echo "no" >&6; }
  23799.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23800. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23801. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  23802. is in your PATH or set the PKG_CONFIG environment variable to the full
  23803. path to pkg-config.
  23804.  
  23805. Alternatively, you may set the environment variables XVMC_CFLAGS
  23806. and XVMC_LIBS to avoid the need to call pkg-config.
  23807. See the pkg-config man page for more details.
  23808.  
  23809. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  23810. See \`config.log' for more details" "$LINENO" 5; }
  23811. else
  23812.         XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS
  23813.         XVMC_LIBS=$pkg_cv_XVMC_LIBS
  23814.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23815. $as_echo "yes" >&6; }
  23816.  
  23817. fi
  23818.     enable_gallium_loader=$enable_shared_pipe_drivers
  23819. fi
  23820.  if test "x$enable_xvmc" = xyes; then
  23821.   HAVE_ST_XVMC_TRUE=
  23822.   HAVE_ST_XVMC_FALSE='#'
  23823. else
  23824.   HAVE_ST_XVMC_TRUE='#'
  23825.   HAVE_ST_XVMC_FALSE=
  23826. fi
  23827.  
  23828.  
  23829. if test "x$enable_vdpau" = xyes; then
  23830.  
  23831. pkg_failed=no
  23832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VDPAU" >&5
  23833. $as_echo_n "checking for VDPAU... " >&6; }
  23834.  
  23835. if test -n "$VDPAU_CFLAGS"; then
  23836.     pkg_cv_VDPAU_CFLAGS="$VDPAU_CFLAGS"
  23837.  elif test -n "$PKG_CONFIG"; then
  23838.     if test -n "$PKG_CONFIG" && \
  23839.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vdpau >= \$VDPAU_REQUIRED\""; } >&5
  23840.   ($PKG_CONFIG --exists --print-errors "vdpau >= $VDPAU_REQUIRED") 2>&5
  23841.   ac_status=$?
  23842.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23843.   test $ac_status = 0; }; then
  23844.   pkg_cv_VDPAU_CFLAGS=`$PKG_CONFIG --cflags "vdpau >= $VDPAU_REQUIRED" 2>/dev/null`
  23845.                       test "x$?" != "x0" && pkg_failed=yes
  23846. else
  23847.   pkg_failed=yes
  23848. fi
  23849.  else
  23850.     pkg_failed=untried
  23851. fi
  23852. if test -n "$VDPAU_LIBS"; then
  23853.     pkg_cv_VDPAU_LIBS="$VDPAU_LIBS"
  23854.  elif test -n "$PKG_CONFIG"; then
  23855.     if test -n "$PKG_CONFIG" && \
  23856.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vdpau >= \$VDPAU_REQUIRED\""; } >&5
  23857.   ($PKG_CONFIG --exists --print-errors "vdpau >= $VDPAU_REQUIRED") 2>&5
  23858.   ac_status=$?
  23859.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23860.   test $ac_status = 0; }; then
  23861.   pkg_cv_VDPAU_LIBS=`$PKG_CONFIG --libs "vdpau >= $VDPAU_REQUIRED" 2>/dev/null`
  23862.                       test "x$?" != "x0" && pkg_failed=yes
  23863. else
  23864.   pkg_failed=yes
  23865. fi
  23866.  else
  23867.     pkg_failed=untried
  23868. fi
  23869.  
  23870.  
  23871.  
  23872. if test $pkg_failed = yes; then
  23873.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23874. $as_echo "no" >&6; }
  23875.  
  23876. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23877.         _pkg_short_errors_supported=yes
  23878. else
  23879.         _pkg_short_errors_supported=no
  23880. fi
  23881.         if test $_pkg_short_errors_supported = yes; then
  23882.                 VDPAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "vdpau >= $VDPAU_REQUIRED" 2>&1`
  23883.         else
  23884.                 VDPAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "vdpau >= $VDPAU_REQUIRED" 2>&1`
  23885.         fi
  23886.         # Put the nasty error message in config.log where it belongs
  23887.         echo "$VDPAU_PKG_ERRORS" >&5
  23888.  
  23889.         as_fn_error $? "Package requirements (vdpau >= $VDPAU_REQUIRED) were not met:
  23890.  
  23891. $VDPAU_PKG_ERRORS
  23892.  
  23893. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  23894. installed software in a non-standard prefix.
  23895.  
  23896. Alternatively, you may set the environment variables VDPAU_CFLAGS
  23897. and VDPAU_LIBS to avoid the need to call pkg-config.
  23898. See the pkg-config man page for more details." "$LINENO" 5
  23899. elif test $pkg_failed = untried; then
  23900.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23901. $as_echo "no" >&6; }
  23902.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  23903. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  23904. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  23905. is in your PATH or set the PKG_CONFIG environment variable to the full
  23906. path to pkg-config.
  23907.  
  23908. Alternatively, you may set the environment variables VDPAU_CFLAGS
  23909. and VDPAU_LIBS to avoid the need to call pkg-config.
  23910. See the pkg-config man page for more details.
  23911.  
  23912. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  23913. See \`config.log' for more details" "$LINENO" 5; }
  23914. else
  23915.         VDPAU_CFLAGS=$pkg_cv_VDPAU_CFLAGS
  23916.         VDPAU_LIBS=$pkg_cv_VDPAU_LIBS
  23917.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23918. $as_echo "yes" >&6; }
  23919.  
  23920. fi
  23921.     enable_gallium_loader=$enable_shared_pipe_drivers
  23922. fi
  23923.  if test "x$enable_vdpau" = xyes; then
  23924.   HAVE_ST_VDPAU_TRUE=
  23925.   HAVE_ST_VDPAU_FALSE='#'
  23926. else
  23927.   HAVE_ST_VDPAU_TRUE='#'
  23928.   HAVE_ST_VDPAU_FALSE=
  23929. fi
  23930.  
  23931.  
  23932. if test "x$enable_omx" = xyes; then
  23933.  
  23934. pkg_failed=no
  23935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OMX" >&5
  23936. $as_echo_n "checking for OMX... " >&6; }
  23937.  
  23938. if test -n "$OMX_CFLAGS"; then
  23939.     pkg_cv_OMX_CFLAGS="$OMX_CFLAGS"
  23940.  elif test -n "$PKG_CONFIG"; then
  23941.     if test -n "$PKG_CONFIG" && \
  23942.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libomxil-bellagio >= \$LIBOMXIL_BELLAGIO_REQUIRED\""; } >&5
  23943.   ($PKG_CONFIG --exists --print-errors "libomxil-bellagio >= $LIBOMXIL_BELLAGIO_REQUIRED") 2>&5
  23944.   ac_status=$?
  23945.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23946.   test $ac_status = 0; }; then
  23947.   pkg_cv_OMX_CFLAGS=`$PKG_CONFIG --cflags "libomxil-bellagio >= $LIBOMXIL_BELLAGIO_REQUIRED" 2>/dev/null`
  23948.                       test "x$?" != "x0" && pkg_failed=yes
  23949. else
  23950.   pkg_failed=yes
  23951. fi
  23952.  else
  23953.     pkg_failed=untried
  23954. fi
  23955. if test -n "$OMX_LIBS"; then
  23956.     pkg_cv_OMX_LIBS="$OMX_LIBS"
  23957.  elif test -n "$PKG_CONFIG"; then
  23958.     if test -n "$PKG_CONFIG" && \
  23959.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libomxil-bellagio >= \$LIBOMXIL_BELLAGIO_REQUIRED\""; } >&5
  23960.   ($PKG_CONFIG --exists --print-errors "libomxil-bellagio >= $LIBOMXIL_BELLAGIO_REQUIRED") 2>&5
  23961.   ac_status=$?
  23962.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23963.   test $ac_status = 0; }; then
  23964.   pkg_cv_OMX_LIBS=`$PKG_CONFIG --libs "libomxil-bellagio >= $LIBOMXIL_BELLAGIO_REQUIRED" 2>/dev/null`
  23965.                       test "x$?" != "x0" && pkg_failed=yes
  23966. else
  23967.   pkg_failed=yes
  23968. fi
  23969.  else
  23970.     pkg_failed=untried
  23971. fi
  23972.  
  23973.  
  23974.  
  23975. if test $pkg_failed = yes; then
  23976.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23977. $as_echo "no" >&6; }
  23978.  
  23979. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23980.         _pkg_short_errors_supported=yes
  23981. else
  23982.         _pkg_short_errors_supported=no
  23983. fi
  23984.         if test $_pkg_short_errors_supported = yes; then
  23985.                 OMX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libomxil-bellagio >= $LIBOMXIL_BELLAGIO_REQUIRED" 2>&1`
  23986.         else
  23987.                 OMX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libomxil-bellagio >= $LIBOMXIL_BELLAGIO_REQUIRED" 2>&1`
  23988.         fi
  23989.         # Put the nasty error message in config.log where it belongs
  23990.         echo "$OMX_PKG_ERRORS" >&5
  23991.  
  23992.         as_fn_error $? "Package requirements (libomxil-bellagio >= $LIBOMXIL_BELLAGIO_REQUIRED) were not met:
  23993.  
  23994. $OMX_PKG_ERRORS
  23995.  
  23996. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  23997. installed software in a non-standard prefix.
  23998.  
  23999. Alternatively, you may set the environment variables OMX_CFLAGS
  24000. and OMX_LIBS to avoid the need to call pkg-config.
  24001. See the pkg-config man page for more details." "$LINENO" 5
  24002. elif test $pkg_failed = untried; then
  24003.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24004. $as_echo "no" >&6; }
  24005.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24006. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24007. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  24008. is in your PATH or set the PKG_CONFIG environment variable to the full
  24009. path to pkg-config.
  24010.  
  24011. Alternatively, you may set the environment variables OMX_CFLAGS
  24012. and OMX_LIBS to avoid the need to call pkg-config.
  24013. See the pkg-config man page for more details.
  24014.  
  24015. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  24016. See \`config.log' for more details" "$LINENO" 5; }
  24017. else
  24018.         OMX_CFLAGS=$pkg_cv_OMX_CFLAGS
  24019.         OMX_LIBS=$pkg_cv_OMX_LIBS
  24020.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24021. $as_echo "yes" >&6; }
  24022.  
  24023. fi
  24024.     enable_gallium_loader=$enable_shared_pipe_drivers
  24025. fi
  24026.  if test "x$enable_omx" = xyes; then
  24027.   HAVE_ST_OMX_TRUE=
  24028.   HAVE_ST_OMX_FALSE='#'
  24029. else
  24030.   HAVE_ST_OMX_TRUE='#'
  24031.   HAVE_ST_OMX_FALSE=
  24032. fi
  24033.  
  24034.  
  24035. if test "x$enable_va" = xyes; then
  24036.  
  24037. pkg_failed=no
  24038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VA" >&5
  24039. $as_echo_n "checking for VA... " >&6; }
  24040.  
  24041. if test -n "$VA_CFLAGS"; then
  24042.     pkg_cv_VA_CFLAGS="$VA_CFLAGS"
  24043.  elif test -n "$PKG_CONFIG"; then
  24044.     if test -n "$PKG_CONFIG" && \
  24045.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva >= \$LIBVA_REQUIRED\""; } >&5
  24046.   ($PKG_CONFIG --exists --print-errors "libva >= $LIBVA_REQUIRED") 2>&5
  24047.   ac_status=$?
  24048.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24049.   test $ac_status = 0; }; then
  24050.   pkg_cv_VA_CFLAGS=`$PKG_CONFIG --cflags "libva >= $LIBVA_REQUIRED" 2>/dev/null`
  24051.                       test "x$?" != "x0" && pkg_failed=yes
  24052. else
  24053.   pkg_failed=yes
  24054. fi
  24055.  else
  24056.     pkg_failed=untried
  24057. fi
  24058. if test -n "$VA_LIBS"; then
  24059.     pkg_cv_VA_LIBS="$VA_LIBS"
  24060.  elif test -n "$PKG_CONFIG"; then
  24061.     if test -n "$PKG_CONFIG" && \
  24062.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva >= \$LIBVA_REQUIRED\""; } >&5
  24063.   ($PKG_CONFIG --exists --print-errors "libva >= $LIBVA_REQUIRED") 2>&5
  24064.   ac_status=$?
  24065.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24066.   test $ac_status = 0; }; then
  24067.   pkg_cv_VA_LIBS=`$PKG_CONFIG --libs "libva >= $LIBVA_REQUIRED" 2>/dev/null`
  24068.                       test "x$?" != "x0" && pkg_failed=yes
  24069. else
  24070.   pkg_failed=yes
  24071. fi
  24072.  else
  24073.     pkg_failed=untried
  24074. fi
  24075.  
  24076.  
  24077.  
  24078. if test $pkg_failed = yes; then
  24079.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24080. $as_echo "no" >&6; }
  24081.  
  24082. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24083.         _pkg_short_errors_supported=yes
  24084. else
  24085.         _pkg_short_errors_supported=no
  24086. fi
  24087.         if test $_pkg_short_errors_supported = yes; then
  24088.                 VA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libva >= $LIBVA_REQUIRED" 2>&1`
  24089.         else
  24090.                 VA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libva >= $LIBVA_REQUIRED" 2>&1`
  24091.         fi
  24092.         # Put the nasty error message in config.log where it belongs
  24093.         echo "$VA_PKG_ERRORS" >&5
  24094.  
  24095.         as_fn_error $? "Package requirements (libva >= $LIBVA_REQUIRED) were not met:
  24096.  
  24097. $VA_PKG_ERRORS
  24098.  
  24099. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  24100. installed software in a non-standard prefix.
  24101.  
  24102. Alternatively, you may set the environment variables VA_CFLAGS
  24103. and VA_LIBS to avoid the need to call pkg-config.
  24104. See the pkg-config man page for more details." "$LINENO" 5
  24105. elif test $pkg_failed = untried; then
  24106.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24107. $as_echo "no" >&6; }
  24108.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24109. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24110. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  24111. is in your PATH or set the PKG_CONFIG environment variable to the full
  24112. path to pkg-config.
  24113.  
  24114. Alternatively, you may set the environment variables VA_CFLAGS
  24115. and VA_LIBS to avoid the need to call pkg-config.
  24116. See the pkg-config man page for more details.
  24117.  
  24118. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  24119. See \`config.log' for more details" "$LINENO" 5; }
  24120. else
  24121.         VA_CFLAGS=$pkg_cv_VA_CFLAGS
  24122.         VA_LIBS=$pkg_cv_VA_LIBS
  24123.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24124. $as_echo "yes" >&6; }
  24125.  
  24126. fi
  24127.     enable_gallium_loader=$enable_shared_pipe_drivers
  24128. fi
  24129.  if test "x$enable_va" = xyes; then
  24130.   HAVE_ST_VA_TRUE=
  24131.   HAVE_ST_VA_FALSE='#'
  24132. else
  24133.   HAVE_ST_VA_TRUE='#'
  24134.   HAVE_ST_VA_FALSE=
  24135. fi
  24136.  
  24137.  
  24138. if test "x$enable_nine" = xyes; then
  24139.     if ! echo "$with_gallium_drivers" | grep -q 'swrast'; then
  24140.         as_fn_error $? "nine requires the gallium swrast driver" "$LINENO" 5
  24141.     fi
  24142.     if test "x$with_gallium_drivers" = xswrast; then
  24143.         as_fn_error $? "nine requires at least one non-swrast gallium driver" "$LINENO" 5
  24144.     fi
  24145.     if test "x$enable_dri3" = xno; then
  24146.         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using nine together with wine requires DRI3 enabled system" >&5
  24147. $as_echo "$as_me: WARNING: using nine together with wine requires DRI3 enabled system" >&2;}
  24148.     fi
  24149.  
  24150.     enable_gallium_loader=$enable_shared_pipe_drivers
  24151. fi
  24152.  if test "x$enable_nine" = xyes; then
  24153.   HAVE_ST_NINE_TRUE=
  24154.   HAVE_ST_NINE_FALSE='#'
  24155. else
  24156.   HAVE_ST_NINE_TRUE='#'
  24157.   HAVE_ST_NINE_FALSE=
  24158. fi
  24159.  
  24160.  
  24161.  
  24162.  
  24163. # Check whether --with-clang-libdir was given.
  24164. if test "${with_clang_libdir+set}" = set; then :
  24165.   withval=$with_clang_libdir; CLANG_LIBDIR="$withval"
  24166. else
  24167.   CLANG_LIBDIR=''
  24168. fi
  24169.  
  24170.  
  24171. if test -n "$PKG_CONFIG" && \
  24172.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclc\""; } >&5
  24173.   ($PKG_CONFIG --exists --print-errors "libclc") 2>&5
  24174.   ac_status=$?
  24175.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24176.   test $ac_status = 0; }; then
  24177.   have_libclc=yes
  24178. else
  24179.   have_libclc=no
  24180. fi
  24181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_memory in -lelf" >&5
  24182. $as_echo_n "checking for elf_memory in -lelf... " >&6; }
  24183. if ${ac_cv_lib_elf_elf_memory+:} false; then :
  24184.   $as_echo_n "(cached) " >&6
  24185. else
  24186.   ac_check_lib_save_LIBS=$LIBS
  24187. LIBS="-lelf  $LIBS"
  24188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24189. /* end confdefs.h.  */
  24190.  
  24191. /* Override any GCC internal prototype to avoid an error.
  24192.    Use char because int might match the return type of a GCC
  24193.    builtin and then its argument prototype would still apply.  */
  24194. #ifdef __cplusplus
  24195. extern "C"
  24196. #endif
  24197. char elf_memory ();
  24198. int
  24199. main ()
  24200. {
  24201. return elf_memory ();
  24202.   ;
  24203.   return 0;
  24204. }
  24205. _ACEOF
  24206. if ac_fn_c_try_link "$LINENO"; then :
  24207.   ac_cv_lib_elf_elf_memory=yes
  24208. else
  24209.   ac_cv_lib_elf_elf_memory=no
  24210. fi
  24211. rm -f core conftest.err conftest.$ac_objext \
  24212.     conftest$ac_exeext conftest.$ac_ext
  24213. LIBS=$ac_check_lib_save_LIBS
  24214. fi
  24215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_memory" >&5
  24216. $as_echo "$ac_cv_lib_elf_elf_memory" >&6; }
  24217. if test "x$ac_cv_lib_elf_elf_memory" = xyes; then :
  24218.   have_libelf=yes;ELF_LIB=-lelf
  24219. fi
  24220.  
  24221.  
  24222. if test "x$enable_opencl" = xyes; then
  24223.     if test -z "$with_gallium_drivers"; then
  24224.         as_fn_error $? "cannot enable OpenCL without Gallium" "$LINENO" 5
  24225.     fi
  24226.  
  24227.     if test $GCC_VERSION_MAJOR -lt 4 -o $GCC_VERSION_MAJOR -eq 4 -a $GCC_VERSION_MINOR -lt 7; then
  24228.         as_fn_error $? "gcc >= 4.7 is required to build clover" "$LINENO" 5
  24229.     fi
  24230.  
  24231.     if test "x$have_libclc" = xno; then
  24232.         as_fn_error $? "pkg-config cannot find libclc.pc which is required to build clover.
  24233.                     Make sure the directory containing libclc.pc is specified in your
  24234.                     PKG_CONFIG_PATH environment variable.
  24235.                     By default libclc.pc is installed to /usr/local/share/pkgconfig/" "$LINENO" 5
  24236.     else
  24237.         LIBCLC_INCLUDEDIR=`$PKG_CONFIG --variable=includedir libclc`
  24238.         LIBCLC_LIBEXECDIR=`$PKG_CONFIG --variable=libexecdir libclc`
  24239.  
  24240.  
  24241.     fi
  24242.  
  24243.     # XXX: Use $enable_shared_pipe_drivers once converted to use static/shared pipe-drivers
  24244.     enable_gallium_loader=yes
  24245.  
  24246.     if test "x$enable_opencl_icd" = xyes; then
  24247.         OPENCL_LIBNAME="MesaOpenCL"
  24248.     else
  24249.         OPENCL_LIBNAME="OpenCL"
  24250.     fi
  24251.  
  24252.     if test "x$have_libelf" != xyes; then
  24253.        as_fn_error $? "Clover requires libelf" "$LINENO" 5
  24254.     fi
  24255. fi
  24256.  if test "x$enable_opencl" = xyes; then
  24257.   HAVE_CLOVER_TRUE=
  24258.   HAVE_CLOVER_FALSE='#'
  24259. else
  24260.   HAVE_CLOVER_TRUE='#'
  24261.   HAVE_CLOVER_FALSE=
  24262. fi
  24263.  
  24264.  if test "x$enable_opencl_icd" = xyes; then
  24265.   HAVE_CLOVER_ICD_TRUE=
  24266.   HAVE_CLOVER_ICD_FALSE='#'
  24267. else
  24268.   HAVE_CLOVER_ICD_TRUE='#'
  24269.   HAVE_CLOVER_ICD_FALSE=
  24270. fi
  24271.  
  24272.  
  24273.  
  24274.  if test -n "$with_gallium_drivers"; then
  24275.   HAVE_GALLIUM_TRUE=
  24276.   HAVE_GALLIUM_FALSE='#'
  24277. else
  24278.   HAVE_GALLIUM_TRUE='#'
  24279.   HAVE_GALLIUM_FALSE=
  24280. fi
  24281.  
  24282.  
  24283.  
  24284.  
  24285.  
  24286.  
  24287.  
  24288.  
  24289.  
  24290.  
  24291.  
  24292.  
  24293.  
  24294. case "x$enable_opengl$enable_gles1$enable_gles2" in
  24295. x*yes*)
  24296.     EGL_CLIENT_APIS="$EGL_CLIENT_APIS "'$(GL_LIB)'
  24297.     ;;
  24298. esac
  24299.  
  24300.  
  24301.  
  24302.  
  24303.  
  24304. # Check whether --with-egl-platforms was given.
  24305. if test "${with_egl_platforms+set}" = set; then :
  24306.   withval=$with_egl_platforms; with_egl_platforms="$withval"
  24307. else
  24308.   if test "x$enable_egl" = xyes; then
  24309.         with_egl_platforms="x11"
  24310.     else
  24311.         with_egl_platforms=""
  24312.     fi
  24313. fi
  24314.  
  24315.  
  24316. if test "x$with_egl_platforms" != "x" -a "x$enable_egl" != xyes; then
  24317.     as_fn_error $? "cannot build egl state tracker without EGL library" "$LINENO" 5
  24318. fi
  24319.  
  24320.  
  24321. pkg_failed=no
  24322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND_SCANNER" >&5
  24323. $as_echo_n "checking for WAYLAND_SCANNER... " >&6; }
  24324.  
  24325. if test -n "$WAYLAND_SCANNER_CFLAGS"; then
  24326.     pkg_cv_WAYLAND_SCANNER_CFLAGS="$WAYLAND_SCANNER_CFLAGS"
  24327.  elif test -n "$PKG_CONFIG"; then
  24328.     if test -n "$PKG_CONFIG" && \
  24329.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland_scanner\""; } >&5
  24330.   ($PKG_CONFIG --exists --print-errors "wayland_scanner") 2>&5
  24331.   ac_status=$?
  24332.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24333.   test $ac_status = 0; }; then
  24334.   pkg_cv_WAYLAND_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "wayland_scanner" 2>/dev/null`
  24335.                       test "x$?" != "x0" && pkg_failed=yes
  24336. else
  24337.   pkg_failed=yes
  24338. fi
  24339.  else
  24340.     pkg_failed=untried
  24341. fi
  24342. if test -n "$WAYLAND_SCANNER_LIBS"; then
  24343.     pkg_cv_WAYLAND_SCANNER_LIBS="$WAYLAND_SCANNER_LIBS"
  24344.  elif test -n "$PKG_CONFIG"; then
  24345.     if test -n "$PKG_CONFIG" && \
  24346.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland_scanner\""; } >&5
  24347.   ($PKG_CONFIG --exists --print-errors "wayland_scanner") 2>&5
  24348.   ac_status=$?
  24349.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24350.   test $ac_status = 0; }; then
  24351.   pkg_cv_WAYLAND_SCANNER_LIBS=`$PKG_CONFIG --libs "wayland_scanner" 2>/dev/null`
  24352.                       test "x$?" != "x0" && pkg_failed=yes
  24353. else
  24354.   pkg_failed=yes
  24355. fi
  24356.  else
  24357.     pkg_failed=untried
  24358. fi
  24359.  
  24360.  
  24361.  
  24362. if test $pkg_failed = yes; then
  24363.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24364. $as_echo "no" >&6; }
  24365.  
  24366. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24367.         _pkg_short_errors_supported=yes
  24368. else
  24369.         _pkg_short_errors_supported=no
  24370. fi
  24371.         if test $_pkg_short_errors_supported = yes; then
  24372.                 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland_scanner" 2>&1`
  24373.         else
  24374.                 WAYLAND_SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland_scanner" 2>&1`
  24375.         fi
  24376.         # Put the nasty error message in config.log where it belongs
  24377.         echo "$WAYLAND_SCANNER_PKG_ERRORS" >&5
  24378.  
  24379.         WAYLAND_SCANNER=''
  24380. elif test $pkg_failed = untried; then
  24381.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24382. $as_echo "no" >&6; }
  24383.         WAYLAND_SCANNER=''
  24384. else
  24385.         WAYLAND_SCANNER_CFLAGS=$pkg_cv_WAYLAND_SCANNER_CFLAGS
  24386.         WAYLAND_SCANNER_LIBS=$pkg_cv_WAYLAND_SCANNER_LIBS
  24387.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24388. $as_echo "yes" >&6; }
  24389.         WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland_scanner`
  24390. fi
  24391. if test "x$WAYLAND_SCANNER" = x; then
  24392.     # Extract the first word of "wayland-scanner", so it can be a program name with args.
  24393. set dummy wayland-scanner; ac_word=$2
  24394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24395. $as_echo_n "checking for $ac_word... " >&6; }
  24396. if ${ac_cv_path_WAYLAND_SCANNER+:} false; then :
  24397.   $as_echo_n "(cached) " >&6
  24398. else
  24399.   case $WAYLAND_SCANNER in
  24400.   [\\/]* | ?:[\\/]*)
  24401.   ac_cv_path_WAYLAND_SCANNER="$WAYLAND_SCANNER" # Let the user override the test with a path.
  24402.   ;;
  24403.   *)
  24404.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24405. for as_dir in $PATH
  24406. do
  24407.   IFS=$as_save_IFS
  24408.   test -z "$as_dir" && as_dir=.
  24409.     for ac_exec_ext in '' $ac_executable_extensions; do
  24410.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24411.     ac_cv_path_WAYLAND_SCANNER="$as_dir/$ac_word$ac_exec_ext"
  24412.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24413.     break 2
  24414.   fi
  24415. done
  24416.   done
  24417. IFS=$as_save_IFS
  24418.  
  24419.   ;;
  24420. esac
  24421. fi
  24422. WAYLAND_SCANNER=$ac_cv_path_WAYLAND_SCANNER
  24423. if test -n "$WAYLAND_SCANNER"; then
  24424.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WAYLAND_SCANNER" >&5
  24425. $as_echo "$WAYLAND_SCANNER" >&6; }
  24426. else
  24427.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24428. $as_echo "no" >&6; }
  24429. fi
  24430.  
  24431.  
  24432. fi
  24433.  
  24434. # Do per-EGL platform setups and checks
  24435. egl_platforms=`IFS=', '; echo $with_egl_platforms`
  24436. for plat in $egl_platforms; do
  24437.         case "$plat" in
  24438.         wayland)
  24439.  
  24440. pkg_failed=no
  24441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND" >&5
  24442. $as_echo_n "checking for WAYLAND... " >&6; }
  24443.  
  24444. if test -n "$WAYLAND_CFLAGS"; then
  24445.     pkg_cv_WAYLAND_CFLAGS="$WAYLAND_CFLAGS"
  24446.  elif test -n "$PKG_CONFIG"; then
  24447.     if test -n "$PKG_CONFIG" && \
  24448.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= \$WAYLAND_REQUIRED wayland-server >= \$WAYLAND_REQUIRED\""; } >&5
  24449.   ($PKG_CONFIG --exists --print-errors "wayland-client >= $WAYLAND_REQUIRED wayland-server >= $WAYLAND_REQUIRED") 2>&5
  24450.   ac_status=$?
  24451.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24452.   test $ac_status = 0; }; then
  24453.   pkg_cv_WAYLAND_CFLAGS=`$PKG_CONFIG --cflags "wayland-client >= $WAYLAND_REQUIRED wayland-server >= $WAYLAND_REQUIRED" 2>/dev/null`
  24454.                       test "x$?" != "x0" && pkg_failed=yes
  24455. else
  24456.   pkg_failed=yes
  24457. fi
  24458.  else
  24459.     pkg_failed=untried
  24460. fi
  24461. if test -n "$WAYLAND_LIBS"; then
  24462.     pkg_cv_WAYLAND_LIBS="$WAYLAND_LIBS"
  24463.  elif test -n "$PKG_CONFIG"; then
  24464.     if test -n "$PKG_CONFIG" && \
  24465.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client >= \$WAYLAND_REQUIRED wayland-server >= \$WAYLAND_REQUIRED\""; } >&5
  24466.   ($PKG_CONFIG --exists --print-errors "wayland-client >= $WAYLAND_REQUIRED wayland-server >= $WAYLAND_REQUIRED") 2>&5
  24467.   ac_status=$?
  24468.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24469.   test $ac_status = 0; }; then
  24470.   pkg_cv_WAYLAND_LIBS=`$PKG_CONFIG --libs "wayland-client >= $WAYLAND_REQUIRED wayland-server >= $WAYLAND_REQUIRED" 2>/dev/null`
  24471.                       test "x$?" != "x0" && pkg_failed=yes
  24472. else
  24473.   pkg_failed=yes
  24474. fi
  24475.  else
  24476.     pkg_failed=untried
  24477. fi
  24478.  
  24479.  
  24480.  
  24481. if test $pkg_failed = yes; then
  24482.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24483. $as_echo "no" >&6; }
  24484.  
  24485. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24486.         _pkg_short_errors_supported=yes
  24487. else
  24488.         _pkg_short_errors_supported=no
  24489. fi
  24490.         if test $_pkg_short_errors_supported = yes; then
  24491.                 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-client >= $WAYLAND_REQUIRED wayland-server >= $WAYLAND_REQUIRED" 2>&1`
  24492.         else
  24493.                 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-client >= $WAYLAND_REQUIRED wayland-server >= $WAYLAND_REQUIRED" 2>&1`
  24494.         fi
  24495.         # Put the nasty error message in config.log where it belongs
  24496.         echo "$WAYLAND_PKG_ERRORS" >&5
  24497.  
  24498.         as_fn_error $? "Package requirements (wayland-client >= $WAYLAND_REQUIRED wayland-server >= $WAYLAND_REQUIRED) were not met:
  24499.  
  24500. $WAYLAND_PKG_ERRORS
  24501.  
  24502. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  24503. installed software in a non-standard prefix.
  24504.  
  24505. Alternatively, you may set the environment variables WAYLAND_CFLAGS
  24506. and WAYLAND_LIBS to avoid the need to call pkg-config.
  24507. See the pkg-config man page for more details." "$LINENO" 5
  24508. elif test $pkg_failed = untried; then
  24509.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24510. $as_echo "no" >&6; }
  24511.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24512. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24513. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  24514. is in your PATH or set the PKG_CONFIG environment variable to the full
  24515. path to pkg-config.
  24516.  
  24517. Alternatively, you may set the environment variables WAYLAND_CFLAGS
  24518. and WAYLAND_LIBS to avoid the need to call pkg-config.
  24519. See the pkg-config man page for more details.
  24520.  
  24521. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  24522. See \`config.log' for more details" "$LINENO" 5; }
  24523. else
  24524.         WAYLAND_CFLAGS=$pkg_cv_WAYLAND_CFLAGS
  24525.         WAYLAND_LIBS=$pkg_cv_WAYLAND_LIBS
  24526.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24527. $as_echo "yes" >&6; }
  24528.  
  24529. fi
  24530.  
  24531.                 if test "x$WAYLAND_SCANNER" = x; then
  24532.                         as_fn_error $? "wayland-scanner is needed to compile the wayland egl platform" "$LINENO" 5
  24533.                 fi
  24534.                 ;;
  24535.  
  24536.         x11)
  24537.  
  24538. pkg_failed=no
  24539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB_DRI2" >&5
  24540. $as_echo_n "checking for XCB_DRI2... " >&6; }
  24541.  
  24542. if test -n "$XCB_DRI2_CFLAGS"; then
  24543.     pkg_cv_XCB_DRI2_CFLAGS="$XCB_DRI2_CFLAGS"
  24544.  elif test -n "$PKG_CONFIG"; then
  24545.     if test -n "$PKG_CONFIG" && \
  24546.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb xcb-dri2 >= \$XCBDRI2_REQUIRED xcb-xfixes\""; } >&5
  24547.   ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED xcb-xfixes") 2>&5
  24548.   ac_status=$?
  24549.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24550.   test $ac_status = 0; }; then
  24551.   pkg_cv_XCB_DRI2_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED xcb-xfixes" 2>/dev/null`
  24552.                       test "x$?" != "x0" && pkg_failed=yes
  24553. else
  24554.   pkg_failed=yes
  24555. fi
  24556.  else
  24557.     pkg_failed=untried
  24558. fi
  24559. if test -n "$XCB_DRI2_LIBS"; then
  24560.     pkg_cv_XCB_DRI2_LIBS="$XCB_DRI2_LIBS"
  24561.  elif test -n "$PKG_CONFIG"; then
  24562.     if test -n "$PKG_CONFIG" && \
  24563.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb xcb-dri2 >= \$XCBDRI2_REQUIRED xcb-xfixes\""; } >&5
  24564.   ($PKG_CONFIG --exists --print-errors "x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED xcb-xfixes") 2>&5
  24565.   ac_status=$?
  24566.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24567.   test $ac_status = 0; }; then
  24568.   pkg_cv_XCB_DRI2_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED xcb-xfixes" 2>/dev/null`
  24569.                       test "x$?" != "x0" && pkg_failed=yes
  24570. else
  24571.   pkg_failed=yes
  24572. fi
  24573.  else
  24574.     pkg_failed=untried
  24575. fi
  24576.  
  24577.  
  24578.  
  24579. if test $pkg_failed = yes; then
  24580.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24581. $as_echo "no" >&6; }
  24582.  
  24583. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24584.         _pkg_short_errors_supported=yes
  24585. else
  24586.         _pkg_short_errors_supported=no
  24587. fi
  24588.         if test $_pkg_short_errors_supported = yes; then
  24589.                 XCB_DRI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED xcb-xfixes" 2>&1`
  24590.         else
  24591.                 XCB_DRI2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED xcb-xfixes" 2>&1`
  24592.         fi
  24593.         # Put the nasty error message in config.log where it belongs
  24594.         echo "$XCB_DRI2_PKG_ERRORS" >&5
  24595.  
  24596.         as_fn_error $? "Package requirements (x11-xcb xcb xcb-dri2 >= $XCBDRI2_REQUIRED xcb-xfixes) were not met:
  24597.  
  24598. $XCB_DRI2_PKG_ERRORS
  24599.  
  24600. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  24601. installed software in a non-standard prefix.
  24602.  
  24603. Alternatively, you may set the environment variables XCB_DRI2_CFLAGS
  24604. and XCB_DRI2_LIBS to avoid the need to call pkg-config.
  24605. See the pkg-config man page for more details." "$LINENO" 5
  24606. elif test $pkg_failed = untried; then
  24607.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24608. $as_echo "no" >&6; }
  24609.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  24610. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  24611. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  24612. is in your PATH or set the PKG_CONFIG environment variable to the full
  24613. path to pkg-config.
  24614.  
  24615. Alternatively, you may set the environment variables XCB_DRI2_CFLAGS
  24616. and XCB_DRI2_LIBS to avoid the need to call pkg-config.
  24617. See the pkg-config man page for more details.
  24618.  
  24619. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  24620. See \`config.log' for more details" "$LINENO" 5; }
  24621. else
  24622.         XCB_DRI2_CFLAGS=$pkg_cv_XCB_DRI2_CFLAGS
  24623.         XCB_DRI2_LIBS=$pkg_cv_XCB_DRI2_LIBS
  24624.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24625. $as_echo "yes" >&6; }
  24626.  
  24627. fi
  24628.                 ;;
  24629.  
  24630.         drm)
  24631.                 test "x$enable_gbm" = "xno" &&
  24632.                         as_fn_error $? "EGL platform drm needs gbm" "$LINENO" 5
  24633.                 test "x$have_libdrm" != xyes &&
  24634.                         as_fn_error $? "EGL platform drm requires libdrm >= $LIBDRM_REQUIRED" "$LINENO" 5
  24635.                 ;;
  24636.  
  24637.         android|gdi|null)
  24638.                 ;;
  24639.  
  24640.         *)
  24641.                 as_fn_error $? "EGL platform '$plat' does not exist" "$LINENO" 5
  24642.                 ;;
  24643.         esac
  24644.  
  24645.         case "$plat$need_pci_id$have_pci_id" in
  24646.                 waylandyesno|drmyesno)
  24647.                     as_fn_error $? "cannot build $plat platform without udev >= $LIBUDEV_REQUIRED or sysfs" "$LINENO" 5 ;;
  24648.         esac
  24649. done
  24650.  
  24651. # libEGL wants to default to the first platform specified in
  24652. # ./configure.  parse that here.
  24653. if test "x$egl_platforms" != "x"; then
  24654.     FIRST_PLATFORM_CAPS=`echo $egl_platforms | sed 's| .*||' | tr '[a-z]' '[A-Z]'`
  24655.     EGL_NATIVE_PLATFORM="_EGL_PLATFORM_$FIRST_PLATFORM_CAPS"
  24656. else
  24657.     EGL_NATIVE_PLATFORM="_EGL_INVALID_PLATFORM"
  24658. fi
  24659.  
  24660. if echo "$egl_platforms" | grep -q 'x11'; then
  24661.     NEED_WINSYS_XLIB=yes
  24662. fi
  24663.  if echo "$egl_platforms" | grep -q 'x11'; then
  24664.   HAVE_EGL_PLATFORM_X11_TRUE=
  24665.   HAVE_EGL_PLATFORM_X11_FALSE='#'
  24666. else
  24667.   HAVE_EGL_PLATFORM_X11_TRUE='#'
  24668.   HAVE_EGL_PLATFORM_X11_FALSE=
  24669. fi
  24670.  
  24671.  if echo "$egl_platforms" | grep -q 'wayland'; then
  24672.   HAVE_EGL_PLATFORM_WAYLAND_TRUE=
  24673.   HAVE_EGL_PLATFORM_WAYLAND_FALSE='#'
  24674. else
  24675.   HAVE_EGL_PLATFORM_WAYLAND_TRUE='#'
  24676.   HAVE_EGL_PLATFORM_WAYLAND_FALSE=
  24677. fi
  24678.  
  24679.  if echo "$egl_platforms" | grep -q 'drm'; then
  24680.   HAVE_EGL_PLATFORM_DRM_TRUE=
  24681.   HAVE_EGL_PLATFORM_DRM_FALSE='#'
  24682. else
  24683.   HAVE_EGL_PLATFORM_DRM_TRUE='#'
  24684.   HAVE_EGL_PLATFORM_DRM_FALSE=
  24685. fi
  24686.  
  24687.  if echo "$egl_platforms" | grep -q 'null'; then
  24688.   HAVE_EGL_PLATFORM_NULL_TRUE=
  24689.   HAVE_EGL_PLATFORM_NULL_FALSE='#'
  24690. else
  24691.   HAVE_EGL_PLATFORM_NULL_TRUE='#'
  24692.   HAVE_EGL_PLATFORM_NULL_FALSE=
  24693. fi
  24694.  
  24695.  
  24696.  if test "x$HAVE_EGL_DRIVER_DRI2" != "x"; then
  24697.   HAVE_EGL_DRIVER_DRI2_TRUE=
  24698.   HAVE_EGL_DRIVER_DRI2_FALSE='#'
  24699. else
  24700.   HAVE_EGL_DRIVER_DRI2_TRUE='#'
  24701.   HAVE_EGL_DRIVER_DRI2_FALSE=
  24702. fi
  24703.  
  24704.  
  24705.  
  24706.  
  24707.  
  24708. # If we don't have the X11 platform, set this define so we don't try to include
  24709. # the X11 headers.
  24710. if ! echo "$egl_platforms" | grep -q 'x11'; then
  24711.     DEFINES="$DEFINES -DMESA_EGL_NO_X11_HEADERS"
  24712.     GL_PC_CFLAGS="$GL_PC_CFLAGS -DMESA_EGL_NO_X11_HEADERS"
  24713. fi
  24714.  
  24715. # Check whether --enable-gallium-llvm was given.
  24716. if test "${enable_gallium_llvm+set}" = set; then :
  24717.   enableval=$enable_gallium_llvm; enable_gallium_llvm="$enableval"
  24718. else
  24719.   enable_gallium_llvm=auto
  24720. fi
  24721.  
  24722.  
  24723. # Check whether --enable-llvm-shared-libs was given.
  24724. if test "${enable_llvm_shared_libs+set}" = set; then :
  24725.   enableval=$enable_llvm_shared_libs; enable_llvm_shared_libs="$enableval"
  24726. else
  24727.   enable_llvm_shared_libs=yes
  24728. fi
  24729.  
  24730.  
  24731.  
  24732. # Check whether --with-llvm-prefix was given.
  24733. if test "${with_llvm_prefix+set}" = set; then :
  24734.   withval=$with_llvm_prefix; llvm_prefix="$withval"
  24735. else
  24736.   llvm_prefix=''
  24737. fi
  24738.  
  24739.  
  24740.  
  24741. # Call this inside ` ` to get the return value.
  24742. # $1 is the llvm-config command with arguments.
  24743. strip_unwanted_llvm_flags() {
  24744.     # Use \> (marks the end of the word)
  24745.     echo `$1` | sed \
  24746.         -e 's/-DNDEBUG\>//g' \
  24747.         -e 's/-D_GNU_SOURCE\>//g' \
  24748.         -e 's/-pedantic\>//g' \
  24749.         -e 's/-Wcovered-switch-default\>//g' \
  24750.         -e 's/-O.\>//g' \
  24751.         -e 's/-g\>//g' \
  24752.         -e 's/-Wall\>//g' \
  24753.         -e 's/-Wcast-qual\>//g' \
  24754.         -e 's/-Woverloaded-virtual\>//g' \
  24755.         -e 's/-fcolor-diagnostics\>//g' \
  24756.         -e 's/-fdata-sections\>//g' \
  24757.         -e 's/-ffunction-sections\>//g' \
  24758.         -e 's/-fno-exceptions\>//g' \
  24759.         -e 's/-fomit-frame-pointer\>//g' \
  24760.         -e 's/-fvisibility-inlines-hidden\>//g' \
  24761.         -e 's/-fPIC\>//g' \
  24762.         -e 's/-fstack-protector-strong\>//g'
  24763. }
  24764.  
  24765. llvm_check_version_for() {
  24766.     if test "${LLVM_VERSION_INT}${LLVM_VERSION_PATCH}" -lt "${1}0${2}${3}"; then
  24767.         as_fn_error $? "LLVM $1.$2.$3 or newer is required for $4" "$LINENO" 5
  24768.     fi
  24769. }
  24770.  
  24771.  
  24772.  
  24773. if test -z "$with_gallium_drivers"; then
  24774.     enable_gallium_llvm=no
  24775. fi
  24776. if test "x$enable_gallium_llvm" = xauto; then
  24777.     case "$host_cpu" in
  24778.     i*86|x86_64|amd64) enable_gallium_llvm=yes;;
  24779.     esac
  24780. fi
  24781. if test "x$enable_gallium_llvm" = xyes; then
  24782.     if test -n "$llvm_prefix"; then
  24783.         if test -n "$ac_tool_prefix"; then
  24784.   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
  24785. set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
  24786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24787. $as_echo_n "checking for $ac_word... " >&6; }
  24788. if ${ac_cv_path_LLVM_CONFIG+:} false; then :
  24789.   $as_echo_n "(cached) " >&6
  24790. else
  24791.   case $LLVM_CONFIG in
  24792.   [\\/]* | ?:[\\/]*)
  24793.   ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test with a path.
  24794.   ;;
  24795.   *)
  24796.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24797. for as_dir in "$llvm_prefix/bin"
  24798. do
  24799.   IFS=$as_save_IFS
  24800.   test -z "$as_dir" && as_dir=.
  24801.     for ac_exec_ext in '' $ac_executable_extensions; do
  24802.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24803.     ac_cv_path_LLVM_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  24804.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24805.     break 2
  24806.   fi
  24807. done
  24808.   done
  24809. IFS=$as_save_IFS
  24810.  
  24811.   ;;
  24812. esac
  24813. fi
  24814. LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG
  24815. if test -n "$LLVM_CONFIG"; then
  24816.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
  24817. $as_echo "$LLVM_CONFIG" >&6; }
  24818. else
  24819.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24820. $as_echo "no" >&6; }
  24821. fi
  24822.  
  24823.  
  24824. fi
  24825. if test -z "$ac_cv_path_LLVM_CONFIG"; then
  24826.   ac_pt_LLVM_CONFIG=$LLVM_CONFIG
  24827.   # Extract the first word of "llvm-config", so it can be a program name with args.
  24828. set dummy llvm-config; ac_word=$2
  24829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24830. $as_echo_n "checking for $ac_word... " >&6; }
  24831. if ${ac_cv_path_ac_pt_LLVM_CONFIG+:} false; then :
  24832.   $as_echo_n "(cached) " >&6
  24833. else
  24834.   case $ac_pt_LLVM_CONFIG in
  24835.   [\\/]* | ?:[\\/]*)
  24836.   ac_cv_path_ac_pt_LLVM_CONFIG="$ac_pt_LLVM_CONFIG" # Let the user override the test with a path.
  24837.   ;;
  24838.   *)
  24839.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24840. for as_dir in "$llvm_prefix/bin"
  24841. do
  24842.   IFS=$as_save_IFS
  24843.   test -z "$as_dir" && as_dir=.
  24844.     for ac_exec_ext in '' $ac_executable_extensions; do
  24845.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24846.     ac_cv_path_ac_pt_LLVM_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  24847.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24848.     break 2
  24849.   fi
  24850. done
  24851.   done
  24852. IFS=$as_save_IFS
  24853.  
  24854.   ;;
  24855. esac
  24856. fi
  24857. ac_pt_LLVM_CONFIG=$ac_cv_path_ac_pt_LLVM_CONFIG
  24858. if test -n "$ac_pt_LLVM_CONFIG"; then
  24859.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_CONFIG" >&5
  24860. $as_echo "$ac_pt_LLVM_CONFIG" >&6; }
  24861. else
  24862.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24863. $as_echo "no" >&6; }
  24864. fi
  24865.  
  24866.   if test "x$ac_pt_LLVM_CONFIG" = x; then
  24867.     LLVM_CONFIG="no"
  24868.   else
  24869.     case $cross_compiling:$ac_tool_warned in
  24870. yes:)
  24871. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24872. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24873. ac_tool_warned=yes ;;
  24874. esac
  24875.     LLVM_CONFIG=$ac_pt_LLVM_CONFIG
  24876.   fi
  24877. else
  24878.   LLVM_CONFIG="$ac_cv_path_LLVM_CONFIG"
  24879. fi
  24880.  
  24881.     else
  24882.         if test -n "$ac_tool_prefix"; then
  24883.   # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args.
  24884. set dummy ${ac_tool_prefix}llvm-config; ac_word=$2
  24885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24886. $as_echo_n "checking for $ac_word... " >&6; }
  24887. if ${ac_cv_path_LLVM_CONFIG+:} false; then :
  24888.   $as_echo_n "(cached) " >&6
  24889. else
  24890.   case $LLVM_CONFIG in
  24891.   [\\/]* | ?:[\\/]*)
  24892.   ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test with a path.
  24893.   ;;
  24894.   *)
  24895.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24896. for as_dir in $PATH
  24897. do
  24898.   IFS=$as_save_IFS
  24899.   test -z "$as_dir" && as_dir=.
  24900.     for ac_exec_ext in '' $ac_executable_extensions; do
  24901.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24902.     ac_cv_path_LLVM_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  24903.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24904.     break 2
  24905.   fi
  24906. done
  24907.   done
  24908. IFS=$as_save_IFS
  24909.  
  24910.   ;;
  24911. esac
  24912. fi
  24913. LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG
  24914. if test -n "$LLVM_CONFIG"; then
  24915.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
  24916. $as_echo "$LLVM_CONFIG" >&6; }
  24917. else
  24918.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24919. $as_echo "no" >&6; }
  24920. fi
  24921.  
  24922.  
  24923. fi
  24924. if test -z "$ac_cv_path_LLVM_CONFIG"; then
  24925.   ac_pt_LLVM_CONFIG=$LLVM_CONFIG
  24926.   # Extract the first word of "llvm-config", so it can be a program name with args.
  24927. set dummy llvm-config; ac_word=$2
  24928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24929. $as_echo_n "checking for $ac_word... " >&6; }
  24930. if ${ac_cv_path_ac_pt_LLVM_CONFIG+:} false; then :
  24931.   $as_echo_n "(cached) " >&6
  24932. else
  24933.   case $ac_pt_LLVM_CONFIG in
  24934.   [\\/]* | ?:[\\/]*)
  24935.   ac_cv_path_ac_pt_LLVM_CONFIG="$ac_pt_LLVM_CONFIG" # Let the user override the test with a path.
  24936.   ;;
  24937.   *)
  24938.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24939. for as_dir in $PATH
  24940. do
  24941.   IFS=$as_save_IFS
  24942.   test -z "$as_dir" && as_dir=.
  24943.     for ac_exec_ext in '' $ac_executable_extensions; do
  24944.   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24945.     ac_cv_path_ac_pt_LLVM_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  24946.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24947.     break 2
  24948.   fi
  24949. done
  24950.   done
  24951. IFS=$as_save_IFS
  24952.  
  24953.   ;;
  24954. esac
  24955. fi
  24956. ac_pt_LLVM_CONFIG=$ac_cv_path_ac_pt_LLVM_CONFIG
  24957. if test -n "$ac_pt_LLVM_CONFIG"; then
  24958.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_CONFIG" >&5
  24959. $as_echo "$ac_pt_LLVM_CONFIG" >&6; }
  24960. else
  24961.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24962. $as_echo "no" >&6; }
  24963. fi
  24964.  
  24965.   if test "x$ac_pt_LLVM_CONFIG" = x; then
  24966.     LLVM_CONFIG="no"
  24967.   else
  24968.     case $cross_compiling:$ac_tool_warned in
  24969. yes:)
  24970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24971. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24972. ac_tool_warned=yes ;;
  24973. esac
  24974.     LLVM_CONFIG=$ac_pt_LLVM_CONFIG
  24975.   fi
  24976. else
  24977.   LLVM_CONFIG="$ac_cv_path_LLVM_CONFIG"
  24978. fi
  24979.  
  24980.     fi
  24981.  
  24982.     if test "x$LLVM_CONFIG" != xno; then
  24983.         LLVM_VERSION=`$LLVM_CONFIG --version | egrep -o '^[0-9.]+'`
  24984.         LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags`
  24985.         LLVM_BINDIR=`$LLVM_CONFIG --bindir`
  24986.         LLVM_CPPFLAGS=`strip_unwanted_llvm_flags "$LLVM_CONFIG --cppflags"`
  24987.         LLVM_CFLAGS=$LLVM_CPPFLAGS   # CPPFLAGS seem to be sufficient
  24988.         LLVM_CXXFLAGS=`strip_unwanted_llvm_flags "$LLVM_CONFIG --cxxflags"`
  24989.         LLVM_INCLUDEDIR=`$LLVM_CONFIG --includedir`
  24990.         LLVM_LIBDIR=`$LLVM_CONFIG --libdir`
  24991.  
  24992.         if ac_fn_c_compute_int "$LINENO" "LLVM_VERSION_MAJOR" "LLVM_VERSION_MAJOR"        "#include \"${LLVM_INCLUDEDIR}/llvm/Config/llvm-config.h\""; then :
  24993.  
  24994. fi
  24995.  
  24996.         if ac_fn_c_compute_int "$LINENO" "LLVM_VERSION_MINOR" "LLVM_VERSION_MINOR"        "#include \"${LLVM_INCLUDEDIR}/llvm/Config/llvm-config.h\""; then :
  24997.  
  24998. fi
  24999.  
  25000.  
  25001.         LLVM_VERSION_PATCH=`echo $LLVM_VERSION | cut -d. -f3 | egrep -o '^[0-9]+'`
  25002.         if test -z "$LLVM_VERSION_PATCH"; then
  25003.             LLVM_VERSION_PATCH=0
  25004.         fi
  25005.  
  25006.         if test -n "${LLVM_VERSION_MAJOR}"; then
  25007.             LLVM_VERSION_INT="${LLVM_VERSION_MAJOR}0${LLVM_VERSION_MINOR}"
  25008.         else
  25009.             LLVM_VERSION_INT=`echo $LLVM_VERSION | sed -e 's/\([0-9]\)\.\([0-9]\)/\10\2/g'`
  25010.         fi
  25011.  
  25012.         LLVM_REQUIRED_VERSION_MAJOR="3"
  25013.         LLVM_REQUIRED_VERSION_MINOR="3"
  25014.         if test "$LLVM_VERSION_INT" -lt "${LLVM_REQUIRED_VERSION_MAJOR}0${LLVM_REQUIRED_VERSION_MINOR}"; then
  25015.             as_fn_error $? "LLVM $LLVM_REQUIRED_VERSION_MAJOR.$LLVM_REQUIRED_VERSION_MINOR or newer is required" "$LINENO" 5
  25016.         fi
  25017.  
  25018.         LLVM_COMPONENTS="engine bitwriter"
  25019.         if $LLVM_CONFIG --components | grep -qw 'mcjit'; then
  25020.             LLVM_COMPONENTS="${LLVM_COMPONENTS} mcjit"
  25021.         fi
  25022.  
  25023.         if test "x$enable_opencl" = xyes; then
  25024.             llvm_check_version_for "3" "5" "0" "opencl"
  25025.  
  25026.             LLVM_COMPONENTS="${LLVM_COMPONENTS} all-targets ipo linker instrumentation"
  25027.             LLVM_COMPONENTS="${LLVM_COMPONENTS} irreader option objcarcopts profiledata"
  25028.         fi
  25029.         DEFINES="${DEFINES} -DHAVE_LLVM=0x0$LLVM_VERSION_INT -DLLVM_VERSION_PATCH=$LLVM_VERSION_PATCH"
  25030.         MESA_LLVM=1
  25031.  
  25032.                 if test "x$enable_opencl" = xyes; then
  25033.             if test -z "$CLANG_LIBDIR"; then
  25034.                 CLANG_LIBDIR=${LLVM_LIBDIR}
  25035.             fi
  25036.             CLANG_RESOURCE_DIR=$CLANG_LIBDIR/clang/${LLVM_VERSION}
  25037.             if test ! -f "$CLANG_RESOURCE_DIR/include/stddef.h"; then :
  25038.   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
  25039. fi
  25040.         fi
  25041.     else
  25042.         MESA_LLVM=0
  25043.         LLVM_VERSION_INT=0
  25044.     fi
  25045. else
  25046.     MESA_LLVM=0
  25047.     LLVM_VERSION_INT=0
  25048.  
  25049.     if test "x$enable_opencl" = xyes; then
  25050.         as_fn_error $? "cannot enable OpenCL without LLVM" "$LINENO" 5
  25051.     fi
  25052. fi
  25053.  
  25054.  
  25055. # Check whether --with-xvmc-libdir was given.
  25056. if test "${with_xvmc_libdir+set}" = set; then :
  25057.   withval=$with_xvmc_libdir; XVMC_LIB_INSTALL_DIR="$withval"
  25058. else
  25059.   XVMC_LIB_INSTALL_DIR='${libdir}'
  25060. fi
  25061.  
  25062.  
  25063.  
  25064. if test "x$enable_gallium_tests" = xyes; then
  25065.     # XXX: Use $enable_shared_pipe_drivers once converted to use static/shared pipe-drivers
  25066.     enable_gallium_loader=yes
  25067. fi
  25068.  if test "x$enable_gallium_tests" = xyes; then
  25069.   HAVE_GALLIUM_TESTS_TRUE=
  25070.   HAVE_GALLIUM_TESTS_FALSE='#'
  25071. else
  25072.   HAVE_GALLIUM_TESTS_TRUE='#'
  25073.   HAVE_GALLIUM_TESTS_FALSE=
  25074. fi
  25075.  
  25076.  
  25077.  
  25078. # Check whether --with-vdpau-libdir was given.
  25079. if test "${with_vdpau_libdir+set}" = set; then :
  25080.   withval=$with_vdpau_libdir; VDPAU_LIB_INSTALL_DIR="$withval"
  25081. else
  25082.   VDPAU_LIB_INSTALL_DIR='${libdir}/vdpau'
  25083. fi
  25084.  
  25085.  
  25086.  
  25087.  
  25088.  
  25089. # Check whether --with-omx-libdir was given.
  25090. if test "${with_omx_libdir+set}" = set; then :
  25091.   withval=$with_omx_libdir; OMX_LIB_INSTALL_DIR="$withval"
  25092. else
  25093.   OMX_LIB_INSTALL_DIR=`$PKG_CONFIG --define-variable=libdir=\$libdir --variable=pluginsdir libomxil-bellagio`
  25094. fi
  25095.  
  25096.  
  25097.  
  25098.  
  25099.  
  25100. # Check whether --with-va-libdir was given.
  25101. if test "${with_va_libdir+set}" = set; then :
  25102.   withval=$with_va_libdir; VA_LIB_INSTALL_DIR="$withval"
  25103. else
  25104.   VA_LIB_INSTALL_DIR="${libdir}/dri"
  25105. fi
  25106.  
  25107.  
  25108.  
  25109.  
  25110. # Check whether --with-d3d-libdir was given.
  25111. if test "${with_d3d_libdir+set}" = set; then :
  25112.   withval=$with_d3d_libdir; D3D_DRIVER_INSTALL_DIR="$withval"
  25113. else
  25114.   D3D_DRIVER_INSTALL_DIR="${libdir}/d3d"
  25115. fi
  25116.  
  25117.  
  25118.  
  25119. gallium_require_drm() {
  25120.     if test "x$have_libdrm" != xyes; then
  25121.        as_fn_error $? "$1 requires libdrm >= $LIBDRM_REQUIRED" "$LINENO" 5
  25122.     fi
  25123. }
  25124.  
  25125. gallium_require_llvm() {
  25126.     if test "x$MESA_LLVM" = x0; then
  25127.         case "$host" in *gnux32) return;; esac
  25128.         case "$host_cpu" in
  25129.         i*86|x86_64|amd64) as_fn_error $? "LLVM is required to build $1 on x86 and x86_64" "$LINENO" 5;;
  25130.         esac
  25131.     fi
  25132. }
  25133.  
  25134. gallium_require_drm_loader() {
  25135.     if test "x$enable_gallium_loader" = xyes; then
  25136.         if test "x$need_pci_id$have_pci_id" = xyesno; then
  25137.             as_fn_error $? "Gallium drm loader requires libudev >= $LIBUDEV_REQUIRED or sysfs" "$LINENO" 5
  25138.         fi
  25139.         enable_gallium_drm_loader=yes
  25140.     fi
  25141.     if test "x$enable_va" = xyes && test "x$7" != x; then
  25142.          GALLIUM_TARGET_DIRS="$GALLIUM_TARGET_DIRS $7"
  25143.     fi
  25144. }
  25145.  
  25146. require_egl_drm() {
  25147.     case "$with_egl_platforms" in
  25148.         *drm*)
  25149.             ;;
  25150.          *)
  25151.             as_fn_error $? "--with-egl-platforms=drm is required to build the $1 driver." "$LINENO" 5
  25152.             ;;
  25153.     esac
  25154.     if test "x$enable_gbm" != xyes; then
  25155.             as_fn_error $? "--enable-gbm is required to build the $1 driver." "$LINENO" 5
  25156.     fi
  25157. }
  25158.  
  25159. radeon_llvm_check() {
  25160.     if test "x$enable_gallium_llvm" != "xyes"; then
  25161.         as_fn_error $? "--enable-gallium-llvm is required when building $1" "$LINENO" 5
  25162.     fi
  25163.     llvm_check_version_for "3" "4" "2" $1
  25164.     if test true && $LLVM_CONFIG --targets-built | grep -qvw 'R600' ; then
  25165.         as_fn_error $? "LLVM R600 Target not enabled.  You can enable it when building the LLVM
  25166.                       sources with the --enable-experimental-targets=R600
  25167.                       configure flag" "$LINENO" 5
  25168.     fi
  25169.     LLVM_COMPONENTS="${LLVM_COMPONENTS} r600 bitreader ipo"
  25170.     NEED_RADEON_LLVM=yes
  25171.     if test "x$have_libelf" != xyes; then
  25172.        as_fn_error $? "$1 requires libelf when using llvm" "$LINENO" 5
  25173.     fi
  25174. }
  25175.  
  25176. if test -n "$with_gallium_drivers"; then
  25177.     gallium_drivers=`IFS=', '; echo $with_gallium_drivers`
  25178.     for driver in $gallium_drivers; do
  25179.         case "x$driver" in
  25180.         xsvga)
  25181.             HAVE_GALLIUM_SVGA=yes
  25182.             gallium_require_drm "svga"
  25183.             gallium_require_drm_loader
  25184.             ;;
  25185.         xi915)
  25186.             HAVE_GALLIUM_I915=yes
  25187.  
  25188. pkg_failed=no
  25189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INTEL" >&5
  25190. $as_echo_n "checking for INTEL... " >&6; }
  25191.  
  25192. if test -n "$INTEL_CFLAGS"; then
  25193.     pkg_cv_INTEL_CFLAGS="$INTEL_CFLAGS"
  25194.  elif test -n "$PKG_CONFIG"; then
  25195.     if test -n "$PKG_CONFIG" && \
  25196.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$LIBDRM_INTEL_REQUIRED\""; } >&5
  25197.   ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $LIBDRM_INTEL_REQUIRED") 2>&5
  25198.   ac_status=$?
  25199.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25200.   test $ac_status = 0; }; then
  25201.   pkg_cv_INTEL_CFLAGS=`$PKG_CONFIG --cflags "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>/dev/null`
  25202.                       test "x$?" != "x0" && pkg_failed=yes
  25203. else
  25204.   pkg_failed=yes
  25205. fi
  25206.  else
  25207.     pkg_failed=untried
  25208. fi
  25209. if test -n "$INTEL_LIBS"; then
  25210.     pkg_cv_INTEL_LIBS="$INTEL_LIBS"
  25211.  elif test -n "$PKG_CONFIG"; then
  25212.     if test -n "$PKG_CONFIG" && \
  25213.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$LIBDRM_INTEL_REQUIRED\""; } >&5
  25214.   ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $LIBDRM_INTEL_REQUIRED") 2>&5
  25215.   ac_status=$?
  25216.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25217.   test $ac_status = 0; }; then
  25218.   pkg_cv_INTEL_LIBS=`$PKG_CONFIG --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>/dev/null`
  25219.                       test "x$?" != "x0" && pkg_failed=yes
  25220. else
  25221.   pkg_failed=yes
  25222. fi
  25223.  else
  25224.     pkg_failed=untried
  25225. fi
  25226.  
  25227.  
  25228.  
  25229. if test $pkg_failed = yes; then
  25230.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25231. $as_echo "no" >&6; }
  25232.  
  25233. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  25234.         _pkg_short_errors_supported=yes
  25235. else
  25236.         _pkg_short_errors_supported=no
  25237. fi
  25238.         if test $_pkg_short_errors_supported = yes; then
  25239.                 INTEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>&1`
  25240.         else
  25241.                 INTEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>&1`
  25242.         fi
  25243.         # Put the nasty error message in config.log where it belongs
  25244.         echo "$INTEL_PKG_ERRORS" >&5
  25245.  
  25246.         as_fn_error $? "Package requirements (libdrm_intel >= $LIBDRM_INTEL_REQUIRED) were not met:
  25247.  
  25248. $INTEL_PKG_ERRORS
  25249.  
  25250. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  25251. installed software in a non-standard prefix.
  25252.  
  25253. Alternatively, you may set the environment variables INTEL_CFLAGS
  25254. and INTEL_LIBS to avoid the need to call pkg-config.
  25255. See the pkg-config man page for more details." "$LINENO" 5
  25256. elif test $pkg_failed = untried; then
  25257.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25258. $as_echo "no" >&6; }
  25259.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25260. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25261. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  25262. is in your PATH or set the PKG_CONFIG environment variable to the full
  25263. path to pkg-config.
  25264.  
  25265. Alternatively, you may set the environment variables INTEL_CFLAGS
  25266. and INTEL_LIBS to avoid the need to call pkg-config.
  25267. See the pkg-config man page for more details.
  25268.  
  25269. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  25270. See \`config.log' for more details" "$LINENO" 5; }
  25271. else
  25272.         INTEL_CFLAGS=$pkg_cv_INTEL_CFLAGS
  25273.         INTEL_LIBS=$pkg_cv_INTEL_LIBS
  25274.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25275. $as_echo "yes" >&6; }
  25276.  
  25277. fi
  25278.             gallium_require_drm "Gallium i915"
  25279.             gallium_require_drm_loader
  25280.             ;;
  25281.         xilo)
  25282.             HAVE_GALLIUM_ILO=yes
  25283.  
  25284. pkg_failed=no
  25285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INTEL" >&5
  25286. $as_echo_n "checking for INTEL... " >&6; }
  25287.  
  25288. if test -n "$INTEL_CFLAGS"; then
  25289.     pkg_cv_INTEL_CFLAGS="$INTEL_CFLAGS"
  25290.  elif test -n "$PKG_CONFIG"; then
  25291.     if test -n "$PKG_CONFIG" && \
  25292.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$LIBDRM_INTEL_REQUIRED\""; } >&5
  25293.   ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $LIBDRM_INTEL_REQUIRED") 2>&5
  25294.   ac_status=$?
  25295.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25296.   test $ac_status = 0; }; then
  25297.   pkg_cv_INTEL_CFLAGS=`$PKG_CONFIG --cflags "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>/dev/null`
  25298.                       test "x$?" != "x0" && pkg_failed=yes
  25299. else
  25300.   pkg_failed=yes
  25301. fi
  25302.  else
  25303.     pkg_failed=untried
  25304. fi
  25305. if test -n "$INTEL_LIBS"; then
  25306.     pkg_cv_INTEL_LIBS="$INTEL_LIBS"
  25307.  elif test -n "$PKG_CONFIG"; then
  25308.     if test -n "$PKG_CONFIG" && \
  25309.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$LIBDRM_INTEL_REQUIRED\""; } >&5
  25310.   ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $LIBDRM_INTEL_REQUIRED") 2>&5
  25311.   ac_status=$?
  25312.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25313.   test $ac_status = 0; }; then
  25314.   pkg_cv_INTEL_LIBS=`$PKG_CONFIG --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>/dev/null`
  25315.                       test "x$?" != "x0" && pkg_failed=yes
  25316. else
  25317.   pkg_failed=yes
  25318. fi
  25319.  else
  25320.     pkg_failed=untried
  25321. fi
  25322.  
  25323.  
  25324.  
  25325. if test $pkg_failed = yes; then
  25326.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25327. $as_echo "no" >&6; }
  25328.  
  25329. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  25330.         _pkg_short_errors_supported=yes
  25331. else
  25332.         _pkg_short_errors_supported=no
  25333. fi
  25334.         if test $_pkg_short_errors_supported = yes; then
  25335.                 INTEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>&1`
  25336.         else
  25337.                 INTEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_intel >= $LIBDRM_INTEL_REQUIRED" 2>&1`
  25338.         fi
  25339.         # Put the nasty error message in config.log where it belongs
  25340.         echo "$INTEL_PKG_ERRORS" >&5
  25341.  
  25342.         as_fn_error $? "Package requirements (libdrm_intel >= $LIBDRM_INTEL_REQUIRED) were not met:
  25343.  
  25344. $INTEL_PKG_ERRORS
  25345.  
  25346. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  25347. installed software in a non-standard prefix.
  25348.  
  25349. Alternatively, you may set the environment variables INTEL_CFLAGS
  25350. and INTEL_LIBS to avoid the need to call pkg-config.
  25351. See the pkg-config man page for more details." "$LINENO" 5
  25352. elif test $pkg_failed = untried; then
  25353.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25354. $as_echo "no" >&6; }
  25355.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25356. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25357. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  25358. is in your PATH or set the PKG_CONFIG environment variable to the full
  25359. path to pkg-config.
  25360.  
  25361. Alternatively, you may set the environment variables INTEL_CFLAGS
  25362. and INTEL_LIBS to avoid the need to call pkg-config.
  25363. See the pkg-config man page for more details.
  25364.  
  25365. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  25366. See \`config.log' for more details" "$LINENO" 5; }
  25367. else
  25368.         INTEL_CFLAGS=$pkg_cv_INTEL_CFLAGS
  25369.         INTEL_LIBS=$pkg_cv_INTEL_LIBS
  25370.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25371. $as_echo "yes" >&6; }
  25372.  
  25373. fi
  25374.             gallium_require_drm "Gallium i965/ilo"
  25375.             gallium_require_drm_loader
  25376.             ;;
  25377.         xr300)
  25378.             HAVE_GALLIUM_R300=yes
  25379.  
  25380. pkg_failed=no
  25381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RADEON" >&5
  25382. $as_echo_n "checking for RADEON... " >&6; }
  25383.  
  25384. if test -n "$RADEON_CFLAGS"; then
  25385.     pkg_cv_RADEON_CFLAGS="$RADEON_CFLAGS"
  25386.  elif test -n "$PKG_CONFIG"; then
  25387.     if test -n "$PKG_CONFIG" && \
  25388.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  25389.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  25390.   ac_status=$?
  25391.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25392.   test $ac_status = 0; }; then
  25393.   pkg_cv_RADEON_CFLAGS=`$PKG_CONFIG --cflags "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  25394.                       test "x$?" != "x0" && pkg_failed=yes
  25395. else
  25396.   pkg_failed=yes
  25397. fi
  25398.  else
  25399.     pkg_failed=untried
  25400. fi
  25401. if test -n "$RADEON_LIBS"; then
  25402.     pkg_cv_RADEON_LIBS="$RADEON_LIBS"
  25403.  elif test -n "$PKG_CONFIG"; then
  25404.     if test -n "$PKG_CONFIG" && \
  25405.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  25406.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  25407.   ac_status=$?
  25408.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25409.   test $ac_status = 0; }; then
  25410.   pkg_cv_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  25411.                       test "x$?" != "x0" && pkg_failed=yes
  25412. else
  25413.   pkg_failed=yes
  25414. fi
  25415.  else
  25416.     pkg_failed=untried
  25417. fi
  25418.  
  25419.  
  25420.  
  25421. if test $pkg_failed = yes; then
  25422.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25423. $as_echo "no" >&6; }
  25424.  
  25425. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  25426.         _pkg_short_errors_supported=yes
  25427. else
  25428.         _pkg_short_errors_supported=no
  25429. fi
  25430.         if test $_pkg_short_errors_supported = yes; then
  25431.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  25432.         else
  25433.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  25434.         fi
  25435.         # Put the nasty error message in config.log where it belongs
  25436.         echo "$RADEON_PKG_ERRORS" >&5
  25437.  
  25438.         as_fn_error $? "Package requirements (libdrm_radeon >= $LIBDRM_RADEON_REQUIRED) were not met:
  25439.  
  25440. $RADEON_PKG_ERRORS
  25441.  
  25442. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  25443. installed software in a non-standard prefix.
  25444.  
  25445. Alternatively, you may set the environment variables RADEON_CFLAGS
  25446. and RADEON_LIBS to avoid the need to call pkg-config.
  25447. See the pkg-config man page for more details." "$LINENO" 5
  25448. elif test $pkg_failed = untried; then
  25449.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25450. $as_echo "no" >&6; }
  25451.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25452. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25453. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  25454. is in your PATH or set the PKG_CONFIG environment variable to the full
  25455. path to pkg-config.
  25456.  
  25457. Alternatively, you may set the environment variables RADEON_CFLAGS
  25458. and RADEON_LIBS to avoid the need to call pkg-config.
  25459. See the pkg-config man page for more details.
  25460.  
  25461. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  25462. See \`config.log' for more details" "$LINENO" 5; }
  25463. else
  25464.         RADEON_CFLAGS=$pkg_cv_RADEON_CFLAGS
  25465.         RADEON_LIBS=$pkg_cv_RADEON_LIBS
  25466.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25467. $as_echo "yes" >&6; }
  25468.  
  25469. fi
  25470.             gallium_require_drm "Gallium R300"
  25471.             gallium_require_drm_loader
  25472.             gallium_require_llvm "Gallium R300"
  25473.             ;;
  25474.         xr600)
  25475.             HAVE_GALLIUM_R600=yes
  25476.  
  25477. pkg_failed=no
  25478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RADEON" >&5
  25479. $as_echo_n "checking for RADEON... " >&6; }
  25480.  
  25481. if test -n "$RADEON_CFLAGS"; then
  25482.     pkg_cv_RADEON_CFLAGS="$RADEON_CFLAGS"
  25483.  elif test -n "$PKG_CONFIG"; then
  25484.     if test -n "$PKG_CONFIG" && \
  25485.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  25486.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  25487.   ac_status=$?
  25488.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25489.   test $ac_status = 0; }; then
  25490.   pkg_cv_RADEON_CFLAGS=`$PKG_CONFIG --cflags "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  25491.                       test "x$?" != "x0" && pkg_failed=yes
  25492. else
  25493.   pkg_failed=yes
  25494. fi
  25495.  else
  25496.     pkg_failed=untried
  25497. fi
  25498. if test -n "$RADEON_LIBS"; then
  25499.     pkg_cv_RADEON_LIBS="$RADEON_LIBS"
  25500.  elif test -n "$PKG_CONFIG"; then
  25501.     if test -n "$PKG_CONFIG" && \
  25502.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  25503.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  25504.   ac_status=$?
  25505.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25506.   test $ac_status = 0; }; then
  25507.   pkg_cv_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  25508.                       test "x$?" != "x0" && pkg_failed=yes
  25509. else
  25510.   pkg_failed=yes
  25511. fi
  25512.  else
  25513.     pkg_failed=untried
  25514. fi
  25515.  
  25516.  
  25517.  
  25518. if test $pkg_failed = yes; then
  25519.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25520. $as_echo "no" >&6; }
  25521.  
  25522. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  25523.         _pkg_short_errors_supported=yes
  25524. else
  25525.         _pkg_short_errors_supported=no
  25526. fi
  25527.         if test $_pkg_short_errors_supported = yes; then
  25528.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  25529.         else
  25530.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  25531.         fi
  25532.         # Put the nasty error message in config.log where it belongs
  25533.         echo "$RADEON_PKG_ERRORS" >&5
  25534.  
  25535.         as_fn_error $? "Package requirements (libdrm_radeon >= $LIBDRM_RADEON_REQUIRED) were not met:
  25536.  
  25537. $RADEON_PKG_ERRORS
  25538.  
  25539. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  25540. installed software in a non-standard prefix.
  25541.  
  25542. Alternatively, you may set the environment variables RADEON_CFLAGS
  25543. and RADEON_LIBS to avoid the need to call pkg-config.
  25544. See the pkg-config man page for more details." "$LINENO" 5
  25545. elif test $pkg_failed = untried; then
  25546.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25547. $as_echo "no" >&6; }
  25548.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25549. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25550. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  25551. is in your PATH or set the PKG_CONFIG environment variable to the full
  25552. path to pkg-config.
  25553.  
  25554. Alternatively, you may set the environment variables RADEON_CFLAGS
  25555. and RADEON_LIBS to avoid the need to call pkg-config.
  25556. See the pkg-config man page for more details.
  25557.  
  25558. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  25559. See \`config.log' for more details" "$LINENO" 5; }
  25560. else
  25561.         RADEON_CFLAGS=$pkg_cv_RADEON_CFLAGS
  25562.         RADEON_LIBS=$pkg_cv_RADEON_LIBS
  25563.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25564. $as_echo "yes" >&6; }
  25565.  
  25566. fi
  25567.             gallium_require_drm "Gallium R600"
  25568.             gallium_require_drm_loader
  25569.             if test "x$enable_r600_llvm" = xyes -o "x$enable_opencl" = xyes; then
  25570.                 radeon_llvm_check "r600g"
  25571.                 LLVM_COMPONENTS="${LLVM_COMPONENTS} bitreader asmparser"
  25572.             fi
  25573.             if test "x$enable_r600_llvm" = xyes; then
  25574.                 USE_R600_LLVM_COMPILER=yes;
  25575.             fi
  25576.             if test "x$enable_opencl" = xyes; then
  25577.                 LLVM_COMPONENTS="${LLVM_COMPONENTS} bitreader asmparser"
  25578.             fi
  25579.             ;;
  25580.         xradeonsi)
  25581.             HAVE_GALLIUM_RADEONSI=yes
  25582.  
  25583. pkg_failed=no
  25584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RADEON" >&5
  25585. $as_echo_n "checking for RADEON... " >&6; }
  25586.  
  25587. if test -n "$RADEON_CFLAGS"; then
  25588.     pkg_cv_RADEON_CFLAGS="$RADEON_CFLAGS"
  25589.  elif test -n "$PKG_CONFIG"; then
  25590.     if test -n "$PKG_CONFIG" && \
  25591.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  25592.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  25593.   ac_status=$?
  25594.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25595.   test $ac_status = 0; }; then
  25596.   pkg_cv_RADEON_CFLAGS=`$PKG_CONFIG --cflags "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  25597.                       test "x$?" != "x0" && pkg_failed=yes
  25598. else
  25599.   pkg_failed=yes
  25600. fi
  25601.  else
  25602.     pkg_failed=untried
  25603. fi
  25604. if test -n "$RADEON_LIBS"; then
  25605.     pkg_cv_RADEON_LIBS="$RADEON_LIBS"
  25606.  elif test -n "$PKG_CONFIG"; then
  25607.     if test -n "$PKG_CONFIG" && \
  25608.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
  25609.   ($PKG_CONFIG --exists --print-errors "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED") 2>&5
  25610.   ac_status=$?
  25611.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25612.   test $ac_status = 0; }; then
  25613.   pkg_cv_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`
  25614.                       test "x$?" != "x0" && pkg_failed=yes
  25615. else
  25616.   pkg_failed=yes
  25617. fi
  25618.  else
  25619.     pkg_failed=untried
  25620. fi
  25621.  
  25622.  
  25623.  
  25624. if test $pkg_failed = yes; then
  25625.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25626. $as_echo "no" >&6; }
  25627.  
  25628. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  25629.         _pkg_short_errors_supported=yes
  25630. else
  25631.         _pkg_short_errors_supported=no
  25632. fi
  25633.         if test $_pkg_short_errors_supported = yes; then
  25634.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  25635.         else
  25636.                 RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_radeon >= $LIBDRM_RADEON_REQUIRED" 2>&1`
  25637.         fi
  25638.         # Put the nasty error message in config.log where it belongs
  25639.         echo "$RADEON_PKG_ERRORS" >&5
  25640.  
  25641.         as_fn_error $? "Package requirements (libdrm_radeon >= $LIBDRM_RADEON_REQUIRED) were not met:
  25642.  
  25643. $RADEON_PKG_ERRORS
  25644.  
  25645. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  25646. installed software in a non-standard prefix.
  25647.  
  25648. Alternatively, you may set the environment variables RADEON_CFLAGS
  25649. and RADEON_LIBS to avoid the need to call pkg-config.
  25650. See the pkg-config man page for more details." "$LINENO" 5
  25651. elif test $pkg_failed = untried; then
  25652.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25653. $as_echo "no" >&6; }
  25654.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25655. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25656. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  25657. is in your PATH or set the PKG_CONFIG environment variable to the full
  25658. path to pkg-config.
  25659.  
  25660. Alternatively, you may set the environment variables RADEON_CFLAGS
  25661. and RADEON_LIBS to avoid the need to call pkg-config.
  25662. See the pkg-config man page for more details.
  25663.  
  25664. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  25665. See \`config.log' for more details" "$LINENO" 5; }
  25666. else
  25667.         RADEON_CFLAGS=$pkg_cv_RADEON_CFLAGS
  25668.         RADEON_LIBS=$pkg_cv_RADEON_LIBS
  25669.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25670. $as_echo "yes" >&6; }
  25671.  
  25672. fi
  25673.             gallium_require_drm "radeonsi"
  25674.             gallium_require_drm_loader
  25675.             radeon_llvm_check "radeonsi"
  25676.             require_egl_drm "radeonsi"
  25677.             ;;
  25678.         xnouveau)
  25679.             HAVE_GALLIUM_NOUVEAU=yes
  25680.  
  25681. pkg_failed=no
  25682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NOUVEAU" >&5
  25683. $as_echo_n "checking for NOUVEAU... " >&6; }
  25684.  
  25685. if test -n "$NOUVEAU_CFLAGS"; then
  25686.     pkg_cv_NOUVEAU_CFLAGS="$NOUVEAU_CFLAGS"
  25687.  elif test -n "$PKG_CONFIG"; then
  25688.     if test -n "$PKG_CONFIG" && \
  25689.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= \$LIBDRM_NOUVEAU_REQUIRED\""; } >&5
  25690.   ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= $LIBDRM_NOUVEAU_REQUIRED") 2>&5
  25691.   ac_status=$?
  25692.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25693.   test $ac_status = 0; }; then
  25694.   pkg_cv_NOUVEAU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_nouveau >= $LIBDRM_NOUVEAU_REQUIRED" 2>/dev/null`
  25695.                       test "x$?" != "x0" && pkg_failed=yes
  25696. else
  25697.   pkg_failed=yes
  25698. fi
  25699.  else
  25700.     pkg_failed=untried
  25701. fi
  25702. if test -n "$NOUVEAU_LIBS"; then
  25703.     pkg_cv_NOUVEAU_LIBS="$NOUVEAU_LIBS"
  25704.  elif test -n "$PKG_CONFIG"; then
  25705.     if test -n "$PKG_CONFIG" && \
  25706.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= \$LIBDRM_NOUVEAU_REQUIRED\""; } >&5
  25707.   ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= $LIBDRM_NOUVEAU_REQUIRED") 2>&5
  25708.   ac_status=$?
  25709.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25710.   test $ac_status = 0; }; then
  25711.   pkg_cv_NOUVEAU_LIBS=`$PKG_CONFIG --libs "libdrm_nouveau >= $LIBDRM_NOUVEAU_REQUIRED" 2>/dev/null`
  25712.                       test "x$?" != "x0" && pkg_failed=yes
  25713. else
  25714.   pkg_failed=yes
  25715. fi
  25716.  else
  25717.     pkg_failed=untried
  25718. fi
  25719.  
  25720.  
  25721.  
  25722. if test $pkg_failed = yes; then
  25723.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25724. $as_echo "no" >&6; }
  25725.  
  25726. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  25727.         _pkg_short_errors_supported=yes
  25728. else
  25729.         _pkg_short_errors_supported=no
  25730. fi
  25731.         if test $_pkg_short_errors_supported = yes; then
  25732.                 NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_nouveau >= $LIBDRM_NOUVEAU_REQUIRED" 2>&1`
  25733.         else
  25734.                 NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_nouveau >= $LIBDRM_NOUVEAU_REQUIRED" 2>&1`
  25735.         fi
  25736.         # Put the nasty error message in config.log where it belongs
  25737.         echo "$NOUVEAU_PKG_ERRORS" >&5
  25738.  
  25739.         as_fn_error $? "Package requirements (libdrm_nouveau >= $LIBDRM_NOUVEAU_REQUIRED) were not met:
  25740.  
  25741. $NOUVEAU_PKG_ERRORS
  25742.  
  25743. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  25744. installed software in a non-standard prefix.
  25745.  
  25746. Alternatively, you may set the environment variables NOUVEAU_CFLAGS
  25747. and NOUVEAU_LIBS to avoid the need to call pkg-config.
  25748. See the pkg-config man page for more details." "$LINENO" 5
  25749. elif test $pkg_failed = untried; then
  25750.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25751. $as_echo "no" >&6; }
  25752.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25753. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25754. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  25755. is in your PATH or set the PKG_CONFIG environment variable to the full
  25756. path to pkg-config.
  25757.  
  25758. Alternatively, you may set the environment variables NOUVEAU_CFLAGS
  25759. and NOUVEAU_LIBS to avoid the need to call pkg-config.
  25760. See the pkg-config man page for more details.
  25761.  
  25762. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  25763. See \`config.log' for more details" "$LINENO" 5; }
  25764. else
  25765.         NOUVEAU_CFLAGS=$pkg_cv_NOUVEAU_CFLAGS
  25766.         NOUVEAU_LIBS=$pkg_cv_NOUVEAU_LIBS
  25767.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25768. $as_echo "yes" >&6; }
  25769.  
  25770. fi
  25771.             gallium_require_drm "nouveau"
  25772.             gallium_require_drm_loader
  25773.             ;;
  25774.         xfreedreno)
  25775.             HAVE_GALLIUM_FREEDRENO=yes
  25776.  
  25777. pkg_failed=no
  25778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREEDRENO" >&5
  25779. $as_echo_n "checking for FREEDRENO... " >&6; }
  25780.  
  25781. if test -n "$FREEDRENO_CFLAGS"; then
  25782.     pkg_cv_FREEDRENO_CFLAGS="$FREEDRENO_CFLAGS"
  25783.  elif test -n "$PKG_CONFIG"; then
  25784.     if test -n "$PKG_CONFIG" && \
  25785.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_freedreno >= \$LIBDRM_FREEDRENO_REQUIRED\""; } >&5
  25786.   ($PKG_CONFIG --exists --print-errors "libdrm_freedreno >= $LIBDRM_FREEDRENO_REQUIRED") 2>&5
  25787.   ac_status=$?
  25788.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25789.   test $ac_status = 0; }; then
  25790.   pkg_cv_FREEDRENO_CFLAGS=`$PKG_CONFIG --cflags "libdrm_freedreno >= $LIBDRM_FREEDRENO_REQUIRED" 2>/dev/null`
  25791.                       test "x$?" != "x0" && pkg_failed=yes
  25792. else
  25793.   pkg_failed=yes
  25794. fi
  25795.  else
  25796.     pkg_failed=untried
  25797. fi
  25798. if test -n "$FREEDRENO_LIBS"; then
  25799.     pkg_cv_FREEDRENO_LIBS="$FREEDRENO_LIBS"
  25800.  elif test -n "$PKG_CONFIG"; then
  25801.     if test -n "$PKG_CONFIG" && \
  25802.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_freedreno >= \$LIBDRM_FREEDRENO_REQUIRED\""; } >&5
  25803.   ($PKG_CONFIG --exists --print-errors "libdrm_freedreno >= $LIBDRM_FREEDRENO_REQUIRED") 2>&5
  25804.   ac_status=$?
  25805.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25806.   test $ac_status = 0; }; then
  25807.   pkg_cv_FREEDRENO_LIBS=`$PKG_CONFIG --libs "libdrm_freedreno >= $LIBDRM_FREEDRENO_REQUIRED" 2>/dev/null`
  25808.                       test "x$?" != "x0" && pkg_failed=yes
  25809. else
  25810.   pkg_failed=yes
  25811. fi
  25812.  else
  25813.     pkg_failed=untried
  25814. fi
  25815.  
  25816.  
  25817.  
  25818. if test $pkg_failed = yes; then
  25819.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25820. $as_echo "no" >&6; }
  25821.  
  25822. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  25823.         _pkg_short_errors_supported=yes
  25824. else
  25825.         _pkg_short_errors_supported=no
  25826. fi
  25827.         if test $_pkg_short_errors_supported = yes; then
  25828.                 FREEDRENO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_freedreno >= $LIBDRM_FREEDRENO_REQUIRED" 2>&1`
  25829.         else
  25830.                 FREEDRENO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_freedreno >= $LIBDRM_FREEDRENO_REQUIRED" 2>&1`
  25831.         fi
  25832.         # Put the nasty error message in config.log where it belongs
  25833.         echo "$FREEDRENO_PKG_ERRORS" >&5
  25834.  
  25835.         as_fn_error $? "Package requirements (libdrm_freedreno >= $LIBDRM_FREEDRENO_REQUIRED) were not met:
  25836.  
  25837. $FREEDRENO_PKG_ERRORS
  25838.  
  25839. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  25840. installed software in a non-standard prefix.
  25841.  
  25842. Alternatively, you may set the environment variables FREEDRENO_CFLAGS
  25843. and FREEDRENO_LIBS to avoid the need to call pkg-config.
  25844. See the pkg-config man page for more details." "$LINENO" 5
  25845. elif test $pkg_failed = untried; then
  25846.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25847. $as_echo "no" >&6; }
  25848.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25849. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25850. as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
  25851. is in your PATH or set the PKG_CONFIG environment variable to the full
  25852. path to pkg-config.
  25853.  
  25854. Alternatively, you may set the environment variables FREEDRENO_CFLAGS
  25855. and FREEDRENO_LIBS to avoid the need to call pkg-config.
  25856. See the pkg-config man page for more details.
  25857.  
  25858. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  25859. See \`config.log' for more details" "$LINENO" 5; }
  25860. else
  25861.         FREEDRENO_CFLAGS=$pkg_cv_FREEDRENO_CFLAGS
  25862.         FREEDRENO_LIBS=$pkg_cv_FREEDRENO_LIBS
  25863.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25864. $as_echo "yes" >&6; }
  25865.  
  25866. fi
  25867.             gallium_require_drm "freedreno"
  25868.             gallium_require_drm_loader
  25869.             ;;
  25870.         xswrast)
  25871.             HAVE_GALLIUM_SOFTPIPE=yes
  25872.             if test "x$MESA_LLVM" = x1; then
  25873.                 HAVE_GALLIUM_LLVMPIPE=yes
  25874.             fi
  25875.             ;;
  25876.         xvc4)
  25877.             HAVE_GALLIUM_VC4=yes
  25878.             gallium_require_drm "vc4"
  25879.             gallium_require_drm_loader
  25880.  
  25881.             case "$host_cpu" in
  25882.                 i?86 | x86_64 | amd64)
  25883.                 USE_VC4_SIMULATOR=yes
  25884.                 ;;
  25885.             esac
  25886.             ;;
  25887.         *)
  25888.             as_fn_error $? "Unknown Gallium driver: $driver" "$LINENO" 5
  25889.             ;;
  25890.         esac
  25891.     done
  25892. fi
  25893.  
  25894.  
  25895. if test "x$MESA_LLVM" != x0; then
  25896.  
  25897.     LLVM_LIBS="`$LLVM_CONFIG --libs ${LLVM_COMPONENTS}`"
  25898.  
  25899.     if test "x$enable_llvm_shared_libs" = xyes; then
  25900.                 LLVM_SO_NAME=LLVM-`$LLVM_CONFIG --version`
  25901.         if test -f "$LLVM_LIBDIR/lib$LLVM_SO_NAME.so"; then :
  25902.   llvm_have_one_so=yes
  25903. fi
  25904.  
  25905.         if test "x$llvm_have_one_so" = xyes; then
  25906.                         LLVM_LIBS="-l$LLVM_SO_NAME"
  25907.         else
  25908.                                     if test ! -f "$LLVM_LIBDIR/libLLVMTarget.so"; then :
  25909.   as_fn_error $? "Could not find llvm shared libraries:
  25910.         Please make sure you have built llvm with the --enable-shared option
  25911.         and that your llvm libraries are installed in $LLVM_LIBDIR
  25912.         If you have installed your llvm libraries to a different directory you
  25913.         can use the --with-llvm-prefix= configure flag to specify this directory.
  25914.         NOTE: Mesa is attempting to use llvm shared libraries by default.
  25915.         If you do not want to build with llvm shared libraries and instead want to
  25916.         use llvm static libraries then add --disable-llvm-shared-libs to your configure
  25917.         invocation and rebuild." "$LINENO" 5
  25918. fi
  25919.  
  25920.                                          fi
  25921.     else
  25922.         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building mesa with statically linked LLVM may cause compilation issues" >&5
  25923. $as_echo "$as_me: WARNING: Building mesa with statically linked LLVM may cause compilation issues" >&2;}
  25924.                         if test $LLVM_VERSION_MAJOR -eq 3 -a $LLVM_VERSION_MINOR -ge 5; then
  25925.             LLVM_LIBS="$LLVM_LIBS `$LLVM_CONFIG --system-libs`"
  25926.         fi
  25927.     fi
  25928. fi
  25929.  
  25930.  if test "x$HAVE_GALLIUM_SVGA" = xyes; then
  25931.   HAVE_GALLIUM_SVGA_TRUE=
  25932.   HAVE_GALLIUM_SVGA_FALSE='#'
  25933. else
  25934.   HAVE_GALLIUM_SVGA_TRUE='#'
  25935.   HAVE_GALLIUM_SVGA_FALSE=
  25936. fi
  25937.  
  25938.  if test "x$HAVE_GALLIUM_I915" = xyes; then
  25939.   HAVE_GALLIUM_I915_TRUE=
  25940.   HAVE_GALLIUM_I915_FALSE='#'
  25941. else
  25942.   HAVE_GALLIUM_I915_TRUE='#'
  25943.   HAVE_GALLIUM_I915_FALSE=
  25944. fi
  25945.  
  25946.  if test "x$HAVE_GALLIUM_ILO" = xyes; then
  25947.   HAVE_GALLIUM_ILO_TRUE=
  25948.   HAVE_GALLIUM_ILO_FALSE='#'
  25949. else
  25950.   HAVE_GALLIUM_ILO_TRUE='#'
  25951.   HAVE_GALLIUM_ILO_FALSE=
  25952. fi
  25953.  
  25954.  if test "x$HAVE_GALLIUM_R300" = xyes; then
  25955.   HAVE_GALLIUM_R300_TRUE=
  25956.   HAVE_GALLIUM_R300_FALSE='#'
  25957. else
  25958.   HAVE_GALLIUM_R300_TRUE='#'
  25959.   HAVE_GALLIUM_R300_FALSE=
  25960. fi
  25961.  
  25962.  if test "x$HAVE_GALLIUM_R600" = xyes; then
  25963.   HAVE_GALLIUM_R600_TRUE=
  25964.   HAVE_GALLIUM_R600_FALSE='#'
  25965. else
  25966.   HAVE_GALLIUM_R600_TRUE='#'
  25967.   HAVE_GALLIUM_R600_FALSE=
  25968. fi
  25969.  
  25970.  if test "x$HAVE_GALLIUM_RADEONSI" = xyes; then
  25971.   HAVE_GALLIUM_RADEONSI_TRUE=
  25972.   HAVE_GALLIUM_RADEONSI_FALSE='#'
  25973. else
  25974.   HAVE_GALLIUM_RADEONSI_TRUE='#'
  25975.   HAVE_GALLIUM_RADEONSI_FALSE=
  25976. fi
  25977.  
  25978.  if test "x$HAVE_GALLIUM_R600" = xyes -o \
  25979.                                                 "x$HAVE_GALLIUM_RADEONSI" = xyes; then
  25980.   HAVE_GALLIUM_RADEON_COMMON_TRUE=
  25981.   HAVE_GALLIUM_RADEON_COMMON_FALSE='#'
  25982. else
  25983.   HAVE_GALLIUM_RADEON_COMMON_TRUE='#'
  25984.   HAVE_GALLIUM_RADEON_COMMON_FALSE=
  25985. fi
  25986.  
  25987.  if test "x$HAVE_GALLIUM_NOUVEAU" = xyes; then
  25988.   HAVE_GALLIUM_NOUVEAU_TRUE=
  25989.   HAVE_GALLIUM_NOUVEAU_FALSE='#'
  25990. else
  25991.   HAVE_GALLIUM_NOUVEAU_TRUE='#'
  25992.   HAVE_GALLIUM_NOUVEAU_FALSE=
  25993. fi
  25994.  
  25995.  if test "x$HAVE_GALLIUM_FREEDRENO" = xyes; then
  25996.   HAVE_GALLIUM_FREEDRENO_TRUE=
  25997.   HAVE_GALLIUM_FREEDRENO_FALSE='#'
  25998. else
  25999.   HAVE_GALLIUM_FREEDRENO_TRUE='#'
  26000.   HAVE_GALLIUM_FREEDRENO_FALSE=
  26001. fi
  26002.  
  26003.  if test "x$HAVE_GALLIUM_SOFTPIPE" = xyes; then
  26004.   HAVE_GALLIUM_SOFTPIPE_TRUE=
  26005.   HAVE_GALLIUM_SOFTPIPE_FALSE='#'
  26006. else
  26007.   HAVE_GALLIUM_SOFTPIPE_TRUE='#'
  26008.   HAVE_GALLIUM_SOFTPIPE_FALSE=
  26009. fi
  26010.  
  26011.  if test "x$HAVE_GALLIUM_LLVMPIPE" = xyes; then
  26012.   HAVE_GALLIUM_LLVMPIPE_TRUE=
  26013.   HAVE_GALLIUM_LLVMPIPE_FALSE='#'
  26014. else
  26015.   HAVE_GALLIUM_LLVMPIPE_TRUE='#'
  26016.   HAVE_GALLIUM_LLVMPIPE_FALSE=
  26017. fi
  26018.  
  26019.  if test "x$HAVE_GALLIUM_VC4" = xyes; then
  26020.   HAVE_GALLIUM_VC4_TRUE=
  26021.   HAVE_GALLIUM_VC4_FALSE='#'
  26022. else
  26023.   HAVE_GALLIUM_VC4_TRUE='#'
  26024.   HAVE_GALLIUM_VC4_FALSE=
  26025. fi
  26026.  
  26027.  
  26028.  if test "x$enable_shared_pipe_drivers" = xno; then
  26029.   HAVE_GALLIUM_STATIC_TARGETS_TRUE=
  26030.   HAVE_GALLIUM_STATIC_TARGETS_FALSE='#'
  26031. else
  26032.   HAVE_GALLIUM_STATIC_TARGETS_TRUE='#'
  26033.   HAVE_GALLIUM_STATIC_TARGETS_FALSE=
  26034. fi
  26035.  
  26036.  
  26037. # NOTE: anything using xcb or other client side libs ends up in separate
  26038. #       _CLIENT variables.  The pipe loader is built in two variants,
  26039. #       one that is standalone and does not link any x client libs (for
  26040. #       use by XA tracker in particular, but could be used in any case
  26041. #       where communication with xserver is not desired).
  26042. if test "x$enable_gallium_loader" = xyes; then
  26043.     if test "x$NEED_WINSYS_XLIB" = xyes; then
  26044.         GALLIUM_PIPE_LOADER_DEFINES="$GALLIUM_PIPE_LOADER_DEFINES -DHAVE_PIPE_LOADER_XLIB"
  26045.     fi
  26046.  
  26047.     if test "x$enable_dri" = xyes; then
  26048.         GALLIUM_PIPE_LOADER_DEFINES="$GALLIUM_PIPE_LOADER_DEFINES -DHAVE_PIPE_LOADER_DRI"
  26049.     fi
  26050.  
  26051.     if test "x$enable_gallium_drm_loader" = xyes; then
  26052.         GALLIUM_PIPE_LOADER_DEFINES="$GALLIUM_PIPE_LOADER_DEFINES -DHAVE_PIPE_LOADER_DRM"
  26053.  
  26054. pkg_failed=no
  26055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GALLIUM_PIPE_LOADER_XCB" >&5
  26056. $as_echo_n "checking for GALLIUM_PIPE_LOADER_XCB... " >&6; }
  26057.  
  26058. if test -n "$GALLIUM_PIPE_LOADER_XCB_CFLAGS"; then
  26059.     pkg_cv_GALLIUM_PIPE_LOADER_XCB_CFLAGS="$GALLIUM_PIPE_LOADER_XCB_CFLAGS"
  26060.  elif test -n "$PKG_CONFIG"; then
  26061.     if test -n "$PKG_CONFIG" && \
  26062.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-dri2\""; } >&5
  26063.   ($PKG_CONFIG --exists --print-errors "xcb xcb-dri2") 2>&5
  26064.   ac_status=$?
  26065.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26066.   test $ac_status = 0; }; then
  26067.   pkg_cv_GALLIUM_PIPE_LOADER_XCB_CFLAGS=`$PKG_CONFIG --cflags "xcb xcb-dri2" 2>/dev/null`
  26068.                       test "x$?" != "x0" && pkg_failed=yes
  26069. else
  26070.   pkg_failed=yes
  26071. fi
  26072.  else
  26073.     pkg_failed=untried
  26074. fi
  26075. if test -n "$GALLIUM_PIPE_LOADER_XCB_LIBS"; then
  26076.     pkg_cv_GALLIUM_PIPE_LOADER_XCB_LIBS="$GALLIUM_PIPE_LOADER_XCB_LIBS"
  26077.  elif test -n "$PKG_CONFIG"; then
  26078.     if test -n "$PKG_CONFIG" && \
  26079.     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb xcb-dri2\""; } >&5
  26080.   ($PKG_CONFIG --exists --print-errors "xcb xcb-dri2") 2>&5
  26081.   ac_status=$?
  26082.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  26083.   test $ac_status = 0; }; then
  26084.   pkg_cv_GALLIUM_PIPE_LOADER_XCB_LIBS=`$PKG_CONFIG --libs "xcb xcb-dri2" 2>/dev/null`
  26085.                       test "x$?" != "x0" && pkg_failed=yes
  26086. else
  26087.   pkg_failed=yes
  26088. fi
  26089.  else
  26090.     pkg_failed=untried
  26091. fi
  26092.  
  26093.  
  26094.  
  26095. if test $pkg_failed = yes; then
  26096.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26097. $as_echo "no" >&6; }
  26098.  
  26099. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  26100.         _pkg_short_errors_supported=yes
  26101. else
  26102.         _pkg_short_errors_supported=no
  26103. fi
  26104.         if test $_pkg_short_errors_supported = yes; then
  26105.                 GALLIUM_PIPE_LOADER_XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb xcb-dri2" 2>&1`
  26106.         else
  26107.                 GALLIUM_PIPE_LOADER_XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb xcb-dri2" 2>&1`
  26108.         fi
  26109.         # Put the nasty error message in config.log where it belongs
  26110.         echo "$GALLIUM_PIPE_LOADER_XCB_PKG_ERRORS" >&5
  26111.  
  26112.         pipe_loader_have_xcb=no
  26113. elif test $pkg_failed = untried; then
  26114.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26115. $as_echo "no" >&6; }
  26116.         pipe_loader_have_xcb=no
  26117. else
  26118.         GALLIUM_PIPE_LOADER_XCB_CFLAGS=$pkg_cv_GALLIUM_PIPE_LOADER_XCB_CFLAGS
  26119.         GALLIUM_PIPE_LOADER_XCB_LIBS=$pkg_cv_GALLIUM_PIPE_LOADER_XCB_LIBS
  26120.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26121. $as_echo "yes" >&6; }
  26122.         pipe_loader_have_xcb=yes
  26123. fi
  26124.         if test "x$pipe_loader_have_xcb" = xyes; then
  26125.             GALLIUM_PIPE_LOADER_CLIENT_DEFINES="$GALLIUM_PIPE_LOADER_CLIENT_DEFINES -DHAVE_PIPE_LOADER_XCB"
  26126.             GALLIUM_PIPE_LOADER_CLIENT_LIBS="$GALLIUM_PIPE_LOADER_CLIENT_LIBS $GALLIUM_PIPE_LOADER_XCB_LIBS $LIBDRM_LIBS"
  26127.         fi
  26128.     fi
  26129.  
  26130.     GALLIUM_PIPE_LOADER_CLIENT_DEFINES="$GALLIUM_PIPE_LOADER_CLIENT_DEFINES $GALLIUM_PIPE_LOADER_DEFINES"
  26131.     GALLIUM_PIPE_LOADER_CLIENT_LIBS="$GALLIUM_PIPE_LOADER_CLIENT_LIBS $GALLIUM_PIPE_LOADER_LIBS"
  26132.  
  26133.  
  26134.  
  26135.  
  26136.  
  26137. fi
  26138.  
  26139.  if test x$HAVE_I915_DRI = xyes; then
  26140.   HAVE_I915_DRI_TRUE=
  26141.   HAVE_I915_DRI_FALSE='#'
  26142. else
  26143.   HAVE_I915_DRI_TRUE='#'
  26144.   HAVE_I915_DRI_FALSE=
  26145. fi
  26146.  
  26147.  if test x$HAVE_I965_DRI = xyes; then
  26148.   HAVE_I965_DRI_TRUE=
  26149.   HAVE_I965_DRI_FALSE='#'
  26150. else
  26151.   HAVE_I965_DRI_TRUE='#'
  26152.   HAVE_I965_DRI_FALSE=
  26153. fi
  26154.  
  26155.  if test x$HAVE_NOUVEAU_DRI = xyes; then
  26156.   HAVE_NOUVEAU_DRI_TRUE=
  26157.   HAVE_NOUVEAU_DRI_FALSE='#'
  26158. else
  26159.   HAVE_NOUVEAU_DRI_TRUE='#'
  26160.   HAVE_NOUVEAU_DRI_FALSE=
  26161. fi
  26162.  
  26163.  if test x$HAVE_R200_DRI = xyes; then
  26164.   HAVE_R200_DRI_TRUE=
  26165.   HAVE_R200_DRI_FALSE='#'
  26166. else
  26167.   HAVE_R200_DRI_TRUE='#'
  26168.   HAVE_R200_DRI_FALSE=
  26169. fi
  26170.  
  26171.  if test x$HAVE_RADEON_DRI = xyes; then
  26172.   HAVE_RADEON_DRI_TRUE=
  26173.   HAVE_RADEON_DRI_FALSE='#'
  26174. else
  26175.   HAVE_RADEON_DRI_TRUE='#'
  26176.   HAVE_RADEON_DRI_FALSE=
  26177. fi
  26178.  
  26179.  if test x$HAVE_SWRAST_DRI = xyes; then
  26180.   HAVE_SWRAST_DRI_TRUE=
  26181.   HAVE_SWRAST_DRI_FALSE='#'
  26182. else
  26183.   HAVE_SWRAST_DRI_TRUE='#'
  26184.   HAVE_SWRAST_DRI_FALSE=
  26185. fi
  26186.  
  26187.  
  26188.  if test "x$HAVE_GALLIUM_R300" = xyes -o \
  26189.                                             "x$HAVE_GALLIUM_R600" = xyes -o \
  26190.                                             "x$HAVE_GALLIUM_RADEONSI" = xyes; then
  26191.   NEED_RADEON_DRM_WINSYS_TRUE=
  26192.   NEED_RADEON_DRM_WINSYS_FALSE='#'
  26193. else
  26194.   NEED_RADEON_DRM_WINSYS_TRUE='#'
  26195.   NEED_RADEON_DRM_WINSYS_FALSE=
  26196. fi
  26197.  
  26198.  if test "x$NEED_WINSYS_XLIB" = xyes; then
  26199.   NEED_WINSYS_XLIB_TRUE=
  26200.   NEED_WINSYS_XLIB_FALSE='#'
  26201. else
  26202.   NEED_WINSYS_XLIB_TRUE='#'
  26203.   NEED_WINSYS_XLIB_FALSE=
  26204. fi
  26205.  
  26206.  if test x$NEED_RADEON_LLVM = xyes; then
  26207.   NEED_RADEON_LLVM_TRUE=
  26208.   NEED_RADEON_LLVM_FALSE='#'
  26209. else
  26210.   NEED_RADEON_LLVM_TRUE='#'
  26211.   NEED_RADEON_LLVM_FALSE=
  26212. fi
  26213.  
  26214.  if test x$USE_R600_LLVM_COMPILER = xyes; then
  26215.   USE_R600_LLVM_COMPILER_TRUE=
  26216.   USE_R600_LLVM_COMPILER_FALSE='#'
  26217. else
  26218.   USE_R600_LLVM_COMPILER_TRUE='#'
  26219.   USE_R600_LLVM_COMPILER_FALSE=
  26220. fi
  26221.  
  26222.  if test x$enable_gallium_loader = xyes; then
  26223.   HAVE_LOADER_GALLIUM_TRUE=
  26224.   HAVE_LOADER_GALLIUM_FALSE='#'
  26225. else
  26226.   HAVE_LOADER_GALLIUM_TRUE='#'
  26227.   HAVE_LOADER_GALLIUM_FALSE=
  26228. fi
  26229.  
  26230.  if test x$enable_gallium_drm_loader = xyes; then
  26231.   HAVE_DRM_LOADER_GALLIUM_TRUE=
  26232.   HAVE_DRM_LOADER_GALLIUM_FALSE='#'
  26233. else
  26234.   HAVE_DRM_LOADER_GALLIUM_TRUE='#'
  26235.   HAVE_DRM_LOADER_GALLIUM_FALSE=
  26236. fi
  26237.  
  26238.  if test x$enable_opencl = xyes; then
  26239.   HAVE_GALLIUM_COMPUTE_TRUE=
  26240.   HAVE_GALLIUM_COMPUTE_FALSE='#'
  26241. else
  26242.   HAVE_GALLIUM_COMPUTE_TRUE='#'
  26243.   HAVE_GALLIUM_COMPUTE_FALSE=
  26244. fi
  26245.  
  26246.  if test x$MESA_LLVM = x1; then
  26247.   HAVE_MESA_LLVM_TRUE=
  26248.   HAVE_MESA_LLVM_FALSE='#'
  26249. else
  26250.   HAVE_MESA_LLVM_TRUE='#'
  26251.   HAVE_MESA_LLVM_FALSE=
  26252. fi
  26253.  
  26254.  if test x$USE_VC4_SIMULATOR = xyes; then
  26255.   USE_VC4_SIMULATOR_TRUE=
  26256.   USE_VC4_SIMULATOR_FALSE='#'
  26257. else
  26258.   USE_VC4_SIMULATOR_TRUE='#'
  26259.   USE_VC4_SIMULATOR_FALSE=
  26260. fi
  26261.  
  26262. if test "x$USE_VC4_SIMULATOR" = xyes -a "x$HAVE_GALLIUM_ILO" = xyes; then
  26263.     as_fn_error $? "VC4 simulator on x86 replaces i965 driver build, so ilo must be disabled." "$LINENO" 5
  26264. fi
  26265.  
  26266.  
  26267.  
  26268.  if test "x$DRICOMMON_NEED_LIBDRM" = xyes; then
  26269.   DRICOMMON_NEED_LIBDRM_TRUE=
  26270.   DRICOMMON_NEED_LIBDRM_FALSE='#'
  26271. else
  26272.   DRICOMMON_NEED_LIBDRM_TRUE='#'
  26273.   DRICOMMON_NEED_LIBDRM_FALSE=
  26274. fi
  26275.  
  26276.  if test "x$have_libdrm" = xyes; then
  26277.   HAVE_LIBDRM_TRUE=
  26278.   HAVE_LIBDRM_FALSE='#'
  26279. else
  26280.   HAVE_LIBDRM_TRUE='#'
  26281.   HAVE_LIBDRM_FALSE=
  26282. fi
  26283.  
  26284.  if test "x$enable_xlib_glx" = xyes; then
  26285.   HAVE_X11_DRIVER_TRUE=
  26286.   HAVE_X11_DRIVER_FALSE='#'
  26287. else
  26288.   HAVE_X11_DRIVER_TRUE='#'
  26289.   HAVE_X11_DRIVER_FALSE=
  26290. fi
  26291.  
  26292.  if test "x$enable_osmesa" = xyes; then
  26293.   HAVE_OSMESA_TRUE=
  26294.   HAVE_OSMESA_FALSE='#'
  26295. else
  26296.   HAVE_OSMESA_TRUE='#'
  26297.   HAVE_OSMESA_FALSE=
  26298. fi
  26299.  
  26300.  if test "x$enable_gallium_osmesa" = xyes; then
  26301.   HAVE_GALLIUM_OSMESA_TRUE=
  26302.   HAVE_GALLIUM_OSMESA_FALSE='#'
  26303. else
  26304.   HAVE_GALLIUM_OSMESA_TRUE='#'
  26305.   HAVE_GALLIUM_OSMESA_FALSE=
  26306. fi
  26307.  
  26308.  
  26309.  if test "x$asm_arch" = xx86 -o "x$asm_arch" = xx86_64; then
  26310.   HAVE_X86_ASM_TRUE=
  26311.   HAVE_X86_ASM_FALSE='#'
  26312. else
  26313.   HAVE_X86_ASM_TRUE='#'
  26314.   HAVE_X86_ASM_FALSE=
  26315. fi
  26316.  
  26317.  if test "x$asm_arch" = xx86_64; then
  26318.   HAVE_X86_64_ASM_TRUE=
  26319.   HAVE_X86_64_ASM_FALSE='#'
  26320. else
  26321.   HAVE_X86_64_ASM_TRUE='#'
  26322.   HAVE_X86_64_ASM_FALSE=
  26323. fi
  26324.  
  26325.  if test "x$asm_arch" = xsparc; then
  26326.   HAVE_SPARC_ASM_TRUE=
  26327.   HAVE_SPARC_ASM_FALSE='#'
  26328. else
  26329.   HAVE_SPARC_ASM_TRUE='#'
  26330.   HAVE_SPARC_ASM_FALSE=
  26331. fi
  26332.  
  26333.  
  26334. NINE_MAJOR=1
  26335.  
  26336. NINE_MINOR=0
  26337.  
  26338. NINE_TINY=0
  26339.  
  26340. NINE_VERSION="$NINE_MAJOR.$NINE_MINOR.$NINE_TINY"
  26341.  
  26342.  
  26343. VDPAU_MAJOR=1
  26344.  
  26345. VDPAU_MINOR=0
  26346.  
  26347.  
  26348. VA_MAJOR=`$PKG_CONFIG --modversion libva | $SED -n 's/\([^\.]*\)\..*$/\1/p'`
  26349. VA_MINOR=`$PKG_CONFIG --modversion libva | $SED -n 's/.*\.\(.*\)\..*$/\1/p'`
  26350. VA_MAJOR=$VA_MAJOR
  26351.  
  26352. VA_MINOR=$VA_MINOR
  26353.  
  26354.  
  26355. XVMC_MAJOR=1
  26356.  
  26357. XVMC_MINOR=0
  26358.  
  26359.  
  26360. XA_HEADER="$srcdir/src/gallium/state_trackers/xa/xa_tracker.h"
  26361. XA_MAJOR=`grep "#define XA_TRACKER_VERSION_MAJOR" $XA_HEADER | $SED 's/^#define XA_TRACKER_VERSION_MAJOR //'`
  26362. XA_MINOR=`grep "#define XA_TRACKER_VERSION_MINOR" $XA_HEADER | $SED 's/^#define XA_TRACKER_VERSION_MINOR //'`
  26363. XA_TINY=`grep "#define XA_TRACKER_VERSION_PATCH" $XA_HEADER | $SED 's/^#define XA_TRACKER_VERSION_PATCH //'`
  26364.  
  26365. XA_MAJOR=$XA_MAJOR
  26366.  
  26367. XA_MINOR=$XA_MINOR
  26368.  
  26369. XA_TINY=$XA_TINY
  26370.  
  26371. XA_VERSION="$XA_MAJOR.$XA_MINOR.$XA_TINY"
  26372.  
  26373.  
  26374. LDFLAGS="$_SAVE_LDFLAGS"
  26375. CPPFLAGS="$_SAVE_CPPFLAGS"
  26376.  
  26377. if test "x$acv_mesa_CLANG" = xyes; then
  26378.     CFLAGS="$CFLAGS -Qunused-arguments"
  26379.     CXXFLAGS="$CXXFLAGS -Qunused-arguments"
  26380. fi
  26381.  
  26382. CFLAGS="$CFLAGS $USER_CFLAGS"
  26383. CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS"
  26384.  
  26385. ac_config_files="$ac_config_files Makefile src/Makefile src/egl/drivers/dri2/Makefile src/egl/main/Makefile src/egl/main/egl.pc src/egl/wayland/wayland-drm/Makefile src/egl/wayland/wayland-egl/Makefile src/egl/wayland/wayland-egl/wayland-egl.pc src/gallium/Makefile src/gallium/auxiliary/Makefile src/gallium/auxiliary/pipe-loader/Makefile src/gallium/drivers/freedreno/Makefile src/gallium/drivers/i915/Makefile src/gallium/drivers/ilo/Makefile src/gallium/drivers/llvmpipe/Makefile src/gallium/drivers/noop/Makefile src/gallium/drivers/nouveau/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/drivers/vc4/Makefile src/gallium/drivers/vc4/kernel/Makefile src/gallium/state_trackers/clover/Makefile src/gallium/state_trackers/dri/Makefile src/gallium/state_trackers/glx/xlib/Makefile src/gallium/state_trackers/nine/Makefile src/gallium/state_trackers/omx/Makefile src/gallium/state_trackers/osmesa/Makefile src/gallium/state_trackers/va/Makefile src/gallium/state_trackers/vdpau/Makefile src/gallium/state_trackers/xa/Makefile src/gallium/state_trackers/xvmc/Makefile src/gallium/targets/d3dadapter9/Makefile src/gallium/targets/d3dadapter9/d3d.pc src/gallium/targets/dri/Makefile src/gallium/targets/libgl-xlib/Makefile src/gallium/targets/omx/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/va/Makefile src/gallium/targets/vdpau/Makefile src/gallium/targets/xa/Makefile src/gallium/targets/xa/xatracker.pc src/gallium/targets/xvmc/Makefile src/gallium/tests/trivial/Makefile src/gallium/tests/unit/Makefile src/gallium/winsys/freedreno/drm/Makefile src/gallium/winsys/i915/drm/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/kms-dri/Makefile src/gallium/winsys/sw/null/Makefile src/gallium/winsys/sw/wrapper/Makefile src/gallium/winsys/sw/xlib/Makefile src/gallium/winsys/vc4/drm/Makefile src/gbm/Makefile src/gbm/main/gbm.pc src/glsl/Makefile src/glx/Makefile src/glx/apple/Makefile src/glx/tests/Makefile src/gtest/Makefile src/loader/Makefile src/mapi/Makefile src/mapi/es1api/glesv1_cm.pc src/mapi/es2api/glesv2.pc src/mapi/glapi/gen/Makefile 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/main/tests/Makefile src/util/Makefile src/util/tests/hash_table/Makefile"
  26386.  
  26387.  
  26388. cat >confcache <<\_ACEOF
  26389. # This file is a shell script that caches the results of configure
  26390. # tests run on this system so they can be shared between configure
  26391. # scripts and configure runs, see configure's option --config-cache.
  26392. # It is not useful on other systems.  If it contains results you don't
  26393. # want to keep, you may remove or edit it.
  26394. #
  26395. # config.status only pays attention to the cache file if you give it
  26396. # the --recheck option to rerun configure.
  26397. #
  26398. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  26399. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  26400. # following values.
  26401.  
  26402. _ACEOF
  26403.  
  26404. # The following way of writing the cache mishandles newlines in values,
  26405. # but we know of no workaround that is simple, portable, and efficient.
  26406. # So, we kill variables containing newlines.
  26407. # Ultrix sh set writes to stderr and can't be redirected directly,
  26408. # and sets the high bit in the cache file unless we assign to the vars.
  26409. (
  26410.   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  26411.     eval ac_val=\$$ac_var
  26412.     case $ac_val in #(
  26413.     *${as_nl}*)
  26414.       case $ac_var in #(
  26415.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  26416. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  26417.       esac
  26418.       case $ac_var in #(
  26419.       _ | IFS | as_nl) ;; #(
  26420.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  26421.       *) { eval $ac_var=; unset $ac_var;} ;;
  26422.       esac ;;
  26423.     esac
  26424.   done
  26425.  
  26426.   (set) 2>&1 |
  26427.     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  26428.     *${as_nl}ac_space=\ *)
  26429.       # `set' does not quote correctly, so add quotes: double-quote
  26430.       # substitution turns \\\\ into \\, and sed turns \\ into \.
  26431.       sed -n \
  26432.         "s/'/'\\\\''/g;
  26433.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  26434.       ;; #(
  26435.     *)
  26436.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  26437.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  26438.       ;;
  26439.     esac |
  26440.     sort
  26441. ) |
  26442.   sed '
  26443.      /^ac_cv_env_/b end
  26444.      t clear
  26445.      :clear
  26446.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  26447.      t end
  26448.      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  26449.      :end' >>confcache
  26450. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  26451.   if test -w "$cache_file"; then
  26452.     if test "x$cache_file" != "x/dev/null"; then
  26453.       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  26454. $as_echo "$as_me: updating cache $cache_file" >&6;}
  26455.       if test ! -f "$cache_file" || test -h "$cache_file"; then
  26456.         cat confcache >"$cache_file"
  26457.       else
  26458.         case $cache_file in #(
  26459.         */* | ?:*)
  26460.           mv -f confcache "$cache_file"$$ &&
  26461.           mv -f "$cache_file"$$ "$cache_file" ;; #(
  26462.         *)
  26463.           mv -f confcache "$cache_file" ;;
  26464.         esac
  26465.       fi
  26466.     fi
  26467.   else
  26468.     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  26469. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  26470.   fi
  26471. fi
  26472. rm -f confcache
  26473.  
  26474. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  26475. # Let make expand exec_prefix.
  26476. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  26477.  
  26478. # Transform confdefs.h into DEFS.
  26479. # Protect against shell expansion while executing Makefile rules.
  26480. # Protect against Makefile macro expansion.
  26481. #
  26482. # If the first sed substitution is executed (which looks for macros that
  26483. # take arguments), then branch to the quote section.  Otherwise,
  26484. # look for a macro that doesn't take arguments.
  26485. ac_script='
  26486. :mline
  26487. /\\$/{
  26488.  N
  26489.  s,\\\n,,
  26490.  b mline
  26491. }
  26492. t clear
  26493. :clear
  26494. s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
  26495. t quote
  26496. s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
  26497. t quote
  26498. b any
  26499. :quote
  26500. s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  26501. s/\[/\\&/g
  26502. s/\]/\\&/g
  26503. s/\$/$$/g
  26504. H
  26505. :any
  26506. ${
  26507.         g
  26508.         s/^\n//
  26509.         s/\n/ /g
  26510.         p
  26511. }
  26512. '
  26513. DEFS=`sed -n "$ac_script" confdefs.h`
  26514.  
  26515.  
  26516. ac_libobjs=
  26517. ac_ltlibobjs=
  26518. U=
  26519. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  26520.   # 1. Remove the extension, and $U if already installed.
  26521.   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  26522.   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  26523.   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  26524.   #    will be set to the directory where LIBOBJS objects are built.
  26525.   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  26526.   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  26527. done
  26528. LIBOBJS=$ac_libobjs
  26529.  
  26530. LTLIBOBJS=$ac_ltlibobjs
  26531.  
  26532.  
  26533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  26534. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  26535.    if test -n "$am_sleep_pid"; then
  26536.      # Hide warnings about reused PIDs.
  26537.      wait $am_sleep_pid 2>/dev/null
  26538.    fi
  26539.    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  26540. $as_echo "done" >&6; }
  26541.  if test -n "$EXEEXT"; then
  26542.   am__EXEEXT_TRUE=
  26543.   am__EXEEXT_FALSE='#'
  26544. else
  26545.   am__EXEEXT_TRUE='#'
  26546.   am__EXEEXT_FALSE=
  26547. fi
  26548.  
  26549. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  26550.   as_fn_error $? "conditional \"AMDEP\" was never defined.
  26551. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26552. fi
  26553. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  26554.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  26555. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26556. fi
  26557. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  26558.   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  26559. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26560. fi
  26561. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  26562.   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  26563. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26564. fi
  26565. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  26566.   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  26567. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26568. fi
  26569. if test -z "${GEN_ASM_OFFSETS_TRUE}" && test -z "${GEN_ASM_OFFSETS_FALSE}"; then
  26570.   as_fn_error $? "conditional \"GEN_ASM_OFFSETS\" was never defined.
  26571. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26572. fi
  26573. if test -z "${SSE41_SUPPORTED_TRUE}" && test -z "${SSE41_SUPPORTED_FALSE}"; then
  26574.   as_fn_error $? "conditional \"SSE41_SUPPORTED\" was never defined.
  26575. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26576. fi
  26577. if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
  26578.   as_fn_error $? "conditional \"BUILD_SHARED\" was never defined.
  26579. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26580. fi
  26581. if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
  26582.   as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
  26583. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26584. fi
  26585. if test -z "${HAVE_LD_DYNAMIC_LIST_TRUE}" && test -z "${HAVE_LD_DYNAMIC_LIST_FALSE}"; then
  26586.   as_fn_error $? "conditional \"HAVE_LD_DYNAMIC_LIST\" was never defined.
  26587. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26588. fi
  26589. if test -z "${HAVE_COMPAT_SYMLINKS_TRUE}" && test -z "${HAVE_COMPAT_SYMLINKS_FALSE}"; then
  26590.   as_fn_error $? "conditional \"HAVE_COMPAT_SYMLINKS\" was never defined.
  26591. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26592. fi
  26593. if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
  26594.   as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined.
  26595. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26596. fi
  26597. if test -z "${HAVE_OPENGL_ES1_TRUE}" && test -z "${HAVE_OPENGL_ES1_FALSE}"; then
  26598.   as_fn_error $? "conditional \"HAVE_OPENGL_ES1\" was never defined.
  26599. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26600. fi
  26601. if test -z "${HAVE_OPENGL_ES2_TRUE}" && test -z "${HAVE_OPENGL_ES2_FALSE}"; then
  26602.   as_fn_error $? "conditional \"HAVE_OPENGL_ES2\" was never defined.
  26603. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26604. fi
  26605. if test -z "${NEED_OPENGL_COMMON_TRUE}" && test -z "${NEED_OPENGL_COMMON_FALSE}"; then
  26606.   as_fn_error $? "conditional \"NEED_OPENGL_COMMON\" was never defined.
  26607. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26608. fi
  26609. if test -z "${HAVE_DRI_GLX_TRUE}" && test -z "${HAVE_DRI_GLX_FALSE}"; then
  26610.   as_fn_error $? "conditional \"HAVE_DRI_GLX\" was never defined.
  26611. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26612. fi
  26613. if test -z "${HAVE_DRICOMMON_TRUE}" && test -z "${HAVE_DRICOMMON_FALSE}"; then
  26614.   as_fn_error $? "conditional \"HAVE_DRICOMMON\" was never defined.
  26615. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26616. fi
  26617. if test -z "${HAVE_DRISW_TRUE}" && test -z "${HAVE_DRISW_FALSE}"; then
  26618.   as_fn_error $? "conditional \"HAVE_DRISW\" was never defined.
  26619. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26620. fi
  26621. if test -z "${HAVE_DRI2_TRUE}" && test -z "${HAVE_DRI2_FALSE}"; then
  26622.   as_fn_error $? "conditional \"HAVE_DRI2\" was never defined.
  26623. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26624. fi
  26625. if test -z "${HAVE_DRI3_TRUE}" && test -z "${HAVE_DRI3_FALSE}"; then
  26626.   as_fn_error $? "conditional \"HAVE_DRI3\" was never defined.
  26627. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26628. fi
  26629. if test -z "${HAVE_APPLEDRI_TRUE}" && test -z "${HAVE_APPLEDRI_FALSE}"; then
  26630.   as_fn_error $? "conditional \"HAVE_APPLEDRI\" was never defined.
  26631. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26632. fi
  26633. if test -z "${HAVE_SHARED_GLAPI_TRUE}" && test -z "${HAVE_SHARED_GLAPI_FALSE}"; then
  26634.   as_fn_error $? "conditional \"HAVE_SHARED_GLAPI\" was never defined.
  26635. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26636. fi
  26637. if test -z "${ENABLE_SHADER_CACHE_TRUE}" && test -z "${ENABLE_SHADER_CACHE_FALSE}"; then
  26638.   as_fn_error $? "conditional \"ENABLE_SHADER_CACHE\" was never defined.
  26639. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26640. fi
  26641. if test -z "${HAVE_XF86VIDMODE_TRUE}" && test -z "${HAVE_XF86VIDMODE_FALSE}"; then
  26642.   as_fn_error $? "conditional \"HAVE_XF86VIDMODE\" was never defined.
  26643. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26644. fi
  26645. if test -z "${NEED_MEGADRIVER_TRUE}" && test -z "${NEED_MEGADRIVER_FALSE}"; then
  26646.   as_fn_error $? "conditional \"NEED_MEGADRIVER\" was never defined.
  26647. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26648. fi
  26649. if test -z "${NEED_LIBMESA_TRUE}" && test -z "${NEED_LIBMESA_FALSE}"; then
  26650.   as_fn_error $? "conditional \"NEED_LIBMESA\" was never defined.
  26651. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26652. fi
  26653. if test -z "${HAVE_GBM_TRUE}" && test -z "${HAVE_GBM_FALSE}"; then
  26654.   as_fn_error $? "conditional \"HAVE_GBM\" was never defined.
  26655. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26656. fi
  26657. if test -z "${HAVE_EGL_TRUE}" && test -z "${HAVE_EGL_FALSE}"; then
  26658.   as_fn_error $? "conditional \"HAVE_EGL\" was never defined.
  26659. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26660. fi
  26661. if test -z "${HAVE_ST_XA_TRUE}" && test -z "${HAVE_ST_XA_FALSE}"; then
  26662.   as_fn_error $? "conditional \"HAVE_ST_XA\" was never defined.
  26663. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26664. fi
  26665. if test -z "${NEED_GALLIUM_VL_TRUE}" && test -z "${NEED_GALLIUM_VL_FALSE}"; then
  26666.   as_fn_error $? "conditional \"NEED_GALLIUM_VL\" was never defined.
  26667. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26668. fi
  26669. if test -z "${NEED_GALLIUM_VL_WINSYS_TRUE}" && test -z "${NEED_GALLIUM_VL_WINSYS_FALSE}"; then
  26670.   as_fn_error $? "conditional \"NEED_GALLIUM_VL_WINSYS\" was never defined.
  26671. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26672. fi
  26673. if test -z "${HAVE_ST_XVMC_TRUE}" && test -z "${HAVE_ST_XVMC_FALSE}"; then
  26674.   as_fn_error $? "conditional \"HAVE_ST_XVMC\" was never defined.
  26675. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26676. fi
  26677. if test -z "${HAVE_ST_VDPAU_TRUE}" && test -z "${HAVE_ST_VDPAU_FALSE}"; then
  26678.   as_fn_error $? "conditional \"HAVE_ST_VDPAU\" was never defined.
  26679. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26680. fi
  26681. if test -z "${HAVE_ST_OMX_TRUE}" && test -z "${HAVE_ST_OMX_FALSE}"; then
  26682.   as_fn_error $? "conditional \"HAVE_ST_OMX\" was never defined.
  26683. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26684. fi
  26685. if test -z "${HAVE_ST_VA_TRUE}" && test -z "${HAVE_ST_VA_FALSE}"; then
  26686.   as_fn_error $? "conditional \"HAVE_ST_VA\" was never defined.
  26687. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26688. fi
  26689. if test -z "${HAVE_ST_NINE_TRUE}" && test -z "${HAVE_ST_NINE_FALSE}"; then
  26690.   as_fn_error $? "conditional \"HAVE_ST_NINE\" was never defined.
  26691. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26692. fi
  26693. if test -z "${HAVE_CLOVER_TRUE}" && test -z "${HAVE_CLOVER_FALSE}"; then
  26694.   as_fn_error $? "conditional \"HAVE_CLOVER\" was never defined.
  26695. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26696. fi
  26697. if test -z "${HAVE_CLOVER_ICD_TRUE}" && test -z "${HAVE_CLOVER_ICD_FALSE}"; then
  26698.   as_fn_error $? "conditional \"HAVE_CLOVER_ICD\" was never defined.
  26699. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26700. fi
  26701. if test -z "${HAVE_GALLIUM_TRUE}" && test -z "${HAVE_GALLIUM_FALSE}"; then
  26702.   as_fn_error $? "conditional \"HAVE_GALLIUM\" was never defined.
  26703. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26704. fi
  26705. if test -z "${HAVE_EGL_PLATFORM_X11_TRUE}" && test -z "${HAVE_EGL_PLATFORM_X11_FALSE}"; then
  26706.   as_fn_error $? "conditional \"HAVE_EGL_PLATFORM_X11\" was never defined.
  26707. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26708. fi
  26709. if test -z "${HAVE_EGL_PLATFORM_WAYLAND_TRUE}" && test -z "${HAVE_EGL_PLATFORM_WAYLAND_FALSE}"; then
  26710.   as_fn_error $? "conditional \"HAVE_EGL_PLATFORM_WAYLAND\" was never defined.
  26711. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26712. fi
  26713. if test -z "${HAVE_EGL_PLATFORM_DRM_TRUE}" && test -z "${HAVE_EGL_PLATFORM_DRM_FALSE}"; then
  26714.   as_fn_error $? "conditional \"HAVE_EGL_PLATFORM_DRM\" was never defined.
  26715. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26716. fi
  26717. if test -z "${HAVE_EGL_PLATFORM_NULL_TRUE}" && test -z "${HAVE_EGL_PLATFORM_NULL_FALSE}"; then
  26718.   as_fn_error $? "conditional \"HAVE_EGL_PLATFORM_NULL\" was never defined.
  26719. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26720. fi
  26721. if test -z "${HAVE_EGL_DRIVER_DRI2_TRUE}" && test -z "${HAVE_EGL_DRIVER_DRI2_FALSE}"; then
  26722.   as_fn_error $? "conditional \"HAVE_EGL_DRIVER_DRI2\" was never defined.
  26723. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26724. fi
  26725. if test -z "${HAVE_GALLIUM_TESTS_TRUE}" && test -z "${HAVE_GALLIUM_TESTS_FALSE}"; then
  26726.   as_fn_error $? "conditional \"HAVE_GALLIUM_TESTS\" was never defined.
  26727. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26728. fi
  26729. if test -z "${HAVE_GALLIUM_SVGA_TRUE}" && test -z "${HAVE_GALLIUM_SVGA_FALSE}"; then
  26730.   as_fn_error $? "conditional \"HAVE_GALLIUM_SVGA\" was never defined.
  26731. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26732. fi
  26733. if test -z "${HAVE_GALLIUM_I915_TRUE}" && test -z "${HAVE_GALLIUM_I915_FALSE}"; then
  26734.   as_fn_error $? "conditional \"HAVE_GALLIUM_I915\" was never defined.
  26735. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26736. fi
  26737. if test -z "${HAVE_GALLIUM_ILO_TRUE}" && test -z "${HAVE_GALLIUM_ILO_FALSE}"; then
  26738.   as_fn_error $? "conditional \"HAVE_GALLIUM_ILO\" was never defined.
  26739. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26740. fi
  26741. if test -z "${HAVE_GALLIUM_R300_TRUE}" && test -z "${HAVE_GALLIUM_R300_FALSE}"; then
  26742.   as_fn_error $? "conditional \"HAVE_GALLIUM_R300\" was never defined.
  26743. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26744. fi
  26745. if test -z "${HAVE_GALLIUM_R600_TRUE}" && test -z "${HAVE_GALLIUM_R600_FALSE}"; then
  26746.   as_fn_error $? "conditional \"HAVE_GALLIUM_R600\" was never defined.
  26747. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26748. fi
  26749. if test -z "${HAVE_GALLIUM_RADEONSI_TRUE}" && test -z "${HAVE_GALLIUM_RADEONSI_FALSE}"; then
  26750.   as_fn_error $? "conditional \"HAVE_GALLIUM_RADEONSI\" was never defined.
  26751. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26752. fi
  26753. if test -z "${HAVE_GALLIUM_RADEON_COMMON_TRUE}" && test -z "${HAVE_GALLIUM_RADEON_COMMON_FALSE}"; then
  26754.   as_fn_error $? "conditional \"HAVE_GALLIUM_RADEON_COMMON\" was never defined.
  26755. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26756. fi
  26757. if test -z "${HAVE_GALLIUM_NOUVEAU_TRUE}" && test -z "${HAVE_GALLIUM_NOUVEAU_FALSE}"; then
  26758.   as_fn_error $? "conditional \"HAVE_GALLIUM_NOUVEAU\" was never defined.
  26759. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26760. fi
  26761. if test -z "${HAVE_GALLIUM_FREEDRENO_TRUE}" && test -z "${HAVE_GALLIUM_FREEDRENO_FALSE}"; then
  26762.   as_fn_error $? "conditional \"HAVE_GALLIUM_FREEDRENO\" was never defined.
  26763. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26764. fi
  26765. if test -z "${HAVE_GALLIUM_SOFTPIPE_TRUE}" && test -z "${HAVE_GALLIUM_SOFTPIPE_FALSE}"; then
  26766.   as_fn_error $? "conditional \"HAVE_GALLIUM_SOFTPIPE\" was never defined.
  26767. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26768. fi
  26769. if test -z "${HAVE_GALLIUM_LLVMPIPE_TRUE}" && test -z "${HAVE_GALLIUM_LLVMPIPE_FALSE}"; then
  26770.   as_fn_error $? "conditional \"HAVE_GALLIUM_LLVMPIPE\" was never defined.
  26771. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26772. fi
  26773. if test -z "${HAVE_GALLIUM_VC4_TRUE}" && test -z "${HAVE_GALLIUM_VC4_FALSE}"; then
  26774.   as_fn_error $? "conditional \"HAVE_GALLIUM_VC4\" was never defined.
  26775. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26776. fi
  26777. if test -z "${HAVE_GALLIUM_STATIC_TARGETS_TRUE}" && test -z "${HAVE_GALLIUM_STATIC_TARGETS_FALSE}"; then
  26778.   as_fn_error $? "conditional \"HAVE_GALLIUM_STATIC_TARGETS\" was never defined.
  26779. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26780. fi
  26781. if test -z "${HAVE_I915_DRI_TRUE}" && test -z "${HAVE_I915_DRI_FALSE}"; then
  26782.   as_fn_error $? "conditional \"HAVE_I915_DRI\" was never defined.
  26783. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26784. fi
  26785. if test -z "${HAVE_I965_DRI_TRUE}" && test -z "${HAVE_I965_DRI_FALSE}"; then
  26786.   as_fn_error $? "conditional \"HAVE_I965_DRI\" was never defined.
  26787. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26788. fi
  26789. if test -z "${HAVE_NOUVEAU_DRI_TRUE}" && test -z "${HAVE_NOUVEAU_DRI_FALSE}"; then
  26790.   as_fn_error $? "conditional \"HAVE_NOUVEAU_DRI\" was never defined.
  26791. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26792. fi
  26793. if test -z "${HAVE_R200_DRI_TRUE}" && test -z "${HAVE_R200_DRI_FALSE}"; then
  26794.   as_fn_error $? "conditional \"HAVE_R200_DRI\" was never defined.
  26795. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26796. fi
  26797. if test -z "${HAVE_RADEON_DRI_TRUE}" && test -z "${HAVE_RADEON_DRI_FALSE}"; then
  26798.   as_fn_error $? "conditional \"HAVE_RADEON_DRI\" was never defined.
  26799. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26800. fi
  26801. if test -z "${HAVE_SWRAST_DRI_TRUE}" && test -z "${HAVE_SWRAST_DRI_FALSE}"; then
  26802.   as_fn_error $? "conditional \"HAVE_SWRAST_DRI\" was never defined.
  26803. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26804. fi
  26805. if test -z "${NEED_RADEON_DRM_WINSYS_TRUE}" && test -z "${NEED_RADEON_DRM_WINSYS_FALSE}"; then
  26806.   as_fn_error $? "conditional \"NEED_RADEON_DRM_WINSYS\" was never defined.
  26807. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26808. fi
  26809. if test -z "${NEED_WINSYS_XLIB_TRUE}" && test -z "${NEED_WINSYS_XLIB_FALSE}"; then
  26810.   as_fn_error $? "conditional \"NEED_WINSYS_XLIB\" was never defined.
  26811. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26812. fi
  26813. if test -z "${NEED_RADEON_LLVM_TRUE}" && test -z "${NEED_RADEON_LLVM_FALSE}"; then
  26814.   as_fn_error $? "conditional \"NEED_RADEON_LLVM\" was never defined.
  26815. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26816. fi
  26817. if test -z "${USE_R600_LLVM_COMPILER_TRUE}" && test -z "${USE_R600_LLVM_COMPILER_FALSE}"; then
  26818.   as_fn_error $? "conditional \"USE_R600_LLVM_COMPILER\" was never defined.
  26819. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26820. fi
  26821. if test -z "${HAVE_LOADER_GALLIUM_TRUE}" && test -z "${HAVE_LOADER_GALLIUM_FALSE}"; then
  26822.   as_fn_error $? "conditional \"HAVE_LOADER_GALLIUM\" was never defined.
  26823. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26824. fi
  26825. if test -z "${HAVE_DRM_LOADER_GALLIUM_TRUE}" && test -z "${HAVE_DRM_LOADER_GALLIUM_FALSE}"; then
  26826.   as_fn_error $? "conditional \"HAVE_DRM_LOADER_GALLIUM\" was never defined.
  26827. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26828. fi
  26829. if test -z "${HAVE_GALLIUM_COMPUTE_TRUE}" && test -z "${HAVE_GALLIUM_COMPUTE_FALSE}"; then
  26830.   as_fn_error $? "conditional \"HAVE_GALLIUM_COMPUTE\" was never defined.
  26831. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26832. fi
  26833. if test -z "${HAVE_MESA_LLVM_TRUE}" && test -z "${HAVE_MESA_LLVM_FALSE}"; then
  26834.   as_fn_error $? "conditional \"HAVE_MESA_LLVM\" was never defined.
  26835. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26836. fi
  26837. if test -z "${USE_VC4_SIMULATOR_TRUE}" && test -z "${USE_VC4_SIMULATOR_FALSE}"; then
  26838.   as_fn_error $? "conditional \"USE_VC4_SIMULATOR\" was never defined.
  26839. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26840. fi
  26841. if test -z "${DRICOMMON_NEED_LIBDRM_TRUE}" && test -z "${DRICOMMON_NEED_LIBDRM_FALSE}"; then
  26842.   as_fn_error $? "conditional \"DRICOMMON_NEED_LIBDRM\" was never defined.
  26843. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26844. fi
  26845. if test -z "${HAVE_LIBDRM_TRUE}" && test -z "${HAVE_LIBDRM_FALSE}"; then
  26846.   as_fn_error $? "conditional \"HAVE_LIBDRM\" was never defined.
  26847. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26848. fi
  26849. if test -z "${HAVE_X11_DRIVER_TRUE}" && test -z "${HAVE_X11_DRIVER_FALSE}"; then
  26850.   as_fn_error $? "conditional \"HAVE_X11_DRIVER\" was never defined.
  26851. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26852. fi
  26853. if test -z "${HAVE_OSMESA_TRUE}" && test -z "${HAVE_OSMESA_FALSE}"; then
  26854.   as_fn_error $? "conditional \"HAVE_OSMESA\" was never defined.
  26855. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26856. fi
  26857. if test -z "${HAVE_GALLIUM_OSMESA_TRUE}" && test -z "${HAVE_GALLIUM_OSMESA_FALSE}"; then
  26858.   as_fn_error $? "conditional \"HAVE_GALLIUM_OSMESA\" was never defined.
  26859. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26860. fi
  26861. if test -z "${HAVE_X86_ASM_TRUE}" && test -z "${HAVE_X86_ASM_FALSE}"; then
  26862.   as_fn_error $? "conditional \"HAVE_X86_ASM\" was never defined.
  26863. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26864. fi
  26865. if test -z "${HAVE_X86_64_ASM_TRUE}" && test -z "${HAVE_X86_64_ASM_FALSE}"; then
  26866.   as_fn_error $? "conditional \"HAVE_X86_64_ASM\" was never defined.
  26867. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26868. fi
  26869. if test -z "${HAVE_SPARC_ASM_TRUE}" && test -z "${HAVE_SPARC_ASM_FALSE}"; then
  26870.   as_fn_error $? "conditional \"HAVE_SPARC_ASM\" was never defined.
  26871. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  26872. fi
  26873.  
  26874. : "${CONFIG_STATUS=./config.status}"
  26875. ac_write_fail=0
  26876. ac_clean_files_save=$ac_clean_files
  26877. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  26878. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  26879. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  26880. as_write_fail=0
  26881. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  26882. #! $SHELL
  26883. # Generated by $as_me.
  26884. # Run this file to recreate the current configuration.
  26885. # Compiler output produced by configure, useful for debugging
  26886. # configure, is in config.log if it exists.
  26887.  
  26888. debug=false
  26889. ac_cs_recheck=false
  26890. ac_cs_silent=false
  26891.  
  26892. SHELL=\${CONFIG_SHELL-$SHELL}
  26893. export SHELL
  26894. _ASEOF
  26895. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  26896. ## -------------------- ##
  26897. ## M4sh Initialization. ##
  26898. ## -------------------- ##
  26899.  
  26900. # Be more Bourne compatible
  26901. DUALCASE=1; export DUALCASE # for MKS sh
  26902. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26903.   emulate sh
  26904.   NULLCMD=:
  26905.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  26906.   # is contrary to our usage.  Disable this feature.
  26907.   alias -g '${1+"$@"}'='"$@"'
  26908.   setopt NO_GLOB_SUBST
  26909. else
  26910.   case `(set -o) 2>/dev/null` in #(
  26911.   *posix*) :
  26912.     set -o posix ;; #(
  26913.   *) :
  26914.      ;;
  26915. esac
  26916. fi
  26917.  
  26918.  
  26919. as_nl='
  26920. '
  26921. export as_nl
  26922. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  26923. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  26924. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  26925. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  26926. # Prefer a ksh shell builtin over an external printf program on Solaris,
  26927. # but without wasting forks for bash or zsh.
  26928. if test -z "$BASH_VERSION$ZSH_VERSION" \
  26929.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  26930.   as_echo='print -r --'
  26931.   as_echo_n='print -rn --'
  26932. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  26933.   as_echo='printf %s\n'
  26934.   as_echo_n='printf %s'
  26935. else
  26936.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  26937.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  26938.     as_echo_n='/usr/ucb/echo -n'
  26939.   else
  26940.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  26941.     as_echo_n_body='eval
  26942.       arg=$1;
  26943.       case $arg in #(
  26944.       *"$as_nl"*)
  26945.         expr "X$arg" : "X\\(.*\\)$as_nl";
  26946.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  26947.       esac;
  26948.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  26949.     '
  26950.     export as_echo_n_body
  26951.     as_echo_n='sh -c $as_echo_n_body as_echo'
  26952.   fi
  26953.   export as_echo_body
  26954.   as_echo='sh -c $as_echo_body as_echo'
  26955. fi
  26956.  
  26957. # The user is always right.
  26958. if test "${PATH_SEPARATOR+set}" != set; then
  26959.   PATH_SEPARATOR=:
  26960.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  26961.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  26962.       PATH_SEPARATOR=';'
  26963.   }
  26964. fi
  26965.  
  26966.  
  26967. # IFS
  26968. # We need space, tab and new line, in precisely that order.  Quoting is
  26969. # there to prevent editors from complaining about space-tab.
  26970. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  26971. # splitting by setting IFS to empty value.)
  26972. IFS=" ""        $as_nl"
  26973.  
  26974. # Find who we are.  Look in the path if we contain no directory separator.
  26975. as_myself=
  26976. case $0 in #((
  26977.   *[\\/]* ) as_myself=$0 ;;
  26978.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26979. for as_dir in $PATH
  26980. do
  26981.   IFS=$as_save_IFS
  26982.   test -z "$as_dir" && as_dir=.
  26983.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  26984.   done
  26985. IFS=$as_save_IFS
  26986.  
  26987.      ;;
  26988. esac
  26989. # We did not find ourselves, most probably we were run as `sh COMMAND'
  26990. # in which case we are not to be found in the path.
  26991. if test "x$as_myself" = x; then
  26992.   as_myself=$0
  26993. fi
  26994. if test ! -f "$as_myself"; then
  26995.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  26996.   exit 1
  26997. fi
  26998.  
  26999. # Unset variables that we do not need and which cause bugs (e.g. in
  27000. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  27001. # suppresses any "Segmentation fault" message there.  '((' could
  27002. # trigger a bug in pdksh 5.2.14.
  27003. for as_var in BASH_ENV ENV MAIL MAILPATH
  27004. do eval test x\${$as_var+set} = xset \
  27005.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  27006. done
  27007. PS1='$ '
  27008. PS2='> '
  27009. PS4='+ '
  27010.  
  27011. # NLS nuisances.
  27012. LC_ALL=C
  27013. export LC_ALL
  27014. LANGUAGE=C
  27015. export LANGUAGE
  27016.  
  27017. # CDPATH.
  27018. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  27019.  
  27020.  
  27021. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  27022. # ----------------------------------------
  27023. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  27024. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  27025. # script with STATUS, using 1 if that was 0.
  27026. as_fn_error ()
  27027. {
  27028.   as_status=$1; test $as_status -eq 0 && as_status=1
  27029.   if test "$4"; then
  27030.     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  27031.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  27032.   fi
  27033.   $as_echo "$as_me: error: $2" >&2
  27034.   as_fn_exit $as_status
  27035. } # as_fn_error
  27036.  
  27037.  
  27038. # as_fn_set_status STATUS
  27039. # -----------------------
  27040. # Set $? to STATUS, without forking.
  27041. as_fn_set_status ()
  27042. {
  27043.   return $1
  27044. } # as_fn_set_status
  27045.  
  27046. # as_fn_exit STATUS
  27047. # -----------------
  27048. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  27049. as_fn_exit ()
  27050. {
  27051.   set +e
  27052.   as_fn_set_status $1
  27053.   exit $1
  27054. } # as_fn_exit
  27055.  
  27056. # as_fn_unset VAR
  27057. # ---------------
  27058. # Portably unset VAR.
  27059. as_fn_unset ()
  27060. {
  27061.   { eval $1=; unset $1;}
  27062. }
  27063. as_unset=as_fn_unset
  27064. # as_fn_append VAR VALUE
  27065. # ----------------------
  27066. # Append the text in VALUE to the end of the definition contained in VAR. Take
  27067. # advantage of any shell optimizations that allow amortized linear growth over
  27068. # repeated appends, instead of the typical quadratic growth present in naive
  27069. # implementations.
  27070. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  27071.   eval 'as_fn_append ()
  27072.   {
  27073.     eval $1+=\$2
  27074.   }'
  27075. else
  27076.   as_fn_append ()
  27077.   {
  27078.     eval $1=\$$1\$2
  27079.   }
  27080. fi # as_fn_append
  27081.  
  27082. # as_fn_arith ARG...
  27083. # ------------------
  27084. # Perform arithmetic evaluation on the ARGs, and store the result in the
  27085. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  27086. # must be portable across $(()) and expr.
  27087. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  27088.   eval 'as_fn_arith ()
  27089.   {
  27090.     as_val=$(( $* ))
  27091.   }'
  27092. else
  27093.   as_fn_arith ()
  27094.   {
  27095.     as_val=`expr "$@" || test $? -eq 1`
  27096.   }
  27097. fi # as_fn_arith
  27098.  
  27099.  
  27100. if expr a : '\(a\)' >/dev/null 2>&1 &&
  27101.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  27102.   as_expr=expr
  27103. else
  27104.   as_expr=false
  27105. fi
  27106.  
  27107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  27108.   as_basename=basename
  27109. else
  27110.   as_basename=false
  27111. fi
  27112.  
  27113. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  27114.   as_dirname=dirname
  27115. else
  27116.   as_dirname=false
  27117. fi
  27118.  
  27119. as_me=`$as_basename -- "$0" ||
  27120. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  27121.          X"$0" : 'X\(//\)$' \| \
  27122.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  27123. $as_echo X/"$0" |
  27124.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  27125.             s//\1/
  27126.             q
  27127.           }
  27128.           /^X\/\(\/\/\)$/{
  27129.             s//\1/
  27130.             q
  27131.           }
  27132.           /^X\/\(\/\).*/{
  27133.             s//\1/
  27134.             q
  27135.           }
  27136.           s/.*/./; q'`
  27137.  
  27138. # Avoid depending upon Character Ranges.
  27139. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  27140. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  27141. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  27142. as_cr_digits='0123456789'
  27143. as_cr_alnum=$as_cr_Letters$as_cr_digits
  27144.  
  27145. ECHO_C= ECHO_N= ECHO_T=
  27146. case `echo -n x` in #(((((
  27147. -n*)
  27148.   case `echo 'xy\c'` in
  27149.   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
  27150.   xy)  ECHO_C='\c';;
  27151.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  27152.        ECHO_T=' ';;
  27153.   esac;;
  27154. *)
  27155.   ECHO_N='-n';;
  27156. esac
  27157.  
  27158. rm -f conf$$ conf$$.exe conf$$.file
  27159. if test -d conf$$.dir; then
  27160.   rm -f conf$$.dir/conf$$.file
  27161. else
  27162.   rm -f conf$$.dir
  27163.   mkdir conf$$.dir 2>/dev/null
  27164. fi
  27165. if (echo >conf$$.file) 2>/dev/null; then
  27166.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  27167.     as_ln_s='ln -s'
  27168.     # ... but there are two gotchas:
  27169.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  27170.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  27171.     # In both cases, we have to default to `cp -pR'.
  27172.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  27173.       as_ln_s='cp -pR'
  27174.   elif ln conf$$.file conf$$ 2>/dev/null; then
  27175.     as_ln_s=ln
  27176.   else
  27177.     as_ln_s='cp -pR'
  27178.   fi
  27179. else
  27180.   as_ln_s='cp -pR'
  27181. fi
  27182. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  27183. rmdir conf$$.dir 2>/dev/null
  27184.  
  27185.  
  27186. # as_fn_mkdir_p
  27187. # -------------
  27188. # Create "$as_dir" as a directory, including parents if necessary.
  27189. as_fn_mkdir_p ()
  27190. {
  27191.  
  27192.   case $as_dir in #(
  27193.   -*) as_dir=./$as_dir;;
  27194.   esac
  27195.   test -d "$as_dir" || eval $as_mkdir_p || {
  27196.     as_dirs=
  27197.     while :; do
  27198.       case $as_dir in #(
  27199.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  27200.       *) as_qdir=$as_dir;;
  27201.       esac
  27202.       as_dirs="'$as_qdir' $as_dirs"
  27203.       as_dir=`$as_dirname -- "$as_dir" ||
  27204. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27205.          X"$as_dir" : 'X\(//\)[^/]' \| \
  27206.          X"$as_dir" : 'X\(//\)$' \| \
  27207.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  27208. $as_echo X"$as_dir" |
  27209.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27210.             s//\1/
  27211.             q
  27212.           }
  27213.           /^X\(\/\/\)[^/].*/{
  27214.             s//\1/
  27215.             q
  27216.           }
  27217.           /^X\(\/\/\)$/{
  27218.             s//\1/
  27219.             q
  27220.           }
  27221.           /^X\(\/\).*/{
  27222.             s//\1/
  27223.             q
  27224.           }
  27225.           s/.*/./; q'`
  27226.       test -d "$as_dir" && break
  27227.     done
  27228.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  27229.   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  27230.  
  27231.  
  27232. } # as_fn_mkdir_p
  27233. if mkdir -p . 2>/dev/null; then
  27234.   as_mkdir_p='mkdir -p "$as_dir"'
  27235. else
  27236.   test -d ./-p && rmdir ./-p
  27237.   as_mkdir_p=false
  27238. fi
  27239.  
  27240.  
  27241. # as_fn_executable_p FILE
  27242. # -----------------------
  27243. # Test if FILE is an executable regular file.
  27244. as_fn_executable_p ()
  27245. {
  27246.   test -f "$1" && test -x "$1"
  27247. } # as_fn_executable_p
  27248. as_test_x='test -x'
  27249. as_executable_p=as_fn_executable_p
  27250.  
  27251. # Sed expression to map a string onto a valid CPP name.
  27252. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  27253.  
  27254. # Sed expression to map a string onto a valid variable name.
  27255. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  27256.  
  27257.  
  27258. exec 6>&1
  27259. ## ----------------------------------- ##
  27260. ## Main body of $CONFIG_STATUS script. ##
  27261. ## ----------------------------------- ##
  27262. _ASEOF
  27263. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  27264.  
  27265. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27266. # Save the log message, to keep $0 and so on meaningful, and to
  27267. # report actual input values of CONFIG_FILES etc. instead of their
  27268. # values after options handling.
  27269. ac_log="
  27270. This file was extended by Mesa $as_me 10.6.0-rc2, which was
  27271. generated by GNU Autoconf 2.69.  Invocation command line was
  27272.  
  27273.   CONFIG_FILES    = $CONFIG_FILES
  27274.   CONFIG_HEADERS  = $CONFIG_HEADERS
  27275.   CONFIG_LINKS    = $CONFIG_LINKS
  27276.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  27277.   $ $0 $@
  27278.  
  27279. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  27280. "
  27281.  
  27282. _ACEOF
  27283.  
  27284. case $ac_config_files in *"
  27285. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  27286. esac
  27287.  
  27288.  
  27289.  
  27290. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27291. # Files that config.status was made for.
  27292. config_files="$ac_config_files"
  27293. config_commands="$ac_config_commands"
  27294.  
  27295. _ACEOF
  27296.  
  27297. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27298. ac_cs_usage="\
  27299. \`$as_me' instantiates files and other configuration actions
  27300. from templates according to the current configuration.  Unless the files
  27301. and actions are specified as TAGs, all are instantiated by default.
  27302.  
  27303. Usage: $0 [OPTION]... [TAG]...
  27304.  
  27305.   -h, --help       print this help, then exit
  27306.   -V, --version    print version number and configuration settings, then exit
  27307.       --config     print configuration, then exit
  27308.   -q, --quiet, --silent
  27309.                    do not print progress messages
  27310.   -d, --debug      don't remove temporary files
  27311.       --recheck    update $as_me by reconfiguring in the same conditions
  27312.       --file=FILE[:TEMPLATE]
  27313.                    instantiate the configuration file FILE
  27314.  
  27315. Configuration files:
  27316. $config_files
  27317.  
  27318. Configuration commands:
  27319. $config_commands
  27320.  
  27321. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa>."
  27322.  
  27323. _ACEOF
  27324. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27325. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  27326. ac_cs_version="\\
  27327. Mesa config.status 10.6.0-rc2
  27328. configured by $0, generated by GNU Autoconf 2.69,
  27329.   with options \\"\$ac_cs_config\\"
  27330.  
  27331. Copyright (C) 2012 Free Software Foundation, Inc.
  27332. This config.status script is free software; the Free Software Foundation
  27333. gives unlimited permission to copy, distribute and modify it."
  27334.  
  27335. ac_pwd='$ac_pwd'
  27336. srcdir='$srcdir'
  27337. INSTALL='$INSTALL'
  27338. MKDIR_P='$MKDIR_P'
  27339. AWK='$AWK'
  27340. test -n "\$AWK" || AWK=awk
  27341. _ACEOF
  27342.  
  27343. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27344. # The default lists apply if the user does not specify any file.
  27345. ac_need_defaults=:
  27346. while test $# != 0
  27347. do
  27348.   case $1 in
  27349.   --*=?*)
  27350.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  27351.     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  27352.     ac_shift=:
  27353.     ;;
  27354.   --*=)
  27355.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  27356.     ac_optarg=
  27357.     ac_shift=:
  27358.     ;;
  27359.   *)
  27360.     ac_option=$1
  27361.     ac_optarg=$2
  27362.     ac_shift=shift
  27363.     ;;
  27364.   esac
  27365.  
  27366.   case $ac_option in
  27367.   # Handling of the options.
  27368.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  27369.     ac_cs_recheck=: ;;
  27370.   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  27371.     $as_echo "$ac_cs_version"; exit ;;
  27372.   --config | --confi | --conf | --con | --co | --c )
  27373.     $as_echo "$ac_cs_config"; exit ;;
  27374.   --debug | --debu | --deb | --de | --d | -d )
  27375.     debug=: ;;
  27376.   --file | --fil | --fi | --f )
  27377.     $ac_shift
  27378.     case $ac_optarg in
  27379.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  27380.     '') as_fn_error $? "missing file argument" ;;
  27381.     esac
  27382.     as_fn_append CONFIG_FILES " '$ac_optarg'"
  27383.     ac_need_defaults=false;;
  27384.   --he | --h |  --help | --hel | -h )
  27385.     $as_echo "$ac_cs_usage"; exit ;;
  27386.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  27387.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  27388.     ac_cs_silent=: ;;
  27389.  
  27390.   # This is an error.
  27391.   -*) as_fn_error $? "unrecognized option: \`$1'
  27392. Try \`$0 --help' for more information." ;;
  27393.  
  27394.   *) as_fn_append ac_config_targets " $1"
  27395.      ac_need_defaults=false ;;
  27396.  
  27397.   esac
  27398.   shift
  27399. done
  27400.  
  27401. ac_configure_extra_args=
  27402.  
  27403. if $ac_cs_silent; then
  27404.   exec 6>/dev/null
  27405.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  27406. fi
  27407.  
  27408. _ACEOF
  27409. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27410. if \$ac_cs_recheck; then
  27411.   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  27412.   shift
  27413.   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  27414.   CONFIG_SHELL='$SHELL'
  27415.   export CONFIG_SHELL
  27416.   exec "\$@"
  27417. fi
  27418.  
  27419. _ACEOF
  27420. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27421. exec 5>>config.log
  27422. {
  27423.   echo
  27424.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  27425. ## Running $as_me. ##
  27426. _ASBOX
  27427.   $as_echo "$ac_log"
  27428. } >&5
  27429.  
  27430. _ACEOF
  27431. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  27432. #
  27433. # INIT-COMMANDS
  27434. #
  27435. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  27436.  
  27437.  
  27438. # The HP-UX ksh and POSIX shell print the target directory to stdout
  27439. # if CDPATH is set.
  27440. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  27441.  
  27442. sed_quote_subst='$sed_quote_subst'
  27443. double_quote_subst='$double_quote_subst'
  27444. delay_variable_subst='$delay_variable_subst'
  27445. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  27446. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  27447. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  27448. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  27449. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  27450. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  27451. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  27452. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  27453. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  27454. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  27455. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  27456. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  27457. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  27458. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  27459. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  27460. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  27461. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  27462. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  27463. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  27464. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  27465. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  27466. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  27467. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  27468. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  27469. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  27470. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  27471. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  27472. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  27473. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  27474. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  27475. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  27476. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  27477. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  27478. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  27479. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  27480. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  27481. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  27482. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  27483. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  27484. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  27485. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  27486. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  27487. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  27488. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  27489. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  27490. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  27491. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  27492. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  27493. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  27494. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  27495. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  27496. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  27497. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  27498. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  27499. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  27500. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  27501. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  27502. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  27503. 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"`'
  27504. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  27505. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  27506. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  27507. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  27508. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  27509. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  27510. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  27511. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  27512. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  27513. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  27514. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  27515. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  27516. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  27517. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  27518. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  27519. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  27520. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  27521. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  27522. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  27523. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  27524. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  27525. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  27526. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  27527. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  27528. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  27529. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  27530. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  27531. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  27532. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  27533. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  27534. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  27535. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  27536. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  27537. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  27538. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  27539. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  27540. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  27541. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  27542. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  27543. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  27544. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  27545. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  27546. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  27547. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  27548. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  27549. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  27550. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  27551. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  27552. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  27553. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  27554. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  27555. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  27556. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  27557. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  27558. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  27559. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  27560. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  27561. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  27562. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  27563. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  27564. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  27565. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  27566. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  27567. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  27568. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  27569. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  27570. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  27571. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  27572. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  27573. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  27574. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  27575. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  27576. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  27577. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  27578. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  27579. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  27580. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  27581. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  27582. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  27583. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  27584. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  27585. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  27586. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  27587. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  27588. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27589. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27590. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  27591. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  27592. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  27593. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  27594. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  27595. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  27596. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  27597. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  27598. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  27599. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  27600. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  27601. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  27602. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27603. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27604. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27605. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27606. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27607. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27608. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  27609. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  27610. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  27611. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  27612. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  27613. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  27614. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  27615. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  27616. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  27617. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  27618. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  27619. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  27620. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  27621. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27622. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  27623. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  27624. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27625. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  27626. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  27627. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  27628. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  27629. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  27630. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  27631. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  27632. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  27633. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  27634.  
  27635. LTCC='$LTCC'
  27636. LTCFLAGS='$LTCFLAGS'
  27637. compiler='$compiler_DEFAULT'
  27638.  
  27639. # A function that is used when there is no print builtin or printf.
  27640. func_fallback_echo ()
  27641. {
  27642.   eval 'cat <<_LTECHO_EOF
  27643. \$1
  27644. _LTECHO_EOF'
  27645. }
  27646.  
  27647. # Quote evaled strings.
  27648. for var in SHELL \
  27649. ECHO \
  27650. PATH_SEPARATOR \
  27651. SED \
  27652. GREP \
  27653. EGREP \
  27654. FGREP \
  27655. LD \
  27656. NM \
  27657. LN_S \
  27658. lt_SP2NL \
  27659. lt_NL2SP \
  27660. reload_flag \
  27661. OBJDUMP \
  27662. deplibs_check_method \
  27663. file_magic_cmd \
  27664. file_magic_glob \
  27665. want_nocaseglob \
  27666. DLLTOOL \
  27667. sharedlib_from_linklib_cmd \
  27668. AR \
  27669. AR_FLAGS \
  27670. archiver_list_spec \
  27671. STRIP \
  27672. RANLIB \
  27673. CC \
  27674. CFLAGS \
  27675. compiler \
  27676. lt_cv_sys_global_symbol_pipe \
  27677. lt_cv_sys_global_symbol_to_cdecl \
  27678. lt_cv_sys_global_symbol_to_import \
  27679. lt_cv_sys_global_symbol_to_c_name_address \
  27680. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  27681. lt_cv_nm_interface \
  27682. nm_file_list_spec \
  27683. lt_cv_truncate_bin \
  27684. lt_prog_compiler_no_builtin_flag \
  27685. lt_prog_compiler_pic \
  27686. lt_prog_compiler_wl \
  27687. lt_prog_compiler_static \
  27688. lt_cv_prog_compiler_c_o \
  27689. need_locks \
  27690. MANIFEST_TOOL \
  27691. DSYMUTIL \
  27692. NMEDIT \
  27693. LIPO \
  27694. OTOOL \
  27695. OTOOL64 \
  27696. shrext_cmds \
  27697. export_dynamic_flag_spec \
  27698. whole_archive_flag_spec \
  27699. compiler_needs_object \
  27700. with_gnu_ld \
  27701. allow_undefined_flag \
  27702. no_undefined_flag \
  27703. hardcode_libdir_flag_spec \
  27704. hardcode_libdir_separator \
  27705. exclude_expsyms \
  27706. include_expsyms \
  27707. file_list_spec \
  27708. variables_saved_for_relink \
  27709. libname_spec \
  27710. library_names_spec \
  27711. soname_spec \
  27712. install_override_mode \
  27713. finish_eval \
  27714. old_striplib \
  27715. striplib \
  27716. compiler_lib_search_dirs \
  27717. predep_objects \
  27718. postdep_objects \
  27719. predeps \
  27720. postdeps \
  27721. compiler_lib_search_path \
  27722. LD_CXX \
  27723. reload_flag_CXX \
  27724. compiler_CXX \
  27725. lt_prog_compiler_no_builtin_flag_CXX \
  27726. lt_prog_compiler_pic_CXX \
  27727. lt_prog_compiler_wl_CXX \
  27728. lt_prog_compiler_static_CXX \
  27729. lt_cv_prog_compiler_c_o_CXX \
  27730. export_dynamic_flag_spec_CXX \
  27731. whole_archive_flag_spec_CXX \
  27732. compiler_needs_object_CXX \
  27733. with_gnu_ld_CXX \
  27734. allow_undefined_flag_CXX \
  27735. no_undefined_flag_CXX \
  27736. hardcode_libdir_flag_spec_CXX \
  27737. hardcode_libdir_separator_CXX \
  27738. exclude_expsyms_CXX \
  27739. include_expsyms_CXX \
  27740. file_list_spec_CXX \
  27741. compiler_lib_search_dirs_CXX \
  27742. predep_objects_CXX \
  27743. postdep_objects_CXX \
  27744. predeps_CXX \
  27745. postdeps_CXX \
  27746. compiler_lib_search_path_CXX; do
  27747.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27748.     *[\\\\\\\`\\"\\\$]*)
  27749.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27750.       ;;
  27751.     *)
  27752.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27753.       ;;
  27754.     esac
  27755. done
  27756.  
  27757. # Double-quote double-evaled strings.
  27758. for var in reload_cmds \
  27759. old_postinstall_cmds \
  27760. old_postuninstall_cmds \
  27761. old_archive_cmds \
  27762. extract_expsyms_cmds \
  27763. old_archive_from_new_cmds \
  27764. old_archive_from_expsyms_cmds \
  27765. archive_cmds \
  27766. archive_expsym_cmds \
  27767. module_cmds \
  27768. module_expsym_cmds \
  27769. export_symbols_cmds \
  27770. prelink_cmds \
  27771. postlink_cmds \
  27772. postinstall_cmds \
  27773. postuninstall_cmds \
  27774. finish_cmds \
  27775. sys_lib_search_path_spec \
  27776. configure_time_dlsearch_path \
  27777. configure_time_lt_sys_library_path \
  27778. reload_cmds_CXX \
  27779. old_archive_cmds_CXX \
  27780. old_archive_from_new_cmds_CXX \
  27781. old_archive_from_expsyms_cmds_CXX \
  27782. archive_cmds_CXX \
  27783. archive_expsym_cmds_CXX \
  27784. module_cmds_CXX \
  27785. module_expsym_cmds_CXX \
  27786. export_symbols_cmds_CXX \
  27787. prelink_cmds_CXX \
  27788. postlink_cmds_CXX; do
  27789.     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  27790.     *[\\\\\\\`\\"\\\$]*)
  27791.       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  27792.       ;;
  27793.     *)
  27794.       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  27795.       ;;
  27796.     esac
  27797. done
  27798.  
  27799. ac_aux_dir='$ac_aux_dir'
  27800.  
  27801. # See if we are running on zsh, and set the options that allow our
  27802. # commands through without removal of \ escapes INIT.
  27803. if test -n "\${ZSH_VERSION+set}"; then
  27804.    setopt NO_GLOB_SUBST
  27805. fi
  27806.  
  27807.  
  27808.     PACKAGE='$PACKAGE'
  27809.     VERSION='$VERSION'
  27810.     RM='$RM'
  27811.     ofile='$ofile'
  27812.  
  27813.  
  27814.  
  27815.  
  27816.  
  27817.  
  27818. _ACEOF
  27819.  
  27820. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  27821.  
  27822. # Handling of arguments.
  27823. for ac_config_target in $ac_config_targets
  27824. do
  27825.   case $ac_config_target in
  27826.     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  27827.     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  27828.     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  27829.     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  27830.     "src/egl/drivers/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/drivers/dri2/Makefile" ;;
  27831.     "src/egl/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/main/Makefile" ;;
  27832.     "src/egl/main/egl.pc") CONFIG_FILES="$CONFIG_FILES src/egl/main/egl.pc" ;;
  27833.     "src/egl/wayland/wayland-drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/wayland/wayland-drm/Makefile" ;;
  27834.     "src/egl/wayland/wayland-egl/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/wayland/wayland-egl/Makefile" ;;
  27835.     "src/egl/wayland/wayland-egl/wayland-egl.pc") CONFIG_FILES="$CONFIG_FILES src/egl/wayland/wayland-egl/wayland-egl.pc" ;;
  27836.     "src/gallium/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/Makefile" ;;
  27837.     "src/gallium/auxiliary/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/auxiliary/Makefile" ;;
  27838.     "src/gallium/auxiliary/pipe-loader/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/auxiliary/pipe-loader/Makefile" ;;
  27839.     "src/gallium/drivers/freedreno/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/freedreno/Makefile" ;;
  27840.     "src/gallium/drivers/i915/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/i915/Makefile" ;;
  27841.     "src/gallium/drivers/ilo/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/ilo/Makefile" ;;
  27842.     "src/gallium/drivers/llvmpipe/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/llvmpipe/Makefile" ;;
  27843.     "src/gallium/drivers/noop/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/noop/Makefile" ;;
  27844.     "src/gallium/drivers/nouveau/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/nouveau/Makefile" ;;
  27845.     "src/gallium/drivers/r300/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/r300/Makefile" ;;
  27846.     "src/gallium/drivers/r600/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/r600/Makefile" ;;
  27847.     "src/gallium/drivers/radeon/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/radeon/Makefile" ;;
  27848.     "src/gallium/drivers/radeonsi/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/radeonsi/Makefile" ;;
  27849.     "src/gallium/drivers/rbug/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/rbug/Makefile" ;;
  27850.     "src/gallium/drivers/softpipe/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/softpipe/Makefile" ;;
  27851.     "src/gallium/drivers/svga/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/svga/Makefile" ;;
  27852.     "src/gallium/drivers/trace/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/trace/Makefile" ;;
  27853.     "src/gallium/drivers/vc4/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/vc4/Makefile" ;;
  27854.     "src/gallium/drivers/vc4/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/drivers/vc4/kernel/Makefile" ;;
  27855.     "src/gallium/state_trackers/clover/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/clover/Makefile" ;;
  27856.     "src/gallium/state_trackers/dri/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/dri/Makefile" ;;
  27857.     "src/gallium/state_trackers/glx/xlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/glx/xlib/Makefile" ;;
  27858.     "src/gallium/state_trackers/nine/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/nine/Makefile" ;;
  27859.     "src/gallium/state_trackers/omx/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/omx/Makefile" ;;
  27860.     "src/gallium/state_trackers/osmesa/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/osmesa/Makefile" ;;
  27861.     "src/gallium/state_trackers/va/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/va/Makefile" ;;
  27862.     "src/gallium/state_trackers/vdpau/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/vdpau/Makefile" ;;
  27863.     "src/gallium/state_trackers/xa/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/xa/Makefile" ;;
  27864.     "src/gallium/state_trackers/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/state_trackers/xvmc/Makefile" ;;
  27865.     "src/gallium/targets/d3dadapter9/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/d3dadapter9/Makefile" ;;
  27866.     "src/gallium/targets/d3dadapter9/d3d.pc") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/d3dadapter9/d3d.pc" ;;
  27867.     "src/gallium/targets/dri/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/dri/Makefile" ;;
  27868.     "src/gallium/targets/libgl-xlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/libgl-xlib/Makefile" ;;
  27869.     "src/gallium/targets/omx/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/omx/Makefile" ;;
  27870.     "src/gallium/targets/opencl/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/opencl/Makefile" ;;
  27871.     "src/gallium/targets/osmesa/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/osmesa/Makefile" ;;
  27872.     "src/gallium/targets/osmesa/osmesa.pc") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/osmesa/osmesa.pc" ;;
  27873.     "src/gallium/targets/pipe-loader/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/pipe-loader/Makefile" ;;
  27874.     "src/gallium/targets/va/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/va/Makefile" ;;
  27875.     "src/gallium/targets/vdpau/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/vdpau/Makefile" ;;
  27876.     "src/gallium/targets/xa/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xa/Makefile" ;;
  27877.     "src/gallium/targets/xa/xatracker.pc") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xa/xatracker.pc" ;;
  27878.     "src/gallium/targets/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/targets/xvmc/Makefile" ;;
  27879.     "src/gallium/tests/trivial/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/tests/trivial/Makefile" ;;
  27880.     "src/gallium/tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/tests/unit/Makefile" ;;
  27881.     "src/gallium/winsys/freedreno/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/freedreno/drm/Makefile" ;;
  27882.     "src/gallium/winsys/i915/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/i915/drm/Makefile" ;;
  27883.     "src/gallium/winsys/intel/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/intel/drm/Makefile" ;;
  27884.     "src/gallium/winsys/nouveau/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/nouveau/drm/Makefile" ;;
  27885.     "src/gallium/winsys/radeon/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/radeon/drm/Makefile" ;;
  27886.     "src/gallium/winsys/svga/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/svga/drm/Makefile" ;;
  27887.     "src/gallium/winsys/sw/dri/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/dri/Makefile" ;;
  27888.     "src/gallium/winsys/sw/kms-dri/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/kms-dri/Makefile" ;;
  27889.     "src/gallium/winsys/sw/null/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/null/Makefile" ;;
  27890.     "src/gallium/winsys/sw/wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/wrapper/Makefile" ;;
  27891.     "src/gallium/winsys/sw/xlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/sw/xlib/Makefile" ;;
  27892.     "src/gallium/winsys/vc4/drm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gallium/winsys/vc4/drm/Makefile" ;;
  27893.     "src/gbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/gbm/Makefile" ;;
  27894.     "src/gbm/main/gbm.pc") CONFIG_FILES="$CONFIG_FILES src/gbm/main/gbm.pc" ;;
  27895.     "src/glsl/Makefile") CONFIG_FILES="$CONFIG_FILES src/glsl/Makefile" ;;
  27896.     "src/glx/Makefile") CONFIG_FILES="$CONFIG_FILES src/glx/Makefile" ;;
  27897.     "src/glx/apple/Makefile") CONFIG_FILES="$CONFIG_FILES src/glx/apple/Makefile" ;;
  27898.     "src/glx/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/glx/tests/Makefile" ;;
  27899.     "src/gtest/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtest/Makefile" ;;
  27900.     "src/loader/Makefile") CONFIG_FILES="$CONFIG_FILES src/loader/Makefile" ;;
  27901.     "src/mapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/mapi/Makefile" ;;
  27902.     "src/mapi/es1api/glesv1_cm.pc") CONFIG_FILES="$CONFIG_FILES src/mapi/es1api/glesv1_cm.pc" ;;
  27903.     "src/mapi/es2api/glesv2.pc") CONFIG_FILES="$CONFIG_FILES src/mapi/es2api/glesv2.pc" ;;
  27904.     "src/mapi/glapi/gen/Makefile") CONFIG_FILES="$CONFIG_FILES src/mapi/glapi/gen/Makefile" ;;
  27905.     "src/mesa/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/Makefile" ;;
  27906.     "src/mesa/gl.pc") CONFIG_FILES="$CONFIG_FILES src/mesa/gl.pc" ;;
  27907.     "src/mesa/drivers/dri/dri.pc") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/dri.pc" ;;
  27908.     "src/mesa/drivers/dri/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/common/Makefile" ;;
  27909.     "src/mesa/drivers/dri/common/xmlpool/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/common/xmlpool/Makefile" ;;
  27910.     "src/mesa/drivers/dri/i915/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/i915/Makefile" ;;
  27911.     "src/mesa/drivers/dri/i965/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/i965/Makefile" ;;
  27912.     "src/mesa/drivers/dri/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/Makefile" ;;
  27913.     "src/mesa/drivers/dri/nouveau/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/nouveau/Makefile" ;;
  27914.     "src/mesa/drivers/dri/r200/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/r200/Makefile" ;;
  27915.     "src/mesa/drivers/dri/radeon/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/radeon/Makefile" ;;
  27916.     "src/mesa/drivers/dri/swrast/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/dri/swrast/Makefile" ;;
  27917.     "src/mesa/drivers/osmesa/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/osmesa/Makefile" ;;
  27918.     "src/mesa/drivers/osmesa/osmesa.pc") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/osmesa/osmesa.pc" ;;
  27919.     "src/mesa/drivers/x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/drivers/x11/Makefile" ;;
  27920.     "src/mesa/main/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/mesa/main/tests/Makefile" ;;
  27921.     "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
  27922.     "src/util/tests/hash_table/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/tests/hash_table/Makefile" ;;
  27923.  
  27924.   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  27925.   esac
  27926. done
  27927.  
  27928.  
  27929. # If the user did not use the arguments to specify the items to instantiate,
  27930. # then the envvar interface is used.  Set only those that are not.
  27931. # We use the long form for the default assignment because of an extremely
  27932. # bizarre bug on SunOS 4.1.3.
  27933. if $ac_need_defaults; then
  27934.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  27935.   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  27936. fi
  27937.  
  27938. # Have a temporary directory for convenience.  Make it in the build tree
  27939. # simply because there is no reason against having it here, and in addition,
  27940. # creating and moving files from /tmp can sometimes cause problems.
  27941. # Hook for its removal unless debugging.
  27942. # Note that there is a small window in which the directory will not be cleaned:
  27943. # after its creation but before its name has been assigned to `$tmp'.
  27944. $debug ||
  27945. {
  27946.   tmp= ac_tmp=
  27947.   trap 'exit_status=$?
  27948.   : "${ac_tmp:=$tmp}"
  27949.   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  27950. ' 0
  27951.   trap 'as_fn_exit 1' 1 2 13 15
  27952. }
  27953. # Create a (secure) tmp directory for tmp files.
  27954.  
  27955. {
  27956.   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  27957.   test -d "$tmp"
  27958. }  ||
  27959. {
  27960.   tmp=./conf$$-$RANDOM
  27961.   (umask 077 && mkdir "$tmp")
  27962. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  27963. ac_tmp=$tmp
  27964.  
  27965. # Set up the scripts for CONFIG_FILES section.
  27966. # No need to generate them if there are no CONFIG_FILES.
  27967. # This happens for instance with `./config.status config.h'.
  27968. if test -n "$CONFIG_FILES"; then
  27969.  
  27970.  
  27971. ac_cr=`echo X | tr X '\015'`
  27972. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  27973. # But we know of no other shell where ac_cr would be empty at this
  27974. # point, so we can use a bashism as a fallback.
  27975. if test "x$ac_cr" = x; then
  27976.   eval ac_cr=\$\'\\r\'
  27977. fi
  27978. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  27979. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  27980.   ac_cs_awk_cr='\\r'
  27981. else
  27982.   ac_cs_awk_cr=$ac_cr
  27983. fi
  27984.  
  27985. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  27986. _ACEOF
  27987.  
  27988.  
  27989. {
  27990.   echo "cat >conf$$subs.awk <<_ACEOF" &&
  27991.   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  27992.   echo "_ACEOF"
  27993. } >conf$$subs.sh ||
  27994.   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  27995. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  27996. ac_delim='%!_!# '
  27997. for ac_last_try in false false false false false :; do
  27998.   . ./conf$$subs.sh ||
  27999.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  28000.  
  28001.   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  28002.   if test $ac_delim_n = $ac_delim_num; then
  28003.     break
  28004.   elif $ac_last_try; then
  28005.     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  28006.   else
  28007.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  28008.   fi
  28009. done
  28010. rm -f conf$$subs.sh
  28011.  
  28012. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28013. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  28014. _ACEOF
  28015. sed -n '
  28016. h
  28017. s/^/S["/; s/!.*/"]=/
  28018. p
  28019. g
  28020. s/^[^!]*!//
  28021. :repl
  28022. t repl
  28023. s/'"$ac_delim"'$//
  28024. t delim
  28025. :nl
  28026. h
  28027. s/\(.\{148\}\)..*/\1/
  28028. t more1
  28029. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  28030. p
  28031. n
  28032. b repl
  28033. :more1
  28034. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  28035. p
  28036. g
  28037. s/.\{148\}//
  28038. t nl
  28039. :delim
  28040. h
  28041. s/\(.\{148\}\)..*/\1/
  28042. t more2
  28043. s/["\\]/\\&/g; s/^/"/; s/$/"/
  28044. p
  28045. b
  28046. :more2
  28047. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  28048. p
  28049. g
  28050. s/.\{148\}//
  28051. t delim
  28052. ' <conf$$subs.awk | sed '
  28053. /^[^""]/{
  28054.   N
  28055.   s/\n//
  28056. }
  28057. ' >>$CONFIG_STATUS || ac_write_fail=1
  28058. rm -f conf$$subs.awk
  28059. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28060. _ACAWK
  28061. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  28062.   for (key in S) S_is_set[key] = 1
  28063.   FS = ""
  28064.  
  28065. }
  28066. {
  28067.   line = $ 0
  28068.   nfields = split(line, field, "@")
  28069.   substed = 0
  28070.   len = length(field[1])
  28071.   for (i = 2; i < nfields; i++) {
  28072.     key = field[i]
  28073.     keylen = length(key)
  28074.     if (S_is_set[key]) {
  28075.       value = S[key]
  28076.       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  28077.       len += length(value) + length(field[++i])
  28078.       substed = 1
  28079.     } else
  28080.       len += 1 + keylen
  28081.   }
  28082.  
  28083.   print line
  28084. }
  28085.  
  28086. _ACAWK
  28087. _ACEOF
  28088. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28089. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  28090.   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  28091. else
  28092.   cat
  28093. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  28094.   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  28095. _ACEOF
  28096.  
  28097. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  28098. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  28099. # trailing colons and then remove the whole line if VPATH becomes empty
  28100. # (actually we leave an empty line to preserve line numbers).
  28101. if test "x$srcdir" = x.; then
  28102.   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
  28103. h
  28104. s///
  28105. s/^/:/
  28106. s/[      ]*$/:/
  28107. s/:\$(srcdir):/:/g
  28108. s/:\${srcdir}:/:/g
  28109. s/:@srcdir@:/:/g
  28110. s/^:*//
  28111. s/:*$//
  28112. x
  28113. s/\(=[   ]*\).*/\1/
  28114. G
  28115. s/\n//
  28116. s/^[^=]*=[       ]*$//
  28117. }'
  28118. fi
  28119.  
  28120. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28121. fi # test -n "$CONFIG_FILES"
  28122.  
  28123.  
  28124. eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
  28125. shift
  28126. for ac_tag
  28127. do
  28128.   case $ac_tag in
  28129.   :[FHLC]) ac_mode=$ac_tag; continue;;
  28130.   esac
  28131.   case $ac_mode$ac_tag in
  28132.   :[FHL]*:*);;
  28133.   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  28134.   :[FH]-) ac_tag=-:-;;
  28135.   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  28136.   esac
  28137.   ac_save_IFS=$IFS
  28138.   IFS=:
  28139.   set x $ac_tag
  28140.   IFS=$ac_save_IFS
  28141.   shift
  28142.   ac_file=$1
  28143.   shift
  28144.  
  28145.   case $ac_mode in
  28146.   :L) ac_source=$1;;
  28147.   :[FH])
  28148.     ac_file_inputs=
  28149.     for ac_f
  28150.     do
  28151.       case $ac_f in
  28152.       -) ac_f="$ac_tmp/stdin";;
  28153.       *) # Look for the file first in the build tree, then in the source tree
  28154.          # (if the path is not absolute).  The absolute path cannot be DOS-style,
  28155.          # because $ac_f cannot contain `:'.
  28156.          test -f "$ac_f" ||
  28157.            case $ac_f in
  28158.            [\\/$]*) false;;
  28159.            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  28160.            esac ||
  28161.            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  28162.       esac
  28163.       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  28164.       as_fn_append ac_file_inputs " '$ac_f'"
  28165.     done
  28166.  
  28167.     # Let's still pretend it is `configure' which instantiates (i.e., don't
  28168.     # use $as_me), people would be surprised to read:
  28169.     #    /* config.h.  Generated by config.status.  */
  28170.     configure_input='Generated from '`
  28171.           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  28172.         `' by configure.'
  28173.     if test x"$ac_file" != x-; then
  28174.       configure_input="$ac_file.  $configure_input"
  28175.       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  28176. $as_echo "$as_me: creating $ac_file" >&6;}
  28177.     fi
  28178.     # Neutralize special characters interpreted by sed in replacement strings.
  28179.     case $configure_input in #(
  28180.     *\&* | *\|* | *\\* )
  28181.        ac_sed_conf_input=`$as_echo "$configure_input" |
  28182.        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  28183.     *) ac_sed_conf_input=$configure_input;;
  28184.     esac
  28185.  
  28186.     case $ac_tag in
  28187.     *:-:* | *:-) cat >"$ac_tmp/stdin" \
  28188.       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  28189.     esac
  28190.     ;;
  28191.   esac
  28192.  
  28193.   ac_dir=`$as_dirname -- "$ac_file" ||
  28194. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28195.          X"$ac_file" : 'X\(//\)[^/]' \| \
  28196.          X"$ac_file" : 'X\(//\)$' \| \
  28197.          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  28198. $as_echo X"$ac_file" |
  28199.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  28200.             s//\1/
  28201.             q
  28202.           }
  28203.           /^X\(\/\/\)[^/].*/{
  28204.             s//\1/
  28205.             q
  28206.           }
  28207.           /^X\(\/\/\)$/{
  28208.             s//\1/
  28209.             q
  28210.           }
  28211.           /^X\(\/\).*/{
  28212.             s//\1/
  28213.             q
  28214.           }
  28215.           s/.*/./; q'`
  28216.   as_dir="$ac_dir"; as_fn_mkdir_p
  28217.   ac_builddir=.
  28218.  
  28219. case "$ac_dir" in
  28220. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  28221. *)
  28222.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  28223.   # A ".." for each directory in $ac_dir_suffix.
  28224.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  28225.   case $ac_top_builddir_sub in
  28226.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  28227.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  28228.   esac ;;
  28229. esac
  28230. ac_abs_top_builddir=$ac_pwd
  28231. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  28232. # for backward compatibility:
  28233. ac_top_builddir=$ac_top_build_prefix
  28234.  
  28235. case $srcdir in
  28236.   .)  # We are building in place.
  28237.     ac_srcdir=.
  28238.     ac_top_srcdir=$ac_top_builddir_sub
  28239.     ac_abs_top_srcdir=$ac_pwd ;;
  28240.   [\\/]* | ?:[\\/]* )  # Absolute name.
  28241.     ac_srcdir=$srcdir$ac_dir_suffix;
  28242.     ac_top_srcdir=$srcdir
  28243.     ac_abs_top_srcdir=$srcdir ;;
  28244.   *) # Relative name.
  28245.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  28246.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  28247.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  28248. esac
  28249. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  28250.  
  28251.  
  28252.   case $ac_mode in
  28253.   :F)
  28254.   #
  28255.   # CONFIG_FILE
  28256.   #
  28257.  
  28258.   case $INSTALL in
  28259.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  28260.   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  28261.   esac
  28262.   ac_MKDIR_P=$MKDIR_P
  28263.   case $MKDIR_P in
  28264.   [\\/$]* | ?:[\\/]* ) ;;
  28265.   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  28266.   esac
  28267. _ACEOF
  28268.  
  28269. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28270. # If the template does not know about datarootdir, expand it.
  28271. # FIXME: This hack should be removed a few years after 2.60.
  28272. ac_datarootdir_hack=; ac_datarootdir_seen=
  28273. ac_sed_dataroot='
  28274. /datarootdir/ {
  28275.   p
  28276.   q
  28277. }
  28278. /@datadir@/p
  28279. /@docdir@/p
  28280. /@infodir@/p
  28281. /@localedir@/p
  28282. /@mandir@/p'
  28283. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  28284. *datarootdir*) ac_datarootdir_seen=yes;;
  28285. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  28286.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  28287. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  28288. _ACEOF
  28289. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28290.   ac_datarootdir_hack='
  28291.   s&@datadir@&$datadir&g
  28292.   s&@docdir@&$docdir&g
  28293.   s&@infodir@&$infodir&g
  28294.   s&@localedir@&$localedir&g
  28295.   s&@mandir@&$mandir&g
  28296.   s&\\\${datarootdir}&$datarootdir&g' ;;
  28297. esac
  28298. _ACEOF
  28299.  
  28300. # Neutralize VPATH when `$srcdir' = `.'.
  28301. # Shell code in configure.ac might set extrasub.
  28302. # FIXME: do we really want to maintain this feature?
  28303. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28304. ac_sed_extra="$ac_vpsub
  28305. $extrasub
  28306. _ACEOF
  28307. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28308. :t
  28309. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  28310. s|@configure_input@|$ac_sed_conf_input|;t t
  28311. s&@top_builddir@&$ac_top_builddir_sub&;t t
  28312. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  28313. s&@srcdir@&$ac_srcdir&;t t
  28314. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  28315. s&@top_srcdir@&$ac_top_srcdir&;t t
  28316. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  28317. s&@builddir@&$ac_builddir&;t t
  28318. s&@abs_builddir@&$ac_abs_builddir&;t t
  28319. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  28320. s&@INSTALL@&$ac_INSTALL&;t t
  28321. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  28322. $ac_datarootdir_hack
  28323. "
  28324. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  28325.   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  28326.  
  28327. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  28328.   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  28329.   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
  28330.       "$ac_tmp/out"`; test -z "$ac_out"; } &&
  28331.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  28332. which seems to be undefined.  Please make sure it is defined" >&5
  28333. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  28334. which seems to be undefined.  Please make sure it is defined" >&2;}
  28335.  
  28336.   rm -f "$ac_tmp/stdin"
  28337.   case $ac_file in
  28338.   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  28339.   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  28340.   esac \
  28341.   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  28342.  ;;
  28343.  
  28344.  
  28345.   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  28346. $as_echo "$as_me: executing $ac_file commands" >&6;}
  28347.  ;;
  28348.   esac
  28349.  
  28350.  
  28351.   case $ac_file$ac_mode in
  28352.     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  28353.   # Older Autoconf quotes --file arguments for eval, but not when files
  28354.   # are listed without --file.  Let's play safe and only enable the eval
  28355.   # if we detect the quoting.
  28356.   case $CONFIG_FILES in
  28357.   *\'*) eval set x "$CONFIG_FILES" ;;
  28358.   *)   set x $CONFIG_FILES ;;
  28359.   esac
  28360.   shift
  28361.   for mf
  28362.   do
  28363.     # Strip MF so we end up with the name of the file.
  28364.     mf=`echo "$mf" | sed -e 's/:.*$//'`
  28365.     # Check whether this is an Automake generated Makefile or not.
  28366.     # We used to match only the files named 'Makefile.in', but
  28367.     # some people rename them; so instead we look at the file content.
  28368.     # Grep'ing the first line is not enough: some people post-process
  28369.     # each Makefile.in and add a new line on top of each file to say so.
  28370.     # Grep'ing the whole file is not good either: AIX grep has a line
  28371.     # limit of 2048, but all sed's we know have understand at least 4000.
  28372.     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  28373.       dirpart=`$as_dirname -- "$mf" ||
  28374. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28375.          X"$mf" : 'X\(//\)[^/]' \| \
  28376.          X"$mf" : 'X\(//\)$' \| \
  28377.          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  28378. $as_echo X"$mf" |
  28379.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  28380.             s//\1/
  28381.             q
  28382.           }
  28383.           /^X\(\/\/\)[^/].*/{
  28384.             s//\1/
  28385.             q
  28386.           }
  28387.           /^X\(\/\/\)$/{
  28388.             s//\1/
  28389.             q
  28390.           }
  28391.           /^X\(\/\).*/{
  28392.             s//\1/
  28393.             q
  28394.           }
  28395.           s/.*/./; q'`
  28396.     else
  28397.       continue
  28398.     fi
  28399.     # Extract the definition of DEPDIR, am__include, and am__quote
  28400.     # from the Makefile without running 'make'.
  28401.     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  28402.     test -z "$DEPDIR" && continue
  28403.     am__include=`sed -n 's/^am__include = //p' < "$mf"`
  28404.     test -z "$am__include" && continue
  28405.     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  28406.     # Find all dependency output files, they are included files with
  28407.     # $(DEPDIR) in their names.  We invoke sed twice because it is the
  28408.     # simplest approach to changing $(DEPDIR) to its actual value in the
  28409.     # expansion.
  28410.     for file in `sed -n "
  28411.       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  28412.          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  28413.       # Make sure the directory exists.
  28414.       test -f "$dirpart/$file" && continue
  28415.       fdir=`$as_dirname -- "$file" ||
  28416. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28417.          X"$file" : 'X\(//\)[^/]' \| \
  28418.          X"$file" : 'X\(//\)$' \| \
  28419.          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  28420. $as_echo X"$file" |
  28421.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  28422.             s//\1/
  28423.             q
  28424.           }
  28425.           /^X\(\/\/\)[^/].*/{
  28426.             s//\1/
  28427.             q
  28428.           }
  28429.           /^X\(\/\/\)$/{
  28430.             s//\1/
  28431.             q
  28432.           }
  28433.           /^X\(\/\).*/{
  28434.             s//\1/
  28435.             q
  28436.           }
  28437.           s/.*/./; q'`
  28438.       as_dir=$dirpart/$fdir; as_fn_mkdir_p
  28439.       # echo "creating $dirpart/$file"
  28440.       echo '# dummy' > "$dirpart/$file"
  28441.     done
  28442.   done
  28443. }
  28444.  ;;
  28445.     "libtool":C)
  28446.  
  28447.     # See if we are running on zsh, and set the options that allow our
  28448.     # commands through without removal of \ escapes.
  28449.     if test -n "${ZSH_VERSION+set}"; then
  28450.       setopt NO_GLOB_SUBST
  28451.     fi
  28452.  
  28453.     cfgfile=${ofile}T
  28454.     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  28455.     $RM "$cfgfile"
  28456.  
  28457.     cat <<_LT_EOF >> "$cfgfile"
  28458. #! $SHELL
  28459. # Generated automatically by $as_me ($PACKAGE) $VERSION
  28460. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  28461. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  28462.  
  28463. # Provide generalized library-building support services.
  28464. # Written by Gordon Matzigkeit, 1996
  28465.  
  28466. # Copyright (C) 2014 Free Software Foundation, Inc.
  28467. # This is free software; see the source for copying conditions.  There is NO
  28468. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  28469.  
  28470. # GNU Libtool is free software; you can redistribute it and/or modify
  28471. # it under the terms of the GNU General Public License as published by
  28472. # the Free Software Foundation; either version 2 of of the License, or
  28473. # (at your option) any later version.
  28474. #
  28475. # As a special exception to the GNU General Public License, if you
  28476. # distribute this file as part of a program or library that is built
  28477. # using GNU Libtool, you may include this file under the  same
  28478. # distribution terms that you use for the rest of that program.
  28479. #
  28480. # GNU Libtool is distributed in the hope that it will be useful, but
  28481. # WITHOUT ANY WARRANTY; without even the implied warranty of
  28482. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  28483. # GNU General Public License for more details.
  28484. #
  28485. # You should have received a copy of the GNU General Public License
  28486. # along with this program.  If not, see <http://www.gnu.org/licenses/>.
  28487.  
  28488.  
  28489. # The names of the tagged configurations supported by this script.
  28490. available_tags='CXX '
  28491.  
  28492. # Configured defaults for sys_lib_dlsearch_path munging.
  28493. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  28494.  
  28495. # ### BEGIN LIBTOOL CONFIG
  28496.  
  28497. # Which release of libtool.m4 was used?
  28498. macro_version=$macro_version
  28499. macro_revision=$macro_revision
  28500.  
  28501. # Whether or not to build static libraries.
  28502. build_old_libs=$enable_static
  28503.  
  28504. # Whether or not to build shared libraries.
  28505. build_libtool_libs=$enable_shared
  28506.  
  28507. # What type of objects to build.
  28508. pic_mode=$pic_mode
  28509.  
  28510. # Whether or not to optimize for fast installation.
  28511. fast_install=$enable_fast_install
  28512.  
  28513. # Shared archive member basename,for filename based shared library versioning on AIX.
  28514. shared_archive_member_spec=$shared_archive_member_spec
  28515.  
  28516. # Shell to use when invoking shell scripts.
  28517. SHELL=$lt_SHELL
  28518.  
  28519. # An echo program that protects backslashes.
  28520. ECHO=$lt_ECHO
  28521.  
  28522. # The PATH separator for the build system.
  28523. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  28524.  
  28525. # The host system.
  28526. host_alias=$host_alias
  28527. host=$host
  28528. host_os=$host_os
  28529.  
  28530. # The build system.
  28531. build_alias=$build_alias
  28532. build=$build
  28533. build_os=$build_os
  28534.  
  28535. # A sed program that does not truncate output.
  28536. SED=$lt_SED
  28537.  
  28538. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  28539. Xsed="\$SED -e 1s/^X//"
  28540.  
  28541. # A grep program that handles long lines.
  28542. GREP=$lt_GREP
  28543.  
  28544. # An ERE matcher.
  28545. EGREP=$lt_EGREP
  28546.  
  28547. # A literal string matcher.
  28548. FGREP=$lt_FGREP
  28549.  
  28550. # A BSD- or MS-compatible name lister.
  28551. NM=$lt_NM
  28552.  
  28553. # Whether we need soft or hard links.
  28554. LN_S=$lt_LN_S
  28555.  
  28556. # What is the maximum length of a command?
  28557. max_cmd_len=$max_cmd_len
  28558.  
  28559. # Object file suffix (normally "o").
  28560. objext=$ac_objext
  28561.  
  28562. # Executable file suffix (normally "").
  28563. exeext=$exeext
  28564.  
  28565. # whether the shell understands "unset".
  28566. lt_unset=$lt_unset
  28567.  
  28568. # turn spaces into newlines.
  28569. SP2NL=$lt_lt_SP2NL
  28570.  
  28571. # turn newlines into spaces.
  28572. NL2SP=$lt_lt_NL2SP
  28573.  
  28574. # convert \$build file names to \$host format.
  28575. to_host_file_cmd=$lt_cv_to_host_file_cmd
  28576.  
  28577. # convert \$build files to toolchain format.
  28578. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  28579.  
  28580. # An object symbol dumper.
  28581. OBJDUMP=$lt_OBJDUMP
  28582.  
  28583. # Method to check whether dependent libraries are shared objects.
  28584. deplibs_check_method=$lt_deplibs_check_method
  28585.  
  28586. # Command to use when deplibs_check_method = "file_magic".
  28587. file_magic_cmd=$lt_file_magic_cmd
  28588.  
  28589. # How to find potential files when deplibs_check_method = "file_magic".
  28590. file_magic_glob=$lt_file_magic_glob
  28591.  
  28592. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  28593. want_nocaseglob=$lt_want_nocaseglob
  28594.  
  28595. # DLL creation program.
  28596. DLLTOOL=$lt_DLLTOOL
  28597.  
  28598. # Command to associate shared and link libraries.
  28599. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  28600.  
  28601. # The archiver.
  28602. AR=$lt_AR
  28603.  
  28604. # Flags to create an archive.
  28605. AR_FLAGS=$lt_AR_FLAGS
  28606.  
  28607. # How to feed a file listing to the archiver.
  28608. archiver_list_spec=$lt_archiver_list_spec
  28609.  
  28610. # A symbol stripping program.
  28611. STRIP=$lt_STRIP
  28612.  
  28613. # Commands used to install an old-style archive.
  28614. RANLIB=$lt_RANLIB
  28615. old_postinstall_cmds=$lt_old_postinstall_cmds
  28616. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  28617.  
  28618. # Whether to use a lock for old archive extraction.
  28619. lock_old_archive_extraction=$lock_old_archive_extraction
  28620.  
  28621. # A C compiler.
  28622. LTCC=$lt_CC
  28623.  
  28624. # LTCC compiler flags.
  28625. LTCFLAGS=$lt_CFLAGS
  28626.  
  28627. # Take the output of nm and produce a listing of raw symbols and C names.
  28628. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  28629.  
  28630. # Transform the output of nm in a proper C declaration.
  28631. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  28632.  
  28633. # Transform the output of nm into a list of symbols to manually relocate.
  28634. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  28635.  
  28636. # Transform the output of nm in a C name address pair.
  28637. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  28638.  
  28639. # Transform the output of nm in a C name address pair when lib prefix is needed.
  28640. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  28641.  
  28642. # The name lister interface.
  28643. nm_interface=$lt_lt_cv_nm_interface
  28644.  
  28645. # Specify filename containing input files for \$NM.
  28646. nm_file_list_spec=$lt_nm_file_list_spec
  28647.  
  28648. # The root where to search for dependent libraries,and where our libraries should be installed.
  28649. lt_sysroot=$lt_sysroot
  28650.  
  28651. # Command to truncate a binary pipe.
  28652. lt_truncate_bin=$lt_lt_cv_truncate_bin
  28653.  
  28654. # The name of the directory that contains temporary libtool files.
  28655. objdir=$objdir
  28656.  
  28657. # Used to examine libraries when file_magic_cmd begins with "file".
  28658. MAGIC_CMD=$MAGIC_CMD
  28659.  
  28660. # Must we lock files when doing compilation?
  28661. need_locks=$lt_need_locks
  28662.  
  28663. # Manifest tool.
  28664. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  28665.  
  28666. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  28667. DSYMUTIL=$lt_DSYMUTIL
  28668.  
  28669. # Tool to change global to local symbols on Mac OS X.
  28670. NMEDIT=$lt_NMEDIT
  28671.  
  28672. # Tool to manipulate fat objects and archives on Mac OS X.
  28673. LIPO=$lt_LIPO
  28674.  
  28675. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  28676. OTOOL=$lt_OTOOL
  28677.  
  28678. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  28679. OTOOL64=$lt_OTOOL64
  28680.  
  28681. # Old archive suffix (normally "a").
  28682. libext=$libext
  28683.  
  28684. # Shared library suffix (normally ".so").
  28685. shrext_cmds=$lt_shrext_cmds
  28686.  
  28687. # The commands to extract the exported symbol list from a shared archive.
  28688. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  28689.  
  28690. # Variables whose values should be saved in libtool wrapper scripts and
  28691. # restored at link time.
  28692. variables_saved_for_relink=$lt_variables_saved_for_relink
  28693.  
  28694. # Do we need the "lib" prefix for modules?
  28695. need_lib_prefix=$need_lib_prefix
  28696.  
  28697. # Do we need a version for libraries?
  28698. need_version=$need_version
  28699.  
  28700. # Library versioning type.
  28701. version_type=$version_type
  28702.  
  28703. # Shared library runtime path variable.
  28704. runpath_var=$runpath_var
  28705.  
  28706. # Shared library path variable.
  28707. shlibpath_var=$shlibpath_var
  28708.  
  28709. # Is shlibpath searched before the hard-coded library search path?
  28710. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  28711.  
  28712. # Format of library name prefix.
  28713. libname_spec=$lt_libname_spec
  28714.  
  28715. # List of archive names.  First name is the real one, the rest are links.
  28716. # The last name is the one that the linker finds with -lNAME
  28717. library_names_spec=$lt_library_names_spec
  28718.  
  28719. # The coded name of the library, if different from the real name.
  28720. soname_spec=$lt_soname_spec
  28721.  
  28722. # Permission mode override for installation of shared libraries.
  28723. install_override_mode=$lt_install_override_mode
  28724.  
  28725. # Command to use after installation of a shared archive.
  28726. postinstall_cmds=$lt_postinstall_cmds
  28727.  
  28728. # Command to use after uninstallation of a shared archive.
  28729. postuninstall_cmds=$lt_postuninstall_cmds
  28730.  
  28731. # Commands used to finish a libtool library installation in a directory.
  28732. finish_cmds=$lt_finish_cmds
  28733.  
  28734. # As "finish_cmds", except a single script fragment to be evaled but
  28735. # not shown.
  28736. finish_eval=$lt_finish_eval
  28737.  
  28738. # Whether we should hardcode library paths into libraries.
  28739. hardcode_into_libs=$hardcode_into_libs
  28740.  
  28741. # Compile-time system search path for libraries.
  28742. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  28743.  
  28744. # Detected run-time system search path for libraries.
  28745. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  28746.  
  28747. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  28748. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  28749.  
  28750. # Whether dlopen is supported.
  28751. dlopen_support=$enable_dlopen
  28752.  
  28753. # Whether dlopen of programs is supported.
  28754. dlopen_self=$enable_dlopen_self
  28755.  
  28756. # Whether dlopen of statically linked programs is supported.
  28757. dlopen_self_static=$enable_dlopen_self_static
  28758.  
  28759. # Commands to strip libraries.
  28760. old_striplib=$lt_old_striplib
  28761. striplib=$lt_striplib
  28762.  
  28763.  
  28764. # The linker used to build libraries.
  28765. LD=$lt_LD
  28766.  
  28767. # How to create reloadable object files.
  28768. reload_flag=$lt_reload_flag
  28769. reload_cmds=$lt_reload_cmds
  28770.  
  28771. # Commands used to build an old-style archive.
  28772. old_archive_cmds=$lt_old_archive_cmds
  28773.  
  28774. # A language specific compiler.
  28775. CC=$lt_compiler
  28776.  
  28777. # Is the compiler the GNU compiler?
  28778. with_gcc=$GCC
  28779.  
  28780. # Compiler flag to turn off builtin functions.
  28781. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  28782.  
  28783. # Additional compiler flags for building library objects.
  28784. pic_flag=$lt_lt_prog_compiler_pic
  28785.  
  28786. # How to pass a linker flag through the compiler.
  28787. wl=$lt_lt_prog_compiler_wl
  28788.  
  28789. # Compiler flag to prevent dynamic linking.
  28790. link_static_flag=$lt_lt_prog_compiler_static
  28791.  
  28792. # Does compiler simultaneously support -c and -o options?
  28793. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  28794.  
  28795. # Whether or not to add -lc for building shared libraries.
  28796. build_libtool_need_lc=$archive_cmds_need_lc
  28797.  
  28798. # Whether or not to disallow shared libs when runtime libs are static.
  28799. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  28800.  
  28801. # Compiler flag to allow reflexive dlopens.
  28802. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  28803.  
  28804. # Compiler flag to generate shared objects directly from archives.
  28805. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  28806.  
  28807. # Whether the compiler copes with passing no objects directly.
  28808. compiler_needs_object=$lt_compiler_needs_object
  28809.  
  28810. # Create an old-style archive from a shared archive.
  28811. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  28812.  
  28813. # Create a temporary old-style archive to link instead of a shared archive.
  28814. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  28815.  
  28816. # Commands used to build a shared archive.
  28817. archive_cmds=$lt_archive_cmds
  28818. archive_expsym_cmds=$lt_archive_expsym_cmds
  28819.  
  28820. # Commands used to build a loadable module if different from building
  28821. # a shared archive.
  28822. module_cmds=$lt_module_cmds
  28823. module_expsym_cmds=$lt_module_expsym_cmds
  28824.  
  28825. # Whether we are building with GNU ld or not.
  28826. with_gnu_ld=$lt_with_gnu_ld
  28827.  
  28828. # Flag that allows shared libraries with undefined symbols to be built.
  28829. allow_undefined_flag=$lt_allow_undefined_flag
  28830.  
  28831. # Flag that enforces no undefined symbols.
  28832. no_undefined_flag=$lt_no_undefined_flag
  28833.  
  28834. # Flag to hardcode \$libdir into a binary during linking.
  28835. # This must work even if \$libdir does not exist
  28836. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  28837.  
  28838. # Whether we need a single "-rpath" flag with a separated argument.
  28839. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  28840.  
  28841. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28842. # DIR into the resulting binary.
  28843. hardcode_direct=$hardcode_direct
  28844.  
  28845. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  28846. # DIR into the resulting binary and the resulting library dependency is
  28847. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  28848. # library is relocated.
  28849. hardcode_direct_absolute=$hardcode_direct_absolute
  28850.  
  28851. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  28852. # into the resulting binary.
  28853. hardcode_minus_L=$hardcode_minus_L
  28854.  
  28855. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  28856. # into the resulting binary.
  28857. hardcode_shlibpath_var=$hardcode_shlibpath_var
  28858.  
  28859. # Set to "yes" if building a shared library automatically hardcodes DIR
  28860. # into the library and all subsequent libraries and executables linked
  28861. # against it.
  28862. hardcode_automatic=$hardcode_automatic
  28863.  
  28864. # Set to yes if linker adds runtime paths of dependent libraries
  28865. # to runtime path list.
  28866. inherit_rpath=$inherit_rpath
  28867.  
  28868. # Whether libtool must link a program against all its dependency libraries.
  28869. link_all_deplibs=$link_all_deplibs
  28870.  
  28871. # Set to "yes" if exported symbols are required.
  28872. always_export_symbols=$always_export_symbols
  28873.  
  28874. # The commands to list exported symbols.
  28875. export_symbols_cmds=$lt_export_symbols_cmds
  28876.  
  28877. # Symbols that should not be listed in the preloaded symbols.
  28878. exclude_expsyms=$lt_exclude_expsyms
  28879.  
  28880. # Symbols that must always be exported.
  28881. include_expsyms=$lt_include_expsyms
  28882.  
  28883. # Commands necessary for linking programs (against libraries) with templates.
  28884. prelink_cmds=$lt_prelink_cmds
  28885.  
  28886. # Commands necessary for finishing linking programs.
  28887. postlink_cmds=$lt_postlink_cmds
  28888.  
  28889. # Specify filename containing input files.
  28890. file_list_spec=$lt_file_list_spec
  28891.  
  28892. # How to hardcode a shared library path into an executable.
  28893. hardcode_action=$hardcode_action
  28894.  
  28895. # The directories searched by this compiler when creating a shared library.
  28896. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  28897.  
  28898. # Dependencies to place before and after the objects being linked to
  28899. # create a shared library.
  28900. predep_objects=$lt_predep_objects
  28901. postdep_objects=$lt_postdep_objects
  28902. predeps=$lt_predeps
  28903. postdeps=$lt_postdeps
  28904.  
  28905. # The library search path used internally by the compiler when linking
  28906. # a shared library.
  28907. compiler_lib_search_path=$lt_compiler_lib_search_path
  28908.  
  28909. # ### END LIBTOOL CONFIG
  28910.  
  28911. _LT_EOF
  28912.  
  28913.     cat <<'_LT_EOF' >> "$cfgfile"
  28914.  
  28915. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  28916.  
  28917. # func_munge_path_list VARIABLE PATH
  28918. # -----------------------------------
  28919. # VARIABLE is name of variable containing _space_ separated list of
  28920. # directories to be munged by the contents of PATH, which is string
  28921. # having a format:
  28922. # "DIR[:DIR]:"
  28923. #       string "DIR[ DIR]" will be prepended to VARIABLE
  28924. # ":DIR[:DIR]"
  28925. #       string "DIR[ DIR]" will be appended to VARIABLE
  28926. # "DIRP[:DIRP]::[DIRA:]DIRA"
  28927. #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  28928. #       "DIRA[ DIRA]" will be appended to VARIABLE
  28929. # "DIR[:DIR]"
  28930. #       VARIABLE will be replaced by "DIR[ DIR]"
  28931. func_munge_path_list ()
  28932. {
  28933.     case x$2 in
  28934.     x)
  28935.         ;;
  28936.     *:)
  28937.         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  28938.         ;;
  28939.     x:*)
  28940.         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  28941.         ;;
  28942.     *::*)
  28943.         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  28944.         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  28945.         ;;
  28946.     *)
  28947.         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  28948.         ;;
  28949.     esac
  28950. }
  28951.  
  28952.  
  28953. # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
  28954. func_cc_basename ()
  28955. {
  28956.     for cc_temp in $*""; do
  28957.       case $cc_temp in
  28958.         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  28959.         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  28960.         \-*) ;;
  28961.         *) break;;
  28962.       esac
  28963.     done
  28964.     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  28965. }
  28966.  
  28967.  
  28968. # ### END FUNCTIONS SHARED WITH CONFIGURE
  28969.  
  28970. _LT_EOF
  28971.  
  28972.   case $host_os in
  28973.   aix3*)
  28974.     cat <<\_LT_EOF >> "$cfgfile"
  28975. # AIX sometimes has problems with the GCC collect2 program.  For some
  28976. # reason, if we set the COLLECT_NAMES environment variable, the problems
  28977. # vanish in a puff of smoke.
  28978. if test set != "${COLLECT_NAMES+set}"; then
  28979.   COLLECT_NAMES=
  28980.   export COLLECT_NAMES
  28981. fi
  28982. _LT_EOF
  28983.     ;;
  28984.   esac
  28985.  
  28986.  
  28987. ltmain=$ac_aux_dir/ltmain.sh
  28988.  
  28989.  
  28990.   # We use sed instead of cat because bash on DJGPP gets confused if
  28991.   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  28992.   # text mode, it properly converts lines to CR/LF.  This bash problem
  28993.   # is reportedly fixed, but why not run on old versions too?
  28994.   sed '$q' "$ltmain" >> "$cfgfile" \
  28995.      || (rm -f "$cfgfile"; exit 1)
  28996.  
  28997.    mv -f "$cfgfile" "$ofile" ||
  28998.     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  28999.   chmod +x "$ofile"
  29000.  
  29001.  
  29002.     cat <<_LT_EOF >> "$ofile"
  29003.  
  29004. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  29005.  
  29006. # The linker used to build libraries.
  29007. LD=$lt_LD_CXX
  29008.  
  29009. # How to create reloadable object files.
  29010. reload_flag=$lt_reload_flag_CXX
  29011. reload_cmds=$lt_reload_cmds_CXX
  29012.  
  29013. # Commands used to build an old-style archive.
  29014. old_archive_cmds=$lt_old_archive_cmds_CXX
  29015.  
  29016. # A language specific compiler.
  29017. CC=$lt_compiler_CXX
  29018.  
  29019. # Is the compiler the GNU compiler?
  29020. with_gcc=$GCC_CXX
  29021.  
  29022. # Compiler flag to turn off builtin functions.
  29023. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  29024.  
  29025. # Additional compiler flags for building library objects.
  29026. pic_flag=$lt_lt_prog_compiler_pic_CXX
  29027.  
  29028. # How to pass a linker flag through the compiler.
  29029. wl=$lt_lt_prog_compiler_wl_CXX
  29030.  
  29031. # Compiler flag to prevent dynamic linking.
  29032. link_static_flag=$lt_lt_prog_compiler_static_CXX
  29033.  
  29034. # Does compiler simultaneously support -c and -o options?
  29035. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  29036.  
  29037. # Whether or not to add -lc for building shared libraries.
  29038. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  29039.  
  29040. # Whether or not to disallow shared libs when runtime libs are static.
  29041. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  29042.  
  29043. # Compiler flag to allow reflexive dlopens.
  29044. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  29045.  
  29046. # Compiler flag to generate shared objects directly from archives.
  29047. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  29048.  
  29049. # Whether the compiler copes with passing no objects directly.
  29050. compiler_needs_object=$lt_compiler_needs_object_CXX
  29051.  
  29052. # Create an old-style archive from a shared archive.
  29053. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  29054.  
  29055. # Create a temporary old-style archive to link instead of a shared archive.
  29056. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  29057.  
  29058. # Commands used to build a shared archive.
  29059. archive_cmds=$lt_archive_cmds_CXX
  29060. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  29061.  
  29062. # Commands used to build a loadable module if different from building
  29063. # a shared archive.
  29064. module_cmds=$lt_module_cmds_CXX
  29065. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  29066.  
  29067. # Whether we are building with GNU ld or not.
  29068. with_gnu_ld=$lt_with_gnu_ld_CXX
  29069.  
  29070. # Flag that allows shared libraries with undefined symbols to be built.
  29071. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  29072.  
  29073. # Flag that enforces no undefined symbols.
  29074. no_undefined_flag=$lt_no_undefined_flag_CXX
  29075.  
  29076. # Flag to hardcode \$libdir into a binary during linking.
  29077. # This must work even if \$libdir does not exist
  29078. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  29079.  
  29080. # Whether we need a single "-rpath" flag with a separated argument.
  29081. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  29082.  
  29083. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  29084. # DIR into the resulting binary.
  29085. hardcode_direct=$hardcode_direct_CXX
  29086.  
  29087. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  29088. # DIR into the resulting binary and the resulting library dependency is
  29089. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  29090. # library is relocated.
  29091. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  29092.  
  29093. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  29094. # into the resulting binary.
  29095. hardcode_minus_L=$hardcode_minus_L_CXX
  29096.  
  29097. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  29098. # into the resulting binary.
  29099. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  29100.  
  29101. # Set to "yes" if building a shared library automatically hardcodes DIR
  29102. # into the library and all subsequent libraries and executables linked
  29103. # against it.
  29104. hardcode_automatic=$hardcode_automatic_CXX
  29105.  
  29106. # Set to yes if linker adds runtime paths of dependent libraries
  29107. # to runtime path list.
  29108. inherit_rpath=$inherit_rpath_CXX
  29109.  
  29110. # Whether libtool must link a program against all its dependency libraries.
  29111. link_all_deplibs=$link_all_deplibs_CXX
  29112.  
  29113. # Set to "yes" if exported symbols are required.
  29114. always_export_symbols=$always_export_symbols_CXX
  29115.  
  29116. # The commands to list exported symbols.
  29117. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  29118.  
  29119. # Symbols that should not be listed in the preloaded symbols.
  29120. exclude_expsyms=$lt_exclude_expsyms_CXX
  29121.  
  29122. # Symbols that must always be exported.
  29123. include_expsyms=$lt_include_expsyms_CXX
  29124.  
  29125. # Commands necessary for linking programs (against libraries) with templates.
  29126. prelink_cmds=$lt_prelink_cmds_CXX
  29127.  
  29128. # Commands necessary for finishing linking programs.
  29129. postlink_cmds=$lt_postlink_cmds_CXX
  29130.  
  29131. # Specify filename containing input files.
  29132. file_list_spec=$lt_file_list_spec_CXX
  29133.  
  29134. # How to hardcode a shared library path into an executable.
  29135. hardcode_action=$hardcode_action_CXX
  29136.  
  29137. # The directories searched by this compiler when creating a shared library.
  29138. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  29139.  
  29140. # Dependencies to place before and after the objects being linked to
  29141. # create a shared library.
  29142. predep_objects=$lt_predep_objects_CXX
  29143. postdep_objects=$lt_postdep_objects_CXX
  29144. predeps=$lt_predeps_CXX
  29145. postdeps=$lt_postdeps_CXX
  29146.  
  29147. # The library search path used internally by the compiler when linking
  29148. # a shared library.
  29149. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  29150.  
  29151. # ### END LIBTOOL TAG CONFIG: CXX
  29152. _LT_EOF
  29153.  
  29154.  ;;
  29155.  
  29156.   esac
  29157. done # for ac_tag
  29158.  
  29159.  
  29160. as_fn_exit 0
  29161. _ACEOF
  29162. ac_clean_files=$ac_clean_files_save
  29163.  
  29164. test $ac_write_fail = 0 ||
  29165.   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  29166.  
  29167.  
  29168. # configure is writing to config.log, and then calls config.status.
  29169. # config.status does its own redirection, appending to config.log.
  29170. # Unfortunately, on DOS this fails, as config.log is still kept open
  29171. # by configure, so config.status won't be able to write to it; its
  29172. # output is simply discarded.  So we exec the FD to /dev/null,
  29173. # effectively closing config.log, so it can be properly (re)opened and
  29174. # appended to by config.status.  When coming back to configure, we
  29175. # need to make the FD available again.
  29176. if test "$no_create" != yes; then
  29177.   ac_cs_success=:
  29178.   ac_config_status_args=
  29179.   test "$silent" = yes &&
  29180.     ac_config_status_args="$ac_config_status_args --quiet"
  29181.   exec 5>/dev/null
  29182.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  29183.   exec 5>>config.log
  29184.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  29185.   # would make configure fail if this is the last instruction.
  29186.   $ac_cs_success || as_fn_exit 1
  29187. fi
  29188. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  29189.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  29190. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  29191. fi
  29192.  
  29193.  
  29194. echo ""
  29195. echo "        prefix:          $prefix"
  29196. echo "        exec_prefix:     $exec_prefix"
  29197. echo "        libdir:          $libdir"
  29198. echo "        includedir:      $includedir"
  29199.  
  29200. echo ""
  29201. echo "        OpenGL:          $enable_opengl (ES1: $enable_gles1 ES2: $enable_gles2)"
  29202.  
  29203. echo ""
  29204. case "x$enable_osmesa$enable_gallium_osmesa" in
  29205. xnoyes)
  29206.         echo "        OSMesa:          lib$OSMESA_LIB (Gallium)"
  29207.         ;;
  29208. xyesno)
  29209.         echo "        OSMesa:          lib$OSMESA_LIB"
  29210.         ;;
  29211. xnono)
  29212.         echo "        OSMesa:          no"
  29213.         ;;
  29214. esac
  29215.  
  29216. echo ""
  29217. if test "x$enable_dri" != xno; then
  29218.         echo "        DRI platform:    $dri_platform"
  29219.         if test -z "$DRI_DIRS"; then
  29220.             echo "        DRI drivers:     no"
  29221.         else
  29222.             echo "        DRI drivers:     $DRI_DIRS"
  29223.         fi
  29224.         echo "        DRI driver dir:  $DRI_DRIVER_INSTALL_DIR"
  29225. fi
  29226.  
  29227. case "x$enable_glx$enable_xlib_glx" in
  29228. xyesyes)
  29229.     echo "        GLX:             Xlib-based"
  29230.     ;;
  29231. xyesno)
  29232.     echo "        GLX:             DRI-based"
  29233.     ;;
  29234. *)
  29235.     echo "        GLX:             $enable_glx"
  29236.     ;;
  29237. esac
  29238.  
  29239. echo ""
  29240. echo "        EGL:             $enable_egl"
  29241. if test "$enable_egl" = yes; then
  29242.     echo "        EGL platforms:   $egl_platforms"
  29243.  
  29244.     egl_drivers=""
  29245.     if test "x$HAVE_EGL_DRIVER_DRI2" != "x"; then
  29246.         egl_drivers="$egl_drivers builtin:egl_dri2"
  29247.     fi
  29248.  
  29249.     echo "        EGL drivers:    $egl_drivers"
  29250. fi
  29251.  
  29252. echo ""
  29253. if test "x$MESA_LLVM" = x1; then
  29254.     echo "        llvm:            yes"
  29255.     echo "        llvm-config:     $LLVM_CONFIG"
  29256.     echo "        llvm-version:    $LLVM_VERSION"
  29257. else
  29258.     echo "        llvm:            no"
  29259. fi
  29260.  
  29261. echo ""
  29262. if test -n "$with_gallium_drivers"; then
  29263.     echo "        Gallium:         yes"
  29264. else
  29265.     echo "        Gallium:         no"
  29266. fi
  29267.  
  29268. echo ""
  29269. echo "        Shader cache:    $enable_shader_cache"
  29270. if test "x$enable_shader_cache" = "xyes"; then
  29271.     echo "        With SHA1 from:  $with_sha1"
  29272. fi
  29273.  
  29274. echo ""
  29275. echo "        Shared libs:     $enable_shared"
  29276. echo "        Static libs:     $enable_static"
  29277. echo "        Shared-glapi:    $enable_shared_glapi"
  29278.  
  29279. # cleanup the CFLAGS/CXXFLAGS/DEFINES vars
  29280. cflags=`echo $CFLAGS | \
  29281.     $SED 's/^ *//;s/  */ /;s/ *$//'`
  29282. cxxflags=`echo $CXXFLAGS | \
  29283.     $SED 's/^ *//;s/  */ /;s/ *$//'`
  29284. defines=`echo $DEFINES | $SED 's/^ *//;s/  */ /;s/ *$//'`
  29285. echo ""
  29286. echo "        CFLAGS:          $cflags"
  29287. echo "        CXXFLAGS:        $cxxflags"
  29288. echo "        Macros:          $defines"
  29289. echo ""
  29290. if test "x$MESA_LLVM" = x1; then
  29291.     echo "        LLVM_CFLAGS:     $LLVM_CFLAGS"
  29292.     echo "        LLVM_CXXFLAGS:   $LLVM_CXXFLAGS"
  29293.     echo "        LLVM_CPPFLAGS:   $LLVM_CPPFLAGS"
  29294.     echo "        LLVM_LDFLAGS:    $LLVM_LDFLAGS"
  29295.     echo ""
  29296. fi
  29297. echo "        PYTHON2:         $PYTHON2"
  29298.  
  29299. echo ""
  29300. echo "        Run '${MAKE-make}' to build Mesa"
  29301. echo ""
  29302.