Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 4 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5 | # |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7 | # |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11 | ## -------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## -------------------- ## |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15 | # Be more Bourne compatible |
| 16 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 18 | emulate sh |
| 19 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 23 | setopt NO_GLOB_SUBST |
| 24 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 25 | case `(set -o) 2>/dev/null` in #( |
| 26 | *posix*) : |
| 27 | set -o posix ;; #( |
| 28 | *) : |
| 29 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 30 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 31 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 32 | |
| 33 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 34 | as_nl=' |
| 35 | ' |
| 36 | export as_nl |
| 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 42 | # but without wasting forks for bash or zsh. |
| 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 45 | as_echo='print -r --' |
| 46 | as_echo_n='print -rn --' |
| 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 48 | as_echo='printf %s\n' |
| 49 | as_echo_n='printf %s' |
| 50 | else |
| 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 53 | as_echo_n='/usr/ucb/echo -n' |
| 54 | else |
| 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 56 | as_echo_n_body='eval |
| 57 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 58 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 59 | *"$as_nl"*) |
| 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 62 | esac; |
| 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 64 | ' |
| 65 | export as_echo_n_body |
| 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 67 | fi |
| 68 | export as_echo_body |
| 69 | as_echo='sh -c $as_echo_body as_echo' |
| 70 | fi |
| 71 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 72 | # The user is always right. |
| 73 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 74 | PATH_SEPARATOR=: |
| 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 77 | PATH_SEPARATOR=';' |
| 78 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 79 | fi |
| 80 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 81 | |
| 82 | # IFS |
| 83 | # We need space, tab and new line, in precisely that order. Quoting is |
| 84 | # there to prevent editors from complaining about space-tab. |
| 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 86 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 87 | IFS=" "" $as_nl" |
| 88 | |
| 89 | # Find who we are. Look in the path if we contain no directory separator. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 90 | as_myself= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 91 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 92 | *[\\/]* ) as_myself=$0 ;; |
| 93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 94 | for as_dir in $PATH |
| 95 | do |
| 96 | IFS=$as_save_IFS |
| 97 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 99 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 100 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 101 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 102 | ;; |
| 103 | esac |
| 104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 105 | # in which case we are not to be found in the path. |
| 106 | if test "x$as_myself" = x; then |
| 107 | as_myself=$0 |
| 108 | fi |
| 109 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 111 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 112 | fi |
| 113 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 114 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 116 | # suppresses any "Segmentation fault" message there. '((' could |
| 117 | # trigger a bug in pdksh 5.2.14. |
| 118 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 119 | do eval test x\${$as_var+set} = xset \ |
| 120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 121 | done |
| 122 | PS1='$ ' |
| 123 | PS2='> ' |
| 124 | PS4='+ ' |
| 125 | |
| 126 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 127 | LC_ALL=C |
| 128 | export LC_ALL |
| 129 | LANGUAGE=C |
| 130 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 131 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 132 | # CDPATH. |
| 133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 134 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 135 | # Use a proper internal environment variable to ensure we don't fall |
| 136 | # into an infinite loop, continuously re-executing ourselves. |
| 137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 138 | _as_can_reexec=no; export _as_can_reexec; |
| 139 | # We cannot yet assume a decent shell, so we have to provide a |
| 140 | # neutralization value for shells without unset; and this also |
| 141 | # works around shells that cannot unset nonexistent variables. |
| 142 | # Preserve -v and -x to the replacement shell. |
| 143 | BASH_ENV=/dev/null |
| 144 | ENV=/dev/null |
| 145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 146 | case $- in # (((( |
| 147 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 148 | *v* ) as_opts=-v ;; |
| 149 | *x* ) as_opts=-x ;; |
| 150 | * ) as_opts= ;; |
| 151 | esac |
| 152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 153 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 154 | # out after a failed `exec'. |
| 155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 156 | as_fn_exit 255 |
| 157 | fi |
| 158 | # We don't want this to propagate to other subprocesses. |
| 159 | { _as_can_reexec=; unset _as_can_reexec;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 160 | if test "x$CONFIG_SHELL" = x; then |
| 161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 162 | emulate sh |
| 163 | NULLCMD=: |
| 164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 165 | # is contrary to our usage. Disable this feature. |
| 166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 167 | setopt NO_GLOB_SUBST |
| 168 | else |
| 169 | case \`(set -o) 2>/dev/null\` in #( |
| 170 | *posix*) : |
| 171 | set -o posix ;; #( |
| 172 | *) : |
| 173 | ;; |
| 174 | esac |
| 175 | fi |
| 176 | " |
| 177 | as_required="as_fn_return () { (exit \$1); } |
| 178 | as_fn_success () { as_fn_return 0; } |
| 179 | as_fn_failure () { as_fn_return 1; } |
| 180 | as_fn_ret_success () { return 0; } |
| 181 | as_fn_ret_failure () { return 1; } |
| 182 | |
| 183 | exitcode=0 |
| 184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 189 | |
| 190 | else |
| 191 | exitcode=1; echo positional parameters were not saved. |
| 192 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 193 | test x\$exitcode = x0 || exit 1 |
| 194 | test -x / || exit 1" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 199 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 200 | if (eval "$as_required") 2>/dev/null; then : |
| 201 | as_have_required=yes |
| 202 | else |
| 203 | as_have_required=no |
| 204 | fi |
| 205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 206 | |
| 207 | else |
| 208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 209 | as_found=false |
| 210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 211 | do |
| 212 | IFS=$as_save_IFS |
| 213 | test -z "$as_dir" && as_dir=. |
| 214 | as_found=: |
| 215 | case $as_dir in #( |
| 216 | /*) |
| 217 | for as_base in sh bash ksh sh5; do |
| 218 | # Try only shells that exist, to save several forks. |
| 219 | as_shell=$as_dir/$as_base |
| 220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 222 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 224 | break 2 |
| 225 | fi |
| 226 | fi |
| 227 | done;; |
| 228 | esac |
| 229 | as_found=false |
| 230 | done |
| 231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 233 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 234 | fi; } |
| 235 | IFS=$as_save_IFS |
| 236 | |
| 237 | |
| 238 | if test "x$CONFIG_SHELL" != x; then : |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 239 | export CONFIG_SHELL |
| 240 | # We cannot yet assume a decent shell, so we have to provide a |
| 241 | # neutralization value for shells without unset; and this also |
| 242 | # works around shells that cannot unset nonexistent variables. |
| 243 | # Preserve -v and -x to the replacement shell. |
| 244 | BASH_ENV=/dev/null |
| 245 | ENV=/dev/null |
| 246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 247 | case $- in # (((( |
| 248 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 249 | *v* ) as_opts=-v ;; |
| 250 | *x* ) as_opts=-x ;; |
| 251 | * ) as_opts= ;; |
| 252 | esac |
| 253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 254 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 255 | # out after a failed `exec'. |
| 256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 257 | exit 255 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 258 | fi |
| 259 | |
| 260 | if test x$as_have_required = xno; then : |
| 261 | $as_echo "$0: This script requires a shell more modern than all" |
| 262 | $as_echo "$0: the shells that I found on your system." |
| 263 | if test x${ZSH_VERSION+set} = xset ; then |
| 264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 266 | else |
| 267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 268 | $0: including any error possibly output before this |
| 269 | $0: message. Then install a modern shell, or manually run |
| 270 | $0: the script under such a shell if you do have one." |
| 271 | fi |
| 272 | exit 1 |
| 273 | fi |
| 274 | fi |
| 275 | fi |
| 276 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 277 | export SHELL |
| 278 | # Unset more variables known to interfere with behavior of common tools. |
| 279 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 280 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 281 | |
| 282 | ## --------------------- ## |
| 283 | ## M4sh Shell Functions. ## |
| 284 | ## --------------------- ## |
| 285 | # as_fn_unset VAR |
| 286 | # --------------- |
| 287 | # Portably unset VAR. |
| 288 | as_fn_unset () |
| 289 | { |
| 290 | { eval $1=; unset $1;} |
| 291 | } |
| 292 | as_unset=as_fn_unset |
| 293 | |
| 294 | # as_fn_set_status STATUS |
| 295 | # ----------------------- |
| 296 | # Set $? to STATUS, without forking. |
| 297 | as_fn_set_status () |
| 298 | { |
| 299 | return $1 |
| 300 | } # as_fn_set_status |
| 301 | |
| 302 | # as_fn_exit STATUS |
| 303 | # ----------------- |
| 304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 305 | as_fn_exit () |
| 306 | { |
| 307 | set +e |
| 308 | as_fn_set_status $1 |
| 309 | exit $1 |
| 310 | } # as_fn_exit |
| 311 | |
| 312 | # as_fn_mkdir_p |
| 313 | # ------------- |
| 314 | # Create "$as_dir" as a directory, including parents if necessary. |
| 315 | as_fn_mkdir_p () |
| 316 | { |
| 317 | |
| 318 | case $as_dir in #( |
| 319 | -*) as_dir=./$as_dir;; |
| 320 | esac |
| 321 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 322 | as_dirs= |
| 323 | while :; do |
| 324 | case $as_dir in #( |
| 325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 326 | *) as_qdir=$as_dir;; |
| 327 | esac |
| 328 | as_dirs="'$as_qdir' $as_dirs" |
| 329 | as_dir=`$as_dirname -- "$as_dir" || |
| 330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 331 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 332 | X"$as_dir" : 'X\(//\)$' \| \ |
| 333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 334 | $as_echo X"$as_dir" | |
| 335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 336 | s//\1/ |
| 337 | q |
| 338 | } |
| 339 | /^X\(\/\/\)[^/].*/{ |
| 340 | s//\1/ |
| 341 | q |
| 342 | } |
| 343 | /^X\(\/\/\)$/{ |
| 344 | s//\1/ |
| 345 | q |
| 346 | } |
| 347 | /^X\(\/\).*/{ |
| 348 | s//\1/ |
| 349 | q |
| 350 | } |
| 351 | s/.*/./; q'` |
| 352 | test -d "$as_dir" && break |
| 353 | done |
| 354 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 356 | |
| 357 | |
| 358 | } # as_fn_mkdir_p |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 359 | |
| 360 | # as_fn_executable_p FILE |
| 361 | # ----------------------- |
| 362 | # Test if FILE is an executable regular file. |
| 363 | as_fn_executable_p () |
| 364 | { |
| 365 | test -f "$1" && test -x "$1" |
| 366 | } # as_fn_executable_p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 367 | # as_fn_append VAR VALUE |
| 368 | # ---------------------- |
| 369 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 370 | # advantage of any shell optimizations that allow amortized linear growth over |
| 371 | # repeated appends, instead of the typical quadratic growth present in naive |
| 372 | # implementations. |
| 373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 374 | eval 'as_fn_append () |
| 375 | { |
| 376 | eval $1+=\$2 |
| 377 | }' |
| 378 | else |
| 379 | as_fn_append () |
| 380 | { |
| 381 | eval $1=\$$1\$2 |
| 382 | } |
| 383 | fi # as_fn_append |
| 384 | |
| 385 | # as_fn_arith ARG... |
| 386 | # ------------------ |
| 387 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 389 | # must be portable across $(()) and expr. |
| 390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 391 | eval 'as_fn_arith () |
| 392 | { |
| 393 | as_val=$(( $* )) |
| 394 | }' |
| 395 | else |
| 396 | as_fn_arith () |
| 397 | { |
| 398 | as_val=`expr "$@" || test $? -eq 1` |
| 399 | } |
| 400 | fi # as_fn_arith |
| 401 | |
| 402 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 404 | # ---------------------------------------- |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 407 | # script with STATUS, using 1 if that was 0. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 408 | as_fn_error () |
| 409 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 411 | if test "$4"; then |
| 412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 414 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 415 | $as_echo "$as_me: error: $2" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 416 | as_fn_exit $as_status |
| 417 | } # as_fn_error |
| 418 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 419 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 421 | as_expr=expr |
| 422 | else |
| 423 | as_expr=false |
| 424 | fi |
| 425 | |
| 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 427 | as_basename=basename |
| 428 | else |
| 429 | as_basename=false |
| 430 | fi |
| 431 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 433 | as_dirname=dirname |
| 434 | else |
| 435 | as_dirname=false |
| 436 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 437 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 438 | as_me=`$as_basename -- "$0" || |
| 439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 440 | X"$0" : 'X\(//\)$' \| \ |
| 441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 442 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 444 | s//\1/ |
| 445 | q |
| 446 | } |
| 447 | /^X\/\(\/\/\)$/{ |
| 448 | s//\1/ |
| 449 | q |
| 450 | } |
| 451 | /^X\/\(\/\).*/{ |
| 452 | s//\1/ |
| 453 | q |
| 454 | } |
| 455 | s/.*/./; q'` |
| 456 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 457 | # Avoid depending upon Character Ranges. |
| 458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 461 | as_cr_digits='0123456789' |
| 462 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 463 | |
| 464 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 470 | sed -n ' |
| 471 | p |
| 472 | /[$]LINENO/= |
| 473 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 474 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 475 | s/[$]LINENO.*/&-/ |
| 476 | t lineno |
| 477 | b |
| 478 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 479 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 480 | :loop |
| 481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 482 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 483 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 484 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 485 | chmod +x "$as_me.lineno" || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 487 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 489 | # already done that, so ensure we don't try to do so again and fall |
| 490 | # in an infinite loop. This has already happened in practice. |
| 491 | _as_can_reexec=no; export _as_can_reexec |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 492 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 493 | # (the dirname of $[0] is not the place where we might find the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 494 | # original and so on. Autoconf is especially sensitive to this). |
| 495 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 496 | # Exit status is that of the last command. |
| 497 | exit |
| 498 | } |
| 499 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 500 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 501 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 502 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 503 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 505 | xy) ECHO_C='\c';; |
| 506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 507 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 508 | esac;; |
| 509 | *) |
| 510 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 511 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 512 | |
| 513 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 514 | if test -d conf$$.dir; then |
| 515 | rm -f conf$$.dir/conf$$.file |
| 516 | else |
| 517 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 518 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 519 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 520 | if (echo >conf$$.file) 2>/dev/null; then |
| 521 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 522 | as_ln_s='ln -s' |
| 523 | # ... but there are two gotchas: |
| 524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 526 | # In both cases, we have to default to `cp -pR'. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 528 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 530 | as_ln_s=ln |
| 531 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 532 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 533 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 534 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 535 | as_ln_s='cp -pR' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 536 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 538 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 539 | |
| 540 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 542 | else |
| 543 | test -d ./-p && rmdir ./-p |
| 544 | as_mkdir_p=false |
| 545 | fi |
| 546 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 547 | as_test_x='test -x' |
| 548 | as_executable_p=as_fn_executable_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 549 | |
| 550 | # Sed expression to map a string onto a valid CPP name. |
| 551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 552 | |
| 553 | # Sed expression to map a string onto a valid variable name. |
| 554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 555 | |
| 556 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 558 | exec 6>&1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 559 | |
| 560 | # Name of the host. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 562 | # so uname gets run too. |
| 563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 564 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 565 | # |
| 566 | # Initializations. |
| 567 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 568 | ac_default_prefix=/usr/local |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 569 | ac_clean_files= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 570 | ac_config_libobj_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 571 | LIBOBJS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 572 | cross_compiling=no |
| 573 | subdirs= |
| 574 | MFLAGS= |
| 575 | MAKEFLAGS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 576 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 577 | # Identity of this package. |
| 578 | PACKAGE_NAME= |
| 579 | PACKAGE_TARNAME= |
| 580 | PACKAGE_VERSION= |
| 581 | PACKAGE_STRING= |
| 582 | PACKAGE_BUGREPORT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 583 | PACKAGE_URL= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 584 | |
| 585 | ac_unique_file="version.h" |
| 586 | # Factoring default headers for most tests. |
| 587 | ac_includes_default="\ |
| 588 | #include <stdio.h> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 589 | #ifdef HAVE_SYS_TYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 590 | # include <sys/types.h> |
| 591 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 592 | #ifdef HAVE_SYS_STAT_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 593 | # include <sys/stat.h> |
| 594 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 595 | #ifdef STDC_HEADERS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 596 | # include <stdlib.h> |
| 597 | # include <stddef.h> |
| 598 | #else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 599 | # ifdef HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 600 | # include <stdlib.h> |
| 601 | # endif |
| 602 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 603 | #ifdef HAVE_STRING_H |
| 604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 605 | # include <memory.h> |
| 606 | # endif |
| 607 | # include <string.h> |
| 608 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 609 | #ifdef HAVE_STRINGS_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 610 | # include <strings.h> |
| 611 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 612 | #ifdef HAVE_INTTYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 613 | # include <inttypes.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 614 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 615 | #ifdef HAVE_STDINT_H |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 616 | # include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 617 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 618 | #ifdef HAVE_UNISTD_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 619 | # include <unistd.h> |
| 620 | #endif" |
| 621 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 622 | gt_needs= |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 623 | ac_header_list= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 624 | gl_use_threads_default= |
| 625 | ac_func_list= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 626 | ac_subst_vars='LTLIBOBJS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 627 | LIBOBJS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 628 | BUILD_LDFLAGS |
| 629 | BUILD_CFLAGS |
Theodore Ts'o | 5b5bd2c | 2014-07-10 00:17:05 -0400 | [diff] [blame] | 630 | MKINSTALLDIRS |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 631 | INCLUDES |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 632 | DO_TEST_SUITE |
| 633 | ET_DIR |
| 634 | SS_DIR |
| 635 | LDFLAG_STATIC |
| 636 | root_sysconfdir |
| 637 | root_libdir |
| 638 | root_sbindir |
| 639 | root_bindir |
| 640 | root_prefix |
| 641 | UNIX_CMT |
| 642 | CYGWIN_CMT |
| 643 | LINUX_CMT |
| 644 | UNI_DIFF_OPTS |
| 645 | SEM_INIT_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 646 | SOCKET_LIB |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 647 | SIZEOF_OFF_T |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 648 | SIZEOF_LONG_LONG |
| 649 | SIZEOF_LONG |
| 650 | SIZEOF_INT |
| 651 | SIZEOF_SHORT |
| 652 | BUILD_CC |
| 653 | MAKEINFO |
| 654 | STRIP |
| 655 | AR |
| 656 | LDCONFIG |
| 657 | PERL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 658 | AWK |
| 659 | CHMOD |
| 660 | RM |
| 661 | CP |
| 662 | MV |
| 663 | LN_S |
| 664 | LN |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 665 | ifNotGNUmake |
| 666 | ifGNUmake |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 667 | BINARY_TYPE |
| 668 | POSUB |
| 669 | LTLIBINTL |
| 670 | LIBINTL |
| 671 | INTLLIBS |
| 672 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 673 | INTLOBJS |
| 674 | GENCAT |
| 675 | INSTOBJEXT |
| 676 | DATADIRNAME |
| 677 | CATOBJEXT |
| 678 | USE_INCLUDED_LIBINTL |
| 679 | BUILD_INCLUDED_LIBINTL |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 680 | LTLIBC |
| 681 | WINDRES |
| 682 | WOE32 |
| 683 | WOE32DLL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 684 | HAVE_WPRINTF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 685 | HAVE_NEWLOCALE |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 686 | HAVE_SNPRINTF |
| 687 | HAVE_ASPRINTF |
| 688 | HAVE_POSIX_PRINTF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 689 | INTL_DEFAULT_VERBOSITY |
| 690 | INTL_MACOSX_LIBS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 691 | GLIBC21 |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 692 | INTLBISON |
| 693 | LTLIBICONV |
| 694 | LIBICONV |
| 695 | LTLIBMULTITHREAD |
| 696 | LIBMULTITHREAD |
| 697 | LTLIBTHREAD |
| 698 | LIBTHREAD |
| 699 | LIBPTH_PREFIX |
| 700 | LTLIBPTH |
| 701 | LIBPTH |
| 702 | PRI_MACROS_BROKEN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 703 | ALLOCA |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 704 | HAVE_VISIBILITY |
| 705 | CFLAG_VISIBILITY |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 706 | RANLIB |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 707 | GLIBC2 |
| 708 | XGETTEXT_EXTRA_OPTIONS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 709 | MSGMERGE |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 710 | XGETTEXT_015 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 711 | XGETTEXT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 712 | GMSGFMT_015 |
| 713 | MSGFMT_015 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 714 | GMSGFMT |
| 715 | MSGFMT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 716 | GETTEXT_MACRO_VERSION |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 717 | USE_NLS |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 718 | SED |
| 719 | MKDIR_P |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 720 | INSTALL_DATA |
| 721 | INSTALL_SCRIPT |
| 722 | INSTALL_PROGRAM |
| 723 | SET_MAKE |
| 724 | VERSION |
| 725 | PACKAGE |
| 726 | GETTEXT_PACKAGE |
| 727 | UUIDD_CMT |
| 728 | E2INITRD_MAN |
| 729 | E2INITRD_PROG |
| 730 | FSCK_MAN |
| 731 | FSCK_PROG |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 732 | DEFRAG_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 733 | RESIZER_CMT |
| 734 | IMAGER_CMT |
| 735 | DEBUGFS_CMT |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 736 | QUOTA_CMT |
| 737 | DEPPROFILED_LIBQUOTA |
| 738 | PROFILED_LIBQUOTA |
| 739 | DEPSTATIC_LIBQUOTA |
| 740 | STATIC_LIBQUOTA |
| 741 | DEPLIBQUOTA |
| 742 | LIBQUOTA |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 743 | QUOTA_MAN_COMMENT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 744 | BLKID_CMT |
| 745 | DEPPROFILED_LIBBLKID |
| 746 | PROFILED_LIBBLKID |
| 747 | DEPSTATIC_LIBBLKID |
| 748 | STATIC_LIBBLKID |
| 749 | DEPLIBBLKID |
| 750 | LIBBLKID |
| 751 | UUID_CMT |
| 752 | DEPPROFILED_LIBUUID |
| 753 | PROFILED_LIBUUID |
| 754 | DEPSTATIC_LIBUUID |
| 755 | STATIC_LIBUUID |
| 756 | DEPLIBUUID |
| 757 | LIBUUID |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 758 | PKG_CONFIG_LIBDIR |
| 759 | PKG_CONFIG_PATH |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 760 | PKG_CONFIG |
| 761 | TEST_IO_CMT |
| 762 | PRIVATE_LIBS_CMT |
| 763 | LDFLAG_DYNAMIC |
| 764 | PROFILED_LIB_EXT |
| 765 | STATIC_LIB_EXT |
| 766 | LIB_EXT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 767 | PROFILE_CMT |
| 768 | BSDLIB_CMT |
| 769 | ELF_CMT |
| 770 | HTREE_CMT |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 771 | Q |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 772 | ES |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 773 | E |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 774 | LINK_BUILD_FLAGS |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 775 | SYMLINK_RELATIVE |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 776 | LINK_INSTALL_FLAGS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 777 | MAINTAINER_CMT |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 778 | EGREP |
| 779 | GREP |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 780 | CPP |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 781 | RDYNAMIC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 782 | DLOPEN_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 783 | OBJEXT |
| 784 | EXEEXT |
| 785 | ac_ct_CC |
| 786 | CPPFLAGS |
| 787 | LDFLAGS |
| 788 | CFLAGS |
| 789 | CC |
| 790 | host_os |
| 791 | host_vendor |
| 792 | host_cpu |
| 793 | host |
| 794 | build_os |
| 795 | build_vendor |
| 796 | build_cpu |
| 797 | build |
| 798 | E2FSPROGS_PKGVER |
| 799 | E2FSPROGS_VERSION |
| 800 | E2FSPROGS_DAY |
| 801 | E2FSPROGS_MONTH |
| 802 | E2FSPROGS_YEAR |
| 803 | target_alias |
| 804 | host_alias |
| 805 | build_alias |
| 806 | LIBS |
| 807 | ECHO_T |
| 808 | ECHO_N |
| 809 | ECHO_C |
| 810 | DEFS |
| 811 | mandir |
| 812 | localedir |
| 813 | libdir |
| 814 | psdir |
| 815 | pdfdir |
| 816 | dvidir |
| 817 | htmldir |
| 818 | infodir |
| 819 | docdir |
| 820 | oldincludedir |
| 821 | includedir |
| 822 | localstatedir |
| 823 | sharedstatedir |
| 824 | sysconfdir |
| 825 | datadir |
| 826 | datarootdir |
| 827 | libexecdir |
| 828 | sbindir |
| 829 | bindir |
| 830 | program_transform_name |
| 831 | prefix |
| 832 | exec_prefix |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 833 | PACKAGE_URL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 834 | PACKAGE_BUGREPORT |
| 835 | PACKAGE_STRING |
| 836 | PACKAGE_VERSION |
| 837 | PACKAGE_TARNAME |
| 838 | PACKAGE_NAME |
| 839 | PATH_SEPARATOR |
| 840 | SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 841 | ac_subst_files='MCONFIG |
| 842 | MAKEFILE_ELF |
| 843 | MAKEFILE_BSDLIB |
| 844 | MAKEFILE_PROFILE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 845 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 846 | ASM_TYPES_HEADER |
| 847 | PUBLIC_CONFIG_HEADER' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 848 | ac_user_opts=' |
| 849 | enable_option_checking |
| 850 | with_diet_libc |
| 851 | with_cc |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 852 | with_ccopts |
| 853 | with_ldopts |
| 854 | with_root_prefix |
| 855 | enable_maintainer_mode |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 856 | enable_symlink_install |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 857 | enable_relative_symlinks |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 858 | enable_symlink_relative_symlinks |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 859 | enable_symlink_build |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 860 | enable_verbose_makecmds |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 861 | enable_compression |
| 862 | enable_htree |
| 863 | enable_elf_shlibs |
| 864 | enable_bsd_shlibs |
| 865 | enable_profile |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 866 | enable_gcov |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 867 | enable_jbd_debug |
| 868 | enable_blkid_debug |
| 869 | enable_testio_debug |
| 870 | enable_libuuid |
| 871 | enable_libblkid |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 872 | enable_quota |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 873 | enable_backtrace |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 874 | enable_debugfs |
| 875 | enable_imager |
| 876 | enable_resizer |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 877 | enable_defrag |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 878 | enable_fsck |
| 879 | enable_e2initrd_helper |
| 880 | enable_tls |
| 881 | enable_uuidd |
| 882 | enable_nls |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 883 | enable_threads |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 884 | with_gnu_ld |
| 885 | enable_rpath |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 886 | with_libpth_prefix |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 887 | with_libiconv_prefix |
| 888 | with_included_gettext |
| 889 | with_libintl_prefix |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 890 | with_multiarch |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 891 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 892 | ac_precious_vars='build_alias |
| 893 | host_alias |
| 894 | target_alias |
| 895 | CC |
| 896 | CFLAGS |
| 897 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 898 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 899 | CPPFLAGS |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 900 | CPP |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 901 | PKG_CONFIG |
| 902 | PKG_CONFIG_PATH |
| 903 | PKG_CONFIG_LIBDIR' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 904 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 905 | |
| 906 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 907 | ac_init_help= |
| 908 | ac_init_version=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 909 | ac_unrecognized_opts= |
| 910 | ac_unrecognized_sep= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 911 | # The variables have the same names as the options, with |
| 912 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 913 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 914 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 915 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 916 | no_recursion= |
| 917 | prefix=NONE |
| 918 | program_prefix=NONE |
| 919 | program_suffix=NONE |
| 920 | program_transform_name=s,x,x, |
| 921 | silent= |
| 922 | site= |
| 923 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 924 | verbose= |
| 925 | x_includes=NONE |
| 926 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 927 | |
| 928 | # Installation directory options. |
| 929 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 930 | # and all the variables that are supposed to be based on exec_prefix |
| 931 | # by default will actually change. |
| 932 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 933 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 934 | bindir='${exec_prefix}/bin' |
| 935 | sbindir='${exec_prefix}/sbin' |
| 936 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 937 | datarootdir='${prefix}/share' |
| 938 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 939 | sysconfdir='${prefix}/etc' |
| 940 | sharedstatedir='${prefix}/com' |
| 941 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 942 | includedir='${prefix}/include' |
| 943 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 944 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 945 | infodir='${datarootdir}/info' |
| 946 | htmldir='${docdir}' |
| 947 | dvidir='${docdir}' |
| 948 | pdfdir='${docdir}' |
| 949 | psdir='${docdir}' |
| 950 | libdir='${exec_prefix}/lib' |
| 951 | localedir='${datarootdir}/locale' |
| 952 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 953 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 954 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 955 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 956 | for ac_option |
| 957 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 958 | # If the previous option needs an argument, assign it. |
| 959 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 960 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 961 | ac_prev= |
| 962 | continue |
| 963 | fi |
| 964 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 965 | case $ac_option in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 966 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 967 | *=) ac_optarg= ;; |
| 968 | *) ac_optarg=yes ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 969 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 970 | |
| 971 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 972 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 973 | case $ac_dashdash$ac_option in |
| 974 | --) |
| 975 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 976 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 977 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 978 | ac_prev=bindir ;; |
| 979 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 980 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 981 | |
| 982 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 983 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 984 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 985 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 986 | |
| 987 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 988 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 989 | ac_prev=cache_file ;; |
| 990 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 991 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 992 | cache_file=$ac_optarg ;; |
| 993 | |
| 994 | --config-cache | -C) |
| 995 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 996 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 997 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 998 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 999 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1000 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1001 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1002 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1003 | | --dataroo | --dataro | --datar) |
| 1004 | ac_prev=datarootdir ;; |
| 1005 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1006 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1007 | datarootdir=$ac_optarg ;; |
| 1008 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1009 | -disable-* | --disable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1010 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1011 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1012 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1013 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1014 | ac_useropt_orig=$ac_useropt |
| 1015 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1016 | case $ac_user_opts in |
| 1017 | *" |
| 1018 | "enable_$ac_useropt" |
| 1019 | "*) ;; |
| 1020 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1021 | ac_unrecognized_sep=', ';; |
| 1022 | esac |
| 1023 | eval enable_$ac_useropt=no ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1024 | |
| 1025 | -docdir | --docdir | --docdi | --doc | --do) |
| 1026 | ac_prev=docdir ;; |
| 1027 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1028 | docdir=$ac_optarg ;; |
| 1029 | |
| 1030 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1031 | ac_prev=dvidir ;; |
| 1032 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1033 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1034 | |
| 1035 | -enable-* | --enable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1036 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1037 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1038 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1039 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1040 | ac_useropt_orig=$ac_useropt |
| 1041 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1042 | case $ac_user_opts in |
| 1043 | *" |
| 1044 | "enable_$ac_useropt" |
| 1045 | "*) ;; |
| 1046 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1047 | ac_unrecognized_sep=', ';; |
| 1048 | esac |
| 1049 | eval enable_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1050 | |
| 1051 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1052 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1053 | | --exec | --exe | --ex) |
| 1054 | ac_prev=exec_prefix ;; |
| 1055 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1056 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1057 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1058 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1059 | |
| 1060 | -gas | --gas | --ga | --g) |
| 1061 | # Obsolete; use --with-gas. |
| 1062 | with_gas=yes ;; |
| 1063 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1064 | -help | --help | --hel | --he | -h) |
| 1065 | ac_init_help=long ;; |
| 1066 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1067 | ac_init_help=recursive ;; |
| 1068 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1069 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1070 | |
| 1071 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1072 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1073 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1074 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1075 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1076 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1077 | ac_prev=htmldir ;; |
| 1078 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1079 | | --ht=*) |
| 1080 | htmldir=$ac_optarg ;; |
| 1081 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1082 | -includedir | --includedir | --includedi | --included | --include \ |
| 1083 | | --includ | --inclu | --incl | --inc) |
| 1084 | ac_prev=includedir ;; |
| 1085 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1086 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1087 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1088 | |
| 1089 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1090 | ac_prev=infodir ;; |
| 1091 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1092 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1093 | |
| 1094 | -libdir | --libdir | --libdi | --libd) |
| 1095 | ac_prev=libdir ;; |
| 1096 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1097 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1098 | |
| 1099 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1100 | | --libexe | --libex | --libe) |
| 1101 | ac_prev=libexecdir ;; |
| 1102 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1103 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1104 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1105 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1106 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1107 | ac_prev=localedir ;; |
| 1108 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1109 | localedir=$ac_optarg ;; |
| 1110 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1111 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1112 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1113 | ac_prev=localstatedir ;; |
| 1114 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1115 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1116 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1117 | |
| 1118 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1119 | ac_prev=mandir ;; |
| 1120 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1121 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1122 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1123 | -nfp | --nfp | --nf) |
| 1124 | # Obsolete; use --without-fp. |
| 1125 | with_fp=no ;; |
| 1126 | |
| 1127 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1128 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1129 | no_create=yes ;; |
| 1130 | |
| 1131 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1132 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1133 | no_recursion=yes ;; |
| 1134 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1135 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1136 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1137 | | --oldin | --oldi | --old | --ol | --o) |
| 1138 | ac_prev=oldincludedir ;; |
| 1139 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1140 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1141 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1142 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1143 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1144 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1145 | ac_prev=prefix ;; |
| 1146 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1147 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1148 | |
| 1149 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1150 | | --program-pre | --program-pr | --program-p) |
| 1151 | ac_prev=program_prefix ;; |
| 1152 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1153 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1154 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1155 | |
| 1156 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1157 | | --program-suf | --program-su | --program-s) |
| 1158 | ac_prev=program_suffix ;; |
| 1159 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1160 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1161 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1162 | |
| 1163 | -program-transform-name | --program-transform-name \ |
| 1164 | | --program-transform-nam | --program-transform-na \ |
| 1165 | | --program-transform-n | --program-transform- \ |
| 1166 | | --program-transform | --program-transfor \ |
| 1167 | | --program-transfo | --program-transf \ |
| 1168 | | --program-trans | --program-tran \ |
| 1169 | | --progr-tra | --program-tr | --program-t) |
| 1170 | ac_prev=program_transform_name ;; |
| 1171 | -program-transform-name=* | --program-transform-name=* \ |
| 1172 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1173 | | --program-transform-n=* | --program-transform-=* \ |
| 1174 | | --program-transform=* | --program-transfor=* \ |
| 1175 | | --program-transfo=* | --program-transf=* \ |
| 1176 | | --program-trans=* | --program-tran=* \ |
| 1177 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1178 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1179 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1180 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1181 | ac_prev=pdfdir ;; |
| 1182 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1183 | pdfdir=$ac_optarg ;; |
| 1184 | |
| 1185 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1186 | ac_prev=psdir ;; |
| 1187 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1188 | psdir=$ac_optarg ;; |
| 1189 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1190 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1191 | | -silent | --silent | --silen | --sile | --sil) |
| 1192 | silent=yes ;; |
| 1193 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1194 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1195 | ac_prev=sbindir ;; |
| 1196 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1197 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1198 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1199 | |
| 1200 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1201 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1202 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1203 | | --sha | --sh) |
| 1204 | ac_prev=sharedstatedir ;; |
| 1205 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1206 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1207 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1208 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1209 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1210 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1211 | -site | --site | --sit) |
| 1212 | ac_prev=site ;; |
| 1213 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1214 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1215 | |
| 1216 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1217 | ac_prev=srcdir ;; |
| 1218 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1219 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1220 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1221 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1222 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1223 | ac_prev=sysconfdir ;; |
| 1224 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1225 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1226 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1227 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1228 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1229 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1230 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1231 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1232 | |
| 1233 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1234 | verbose=yes ;; |
| 1235 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1236 | -version | --version | --versio | --versi | --vers | -V) |
| 1237 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1238 | |
| 1239 | -with-* | --with-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1240 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1241 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1242 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1243 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1244 | ac_useropt_orig=$ac_useropt |
| 1245 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1246 | case $ac_user_opts in |
| 1247 | *" |
| 1248 | "with_$ac_useropt" |
| 1249 | "*) ;; |
| 1250 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1251 | ac_unrecognized_sep=', ';; |
| 1252 | esac |
| 1253 | eval with_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1254 | |
| 1255 | -without-* | --without-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1256 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1257 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1258 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1259 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1260 | ac_useropt_orig=$ac_useropt |
| 1261 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1262 | case $ac_user_opts in |
| 1263 | *" |
| 1264 | "with_$ac_useropt" |
| 1265 | "*) ;; |
| 1266 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1267 | ac_unrecognized_sep=', ';; |
| 1268 | esac |
| 1269 | eval with_$ac_useropt=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1270 | |
| 1271 | --x) |
| 1272 | # Obsolete; use --with-x. |
| 1273 | with_x=yes ;; |
| 1274 | |
| 1275 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1276 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1277 | ac_prev=x_includes ;; |
| 1278 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1279 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1280 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1281 | |
| 1282 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1283 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1284 | ac_prev=x_libraries ;; |
| 1285 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1286 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1287 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1288 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1289 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1290 | Try \`$0 --help' for more information" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1291 | ;; |
| 1292 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1293 | *=*) |
| 1294 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1295 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1296 | case $ac_envvar in #( |
| 1297 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1298 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1299 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1300 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1301 | export $ac_envvar ;; |
| 1302 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1303 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1304 | # FIXME: should be removed in autoconf 3.0. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1305 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1306 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1307 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1308 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1309 | ;; |
| 1310 | |
| 1311 | esac |
| 1312 | done |
| 1313 | |
| 1314 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1315 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1316 | as_fn_error $? "missing argument to $ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1317 | fi |
| 1318 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1319 | if test -n "$ac_unrecognized_opts"; then |
| 1320 | case $enable_option_checking in |
| 1321 | no) ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1322 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1323 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1324 | esac |
| 1325 | fi |
| 1326 | |
| 1327 | # Check all directory arguments for consistency. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1328 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1329 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1330 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1331 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1332 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1333 | eval ac_val=\$$ac_var |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1334 | # Remove trailing slashes. |
| 1335 | case $ac_val in |
| 1336 | */ ) |
| 1337 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1338 | eval $ac_var=\$ac_val;; |
| 1339 | esac |
| 1340 | # Be sure to have absolute directory names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1341 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1342 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1343 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1344 | esac |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1345 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1346 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1347 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1348 | # There might be people who depend on the old broken behavior: `$host' |
| 1349 | # used to hold the argument of --host etc. |
| 1350 | # FIXME: To remove some day. |
| 1351 | build=$build_alias |
| 1352 | host=$host_alias |
| 1353 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1354 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1355 | # FIXME: To remove some day. |
| 1356 | if test "x$host_alias" != x; then |
| 1357 | if test "x$build_alias" = x; then |
| 1358 | cross_compiling=maybe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1359 | elif test "x$build_alias" != "x$host_alias"; then |
| 1360 | cross_compiling=yes |
| 1361 | fi |
| 1362 | fi |
| 1363 | |
| 1364 | ac_tool_prefix= |
| 1365 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1366 | |
| 1367 | test "$silent" = yes && exec 6>/dev/null |
| 1368 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1369 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1370 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1371 | ac_ls_di=`ls -di .` && |
| 1372 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1373 | as_fn_error $? "working directory cannot be determined" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1374 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1375 | as_fn_error $? "pwd does not report name of working directory" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1376 | |
| 1377 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1378 | # Find the source files, if location was not specified. |
| 1379 | if test -z "$srcdir"; then |
| 1380 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1381 | # Try the directory containing this script, then the parent directory. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1382 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1383 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1384 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1385 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1386 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1387 | $as_echo X"$as_myself" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1388 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1389 | s//\1/ |
| 1390 | q |
| 1391 | } |
| 1392 | /^X\(\/\/\)[^/].*/{ |
| 1393 | s//\1/ |
| 1394 | q |
| 1395 | } |
| 1396 | /^X\(\/\/\)$/{ |
| 1397 | s//\1/ |
| 1398 | q |
| 1399 | } |
| 1400 | /^X\(\/\).*/{ |
| 1401 | s//\1/ |
| 1402 | q |
| 1403 | } |
| 1404 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1405 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1406 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1407 | srcdir=.. |
| 1408 | fi |
| 1409 | else |
| 1410 | ac_srcdir_defaulted=no |
| 1411 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1412 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1413 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1414 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1415 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1416 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1417 | ac_abs_confdir=`( |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1418 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1419 | pwd)` |
| 1420 | # When building in place, set srcdir=. |
| 1421 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1422 | srcdir=. |
| 1423 | fi |
| 1424 | # Remove unnecessary trailing slashes from srcdir. |
| 1425 | # Double slashes in file names in object file debugging info |
| 1426 | # mess up M-x gdb in Emacs. |
| 1427 | case $srcdir in |
| 1428 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1429 | esac |
| 1430 | for ac_var in $ac_precious_vars; do |
| 1431 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1432 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1433 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1434 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1435 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1436 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1437 | # |
| 1438 | # Report the --help message. |
| 1439 | # |
| 1440 | if test "$ac_init_help" = "long"; then |
| 1441 | # Omit some internal or obsolete options to make the list less imposing. |
| 1442 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1443 | cat <<_ACEOF |
| 1444 | \`configure' configures this package to adapt to many kinds of systems. |
| 1445 | |
| 1446 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1447 | |
| 1448 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1449 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1450 | |
| 1451 | Defaults for the options are specified in brackets. |
| 1452 | |
| 1453 | Configuration: |
| 1454 | -h, --help display this help and exit |
| 1455 | --help=short display options specific to this package |
| 1456 | --help=recursive display the short help of all the included packages |
| 1457 | -V, --version display version information and exit |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1458 | -q, --quiet, --silent do not print \`checking ...' messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1459 | --cache-file=FILE cache test results in FILE [disabled] |
| 1460 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1461 | -n, --no-create do not create output files |
| 1462 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1463 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1464 | Installation directories: |
| 1465 | --prefix=PREFIX install architecture-independent files in PREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1466 | [$ac_default_prefix] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1467 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1468 | [PREFIX] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1469 | |
| 1470 | By default, \`make install' will install all the files in |
| 1471 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1472 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1473 | for instance \`--prefix=\$HOME'. |
| 1474 | |
| 1475 | For better control, use the options below. |
| 1476 | |
| 1477 | Fine tuning of the installation directories: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1478 | --bindir=DIR user executables [EPREFIX/bin] |
| 1479 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1480 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1481 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1482 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1483 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1484 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1485 | --includedir=DIR C header files [PREFIX/include] |
| 1486 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1487 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1488 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1489 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1490 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1491 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1492 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1493 | --htmldir=DIR html documentation [DOCDIR] |
| 1494 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1495 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1496 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1497 | _ACEOF |
| 1498 | |
| 1499 | cat <<\_ACEOF |
| 1500 | |
| 1501 | System types: |
| 1502 | --build=BUILD configure for building on BUILD [guessed] |
| 1503 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1504 | _ACEOF |
| 1505 | fi |
| 1506 | |
| 1507 | if test -n "$ac_init_help"; then |
| 1508 | |
| 1509 | cat <<\_ACEOF |
| 1510 | |
| 1511 | Optional Features: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1512 | --disable-option-checking ignore unrecognized --enable/--with options |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1513 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1514 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1515 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1516 | --enable-symlink-install use symlinks when installing instead of hard links |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 1517 | --enable-relative-symlinks use relative symlinks when installing |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1518 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1519 | --enable-symlink-build use symlinks while building instead of hard links |
| 1520 | --enable-verbose-makecmds enable verbose make command output |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1521 | --enable-compression enable EXPERIMENTAL compression support |
| 1522 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1523 | --enable-elf-shlibs select ELF shared libraries |
| 1524 | --enable-bsd-shlibs select BSD shared libraries |
| 1525 | --enable-profile build profiling libraries |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 1526 | --enable-gcov build for coverage testing using gcov |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1527 | --enable-jbd-debug enable journal debugging |
| 1528 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 1529 | --disable-testio-debug disable the use of the test I/O manager for debugging |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1530 | --disable-libuuid do not build private uuid library |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1531 | --disable-libblkid do not build private blkid library |
Eric Sandeen | 7b8912e | 2012-11-27 12:21:56 -0600 | [diff] [blame] | 1532 | --enable-quota enable quota support |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 1533 | --disable-backtrace disable use backtrace |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1534 | --disable-debugfs disable support of debugfs program |
| 1535 | --disable-imager disable support of e2image program |
| 1536 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 1537 | --disable-defrag disable support of e4defrag program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1538 | --enable-fsck build fsck wrapper program |
| 1539 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1540 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1541 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1542 | --disable-nls do not use Native Language Support |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1543 | --enable-threads={posix|solaris|pth|windows} |
| 1544 | specify multithreading API |
| 1545 | --disable-threads build without multithread safety |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1546 | --disable-rpath do not hardcode runtime library paths |
| 1547 | |
| 1548 | Optional Packages: |
| 1549 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1550 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1551 | --with-diet-libc use diet libc |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 1552 | --with-cc no longer supported, use CC= instead |
| 1553 | --with-ccopts no longer supported, use CFLAGS= instead |
| 1554 | --with-ldopts no longer supported, use LDFLAGS= instead |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1555 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1556 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1557 | --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib |
| 1558 | --without-libpth-prefix don't search for libpth in includedir and libdir |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1559 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1560 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1561 | --with-included-gettext use the GNU gettext library included here |
| 1562 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1563 | --without-libintl-prefix don't search for libintl in includedir and libdir |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 1564 | --with-multiarch=ARCH specify the multiarch triplet |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1565 | |
| 1566 | Some influential environment variables: |
| 1567 | CC C compiler command |
| 1568 | CFLAGS C compiler flags |
| 1569 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1570 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1571 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1572 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1573 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1574 | CPP C preprocessor |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1575 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1576 | PKG_CONFIG_PATH |
| 1577 | directories to add to pkg-config's search path |
| 1578 | PKG_CONFIG_LIBDIR |
| 1579 | path overriding pkg-config's built-in search path |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1580 | |
| 1581 | Use these variables to override the choices made by `configure' or to help |
| 1582 | it to find libraries and programs with nonstandard names/locations. |
| 1583 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1584 | Report bugs to the package provider. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1585 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1586 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1587 | fi |
| 1588 | |
| 1589 | if test "$ac_init_help" = "recursive"; then |
| 1590 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1591 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1592 | test -d "$ac_dir" || |
| 1593 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1594 | continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1595 | ac_builddir=. |
| 1596 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1597 | case "$ac_dir" in |
| 1598 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1599 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1600 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1601 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1602 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1603 | case $ac_top_builddir_sub in |
| 1604 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1605 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1606 | esac ;; |
| 1607 | esac |
| 1608 | ac_abs_top_builddir=$ac_pwd |
| 1609 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1610 | # for backward compatibility: |
| 1611 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1612 | |
| 1613 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1614 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1615 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1616 | ac_top_srcdir=$ac_top_builddir_sub |
| 1617 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1618 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1619 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1620 | ac_top_srcdir=$srcdir |
| 1621 | ac_abs_top_srcdir=$srcdir ;; |
| 1622 | *) # Relative name. |
| 1623 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1624 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1625 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1626 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1627 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1628 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1629 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1630 | # Check for guested configure. |
| 1631 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1632 | echo && |
| 1633 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1634 | elif test -f "$ac_srcdir/configure"; then |
| 1635 | echo && |
| 1636 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1637 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1638 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1639 | fi || ac_status=$? |
| 1640 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1641 | done |
| 1642 | fi |
| 1643 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1644 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1645 | if $ac_init_version; then |
| 1646 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1647 | configure |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1648 | generated by GNU Autoconf 2.69 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1649 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1650 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1651 | This configure script is free software; the Free Software Foundation |
| 1652 | gives unlimited permission to copy, distribute and modify it. |
| 1653 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1654 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1655 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1656 | |
| 1657 | ## ------------------------ ## |
| 1658 | ## Autoconf initialization. ## |
| 1659 | ## ------------------------ ## |
| 1660 | |
| 1661 | # ac_fn_c_try_compile LINENO |
| 1662 | # -------------------------- |
| 1663 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1664 | ac_fn_c_try_compile () |
| 1665 | { |
| 1666 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1667 | rm -f conftest.$ac_objext |
| 1668 | if { { ac_try="$ac_compile" |
| 1669 | case "(($ac_try" in |
| 1670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1671 | *) ac_try_echo=$ac_try;; |
| 1672 | esac |
| 1673 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1674 | $as_echo "$ac_try_echo"; } >&5 |
| 1675 | (eval "$ac_compile") 2>conftest.err |
| 1676 | ac_status=$? |
| 1677 | if test -s conftest.err; then |
| 1678 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1679 | cat conftest.er1 >&5 |
| 1680 | mv -f conftest.er1 conftest.err |
| 1681 | fi |
| 1682 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1683 | test $ac_status = 0; } && { |
| 1684 | test -z "$ac_c_werror_flag" || |
| 1685 | test ! -s conftest.err |
| 1686 | } && test -s conftest.$ac_objext; then : |
| 1687 | ac_retval=0 |
| 1688 | else |
| 1689 | $as_echo "$as_me: failed program was:" >&5 |
| 1690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1691 | |
| 1692 | ac_retval=1 |
| 1693 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1694 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1695 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1696 | |
| 1697 | } # ac_fn_c_try_compile |
| 1698 | |
| 1699 | # ac_fn_c_try_link LINENO |
| 1700 | # ----------------------- |
| 1701 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1702 | ac_fn_c_try_link () |
| 1703 | { |
| 1704 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1705 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1706 | if { { ac_try="$ac_link" |
| 1707 | case "(($ac_try" in |
| 1708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1709 | *) ac_try_echo=$ac_try;; |
| 1710 | esac |
| 1711 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1712 | $as_echo "$ac_try_echo"; } >&5 |
| 1713 | (eval "$ac_link") 2>conftest.err |
| 1714 | ac_status=$? |
| 1715 | if test -s conftest.err; then |
| 1716 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1717 | cat conftest.er1 >&5 |
| 1718 | mv -f conftest.er1 conftest.err |
| 1719 | fi |
| 1720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1721 | test $ac_status = 0; } && { |
| 1722 | test -z "$ac_c_werror_flag" || |
| 1723 | test ! -s conftest.err |
| 1724 | } && test -s conftest$ac_exeext && { |
| 1725 | test "$cross_compiling" = yes || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1726 | test -x conftest$ac_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1727 | }; then : |
| 1728 | ac_retval=0 |
| 1729 | else |
| 1730 | $as_echo "$as_me: failed program was:" >&5 |
| 1731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1732 | |
| 1733 | ac_retval=1 |
| 1734 | fi |
| 1735 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1736 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1737 | # interfere with the next link command; also delete a directory that is |
| 1738 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1739 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1740 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1741 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1742 | |
| 1743 | } # ac_fn_c_try_link |
| 1744 | |
| 1745 | # ac_fn_c_try_cpp LINENO |
| 1746 | # ---------------------- |
| 1747 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1748 | ac_fn_c_try_cpp () |
| 1749 | { |
| 1750 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1751 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1752 | case "(($ac_try" in |
| 1753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1754 | *) ac_try_echo=$ac_try;; |
| 1755 | esac |
| 1756 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1757 | $as_echo "$ac_try_echo"; } >&5 |
| 1758 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1759 | ac_status=$? |
| 1760 | if test -s conftest.err; then |
| 1761 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1762 | cat conftest.er1 >&5 |
| 1763 | mv -f conftest.er1 conftest.err |
| 1764 | fi |
| 1765 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1766 | test $ac_status = 0; } > conftest.i && { |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1767 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1768 | test ! -s conftest.err |
| 1769 | }; then : |
| 1770 | ac_retval=0 |
| 1771 | else |
| 1772 | $as_echo "$as_me: failed program was:" >&5 |
| 1773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1774 | |
| 1775 | ac_retval=1 |
| 1776 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1777 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1778 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1779 | |
| 1780 | } # ac_fn_c_try_cpp |
| 1781 | |
| 1782 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1783 | # ------------------------------------------------------- |
| 1784 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1785 | # the include files in INCLUDES and setting the cache variable VAR |
| 1786 | # accordingly. |
| 1787 | ac_fn_c_check_header_mongrel () |
| 1788 | { |
| 1789 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1790 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1792 | $as_echo_n "checking for $2... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1793 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1794 | $as_echo_n "(cached) " >&6 |
| 1795 | fi |
| 1796 | eval ac_res=\$$3 |
| 1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1798 | $as_echo "$ac_res" >&6; } |
| 1799 | else |
| 1800 | # Is the header compilable? |
| 1801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1802 | $as_echo_n "checking $2 usability... " >&6; } |
| 1803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1804 | /* end confdefs.h. */ |
| 1805 | $4 |
| 1806 | #include <$2> |
| 1807 | _ACEOF |
| 1808 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1809 | ac_header_compiler=yes |
| 1810 | else |
| 1811 | ac_header_compiler=no |
| 1812 | fi |
| 1813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1815 | $as_echo "$ac_header_compiler" >&6; } |
| 1816 | |
| 1817 | # Is the header present? |
| 1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1819 | $as_echo_n "checking $2 presence... " >&6; } |
| 1820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1821 | /* end confdefs.h. */ |
| 1822 | #include <$2> |
| 1823 | _ACEOF |
| 1824 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1825 | ac_header_preproc=yes |
| 1826 | else |
| 1827 | ac_header_preproc=no |
| 1828 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1829 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1831 | $as_echo "$ac_header_preproc" >&6; } |
| 1832 | |
| 1833 | # So? What about this header? |
| 1834 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1835 | yes:no: ) |
| 1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1837 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1839 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1840 | ;; |
| 1841 | no:yes:* ) |
| 1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1843 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1845 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1847 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1849 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1851 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1852 | ;; |
| 1853 | esac |
| 1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1855 | $as_echo_n "checking for $2... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1856 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1857 | $as_echo_n "(cached) " >&6 |
| 1858 | else |
| 1859 | eval "$3=\$ac_header_compiler" |
| 1860 | fi |
| 1861 | eval ac_res=\$$3 |
| 1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1863 | $as_echo "$ac_res" >&6; } |
| 1864 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1865 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1866 | |
| 1867 | } # ac_fn_c_check_header_mongrel |
| 1868 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 1869 | # ac_fn_c_try_run LINENO |
| 1870 | # ---------------------- |
| 1871 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1872 | # that executables *can* be run. |
| 1873 | ac_fn_c_try_run () |
| 1874 | { |
| 1875 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1876 | if { { ac_try="$ac_link" |
| 1877 | case "(($ac_try" in |
| 1878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1879 | *) ac_try_echo=$ac_try;; |
| 1880 | esac |
| 1881 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1882 | $as_echo "$ac_try_echo"; } >&5 |
| 1883 | (eval "$ac_link") 2>&5 |
| 1884 | ac_status=$? |
| 1885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1886 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1887 | { { case "(($ac_try" in |
| 1888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1889 | *) ac_try_echo=$ac_try;; |
| 1890 | esac |
| 1891 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1892 | $as_echo "$ac_try_echo"; } >&5 |
| 1893 | (eval "$ac_try") 2>&5 |
| 1894 | ac_status=$? |
| 1895 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1896 | test $ac_status = 0; }; }; then : |
| 1897 | ac_retval=0 |
| 1898 | else |
| 1899 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1900 | $as_echo "$as_me: failed program was:" >&5 |
| 1901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1902 | |
| 1903 | ac_retval=$ac_status |
| 1904 | fi |
| 1905 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1906 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1907 | as_fn_set_status $ac_retval |
| 1908 | |
| 1909 | } # ac_fn_c_try_run |
| 1910 | |
| 1911 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1912 | # ------------------------------------------------------- |
| 1913 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1914 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1915 | ac_fn_c_check_header_compile () |
| 1916 | { |
| 1917 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1919 | $as_echo_n "checking for $2... " >&6; } |
| 1920 | if eval \${$3+:} false; then : |
| 1921 | $as_echo_n "(cached) " >&6 |
| 1922 | else |
| 1923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1924 | /* end confdefs.h. */ |
| 1925 | $4 |
| 1926 | #include <$2> |
| 1927 | _ACEOF |
| 1928 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1929 | eval "$3=yes" |
| 1930 | else |
| 1931 | eval "$3=no" |
| 1932 | fi |
| 1933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1934 | fi |
| 1935 | eval ac_res=\$$3 |
| 1936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1937 | $as_echo "$ac_res" >&6; } |
| 1938 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1939 | |
| 1940 | } # ac_fn_c_check_header_compile |
| 1941 | |
| 1942 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1943 | # ------------------------------------------- |
| 1944 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1945 | # variable VAR accordingly. |
| 1946 | ac_fn_c_check_type () |
| 1947 | { |
| 1948 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1950 | $as_echo_n "checking for $2... " >&6; } |
| 1951 | if eval \${$3+:} false; then : |
| 1952 | $as_echo_n "(cached) " >&6 |
| 1953 | else |
| 1954 | eval "$3=no" |
| 1955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1956 | /* end confdefs.h. */ |
| 1957 | $4 |
| 1958 | int |
| 1959 | main () |
| 1960 | { |
| 1961 | if (sizeof ($2)) |
| 1962 | return 0; |
| 1963 | ; |
| 1964 | return 0; |
| 1965 | } |
| 1966 | _ACEOF |
| 1967 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1969 | /* end confdefs.h. */ |
| 1970 | $4 |
| 1971 | int |
| 1972 | main () |
| 1973 | { |
| 1974 | if (sizeof (($2))) |
| 1975 | return 0; |
| 1976 | ; |
| 1977 | return 0; |
| 1978 | } |
| 1979 | _ACEOF |
| 1980 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1981 | |
| 1982 | else |
| 1983 | eval "$3=yes" |
| 1984 | fi |
| 1985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1986 | fi |
| 1987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1988 | fi |
| 1989 | eval ac_res=\$$3 |
| 1990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1991 | $as_echo "$ac_res" >&6; } |
| 1992 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1993 | |
| 1994 | } # ac_fn_c_check_type |
| 1995 | |
| 1996 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1997 | # ---------------------------------- |
| 1998 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1999 | ac_fn_c_check_func () |
| 2000 | { |
| 2001 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2003 | $as_echo_n "checking for $2... " >&6; } |
| 2004 | if eval \${$3+:} false; then : |
| 2005 | $as_echo_n "(cached) " >&6 |
| 2006 | else |
| 2007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2008 | /* end confdefs.h. */ |
| 2009 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2010 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2011 | #define $2 innocuous_$2 |
| 2012 | |
| 2013 | /* System header to define __stub macros and hopefully few prototypes, |
| 2014 | which can conflict with char $2 (); below. |
| 2015 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2016 | <limits.h> exists even on freestanding compilers. */ |
| 2017 | |
| 2018 | #ifdef __STDC__ |
| 2019 | # include <limits.h> |
| 2020 | #else |
| 2021 | # include <assert.h> |
| 2022 | #endif |
| 2023 | |
| 2024 | #undef $2 |
| 2025 | |
| 2026 | /* Override any GCC internal prototype to avoid an error. |
| 2027 | Use char because int might match the return type of a GCC |
| 2028 | builtin and then its argument prototype would still apply. */ |
| 2029 | #ifdef __cplusplus |
| 2030 | extern "C" |
| 2031 | #endif |
| 2032 | char $2 (); |
| 2033 | /* The GNU C library defines this for functions which it implements |
| 2034 | to always fail with ENOSYS. Some functions are actually named |
| 2035 | something starting with __ and the normal name is an alias. */ |
| 2036 | #if defined __stub_$2 || defined __stub___$2 |
| 2037 | choke me |
| 2038 | #endif |
| 2039 | |
| 2040 | int |
| 2041 | main () |
| 2042 | { |
| 2043 | return $2 (); |
| 2044 | ; |
| 2045 | return 0; |
| 2046 | } |
| 2047 | _ACEOF |
| 2048 | if ac_fn_c_try_link "$LINENO"; then : |
| 2049 | eval "$3=yes" |
| 2050 | else |
| 2051 | eval "$3=no" |
| 2052 | fi |
| 2053 | rm -f core conftest.err conftest.$ac_objext \ |
| 2054 | conftest$ac_exeext conftest.$ac_ext |
| 2055 | fi |
| 2056 | eval ac_res=\$$3 |
| 2057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2058 | $as_echo "$ac_res" >&6; } |
| 2059 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2060 | |
| 2061 | } # ac_fn_c_check_func |
| 2062 | |
| 2063 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2064 | # --------------------------------------------- |
| 2065 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2066 | # accordingly. |
| 2067 | ac_fn_c_check_decl () |
| 2068 | { |
| 2069 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2070 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2071 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2073 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2074 | if eval \${$3+:} false; then : |
| 2075 | $as_echo_n "(cached) " >&6 |
| 2076 | else |
| 2077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2078 | /* end confdefs.h. */ |
| 2079 | $4 |
| 2080 | int |
| 2081 | main () |
| 2082 | { |
| 2083 | #ifndef $as_decl_name |
| 2084 | #ifdef __cplusplus |
| 2085 | (void) $as_decl_use; |
| 2086 | #else |
| 2087 | (void) $as_decl_name; |
| 2088 | #endif |
| 2089 | #endif |
| 2090 | |
| 2091 | ; |
| 2092 | return 0; |
| 2093 | } |
| 2094 | _ACEOF |
| 2095 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2096 | eval "$3=yes" |
| 2097 | else |
| 2098 | eval "$3=no" |
| 2099 | fi |
| 2100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2101 | fi |
| 2102 | eval ac_res=\$$3 |
| 2103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2104 | $as_echo "$ac_res" >&6; } |
| 2105 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2106 | |
| 2107 | } # ac_fn_c_check_decl |
| 2108 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2109 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2110 | # -------------------------------------------- |
| 2111 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2112 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2113 | # computed |
| 2114 | ac_fn_c_compute_int () |
| 2115 | { |
| 2116 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2117 | if test "$cross_compiling" = yes; then |
| 2118 | # Depending upon the size, compute the lo and hi bounds. |
| 2119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2120 | /* end confdefs.h. */ |
| 2121 | $4 |
| 2122 | int |
| 2123 | main () |
| 2124 | { |
| 2125 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2126 | test_array [0] = 0; |
| 2127 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2128 | |
| 2129 | ; |
| 2130 | return 0; |
| 2131 | } |
| 2132 | _ACEOF |
| 2133 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2134 | ac_lo=0 ac_mid=0 |
| 2135 | while :; do |
| 2136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2137 | /* end confdefs.h. */ |
| 2138 | $4 |
| 2139 | int |
| 2140 | main () |
| 2141 | { |
| 2142 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2143 | test_array [0] = 0; |
| 2144 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2145 | |
| 2146 | ; |
| 2147 | return 0; |
| 2148 | } |
| 2149 | _ACEOF |
| 2150 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2151 | ac_hi=$ac_mid; break |
| 2152 | else |
| 2153 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2154 | if test $ac_lo -le $ac_mid; then |
| 2155 | ac_lo= ac_hi= |
| 2156 | break |
| 2157 | fi |
| 2158 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2159 | fi |
| 2160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2161 | done |
| 2162 | else |
| 2163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2164 | /* end confdefs.h. */ |
| 2165 | $4 |
| 2166 | int |
| 2167 | main () |
| 2168 | { |
| 2169 | static int test_array [1 - 2 * !(($2) < 0)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2170 | test_array [0] = 0; |
| 2171 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2172 | |
| 2173 | ; |
| 2174 | return 0; |
| 2175 | } |
| 2176 | _ACEOF |
| 2177 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2178 | ac_hi=-1 ac_mid=-1 |
| 2179 | while :; do |
| 2180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2181 | /* end confdefs.h. */ |
| 2182 | $4 |
| 2183 | int |
| 2184 | main () |
| 2185 | { |
| 2186 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2187 | test_array [0] = 0; |
| 2188 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2189 | |
| 2190 | ; |
| 2191 | return 0; |
| 2192 | } |
| 2193 | _ACEOF |
| 2194 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2195 | ac_lo=$ac_mid; break |
| 2196 | else |
| 2197 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2198 | if test $ac_mid -le $ac_hi; then |
| 2199 | ac_lo= ac_hi= |
| 2200 | break |
| 2201 | fi |
| 2202 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2203 | fi |
| 2204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2205 | done |
| 2206 | else |
| 2207 | ac_lo= ac_hi= |
| 2208 | fi |
| 2209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2210 | fi |
| 2211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2212 | # Binary search between lo and hi bounds. |
| 2213 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2214 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2216 | /* end confdefs.h. */ |
| 2217 | $4 |
| 2218 | int |
| 2219 | main () |
| 2220 | { |
| 2221 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2222 | test_array [0] = 0; |
| 2223 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2224 | |
| 2225 | ; |
| 2226 | return 0; |
| 2227 | } |
| 2228 | _ACEOF |
| 2229 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2230 | ac_hi=$ac_mid |
| 2231 | else |
| 2232 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2233 | fi |
| 2234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2235 | done |
| 2236 | case $ac_lo in #(( |
| 2237 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2238 | '') ac_retval=1 ;; |
| 2239 | esac |
| 2240 | else |
| 2241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2242 | /* end confdefs.h. */ |
| 2243 | $4 |
| 2244 | static long int longval () { return $2; } |
| 2245 | static unsigned long int ulongval () { return $2; } |
| 2246 | #include <stdio.h> |
| 2247 | #include <stdlib.h> |
| 2248 | int |
| 2249 | main () |
| 2250 | { |
| 2251 | |
| 2252 | FILE *f = fopen ("conftest.val", "w"); |
| 2253 | if (! f) |
| 2254 | return 1; |
| 2255 | if (($2) < 0) |
| 2256 | { |
| 2257 | long int i = longval (); |
| 2258 | if (i != ($2)) |
| 2259 | return 1; |
| 2260 | fprintf (f, "%ld", i); |
| 2261 | } |
| 2262 | else |
| 2263 | { |
| 2264 | unsigned long int i = ulongval (); |
| 2265 | if (i != ($2)) |
| 2266 | return 1; |
| 2267 | fprintf (f, "%lu", i); |
| 2268 | } |
| 2269 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2270 | on some platforms. */ |
| 2271 | return ferror (f) || fclose (f) != 0; |
| 2272 | |
| 2273 | ; |
| 2274 | return 0; |
| 2275 | } |
| 2276 | _ACEOF |
| 2277 | if ac_fn_c_try_run "$LINENO"; then : |
| 2278 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2279 | else |
| 2280 | ac_retval=1 |
| 2281 | fi |
| 2282 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2283 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2284 | rm -f conftest.val |
| 2285 | |
| 2286 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2287 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2288 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2289 | |
| 2290 | } # ac_fn_c_compute_int |
| 2291 | |
| 2292 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2293 | # ---------------------------------------------------- |
| 2294 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2295 | # INCLUDES, setting cache variable VAR accordingly. |
| 2296 | ac_fn_c_check_member () |
| 2297 | { |
| 2298 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2300 | $as_echo_n "checking for $2.$3... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2301 | if eval \${$4+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2302 | $as_echo_n "(cached) " >&6 |
| 2303 | else |
| 2304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2305 | /* end confdefs.h. */ |
| 2306 | $5 |
| 2307 | int |
| 2308 | main () |
| 2309 | { |
| 2310 | static $2 ac_aggr; |
| 2311 | if (ac_aggr.$3) |
| 2312 | return 0; |
| 2313 | ; |
| 2314 | return 0; |
| 2315 | } |
| 2316 | _ACEOF |
| 2317 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2318 | eval "$4=yes" |
| 2319 | else |
| 2320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2321 | /* end confdefs.h. */ |
| 2322 | $5 |
| 2323 | int |
| 2324 | main () |
| 2325 | { |
| 2326 | static $2 ac_aggr; |
| 2327 | if (sizeof ac_aggr.$3) |
| 2328 | return 0; |
| 2329 | ; |
| 2330 | return 0; |
| 2331 | } |
| 2332 | _ACEOF |
| 2333 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2334 | eval "$4=yes" |
| 2335 | else |
| 2336 | eval "$4=no" |
| 2337 | fi |
| 2338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2339 | fi |
| 2340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2341 | fi |
| 2342 | eval ac_res=\$$4 |
| 2343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2344 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2345 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2346 | |
| 2347 | } # ac_fn_c_check_member |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2348 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2349 | This file contains any messages produced by compilers while |
| 2350 | running configure, to aid debugging if configure makes a mistake. |
| 2351 | |
| 2352 | It was created by $as_me, which was |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2353 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2354 | |
| 2355 | $ $0 $@ |
| 2356 | |
| 2357 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2358 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2359 | { |
| 2360 | cat <<_ASUNAME |
| 2361 | ## --------- ## |
| 2362 | ## Platform. ## |
| 2363 | ## --------- ## |
| 2364 | |
| 2365 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2366 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2367 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2368 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2369 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2370 | |
| 2371 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2372 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2373 | |
| 2374 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2375 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2376 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2377 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2378 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2379 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2380 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2381 | |
| 2382 | _ASUNAME |
| 2383 | |
| 2384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2385 | for as_dir in $PATH |
| 2386 | do |
| 2387 | IFS=$as_save_IFS |
| 2388 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2389 | $as_echo "PATH: $as_dir" |
| 2390 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2391 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2392 | |
| 2393 | } >&5 |
| 2394 | |
| 2395 | cat >&5 <<_ACEOF |
| 2396 | |
| 2397 | |
| 2398 | ## ----------- ## |
| 2399 | ## Core tests. ## |
| 2400 | ## ----------- ## |
| 2401 | |
| 2402 | _ACEOF |
| 2403 | |
| 2404 | |
| 2405 | # Keep a trace of the command line. |
| 2406 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2407 | # Strip out --silent because we don't want to record it for future runs. |
| 2408 | # Also quote any args containing shell meta-characters. |
| 2409 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2410 | ac_configure_args= |
| 2411 | ac_configure_args0= |
| 2412 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2413 | ac_must_keep_next=false |
| 2414 | for ac_pass in 1 2 |
| 2415 | do |
| 2416 | for ac_arg |
| 2417 | do |
| 2418 | case $ac_arg in |
| 2419 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2420 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2421 | | -silent | --silent | --silen | --sile | --sil) |
| 2422 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2423 | *\'*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2424 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2425 | esac |
| 2426 | case $ac_pass in |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2427 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2428 | 2) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2429 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2430 | if test $ac_must_keep_next = true; then |
| 2431 | ac_must_keep_next=false # Got value, back to normal. |
| 2432 | else |
| 2433 | case $ac_arg in |
| 2434 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2435 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2436 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2437 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2438 | case "$ac_configure_args0 " in |
| 2439 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2440 | esac |
| 2441 | ;; |
| 2442 | -* ) ac_must_keep_next=true ;; |
| 2443 | esac |
| 2444 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2445 | as_fn_append ac_configure_args " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2446 | ;; |
| 2447 | esac |
| 2448 | done |
| 2449 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2450 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2451 | { ac_configure_args1=; unset ac_configure_args1;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2452 | |
| 2453 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2454 | # config.log. We remove comments because anyway the quotes in there |
| 2455 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2456 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2457 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2458 | trap 'exit_status=$? |
| 2459 | # Save into config.log some information that might help in debugging. |
| 2460 | { |
| 2461 | echo |
| 2462 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2463 | $as_echo "## ---------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2464 | ## Cache variables. ## |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2465 | ## ---------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2466 | echo |
| 2467 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2468 | ( |
| 2469 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2470 | eval ac_val=\$$ac_var |
| 2471 | case $ac_val in #( |
| 2472 | *${as_nl}*) |
| 2473 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2474 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2475 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2476 | esac |
| 2477 | case $ac_var in #( |
| 2478 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2479 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2480 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2481 | esac ;; |
| 2482 | esac |
| 2483 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2484 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2485 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2486 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2487 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2488 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2489 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2490 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2491 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2492 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2493 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2494 | esac | |
| 2495 | sort |
| 2496 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2497 | echo |
| 2498 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2499 | $as_echo "## ----------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2500 | ## Output variables. ## |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2501 | ## ----------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2502 | echo |
| 2503 | for ac_var in $ac_subst_vars |
| 2504 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2505 | eval ac_val=\$$ac_var |
| 2506 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2507 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2508 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2509 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2510 | done | sort |
| 2511 | echo |
| 2512 | |
| 2513 | if test -n "$ac_subst_files"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2514 | $as_echo "## ------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2515 | ## File substitutions. ## |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2516 | ## ------------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2517 | echo |
| 2518 | for ac_var in $ac_subst_files |
| 2519 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2520 | eval ac_val=\$$ac_var |
| 2521 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2522 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2523 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2524 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2525 | done | sort |
| 2526 | echo |
| 2527 | fi |
| 2528 | |
| 2529 | if test -s confdefs.h; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2530 | $as_echo "## ----------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2531 | ## confdefs.h. ## |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2532 | ## ----------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2533 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2534 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2535 | echo |
| 2536 | fi |
| 2537 | test "$ac_signal" != 0 && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2538 | $as_echo "$as_me: caught signal $ac_signal" |
| 2539 | $as_echo "$as_me: exit $exit_status" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2540 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2541 | rm -f core *.core core.conftest.* && |
| 2542 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2543 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2544 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2545 | for ac_signal in 1 2 13 15; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2546 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2547 | done |
| 2548 | ac_signal=0 |
| 2549 | |
| 2550 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2551 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2552 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2553 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2554 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2555 | # Predefined preprocessor variables. |
| 2556 | |
| 2557 | cat >>confdefs.h <<_ACEOF |
| 2558 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2559 | _ACEOF |
| 2560 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2561 | cat >>confdefs.h <<_ACEOF |
| 2562 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2563 | _ACEOF |
| 2564 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2565 | cat >>confdefs.h <<_ACEOF |
| 2566 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2567 | _ACEOF |
| 2568 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2569 | cat >>confdefs.h <<_ACEOF |
| 2570 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2571 | _ACEOF |
| 2572 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2573 | cat >>confdefs.h <<_ACEOF |
| 2574 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2575 | _ACEOF |
| 2576 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2577 | cat >>confdefs.h <<_ACEOF |
| 2578 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2579 | _ACEOF |
| 2580 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2581 | |
| 2582 | # Let the site file select an alternate cache file if it wants to. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2583 | # Prefer an explicitly selected file to automatically selected ones. |
| 2584 | ac_site_file1=NONE |
| 2585 | ac_site_file2=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2586 | if test -n "$CONFIG_SITE"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2587 | # We do not want a PATH search for config.site. |
| 2588 | case $CONFIG_SITE in #(( |
| 2589 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2590 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2591 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2592 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2593 | elif test "x$prefix" != xNONE; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2594 | ac_site_file1=$prefix/share/config.site |
| 2595 | ac_site_file2=$prefix/etc/config.site |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2596 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2597 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2598 | ac_site_file2=$ac_default_prefix/etc/config.site |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2599 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2600 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2601 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2602 | test "x$ac_site_file" = xNONE && continue |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2603 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2605 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2606 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2607 | . "$ac_site_file" \ |
| 2608 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2609 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2610 | as_fn_error $? "failed to load site script $ac_site_file |
| 2611 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2612 | fi |
| 2613 | done |
| 2614 | |
| 2615 | if test -r "$cache_file"; then |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2616 | # Some versions of bash will fail to source /dev/null (special files |
| 2617 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2618 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2619 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2620 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2621 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2622 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2623 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2624 | esac |
| 2625 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2626 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2628 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2629 | >$cache_file |
| 2630 | fi |
| 2631 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 2632 | gt_needs="$gt_needs " |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2633 | as_fn_append ac_header_list " stdlib.h" |
| 2634 | as_fn_append ac_header_list " unistd.h" |
| 2635 | as_fn_append ac_header_list " sys/param.h" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 2636 | as_fn_append ac_func_list " symlink" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2637 | # Check that the precious variables saved in the cache have kept the same |
| 2638 | # value. |
| 2639 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2640 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2641 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2642 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2643 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2644 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2645 | case $ac_old_set,$ac_new_set in |
| 2646 | set,) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2648 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2649 | ac_cache_corrupted=: ;; |
| 2650 | ,set) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2652 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2653 | ac_cache_corrupted=: ;; |
| 2654 | ,);; |
| 2655 | *) |
| 2656 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2657 | # differences in whitespace do not lead to failure. |
| 2658 | ac_old_val_w=`echo x $ac_old_val` |
| 2659 | ac_new_val_w=`echo x $ac_new_val` |
| 2660 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2662 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2663 | ac_cache_corrupted=: |
| 2664 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2665 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2666 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2667 | eval $ac_var=\$ac_old_val |
| 2668 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2670 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2671 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2672 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2673 | fi;; |
| 2674 | esac |
| 2675 | # Pass precious variables to config.status. |
| 2676 | if test "$ac_new_set" = set; then |
| 2677 | case $ac_new_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2678 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2679 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2680 | esac |
| 2681 | case " $ac_configure_args " in |
| 2682 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2683 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2684 | esac |
| 2685 | fi |
| 2686 | done |
| 2687 | if $ac_cache_corrupted; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2688 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2689 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2691 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2692 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2693 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2694 | ## -------------------- ## |
| 2695 | ## Main body of script. ## |
| 2696 | ## -------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2697 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2698 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2699 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2700 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2701 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2702 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2703 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2704 | |
| 2705 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2706 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2707 | for ac_dir in config "$srcdir"/config; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2708 | if test -f "$ac_dir/install-sh"; then |
| 2709 | ac_aux_dir=$ac_dir |
| 2710 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2711 | break |
| 2712 | elif test -f "$ac_dir/install.sh"; then |
| 2713 | ac_aux_dir=$ac_dir |
| 2714 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2715 | break |
| 2716 | elif test -f "$ac_dir/shtool"; then |
| 2717 | ac_aux_dir=$ac_dir |
| 2718 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2719 | break |
| 2720 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2721 | done |
| 2722 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2723 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2724 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2725 | |
| 2726 | # These three variables are undocumented and unsupported, |
| 2727 | # and are intended to be withdrawn in a future Autoconf release. |
| 2728 | # They can cause serious problems if a builder's source tree is in a directory |
| 2729 | # whose full name contains unusual characters. |
| 2730 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2731 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2732 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2733 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2734 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 2735 | ac_config_headers="$ac_config_headers lib/config.h" |
| 2736 | |
| 2737 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2738 | MCONFIG=./MCONFIG |
| 2739 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2740 | BINARY_TYPE=bin |
| 2741 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 2742 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 2743 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 2744 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 2745 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2746 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 2747 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 2748 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 2749 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 2750 | E2FSPROGS_YEAR=$YEAR |
| 2751 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2752 | E2FSPROGS_YEAR=19$YEAR |
| 2753 | else |
| 2754 | E2FSPROGS_YEAR=20$YEAR |
| 2755 | fi |
| 2756 | |
| 2757 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2758 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 2759 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 2760 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 2761 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 2762 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 2763 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 2764 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 2765 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 2766 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 2767 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 2768 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 2769 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2770 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2771 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2772 | esac |
| 2773 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2774 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 2775 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2776 | |
| 2777 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 2778 | |
| 2779 | case $E2FSPROGS_VERSION in |
| 2780 | *-WIP|pre-*) |
Theodore Ts'o | ab06396 | 2008-07-07 16:07:43 -0400 | [diff] [blame] | 2781 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2782 | ;; |
| 2783 | *) |
| 2784 | E2FSPROGS_PKGVER="$base_ver" |
| 2785 | ;; |
| 2786 | esac |
| 2787 | |
| 2788 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2790 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2792 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2793 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2794 | |
| 2795 | |
| 2796 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2797 | |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 2798 | WITH_DIET_LIBC= |
| 2799 | |
| 2800 | # Check whether --with-diet-libc was given. |
| 2801 | if test "${with_diet_libc+set}" = set; then : |
| 2802 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 2803 | WITH_DIET_LIBC=yes |
| 2804 | if test -z "$LIBS" |
| 2805 | then |
| 2806 | LIBS="-lcompat" |
| 2807 | else |
| 2808 | LIBS="$LIBS -lcompat" |
| 2809 | fi |
| 2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 |
| 2811 | $as_echo "CC=$CC" >&6; } |
| 2812 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2813 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2814 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2815 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2816 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2818 | $as_echo_n "checking build system type... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2819 | if ${ac_cv_build+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2820 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2821 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2822 | ac_build_alias=$build_alias |
| 2823 | test "x$ac_build_alias" = x && |
| 2824 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2825 | test "x$ac_build_alias" = x && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2826 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2827 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2828 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2829 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2830 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2832 | $as_echo "$ac_cv_build" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2833 | case $ac_cv_build in |
| 2834 | *-*-*) ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2835 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2836 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2837 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2838 | ac_save_IFS=$IFS; IFS='-' |
| 2839 | set x $ac_cv_build |
| 2840 | shift |
| 2841 | build_cpu=$1 |
| 2842 | build_vendor=$2 |
| 2843 | shift; shift |
| 2844 | # Remember, the first character of IFS is used to create $*, |
| 2845 | # except with old shells: |
| 2846 | build_os=$* |
| 2847 | IFS=$ac_save_IFS |
| 2848 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2849 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2850 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2852 | $as_echo_n "checking host system type... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2853 | if ${ac_cv_host+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2854 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2855 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2856 | if test "x$host_alias" = x; then |
| 2857 | ac_cv_host=$ac_cv_build |
| 2858 | else |
| 2859 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2860 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2861 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2862 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2863 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2865 | $as_echo "$ac_cv_host" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2866 | case $ac_cv_host in |
| 2867 | *-*-*) ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2868 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2869 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2870 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2871 | ac_save_IFS=$IFS; IFS='-' |
| 2872 | set x $ac_cv_host |
| 2873 | shift |
| 2874 | host_cpu=$1 |
| 2875 | host_vendor=$2 |
| 2876 | shift; shift |
| 2877 | # Remember, the first character of IFS is used to create $*, |
| 2878 | # except with old shells: |
| 2879 | host_os=$* |
| 2880 | IFS=$ac_save_IFS |
| 2881 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2882 | |
| 2883 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2884 | DLOPEN_LIB='' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2885 | ac_ext=c |
| 2886 | ac_cpp='$CPP $CPPFLAGS' |
| 2887 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2888 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2890 | if test -n "$ac_tool_prefix"; then |
| 2891 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2892 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2894 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2895 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2896 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2897 | else |
| 2898 | if test -n "$CC"; then |
| 2899 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2900 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2902 | for as_dir in $PATH |
| 2903 | do |
| 2904 | IFS=$as_save_IFS |
| 2905 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2906 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2907 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2908 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2909 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2910 | break 2 |
| 2911 | fi |
| 2912 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2913 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2914 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2915 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2916 | fi |
| 2917 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2918 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2919 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2921 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2922 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2924 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2925 | fi |
| 2926 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2927 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2928 | fi |
| 2929 | if test -z "$ac_cv_prog_CC"; then |
| 2930 | ac_ct_CC=$CC |
| 2931 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2932 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2934 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2935 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2936 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2937 | else |
| 2938 | if test -n "$ac_ct_CC"; then |
| 2939 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2940 | else |
| 2941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2942 | for as_dir in $PATH |
| 2943 | do |
| 2944 | IFS=$as_save_IFS |
| 2945 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2946 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2947 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2948 | ac_cv_prog_ac_ct_CC="gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2950 | break 2 |
| 2951 | fi |
| 2952 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2953 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2954 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2955 | |
| 2956 | fi |
| 2957 | fi |
| 2958 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2959 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2961 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2962 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2964 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2965 | fi |
| 2966 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2967 | if test "x$ac_ct_CC" = x; then |
| 2968 | CC="" |
| 2969 | else |
| 2970 | case $cross_compiling:$ac_tool_warned in |
| 2971 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2973 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2974 | ac_tool_warned=yes ;; |
| 2975 | esac |
| 2976 | CC=$ac_ct_CC |
| 2977 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2978 | else |
| 2979 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2980 | fi |
| 2981 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2982 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2983 | if test -n "$ac_tool_prefix"; then |
| 2984 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2985 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2987 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2988 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2989 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2990 | else |
| 2991 | if test -n "$CC"; then |
| 2992 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2993 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2995 | for as_dir in $PATH |
| 2996 | do |
| 2997 | IFS=$as_save_IFS |
| 2998 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2999 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3000 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3001 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3003 | break 2 |
| 3004 | fi |
| 3005 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3006 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3007 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3008 | |
| 3009 | fi |
| 3010 | fi |
| 3011 | CC=$ac_cv_prog_CC |
| 3012 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3014 | $as_echo "$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3015 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3017 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3018 | fi |
| 3019 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3020 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3021 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3022 | fi |
| 3023 | if test -z "$CC"; then |
| 3024 | # Extract the first word of "cc", so it can be a program name with args. |
| 3025 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3027 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3028 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3029 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3030 | else |
| 3031 | if test -n "$CC"; then |
| 3032 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3033 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3034 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3036 | for as_dir in $PATH |
| 3037 | do |
| 3038 | IFS=$as_save_IFS |
| 3039 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3040 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3041 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3042 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3043 | ac_prog_rejected=yes |
| 3044 | continue |
| 3045 | fi |
| 3046 | ac_cv_prog_CC="cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3047 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3048 | break 2 |
| 3049 | fi |
| 3050 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3051 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3052 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3053 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3054 | if test $ac_prog_rejected = yes; then |
| 3055 | # We found a bogon in the path, so make sure we never use it. |
| 3056 | set dummy $ac_cv_prog_CC |
| 3057 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3058 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3059 | # We chose a different compiler from the bogus one. |
| 3060 | # However, it has the same basename, so the bogon will be chosen |
| 3061 | # first if we set CC to just the basename; use the full file name. |
| 3062 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3063 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3064 | fi |
| 3065 | fi |
| 3066 | fi |
| 3067 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3068 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3069 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3071 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3072 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3074 | $as_echo "no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3075 | fi |
| 3076 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3077 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3078 | fi |
| 3079 | if test -z "$CC"; then |
| 3080 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3081 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3082 | do |
| 3083 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3084 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3086 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3087 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3088 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3089 | else |
| 3090 | if test -n "$CC"; then |
| 3091 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3092 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3094 | for as_dir in $PATH |
| 3095 | do |
| 3096 | IFS=$as_save_IFS |
| 3097 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3098 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3099 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3100 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3102 | break 2 |
| 3103 | fi |
| 3104 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3105 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3106 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3107 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3108 | fi |
| 3109 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3110 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3111 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3113 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3114 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3116 | $as_echo "no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3117 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3118 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3119 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3120 | test -n "$CC" && break |
| 3121 | done |
| 3122 | fi |
| 3123 | if test -z "$CC"; then |
| 3124 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3125 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3126 | do |
| 3127 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3128 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3130 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3131 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3132 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3133 | else |
| 3134 | if test -n "$ac_ct_CC"; then |
| 3135 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3136 | else |
| 3137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3138 | for as_dir in $PATH |
| 3139 | do |
| 3140 | IFS=$as_save_IFS |
| 3141 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3142 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3143 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3144 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3145 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3146 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3147 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3148 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3149 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3150 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3151 | |
| 3152 | fi |
| 3153 | fi |
| 3154 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3155 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3157 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3158 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3160 | $as_echo "no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3161 | fi |
| 3162 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3163 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3164 | test -n "$ac_ct_CC" && break |
| 3165 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3166 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3167 | if test "x$ac_ct_CC" = x; then |
| 3168 | CC="" |
| 3169 | else |
| 3170 | case $cross_compiling:$ac_tool_warned in |
| 3171 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3173 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3174 | ac_tool_warned=yes ;; |
| 3175 | esac |
| 3176 | CC=$ac_ct_CC |
| 3177 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3178 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3179 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3180 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3181 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3182 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3183 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3184 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3185 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3186 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3187 | |
| 3188 | # Provide some information about the compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3189 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3190 | set X $ac_compile |
| 3191 | ac_compiler=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3192 | for ac_option in --version -v -V -qversion; do |
| 3193 | { { ac_try="$ac_compiler $ac_option >&5" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3194 | case "(($ac_try" in |
| 3195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3196 | *) ac_try_echo=$ac_try;; |
| 3197 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3198 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3199 | $as_echo "$ac_try_echo"; } >&5 |
| 3200 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3201 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3202 | if test -s conftest.err; then |
| 3203 | sed '10a\ |
| 3204 | ... rest of stderr output deleted ... |
| 3205 | 10q' conftest.err >conftest.er1 |
| 3206 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3207 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3208 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3209 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3210 | test $ac_status = 0; } |
| 3211 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3212 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3214 | /* end confdefs.h. */ |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3215 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3216 | int |
| 3217 | main () |
| 3218 | { |
| 3219 | |
| 3220 | ; |
| 3221 | return 0; |
| 3222 | } |
| 3223 | _ACEOF |
| 3224 | ac_clean_files_save=$ac_clean_files |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3225 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3226 | # Try to create an executable without -o first, disregard a.out. |
| 3227 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3228 | # of exeext. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3230 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3231 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3232 | |
| 3233 | # The possible output files: |
| 3234 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3235 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3236 | ac_rmfiles= |
| 3237 | for ac_file in $ac_files |
| 3238 | do |
| 3239 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3240 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3241 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3242 | esac |
| 3243 | done |
| 3244 | rm -f $ac_rmfiles |
| 3245 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3246 | if { { ac_try="$ac_link_default" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3247 | case "(($ac_try" in |
| 3248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3249 | *) ac_try_echo=$ac_try;; |
| 3250 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3251 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3252 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3253 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3254 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3255 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3256 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3257 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3258 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3259 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3260 | # so that the user can short-circuit this test for compilers unknown to |
| 3261 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3262 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3263 | do |
| 3264 | test -f "$ac_file" || continue |
| 3265 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3266 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3267 | ;; |
| 3268 | [ab].out ) |
| 3269 | # We found the default executable, but exeext='' is most |
| 3270 | # certainly right. |
| 3271 | break;; |
| 3272 | *.* ) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3273 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3274 | then :; else |
| 3275 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3276 | fi |
| 3277 | # We set ac_cv_exeext here because the later test for it is not |
| 3278 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3279 | # argument, so we may need to know it at that point already. |
| 3280 | # Even if this section looks crufty: it has the advantage of |
| 3281 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3282 | break;; |
| 3283 | * ) |
| 3284 | break;; |
| 3285 | esac |
| 3286 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3287 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3288 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3289 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3290 | ac_file='' |
| 3291 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3292 | if test -z "$ac_file"; then : |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3294 | $as_echo "no" >&6; } |
| 3295 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3297 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3298 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3299 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3300 | as_fn_error 77 "C compiler cannot create executables |
| 3301 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3302 | else |
| 3303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3304 | $as_echo "yes" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3305 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3307 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3309 | $as_echo "$ac_file" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3310 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3311 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3312 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3313 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3315 | $as_echo_n "checking for suffix of executables... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3316 | if { { ac_try="$ac_link" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3317 | case "(($ac_try" in |
| 3318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3319 | *) ac_try_echo=$ac_try;; |
| 3320 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3321 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3322 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3323 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3324 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3325 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3326 | test $ac_status = 0; }; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3327 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3328 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3329 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3330 | # `rm'. |
| 3331 | for ac_file in conftest.exe conftest conftest.*; do |
| 3332 | test -f "$ac_file" || continue |
| 3333 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3334 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3335 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3336 | break;; |
| 3337 | * ) break;; |
| 3338 | esac |
| 3339 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3340 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3341 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3342 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3343 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3344 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3345 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3346 | rm -f conftest conftest$ac_cv_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3348 | $as_echo "$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3349 | |
| 3350 | rm -f conftest.$ac_ext |
| 3351 | EXEEXT=$ac_cv_exeext |
| 3352 | ac_exeext=$EXEEXT |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3354 | /* end confdefs.h. */ |
| 3355 | #include <stdio.h> |
| 3356 | int |
| 3357 | main () |
| 3358 | { |
| 3359 | FILE *f = fopen ("conftest.out", "w"); |
| 3360 | return ferror (f) || fclose (f) != 0; |
| 3361 | |
| 3362 | ; |
| 3363 | return 0; |
| 3364 | } |
| 3365 | _ACEOF |
| 3366 | ac_clean_files="$ac_clean_files conftest.out" |
| 3367 | # Check that the compiler produces executables we can run. If not, either |
| 3368 | # the compiler is broken, or we cross compile. |
| 3369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3370 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3371 | if test "$cross_compiling" != yes; then |
| 3372 | { { ac_try="$ac_link" |
| 3373 | case "(($ac_try" in |
| 3374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3375 | *) ac_try_echo=$ac_try;; |
| 3376 | esac |
| 3377 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3378 | $as_echo "$ac_try_echo"; } >&5 |
| 3379 | (eval "$ac_link") 2>&5 |
| 3380 | ac_status=$? |
| 3381 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3382 | test $ac_status = 0; } |
| 3383 | if { ac_try='./conftest$ac_cv_exeext' |
| 3384 | { { case "(($ac_try" in |
| 3385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3386 | *) ac_try_echo=$ac_try;; |
| 3387 | esac |
| 3388 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3389 | $as_echo "$ac_try_echo"; } >&5 |
| 3390 | (eval "$ac_try") 2>&5 |
| 3391 | ac_status=$? |
| 3392 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3393 | test $ac_status = 0; }; }; then |
| 3394 | cross_compiling=no |
| 3395 | else |
| 3396 | if test "$cross_compiling" = maybe; then |
| 3397 | cross_compiling=yes |
| 3398 | else |
| 3399 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3400 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3401 | as_fn_error $? "cannot run C compiled programs. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3402 | If you meant to cross compile, use \`--host'. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3403 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3404 | fi |
| 3405 | fi |
| 3406 | fi |
| 3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3408 | $as_echo "$cross_compiling" >&6; } |
| 3409 | |
| 3410 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3411 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3413 | $as_echo_n "checking for suffix of object files... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3414 | if ${ac_cv_objext+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3415 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3416 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3418 | /* end confdefs.h. */ |
| 3419 | |
| 3420 | int |
| 3421 | main () |
| 3422 | { |
| 3423 | |
| 3424 | ; |
| 3425 | return 0; |
| 3426 | } |
| 3427 | _ACEOF |
| 3428 | rm -f conftest.o conftest.obj |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3429 | if { { ac_try="$ac_compile" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3430 | case "(($ac_try" in |
| 3431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3432 | *) ac_try_echo=$ac_try;; |
| 3433 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3434 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3435 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3436 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3437 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3438 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3439 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3440 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3441 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3442 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3443 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3444 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3445 | break;; |
| 3446 | esac |
| 3447 | done |
| 3448 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3449 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3451 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3452 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3453 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3454 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3455 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3456 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3457 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3458 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3460 | $as_echo "$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3461 | OBJEXT=$ac_cv_objext |
| 3462 | ac_objext=$OBJEXT |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3464 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3465 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3466 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3467 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3469 | /* end confdefs.h. */ |
| 3470 | |
| 3471 | int |
| 3472 | main () |
| 3473 | { |
| 3474 | #ifndef __GNUC__ |
| 3475 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3476 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3477 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3478 | ; |
| 3479 | return 0; |
| 3480 | } |
| 3481 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3482 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3483 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3484 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3485 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3486 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3488 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3489 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3490 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3492 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3493 | if test $ac_compiler_gnu = yes; then |
| 3494 | GCC=yes |
| 3495 | else |
| 3496 | GCC= |
| 3497 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3498 | ac_test_CFLAGS=${CFLAGS+set} |
| 3499 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3501 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3502 | if ${ac_cv_prog_cc_g+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3503 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3504 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3505 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3506 | ac_c_werror_flag=yes |
| 3507 | ac_cv_prog_cc_g=no |
| 3508 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3510 | /* end confdefs.h. */ |
| 3511 | |
| 3512 | int |
| 3513 | main () |
| 3514 | { |
| 3515 | |
| 3516 | ; |
| 3517 | return 0; |
| 3518 | } |
| 3519 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3520 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3521 | ac_cv_prog_cc_g=yes |
| 3522 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3523 | CFLAGS="" |
| 3524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3525 | /* end confdefs.h. */ |
| 3526 | |
| 3527 | int |
| 3528 | main () |
| 3529 | { |
| 3530 | |
| 3531 | ; |
| 3532 | return 0; |
| 3533 | } |
| 3534 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3535 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3536 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3537 | else |
| 3538 | ac_c_werror_flag=$ac_save_c_werror_flag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3539 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3541 | /* end confdefs.h. */ |
| 3542 | |
| 3543 | int |
| 3544 | main () |
| 3545 | { |
| 3546 | |
| 3547 | ; |
| 3548 | return 0; |
| 3549 | } |
| 3550 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3551 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3552 | ac_cv_prog_cc_g=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3553 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3554 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3555 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3557 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3559 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3560 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3562 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3563 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3564 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3565 | elif test $ac_cv_prog_cc_g = yes; then |
| 3566 | if test "$GCC" = yes; then |
| 3567 | CFLAGS="-g -O2" |
| 3568 | else |
| 3569 | CFLAGS="-g" |
| 3570 | fi |
| 3571 | else |
| 3572 | if test "$GCC" = yes; then |
| 3573 | CFLAGS="-O2" |
| 3574 | else |
| 3575 | CFLAGS= |
| 3576 | fi |
| 3577 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3579 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3580 | if ${ac_cv_prog_cc_c89+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3581 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3582 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3583 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3584 | ac_save_CC=$CC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3586 | /* end confdefs.h. */ |
| 3587 | #include <stdarg.h> |
| 3588 | #include <stdio.h> |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3589 | struct stat; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3590 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3591 | struct buf { int x; }; |
| 3592 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3593 | static char *e (p, i) |
| 3594 | char **p; |
| 3595 | int i; |
| 3596 | { |
| 3597 | return p[i]; |
| 3598 | } |
| 3599 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3600 | { |
| 3601 | char *s; |
| 3602 | va_list v; |
| 3603 | va_start (v,p); |
| 3604 | s = g (p, va_arg (v,int)); |
| 3605 | va_end (v); |
| 3606 | return s; |
| 3607 | } |
| 3608 | |
| 3609 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3610 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3611 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3612 | as 'x'. The following induces an error, until -std is added to get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3613 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3614 | array size at least. It's necessary to write '\x00'==0 to get something |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3615 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3616 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3617 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3618 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3619 | inside strings and character constants. */ |
| 3620 | #define FOO(x) 'x' |
| 3621 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3622 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3623 | int test (int i, double x); |
| 3624 | struct s1 {int (*f) (int a);}; |
| 3625 | struct s2 {int (*f) (double a);}; |
| 3626 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3627 | int argc; |
| 3628 | char **argv; |
| 3629 | int |
| 3630 | main () |
| 3631 | { |
| 3632 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3633 | ; |
| 3634 | return 0; |
| 3635 | } |
| 3636 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3637 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3638 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3639 | do |
| 3640 | CC="$ac_save_CC $ac_arg" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3641 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3642 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3643 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3644 | rm -f core conftest.err conftest.$ac_objext |
| 3645 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3646 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3647 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3648 | CC=$ac_save_CC |
| 3649 | |
| 3650 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3651 | # AC_CACHE_VAL |
| 3652 | case "x$ac_cv_prog_cc_c89" in |
| 3653 | x) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3655 | $as_echo "none needed" >&6; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3656 | xno) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3658 | $as_echo "unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3659 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3660 | CC="$CC $ac_cv_prog_cc_c89" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3662 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3663 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3664 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3665 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3666 | fi |
| 3667 | |
| 3668 | ac_ext=c |
| 3669 | ac_cpp='$CPP $CPPFLAGS' |
| 3670 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3671 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3672 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3673 | |
| 3674 | |
| 3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 3676 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3677 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3678 | $as_echo_n "(cached) " >&6 |
| 3679 | else |
| 3680 | ac_check_lib_save_LIBS=$LIBS |
| 3681 | LIBS="-ldl $LIBS" |
| 3682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3683 | /* end confdefs.h. */ |
| 3684 | |
| 3685 | /* Override any GCC internal prototype to avoid an error. |
| 3686 | Use char because int might match the return type of a GCC |
| 3687 | builtin and then its argument prototype would still apply. */ |
| 3688 | #ifdef __cplusplus |
| 3689 | extern "C" |
| 3690 | #endif |
| 3691 | char dlopen (); |
| 3692 | int |
| 3693 | main () |
| 3694 | { |
| 3695 | return dlopen (); |
| 3696 | ; |
| 3697 | return 0; |
| 3698 | } |
| 3699 | _ACEOF |
| 3700 | if ac_fn_c_try_link "$LINENO"; then : |
| 3701 | ac_cv_lib_dl_dlopen=yes |
| 3702 | else |
| 3703 | ac_cv_lib_dl_dlopen=no |
| 3704 | fi |
| 3705 | rm -f core conftest.err conftest.$ac_objext \ |
| 3706 | conftest$ac_exeext conftest.$ac_ext |
| 3707 | LIBS=$ac_check_lib_save_LIBS |
| 3708 | fi |
| 3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 3710 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3711 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3712 | DLOPEN_LIB=-ldl |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 3713 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3714 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
| 3715 | |
| 3716 | fi |
| 3717 | |
| 3718 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3719 | |
| 3720 | # Check whether --with-cc was given. |
| 3721 | if test "${with_cc+set}" = set; then : |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3722 | withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3723 | fi |
| 3724 | |
| 3725 | |
| 3726 | # Check whether --with-ccopts was given. |
| 3727 | if test "${with_ccopts+set}" = set; then : |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3728 | withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3729 | fi |
| 3730 | |
| 3731 | |
| 3732 | # Check whether --with-ldopts was given. |
| 3733 | if test "${with_ldopts+set}" = set; then : |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3734 | withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3735 | fi |
| 3736 | |
| 3737 | ac_ext=c |
| 3738 | ac_cpp='$CPP $CPPFLAGS' |
| 3739 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3740 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3741 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3742 | if test -n "$ac_tool_prefix"; then |
| 3743 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3744 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3746 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3747 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3748 | $as_echo_n "(cached) " >&6 |
| 3749 | else |
| 3750 | if test -n "$CC"; then |
| 3751 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3752 | else |
| 3753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3754 | for as_dir in $PATH |
| 3755 | do |
| 3756 | IFS=$as_save_IFS |
| 3757 | test -z "$as_dir" && as_dir=. |
| 3758 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3759 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3760 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3762 | break 2 |
| 3763 | fi |
| 3764 | done |
| 3765 | done |
| 3766 | IFS=$as_save_IFS |
| 3767 | |
| 3768 | fi |
| 3769 | fi |
| 3770 | CC=$ac_cv_prog_CC |
| 3771 | if test -n "$CC"; then |
| 3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3773 | $as_echo "$CC" >&6; } |
| 3774 | else |
| 3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3776 | $as_echo "no" >&6; } |
| 3777 | fi |
| 3778 | |
| 3779 | |
| 3780 | fi |
| 3781 | if test -z "$ac_cv_prog_CC"; then |
| 3782 | ac_ct_CC=$CC |
| 3783 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3784 | set dummy gcc; ac_word=$2 |
| 3785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3786 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3787 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3788 | $as_echo_n "(cached) " >&6 |
| 3789 | else |
| 3790 | if test -n "$ac_ct_CC"; then |
| 3791 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3792 | else |
| 3793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3794 | for as_dir in $PATH |
| 3795 | do |
| 3796 | IFS=$as_save_IFS |
| 3797 | test -z "$as_dir" && as_dir=. |
| 3798 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3799 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3800 | ac_cv_prog_ac_ct_CC="gcc" |
| 3801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3802 | break 2 |
| 3803 | fi |
| 3804 | done |
| 3805 | done |
| 3806 | IFS=$as_save_IFS |
| 3807 | |
| 3808 | fi |
| 3809 | fi |
| 3810 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3811 | if test -n "$ac_ct_CC"; then |
| 3812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3813 | $as_echo "$ac_ct_CC" >&6; } |
| 3814 | else |
| 3815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3816 | $as_echo "no" >&6; } |
| 3817 | fi |
| 3818 | |
| 3819 | if test "x$ac_ct_CC" = x; then |
| 3820 | CC="" |
| 3821 | else |
| 3822 | case $cross_compiling:$ac_tool_warned in |
| 3823 | yes:) |
| 3824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3825 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3826 | ac_tool_warned=yes ;; |
| 3827 | esac |
| 3828 | CC=$ac_ct_CC |
| 3829 | fi |
| 3830 | else |
| 3831 | CC="$ac_cv_prog_CC" |
| 3832 | fi |
| 3833 | |
| 3834 | if test -z "$CC"; then |
| 3835 | if test -n "$ac_tool_prefix"; then |
| 3836 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3837 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3839 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3840 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3841 | $as_echo_n "(cached) " >&6 |
| 3842 | else |
| 3843 | if test -n "$CC"; then |
| 3844 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3845 | else |
| 3846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3847 | for as_dir in $PATH |
| 3848 | do |
| 3849 | IFS=$as_save_IFS |
| 3850 | test -z "$as_dir" && as_dir=. |
| 3851 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3852 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3853 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3854 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3855 | break 2 |
| 3856 | fi |
| 3857 | done |
| 3858 | done |
| 3859 | IFS=$as_save_IFS |
| 3860 | |
| 3861 | fi |
| 3862 | fi |
| 3863 | CC=$ac_cv_prog_CC |
| 3864 | if test -n "$CC"; then |
| 3865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3866 | $as_echo "$CC" >&6; } |
| 3867 | else |
| 3868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3869 | $as_echo "no" >&6; } |
| 3870 | fi |
| 3871 | |
| 3872 | |
| 3873 | fi |
| 3874 | fi |
| 3875 | if test -z "$CC"; then |
| 3876 | # Extract the first word of "cc", so it can be a program name with args. |
| 3877 | set dummy cc; ac_word=$2 |
| 3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3879 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3880 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3881 | $as_echo_n "(cached) " >&6 |
| 3882 | else |
| 3883 | if test -n "$CC"; then |
| 3884 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3885 | else |
| 3886 | ac_prog_rejected=no |
| 3887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3888 | for as_dir in $PATH |
| 3889 | do |
| 3890 | IFS=$as_save_IFS |
| 3891 | test -z "$as_dir" && as_dir=. |
| 3892 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3893 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3894 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3895 | ac_prog_rejected=yes |
| 3896 | continue |
| 3897 | fi |
| 3898 | ac_cv_prog_CC="cc" |
| 3899 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3900 | break 2 |
| 3901 | fi |
| 3902 | done |
| 3903 | done |
| 3904 | IFS=$as_save_IFS |
| 3905 | |
| 3906 | if test $ac_prog_rejected = yes; then |
| 3907 | # We found a bogon in the path, so make sure we never use it. |
| 3908 | set dummy $ac_cv_prog_CC |
| 3909 | shift |
| 3910 | if test $# != 0; then |
| 3911 | # We chose a different compiler from the bogus one. |
| 3912 | # However, it has the same basename, so the bogon will be chosen |
| 3913 | # first if we set CC to just the basename; use the full file name. |
| 3914 | shift |
| 3915 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3916 | fi |
| 3917 | fi |
| 3918 | fi |
| 3919 | fi |
| 3920 | CC=$ac_cv_prog_CC |
| 3921 | if test -n "$CC"; then |
| 3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3923 | $as_echo "$CC" >&6; } |
| 3924 | else |
| 3925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3926 | $as_echo "no" >&6; } |
| 3927 | fi |
| 3928 | |
| 3929 | |
| 3930 | fi |
| 3931 | if test -z "$CC"; then |
| 3932 | if test -n "$ac_tool_prefix"; then |
| 3933 | for ac_prog in cl.exe |
| 3934 | do |
| 3935 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3936 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3938 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3939 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3940 | $as_echo_n "(cached) " >&6 |
| 3941 | else |
| 3942 | if test -n "$CC"; then |
| 3943 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3944 | else |
| 3945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3946 | for as_dir in $PATH |
| 3947 | do |
| 3948 | IFS=$as_save_IFS |
| 3949 | test -z "$as_dir" && as_dir=. |
| 3950 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3951 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3952 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3954 | break 2 |
| 3955 | fi |
| 3956 | done |
| 3957 | done |
| 3958 | IFS=$as_save_IFS |
| 3959 | |
| 3960 | fi |
| 3961 | fi |
| 3962 | CC=$ac_cv_prog_CC |
| 3963 | if test -n "$CC"; then |
| 3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3965 | $as_echo "$CC" >&6; } |
| 3966 | else |
| 3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3968 | $as_echo "no" >&6; } |
| 3969 | fi |
| 3970 | |
| 3971 | |
| 3972 | test -n "$CC" && break |
| 3973 | done |
| 3974 | fi |
| 3975 | if test -z "$CC"; then |
| 3976 | ac_ct_CC=$CC |
| 3977 | for ac_prog in cl.exe |
| 3978 | do |
| 3979 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3980 | set dummy $ac_prog; ac_word=$2 |
| 3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3982 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3983 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3984 | $as_echo_n "(cached) " >&6 |
| 3985 | else |
| 3986 | if test -n "$ac_ct_CC"; then |
| 3987 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3988 | else |
| 3989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3990 | for as_dir in $PATH |
| 3991 | do |
| 3992 | IFS=$as_save_IFS |
| 3993 | test -z "$as_dir" && as_dir=. |
| 3994 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3995 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3996 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3998 | break 2 |
| 3999 | fi |
| 4000 | done |
| 4001 | done |
| 4002 | IFS=$as_save_IFS |
| 4003 | |
| 4004 | fi |
| 4005 | fi |
| 4006 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4007 | if test -n "$ac_ct_CC"; then |
| 4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4009 | $as_echo "$ac_ct_CC" >&6; } |
| 4010 | else |
| 4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4012 | $as_echo "no" >&6; } |
| 4013 | fi |
| 4014 | |
| 4015 | |
| 4016 | test -n "$ac_ct_CC" && break |
| 4017 | done |
| 4018 | |
| 4019 | if test "x$ac_ct_CC" = x; then |
| 4020 | CC="" |
| 4021 | else |
| 4022 | case $cross_compiling:$ac_tool_warned in |
| 4023 | yes:) |
| 4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4025 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4026 | ac_tool_warned=yes ;; |
| 4027 | esac |
| 4028 | CC=$ac_ct_CC |
| 4029 | fi |
| 4030 | fi |
| 4031 | |
| 4032 | fi |
| 4033 | |
| 4034 | |
| 4035 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4036 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4037 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4038 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4039 | |
| 4040 | # Provide some information about the compiler. |
| 4041 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4042 | set X $ac_compile |
| 4043 | ac_compiler=$2 |
| 4044 | for ac_option in --version -v -V -qversion; do |
| 4045 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4046 | case "(($ac_try" in |
| 4047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4048 | *) ac_try_echo=$ac_try;; |
| 4049 | esac |
| 4050 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4051 | $as_echo "$ac_try_echo"; } >&5 |
| 4052 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4053 | ac_status=$? |
| 4054 | if test -s conftest.err; then |
| 4055 | sed '10a\ |
| 4056 | ... rest of stderr output deleted ... |
| 4057 | 10q' conftest.err >conftest.er1 |
| 4058 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4059 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 4060 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4061 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4062 | test $ac_status = 0; } |
| 4063 | done |
| 4064 | |
| 4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4066 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4067 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4068 | $as_echo_n "(cached) " >&6 |
| 4069 | else |
| 4070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4071 | /* end confdefs.h. */ |
| 4072 | |
| 4073 | int |
| 4074 | main () |
| 4075 | { |
| 4076 | #ifndef __GNUC__ |
| 4077 | choke me |
| 4078 | #endif |
| 4079 | |
| 4080 | ; |
| 4081 | return 0; |
| 4082 | } |
| 4083 | _ACEOF |
| 4084 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4085 | ac_compiler_gnu=yes |
| 4086 | else |
| 4087 | ac_compiler_gnu=no |
| 4088 | fi |
| 4089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4090 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4091 | |
| 4092 | fi |
| 4093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4094 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4095 | if test $ac_compiler_gnu = yes; then |
| 4096 | GCC=yes |
| 4097 | else |
| 4098 | GCC= |
| 4099 | fi |
| 4100 | ac_test_CFLAGS=${CFLAGS+set} |
| 4101 | ac_save_CFLAGS=$CFLAGS |
| 4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4103 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4104 | if ${ac_cv_prog_cc_g+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4105 | $as_echo_n "(cached) " >&6 |
| 4106 | else |
| 4107 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4108 | ac_c_werror_flag=yes |
| 4109 | ac_cv_prog_cc_g=no |
| 4110 | CFLAGS="-g" |
| 4111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4112 | /* end confdefs.h. */ |
| 4113 | |
| 4114 | int |
| 4115 | main () |
| 4116 | { |
| 4117 | |
| 4118 | ; |
| 4119 | return 0; |
| 4120 | } |
| 4121 | _ACEOF |
| 4122 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4123 | ac_cv_prog_cc_g=yes |
| 4124 | else |
| 4125 | CFLAGS="" |
| 4126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4127 | /* end confdefs.h. */ |
| 4128 | |
| 4129 | int |
| 4130 | main () |
| 4131 | { |
| 4132 | |
| 4133 | ; |
| 4134 | return 0; |
| 4135 | } |
| 4136 | _ACEOF |
| 4137 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4138 | |
| 4139 | else |
| 4140 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4141 | CFLAGS="-g" |
| 4142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4143 | /* end confdefs.h. */ |
| 4144 | |
| 4145 | int |
| 4146 | main () |
| 4147 | { |
| 4148 | |
| 4149 | ; |
| 4150 | return 0; |
| 4151 | } |
| 4152 | _ACEOF |
| 4153 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4154 | ac_cv_prog_cc_g=yes |
| 4155 | fi |
| 4156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4157 | fi |
| 4158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4159 | fi |
| 4160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4161 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4162 | fi |
| 4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4164 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4165 | if test "$ac_test_CFLAGS" = set; then |
| 4166 | CFLAGS=$ac_save_CFLAGS |
| 4167 | elif test $ac_cv_prog_cc_g = yes; then |
| 4168 | if test "$GCC" = yes; then |
| 4169 | CFLAGS="-g -O2" |
| 4170 | else |
| 4171 | CFLAGS="-g" |
| 4172 | fi |
| 4173 | else |
| 4174 | if test "$GCC" = yes; then |
| 4175 | CFLAGS="-O2" |
| 4176 | else |
| 4177 | CFLAGS= |
| 4178 | fi |
| 4179 | fi |
| 4180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4181 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4182 | if ${ac_cv_prog_cc_c89+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4183 | $as_echo_n "(cached) " >&6 |
| 4184 | else |
| 4185 | ac_cv_prog_cc_c89=no |
| 4186 | ac_save_CC=$CC |
| 4187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4188 | /* end confdefs.h. */ |
| 4189 | #include <stdarg.h> |
| 4190 | #include <stdio.h> |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4191 | struct stat; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4192 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4193 | struct buf { int x; }; |
| 4194 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4195 | static char *e (p, i) |
| 4196 | char **p; |
| 4197 | int i; |
| 4198 | { |
| 4199 | return p[i]; |
| 4200 | } |
| 4201 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4202 | { |
| 4203 | char *s; |
| 4204 | va_list v; |
| 4205 | va_start (v,p); |
| 4206 | s = g (p, va_arg (v,int)); |
| 4207 | va_end (v); |
| 4208 | return s; |
| 4209 | } |
| 4210 | |
| 4211 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4212 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4213 | These don't provoke an error unfortunately, instead are silently treated |
| 4214 | as 'x'. The following induces an error, until -std is added to get |
| 4215 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4216 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4217 | that's true only with -std. */ |
| 4218 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4219 | |
| 4220 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4221 | inside strings and character constants. */ |
| 4222 | #define FOO(x) 'x' |
| 4223 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4224 | |
| 4225 | int test (int i, double x); |
| 4226 | struct s1 {int (*f) (int a);}; |
| 4227 | struct s2 {int (*f) (double a);}; |
| 4228 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4229 | int argc; |
| 4230 | char **argv; |
| 4231 | int |
| 4232 | main () |
| 4233 | { |
| 4234 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4235 | ; |
| 4236 | return 0; |
| 4237 | } |
| 4238 | _ACEOF |
| 4239 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4240 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4241 | do |
| 4242 | CC="$ac_save_CC $ac_arg" |
| 4243 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4244 | ac_cv_prog_cc_c89=$ac_arg |
| 4245 | fi |
| 4246 | rm -f core conftest.err conftest.$ac_objext |
| 4247 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4248 | done |
| 4249 | rm -f conftest.$ac_ext |
| 4250 | CC=$ac_save_CC |
| 4251 | |
| 4252 | fi |
| 4253 | # AC_CACHE_VAL |
| 4254 | case "x$ac_cv_prog_cc_c89" in |
| 4255 | x) |
| 4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4257 | $as_echo "none needed" >&6; } ;; |
| 4258 | xno) |
| 4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4260 | $as_echo "unsupported" >&6; } ;; |
| 4261 | *) |
| 4262 | CC="$CC $ac_cv_prog_cc_c89" |
| 4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4264 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4265 | esac |
| 4266 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4267 | |
| 4268 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4269 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4270 | ac_ext=c |
| 4271 | ac_cpp='$CPP $CPPFLAGS' |
| 4272 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4273 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4274 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4275 | |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 4276 | if test "$GCC" = yes; then |
| 4277 | RDYNAMIC="-rdynamic" |
| 4278 | |
| 4279 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4280 | ac_ext=c |
| 4281 | ac_cpp='$CPP $CPPFLAGS' |
| 4282 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4283 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4284 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4286 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4287 | # On Suns, sometimes $CPP names a directory. |
| 4288 | if test -n "$CPP" && test -d "$CPP"; then |
| 4289 | CPP= |
| 4290 | fi |
| 4291 | if test -z "$CPP"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4292 | if ${ac_cv_prog_CPP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4293 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4294 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4295 | # Double quotes because CPP needs to be expanded |
| 4296 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4297 | do |
| 4298 | ac_preproc_ok=false |
| 4299 | for ac_c_preproc_warn_flag in '' yes |
| 4300 | do |
| 4301 | # Use a header file that comes with gcc, so configuring glibc |
| 4302 | # with a fresh cross-compiler works. |
| 4303 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4304 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4305 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4306 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4308 | /* end confdefs.h. */ |
| 4309 | #ifdef __STDC__ |
| 4310 | # include <limits.h> |
| 4311 | #else |
| 4312 | # include <assert.h> |
| 4313 | #endif |
| 4314 | Syntax error |
| 4315 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4316 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4317 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4318 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4319 | # Broken: fails on valid input. |
| 4320 | continue |
| 4321 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4322 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4323 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4324 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4325 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4327 | /* end confdefs.h. */ |
| 4328 | #include <ac_nonexistent.h> |
| 4329 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4330 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4331 | # Broken: success on invalid input. |
| 4332 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4333 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4334 | # Passes both tests. |
| 4335 | ac_preproc_ok=: |
| 4336 | break |
| 4337 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4338 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4339 | |
| 4340 | done |
| 4341 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4342 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4343 | if $ac_preproc_ok; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4344 | break |
| 4345 | fi |
| 4346 | |
| 4347 | done |
| 4348 | ac_cv_prog_CPP=$CPP |
| 4349 | |
| 4350 | fi |
| 4351 | CPP=$ac_cv_prog_CPP |
| 4352 | else |
| 4353 | ac_cv_prog_CPP=$CPP |
| 4354 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4356 | $as_echo "$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4357 | ac_preproc_ok=false |
| 4358 | for ac_c_preproc_warn_flag in '' yes |
| 4359 | do |
| 4360 | # Use a header file that comes with gcc, so configuring glibc |
| 4361 | # with a fresh cross-compiler works. |
| 4362 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4363 | # <limits.h> exists even on freestanding compilers. |
| 4364 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4365 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4367 | /* end confdefs.h. */ |
| 4368 | #ifdef __STDC__ |
| 4369 | # include <limits.h> |
| 4370 | #else |
| 4371 | # include <assert.h> |
| 4372 | #endif |
| 4373 | Syntax error |
| 4374 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4375 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4376 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4377 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4378 | # Broken: fails on valid input. |
| 4379 | continue |
| 4380 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4381 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4382 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4383 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4384 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4386 | /* end confdefs.h. */ |
| 4387 | #include <ac_nonexistent.h> |
| 4388 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4389 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4390 | # Broken: success on invalid input. |
| 4391 | continue |
| 4392 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4393 | # Passes both tests. |
| 4394 | ac_preproc_ok=: |
| 4395 | break |
| 4396 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4397 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4398 | |
| 4399 | done |
| 4400 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4401 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4402 | if $ac_preproc_ok; then : |
| 4403 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4404 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4405 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4406 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4407 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4408 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4409 | fi |
| 4410 | |
| 4411 | ac_ext=c |
| 4412 | ac_cpp='$CPP $CPPFLAGS' |
| 4413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4416 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4418 | $as_echo_n "checking for additional special compiler flags... " >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4419 | if test "$GCC" = yes |
| 4420 | then |
| 4421 | case "$host_cpu" in |
| 4422 | alpha) addcflags="-mieee" ;; |
| 4423 | esac |
| 4424 | fi |
| 4425 | if test "x$addcflags" != x |
| 4426 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4428 | $as_echo "$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4429 | CFLAGS="$addcflags $CFLAGS" |
| 4430 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4432 | $as_echo "(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4433 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 4434 | |
| 4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4436 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4437 | if ${ac_cv_path_GREP+:} false; then : |
| 4438 | $as_echo_n "(cached) " >&6 |
| 4439 | else |
| 4440 | if test -z "$GREP"; then |
| 4441 | ac_path_GREP_found=false |
| 4442 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4444 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4445 | do |
| 4446 | IFS=$as_save_IFS |
| 4447 | test -z "$as_dir" && as_dir=. |
| 4448 | for ac_prog in grep ggrep; do |
| 4449 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4450 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4451 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4452 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4453 | # Check for GNU $ac_path_GREP |
| 4454 | case `"$ac_path_GREP" --version 2>&1` in |
| 4455 | *GNU*) |
| 4456 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4457 | *) |
| 4458 | ac_count=0 |
| 4459 | $as_echo_n 0123456789 >"conftest.in" |
| 4460 | while : |
| 4461 | do |
| 4462 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4463 | mv "conftest.tmp" "conftest.in" |
| 4464 | cp "conftest.in" "conftest.nl" |
| 4465 | $as_echo 'GREP' >> "conftest.nl" |
| 4466 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4467 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4468 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4469 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4470 | # Best one so far, save it but keep looking for a better one |
| 4471 | ac_cv_path_GREP="$ac_path_GREP" |
| 4472 | ac_path_GREP_max=$ac_count |
| 4473 | fi |
| 4474 | # 10*(2^10) chars as input seems more than enough |
| 4475 | test $ac_count -gt 10 && break |
| 4476 | done |
| 4477 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4478 | esac |
| 4479 | |
| 4480 | $ac_path_GREP_found && break 3 |
| 4481 | done |
| 4482 | done |
| 4483 | done |
| 4484 | IFS=$as_save_IFS |
| 4485 | if test -z "$ac_cv_path_GREP"; then |
| 4486 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4487 | fi |
| 4488 | else |
| 4489 | ac_cv_path_GREP=$GREP |
| 4490 | fi |
| 4491 | |
| 4492 | fi |
| 4493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4494 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4495 | GREP="$ac_cv_path_GREP" |
| 4496 | |
| 4497 | |
| 4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4499 | $as_echo_n "checking for egrep... " >&6; } |
| 4500 | if ${ac_cv_path_EGREP+:} false; then : |
| 4501 | $as_echo_n "(cached) " >&6 |
| 4502 | else |
| 4503 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4504 | then ac_cv_path_EGREP="$GREP -E" |
| 4505 | else |
| 4506 | if test -z "$EGREP"; then |
| 4507 | ac_path_EGREP_found=false |
| 4508 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4510 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4511 | do |
| 4512 | IFS=$as_save_IFS |
| 4513 | test -z "$as_dir" && as_dir=. |
| 4514 | for ac_prog in egrep; do |
| 4515 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4516 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4517 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 4518 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4519 | # Check for GNU $ac_path_EGREP |
| 4520 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4521 | *GNU*) |
| 4522 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4523 | *) |
| 4524 | ac_count=0 |
| 4525 | $as_echo_n 0123456789 >"conftest.in" |
| 4526 | while : |
| 4527 | do |
| 4528 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4529 | mv "conftest.tmp" "conftest.in" |
| 4530 | cp "conftest.in" "conftest.nl" |
| 4531 | $as_echo 'EGREP' >> "conftest.nl" |
| 4532 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4533 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4534 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4535 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4536 | # Best one so far, save it but keep looking for a better one |
| 4537 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4538 | ac_path_EGREP_max=$ac_count |
| 4539 | fi |
| 4540 | # 10*(2^10) chars as input seems more than enough |
| 4541 | test $ac_count -gt 10 && break |
| 4542 | done |
| 4543 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4544 | esac |
| 4545 | |
| 4546 | $ac_path_EGREP_found && break 3 |
| 4547 | done |
| 4548 | done |
| 4549 | done |
| 4550 | IFS=$as_save_IFS |
| 4551 | if test -z "$ac_cv_path_EGREP"; then |
| 4552 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4553 | fi |
| 4554 | else |
| 4555 | ac_cv_path_EGREP=$EGREP |
| 4556 | fi |
| 4557 | |
| 4558 | fi |
| 4559 | fi |
| 4560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4561 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4562 | EGREP="$ac_cv_path_EGREP" |
| 4563 | |
| 4564 | |
| 4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4566 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4567 | if ${ac_cv_header_stdc+:} false; then : |
| 4568 | $as_echo_n "(cached) " >&6 |
| 4569 | else |
| 4570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4571 | /* end confdefs.h. */ |
| 4572 | #include <stdlib.h> |
| 4573 | #include <stdarg.h> |
| 4574 | #include <string.h> |
| 4575 | #include <float.h> |
| 4576 | |
| 4577 | int |
| 4578 | main () |
| 4579 | { |
| 4580 | |
| 4581 | ; |
| 4582 | return 0; |
| 4583 | } |
| 4584 | _ACEOF |
| 4585 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4586 | ac_cv_header_stdc=yes |
| 4587 | else |
| 4588 | ac_cv_header_stdc=no |
| 4589 | fi |
| 4590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4591 | |
| 4592 | if test $ac_cv_header_stdc = yes; then |
| 4593 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4595 | /* end confdefs.h. */ |
| 4596 | #include <string.h> |
| 4597 | |
| 4598 | _ACEOF |
| 4599 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4600 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4601 | |
| 4602 | else |
| 4603 | ac_cv_header_stdc=no |
| 4604 | fi |
| 4605 | rm -f conftest* |
| 4606 | |
| 4607 | fi |
| 4608 | |
| 4609 | if test $ac_cv_header_stdc = yes; then |
| 4610 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4612 | /* end confdefs.h. */ |
| 4613 | #include <stdlib.h> |
| 4614 | |
| 4615 | _ACEOF |
| 4616 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4617 | $EGREP "free" >/dev/null 2>&1; then : |
| 4618 | |
| 4619 | else |
| 4620 | ac_cv_header_stdc=no |
| 4621 | fi |
| 4622 | rm -f conftest* |
| 4623 | |
| 4624 | fi |
| 4625 | |
| 4626 | if test $ac_cv_header_stdc = yes; then |
| 4627 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4628 | if test "$cross_compiling" = yes; then : |
| 4629 | : |
| 4630 | else |
| 4631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4632 | /* end confdefs.h. */ |
| 4633 | #include <ctype.h> |
| 4634 | #include <stdlib.h> |
| 4635 | #if ((' ' & 0x0FF) == 0x020) |
| 4636 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4637 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4638 | #else |
| 4639 | # define ISLOWER(c) \ |
| 4640 | (('a' <= (c) && (c) <= 'i') \ |
| 4641 | || ('j' <= (c) && (c) <= 'r') \ |
| 4642 | || ('s' <= (c) && (c) <= 'z')) |
| 4643 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4644 | #endif |
| 4645 | |
| 4646 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4647 | int |
| 4648 | main () |
| 4649 | { |
| 4650 | int i; |
| 4651 | for (i = 0; i < 256; i++) |
| 4652 | if (XOR (islower (i), ISLOWER (i)) |
| 4653 | || toupper (i) != TOUPPER (i)) |
| 4654 | return 2; |
| 4655 | return 0; |
| 4656 | } |
| 4657 | _ACEOF |
| 4658 | if ac_fn_c_try_run "$LINENO"; then : |
| 4659 | |
| 4660 | else |
| 4661 | ac_cv_header_stdc=no |
| 4662 | fi |
| 4663 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4664 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4665 | fi |
| 4666 | |
| 4667 | fi |
| 4668 | fi |
| 4669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4670 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4671 | if test $ac_cv_header_stdc = yes; then |
| 4672 | |
| 4673 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4674 | |
| 4675 | fi |
| 4676 | |
| 4677 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4678 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4679 | inttypes.h stdint.h unistd.h |
| 4680 | do : |
| 4681 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4682 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4683 | " |
| 4684 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 4685 | cat >>confdefs.h <<_ACEOF |
| 4686 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4687 | _ACEOF |
| 4688 | |
| 4689 | fi |
| 4690 | |
| 4691 | done |
| 4692 | |
| 4693 | |
| 4694 | |
| 4695 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 4696 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
| 4697 | MINIX=yes |
| 4698 | else |
| 4699 | MINIX= |
| 4700 | fi |
| 4701 | |
| 4702 | |
| 4703 | if test "$MINIX" = yes; then |
| 4704 | |
| 4705 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 4706 | |
| 4707 | |
| 4708 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 4709 | |
| 4710 | |
| 4711 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 4712 | |
| 4713 | fi |
| 4714 | |
| 4715 | |
| 4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 4717 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 4718 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
| 4719 | $as_echo_n "(cached) " >&6 |
| 4720 | else |
| 4721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4722 | /* end confdefs.h. */ |
| 4723 | |
| 4724 | # define __EXTENSIONS__ 1 |
| 4725 | $ac_includes_default |
| 4726 | int |
| 4727 | main () |
| 4728 | { |
| 4729 | |
| 4730 | ; |
| 4731 | return 0; |
| 4732 | } |
| 4733 | _ACEOF |
| 4734 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4735 | ac_cv_safe_to_define___extensions__=yes |
| 4736 | else |
| 4737 | ac_cv_safe_to_define___extensions__=no |
| 4738 | fi |
| 4739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4740 | fi |
| 4741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 4742 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4743 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 4744 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 4745 | |
| 4746 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 4747 | |
| 4748 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 4749 | |
| 4750 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 4751 | |
| 4752 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 4753 | |
| 4754 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4755 | LIB_EXT=.a |
| 4756 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4757 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4758 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4759 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4760 | if test "${with_root_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4761 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4762 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4763 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4764 | fi |
| 4765 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4766 | if test "${enable_maintainer_mode+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4767 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4768 | then |
| 4769 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4771 | $as_echo "Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4772 | else |
| 4773 | MAINTAINER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4775 | $as_echo "Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4776 | fi |
| 4777 | |
| 4778 | else |
| 4779 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4781 | $as_echo "Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4782 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4783 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4784 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4785 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4786 | # Check whether --enable-symlink-install was given. |
| 4787 | if test "${enable_symlink_install+set}" = set; then : |
| 4788 | enableval=$enable_symlink_install; if test "$enableval" = "no" |
| 4789 | then |
| 4790 | LINK_INSTALL_FLAGS=-f |
| 4791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4792 | $as_echo "Disabling symlinks for install" >&6; } |
| 4793 | else |
| 4794 | LINK_INSTALL_FLAGS=-sf |
| 4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
| 4796 | $as_echo "Enabling symlinks for install" >&6; } |
| 4797 | fi |
| 4798 | |
| 4799 | else |
| 4800 | LINK_INSTALL_FLAGS=-f |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 |
| 4802 | $as_echo "Disabling symlinks for install by default" >&6; } |
| 4803 | |
| 4804 | fi |
| 4805 | |
| 4806 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4807 | relative_symlink_defined= |
| 4808 | # Check whether --enable-relative-symlinks was given. |
| 4809 | if test "${enable_relative_symlinks+set}" = set; then : |
| 4810 | enableval=$enable_relative_symlinks; if test "$enableval" = "no" |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4811 | then |
| 4812 | SYMLINK_RELATIVE= |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4813 | relative_symlink_defined=yes |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4815 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4816 | else |
| 4817 | SYMLINK_RELATIVE=--relative |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4818 | relative_symlink_defined=yes |
| 4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4820 | $as_echo "Enabling relative symlinks for install" >&6; } |
| 4821 | fi |
| 4822 | fi |
| 4823 | |
| 4824 | # Check whether --enable-symlink-relative-symlinks was given. |
| 4825 | if test "${enable_symlink_relative_symlinks+set}" = set; then : |
| 4826 | enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" |
| 4827 | then |
| 4828 | SYMLINK_RELATIVE=yes |
| 4829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4830 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4831 | else |
| 4832 | SYMLINK_RELATIVE=--relative |
| 4833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4834 | $as_echo "Enabling relative symlinks for install" >&6; } |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4835 | fi |
| 4836 | |
| 4837 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4838 | if test -z "$relative_symlink_defined" |
| 4839 | then |
| 4840 | SYMLINK_RELATIVE= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 |
| 4842 | $as_echo "Disabling relative symlinks for install by default" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4843 | fi |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4844 | |
| 4845 | fi |
| 4846 | |
| 4847 | |
| 4848 | # Check whether --enable-symlink-build was given. |
| 4849 | if test "${enable_symlink_build+set}" = set; then : |
| 4850 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
| 4851 | then |
| 4852 | LINK_BUILD_FLAGS= |
| 4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4854 | $as_echo "Disabling symlinks for build" >&6; } |
| 4855 | else |
| 4856 | LINK_BUILD_FLAGS=-s |
| 4857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 |
| 4858 | $as_echo "Enabling symlinks for build" >&6; } |
| 4859 | fi |
| 4860 | |
| 4861 | else |
| 4862 | LINK_BUILD_FLAGS= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 |
| 4864 | $as_echo "Disabling symlinks for build by default" >&6; } |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4865 | |
| 4866 | fi |
| 4867 | |
| 4868 | |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4869 | # Check whether --enable-verbose-makecmds was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4870 | if test "${enable_verbose_makecmds+set}" = set; then : |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4871 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
| 4872 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4874 | $as_echo "Disabling verbose make commands" >&6; } |
| 4875 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4876 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4877 | Q=@ |
| 4878 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4880 | $as_echo "Enabling verbose make commands" >&6; } |
| 4881 | E=@\\# |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4882 | ES=\\# |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4883 | Q= |
| 4884 | fi |
| 4885 | |
| 4886 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4888 | $as_echo "Disabling verbose make commands" >&6; } |
| 4889 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4890 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4891 | Q=@ |
| 4892 | |
| 4893 | fi |
| 4894 | |
| 4895 | |
| 4896 | |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4897 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4898 | # Check whether --enable-compression was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4899 | if test "${enable_compression+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4900 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4901 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4903 | $as_echo "Disabling compression support" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4904 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4905 | |
| 4906 | $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4907 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4909 | $as_echo "Enabling compression support" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4911 | $as_echo "$as_me: WARNING: Compression support is experimental" >&2;} |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4912 | fi |
| 4913 | |
| 4914 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4916 | $as_echo "Disabling compression support by default" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4917 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4918 | fi |
| 4919 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4920 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4921 | # Check whether --enable-htree was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4922 | if test "${enable_htree+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4923 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4924 | then |
| 4925 | HTREE_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4927 | $as_echo "Disabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4928 | else |
| 4929 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4930 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4931 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4933 | $as_echo "Enabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4934 | fi |
| 4935 | |
| 4936 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4937 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4938 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4939 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4941 | $as_echo "Enabling htree directory support by default" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4942 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4943 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4944 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4945 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4946 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4947 | LDFLAG_DYNAMIC= |
| 4948 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4949 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4950 | if test "${enable_elf_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4951 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4952 | then |
| 4953 | ELF_CMT=# |
| 4954 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4956 | $as_echo "Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4957 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4958 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4959 | ELF_CMT= |
| 4960 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 4961 | case "$host_os" in |
| 4962 | solaris2.*) |
| 4963 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 4964 | ;; |
| 4965 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4966 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4967 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4968 | PRIVATE_LIBS_CMT=# |
| 4969 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4971 | $as_echo "Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4972 | fi |
| 4973 | |
| 4974 | else |
| 4975 | MAKEFILE_ELF=/dev/null |
| 4976 | ELF_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4978 | $as_echo "Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4979 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4980 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4981 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4982 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4983 | |
| 4984 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4985 | if test "${enable_bsd_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4986 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4987 | then |
| 4988 | BSDLIB_CMT=# |
| 4989 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4991 | $as_echo "Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4992 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4993 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4994 | BSDLIB_CMT= |
| 4995 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4996 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4997 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4998 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4999 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 5000 | LIB_EXT=.dylib |
| 5001 | ;; |
| 5002 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5004 | $as_echo "Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5005 | fi |
| 5006 | |
| 5007 | else |
| 5008 | MAKEFILE_BSDLIB=/dev/null |
| 5009 | BSDLIB_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5011 | $as_echo "Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5012 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5013 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5014 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5015 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5016 | |
| 5017 | # Check whether --enable-profile was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5018 | if test "${enable_profile+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5019 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5020 | then |
| 5021 | PROFILE_CMT=# |
| 5022 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5024 | $as_echo "Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5025 | else |
| 5026 | PROFILE_CMT= |
| 5027 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 5028 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5030 | $as_echo "Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5031 | fi |
| 5032 | |
| 5033 | else |
| 5034 | PROFILE_CMT=# |
| 5035 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5037 | $as_echo "Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5038 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5039 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5040 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5041 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5042 | |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 5043 | # Check whether --enable-gcov was given. |
| 5044 | if test "${enable_gcov+set}" = set; then : |
| 5045 | enableval=$enable_gcov; if test "$enableval" = "yes" |
| 5046 | then |
| 5047 | CFLAGS="-g -fprofile-arcs -ftest-coverage" |
| 5048 | LDFLAGS="-fprofile-arcs -ftest-coverage" |
| 5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5 |
| 5050 | $as_echo "Enabling gcov support" >&6; } |
| 5051 | fi |
| 5052 | |
| 5053 | fi |
| 5054 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5055 | |
| 5056 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5057 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5058 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 5059 | |
| 5060 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5061 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5062 | if test "${enable_jbd_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5063 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5064 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5066 | $as_echo "Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5067 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5068 | |
| 5069 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5070 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5072 | $as_echo "Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5073 | fi |
| 5074 | |
| 5075 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5077 | $as_echo "Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 5078 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5079 | fi |
| 5080 | |
| 5081 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5082 | if test "${enable_blkid_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5083 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5084 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5086 | $as_echo "Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5087 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5088 | |
| 5089 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5090 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5092 | $as_echo "Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5093 | fi |
| 5094 | |
| 5095 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5097 | $as_echo "Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 5098 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5099 | fi |
| 5100 | |
| 5101 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5102 | if test "${enable_testio_debug+set}" = set; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5103 | enableval=$enable_testio_debug; |
| 5104 | if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5105 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5107 | $as_echo "Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5108 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5109 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5110 | TEST_IO_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5111 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5112 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5114 | $as_echo "Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5115 | fi |
| 5116 | |
| 5117 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5119 | $as_echo "Enabling testio debugging by default" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5120 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5121 | |
| 5122 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 5123 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5124 | fi |
| 5125 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 5126 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5127 | |
| 5128 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5129 | |
| 5130 | |
| 5131 | |
| 5132 | |
| 5133 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5134 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5135 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5136 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5137 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5139 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5140 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5141 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5142 | else |
| 5143 | case $PKG_CONFIG in |
| 5144 | [\\/]* | ?:[\\/]*) |
| 5145 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5146 | ;; |
| 5147 | *) |
| 5148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5149 | for as_dir in $PATH |
| 5150 | do |
| 5151 | IFS=$as_save_IFS |
| 5152 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5153 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5154 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5155 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5157 | break 2 |
| 5158 | fi |
| 5159 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5160 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5161 | IFS=$as_save_IFS |
| 5162 | |
| 5163 | ;; |
| 5164 | esac |
| 5165 | fi |
| 5166 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5167 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5169 | $as_echo "$PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5170 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5172 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5173 | fi |
| 5174 | |
| 5175 | |
| 5176 | fi |
| 5177 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5178 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5179 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5180 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5182 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5183 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5184 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5185 | else |
| 5186 | case $ac_pt_PKG_CONFIG in |
| 5187 | [\\/]* | ?:[\\/]*) |
| 5188 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5189 | ;; |
| 5190 | *) |
| 5191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5192 | for as_dir in $PATH |
| 5193 | do |
| 5194 | IFS=$as_save_IFS |
| 5195 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5196 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5197 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5198 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5199 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5200 | break 2 |
| 5201 | fi |
| 5202 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5203 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5204 | IFS=$as_save_IFS |
| 5205 | |
| 5206 | ;; |
| 5207 | esac |
| 5208 | fi |
| 5209 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5210 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5212 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5213 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5215 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5216 | fi |
| 5217 | |
| 5218 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5219 | PKG_CONFIG="" |
| 5220 | else |
| 5221 | case $cross_compiling:$ac_tool_warned in |
| 5222 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5224 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5225 | ac_tool_warned=yes ;; |
| 5226 | esac |
| 5227 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5228 | fi |
| 5229 | else |
| 5230 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5231 | fi |
| 5232 | |
| 5233 | fi |
| 5234 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5235 | _pkg_min_version=0.9.0 |
| 5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5237 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5238 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5240 | $as_echo "yes" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5241 | else |
| 5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5243 | $as_echo "no" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5244 | PKG_CONFIG="" |
| 5245 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5246 | fi |
| 5247 | LIBUUID= |
| 5248 | DEPLIBUUID= |
| 5249 | STATIC_LIBUUID= |
| 5250 | DEPSTATIC_LIBUUID= |
| 5251 | PROFILED_LIBUUID= |
| 5252 | DEPPROFILED_LIBUUID= |
| 5253 | UUID_CMT= |
| 5254 | # Check whether --enable-libuuid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5255 | if test "${enable_libuuid+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5256 | enableval=$enable_libuuid; if test "$enableval" = "no" |
| 5257 | then |
| 5258 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5259 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5260 | fi |
| 5261 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5263 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5264 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5265 | $as_echo_n "(cached) " >&6 |
| 5266 | else |
| 5267 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | 2d7583b | 2014-07-05 00:27:02 -0400 | [diff] [blame] | 5268 | LIBS="-luuid $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5270 | /* end confdefs.h. */ |
| 5271 | |
| 5272 | /* Override any GCC internal prototype to avoid an error. |
| 5273 | Use char because int might match the return type of a GCC |
| 5274 | builtin and then its argument prototype would still apply. */ |
| 5275 | #ifdef __cplusplus |
| 5276 | extern "C" |
| 5277 | #endif |
| 5278 | char uuid_generate (); |
| 5279 | int |
| 5280 | main () |
| 5281 | { |
| 5282 | return uuid_generate (); |
| 5283 | ; |
| 5284 | return 0; |
| 5285 | } |
| 5286 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5287 | if ac_fn_c_try_link "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5288 | ac_cv_lib_uuid_uuid_generate=yes |
| 5289 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5290 | ac_cv_lib_uuid_uuid_generate=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5291 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5292 | rm -f core conftest.err conftest.$ac_objext \ |
| 5293 | conftest$ac_exeext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5294 | LIBS=$ac_check_lib_save_LIBS |
| 5295 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5297 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5298 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5299 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 5300 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 5301 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5302 | as_fn_error $? "external uuid library not found" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5303 | fi |
| 5304 | |
| 5305 | UUID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5307 | $as_echo "Disabling private uuid library" >&6; } |
| 5308 | else |
| 5309 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5310 | DEPLIBUUID=$LIBUUID |
| 5311 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5312 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5313 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5314 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5316 | $as_echo "Enabling private uuid library" >&6; } |
| 5317 | fi |
| 5318 | |
| 5319 | else |
| 5320 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 5321 | DEPLIBUUID=$LIBUUID |
| 5322 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 5323 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 5324 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 5325 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5327 | $as_echo "Enabling private uuid library by default" >&6; } |
| 5328 | |
| 5329 | fi |
| 5330 | |
| 5331 | |
| 5332 | |
| 5333 | |
| 5334 | |
| 5335 | |
| 5336 | |
| 5337 | |
| 5338 | |
| 5339 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5340 | |
| 5341 | |
| 5342 | |
| 5343 | |
| 5344 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5345 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5346 | if test -n "$ac_tool_prefix"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5347 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5348 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5350 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5351 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5352 | $as_echo_n "(cached) " >&6 |
| 5353 | else |
| 5354 | case $PKG_CONFIG in |
| 5355 | [\\/]* | ?:[\\/]*) |
| 5356 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5357 | ;; |
| 5358 | *) |
| 5359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5360 | for as_dir in $PATH |
| 5361 | do |
| 5362 | IFS=$as_save_IFS |
| 5363 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5364 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5365 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5366 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5367 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5368 | break 2 |
| 5369 | fi |
| 5370 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5371 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5372 | IFS=$as_save_IFS |
| 5373 | |
| 5374 | ;; |
| 5375 | esac |
| 5376 | fi |
| 5377 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5378 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5380 | $as_echo "$PKG_CONFIG" >&6; } |
| 5381 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5383 | $as_echo "no" >&6; } |
| 5384 | fi |
| 5385 | |
| 5386 | |
| 5387 | fi |
| 5388 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5389 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5390 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5391 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5393 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5394 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5395 | $as_echo_n "(cached) " >&6 |
| 5396 | else |
| 5397 | case $ac_pt_PKG_CONFIG in |
| 5398 | [\\/]* | ?:[\\/]*) |
| 5399 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5400 | ;; |
| 5401 | *) |
| 5402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5403 | for as_dir in $PATH |
| 5404 | do |
| 5405 | IFS=$as_save_IFS |
| 5406 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5407 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5408 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5409 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5410 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5411 | break 2 |
| 5412 | fi |
| 5413 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5414 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5415 | IFS=$as_save_IFS |
| 5416 | |
| 5417 | ;; |
| 5418 | esac |
| 5419 | fi |
| 5420 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5421 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5423 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5424 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5426 | $as_echo "no" >&6; } |
| 5427 | fi |
| 5428 | |
| 5429 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5430 | PKG_CONFIG="" |
| 5431 | else |
| 5432 | case $cross_compiling:$ac_tool_warned in |
| 5433 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5434 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5435 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5436 | ac_tool_warned=yes ;; |
| 5437 | esac |
| 5438 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5439 | fi |
| 5440 | else |
| 5441 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5442 | fi |
| 5443 | |
| 5444 | fi |
| 5445 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5446 | _pkg_min_version=0.9.0 |
| 5447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5448 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5449 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5451 | $as_echo "yes" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5452 | else |
| 5453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5454 | $as_echo "no" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5455 | PKG_CONFIG="" |
| 5456 | fi |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5457 | fi |
| 5458 | LIBBLKID= |
| 5459 | DEPLIBBLKID= |
| 5460 | STATIC_LIBBLKID= |
| 5461 | DEPSTATIC_LIBBLKID= |
| 5462 | PROFILED_LIBBLKID= |
| 5463 | DEPPROFILED_LIBBLKID= |
| 5464 | BLKID_CMT= |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5465 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5466 | # Check whether --enable-libblkid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5467 | if test "${enable_libblkid+set}" = set; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5468 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 5469 | then |
| 5470 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5471 | as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5472 | fi |
| 5473 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5475 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5476 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5477 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5478 | else |
| 5479 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | 2d7583b | 2014-07-05 00:27:02 -0400 | [diff] [blame] | 5480 | LIBS="-lblkid -luuid $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5481 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5482 | /* end confdefs.h. */ |
| 5483 | |
| 5484 | /* Override any GCC internal prototype to avoid an error. |
| 5485 | Use char because int might match the return type of a GCC |
| 5486 | builtin and then its argument prototype would still apply. */ |
| 5487 | #ifdef __cplusplus |
| 5488 | extern "C" |
| 5489 | #endif |
| 5490 | char blkid_get_cache (); |
| 5491 | int |
| 5492 | main () |
| 5493 | { |
| 5494 | return blkid_get_cache (); |
| 5495 | ; |
| 5496 | return 0; |
| 5497 | } |
| 5498 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5499 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5500 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5501 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5502 | ac_cv_lib_blkid_blkid_get_cache=no |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5503 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5504 | rm -f core conftest.err conftest.$ac_objext \ |
| 5505 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5506 | LIBS=$ac_check_lib_save_LIBS |
| 5507 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5509 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5510 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5511 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5512 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5513 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5514 | as_fn_error $? "external blkid library not found" "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5515 | fi |
| 5516 | |
| 5517 | BLKID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5519 | $as_echo "Disabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5520 | else |
| 5521 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5522 | DEPLIBBLKID=$LIBBLKID |
| 5523 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5524 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5525 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5526 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5527 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5528 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5530 | $as_echo "Enabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5531 | fi |
| 5532 | |
| 5533 | else |
| 5534 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5535 | DEPLIBBLKID=$LIBBLKID |
| 5536 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5537 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5538 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5539 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5540 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5541 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5543 | $as_echo "Enabling private blkid library by default" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5544 | |
| 5545 | fi |
| 5546 | |
| 5547 | |
| 5548 | |
| 5549 | |
| 5550 | |
| 5551 | |
| 5552 | |
| 5553 | |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 5554 | QUOTA_MAN_COMMENT='.\"' |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5555 | QUOTA_CMT= |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 5556 | |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5557 | |
| 5558 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5559 | |
| 5560 | |
| 5561 | |
| 5562 | |
| 5563 | |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5564 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5565 | if test -n "$ac_tool_prefix"; then |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5566 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5567 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 5568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5569 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5570 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5571 | $as_echo_n "(cached) " >&6 |
| 5572 | else |
| 5573 | case $PKG_CONFIG in |
| 5574 | [\\/]* | ?:[\\/]*) |
| 5575 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5576 | ;; |
| 5577 | *) |
| 5578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5579 | for as_dir in $PATH |
| 5580 | do |
| 5581 | IFS=$as_save_IFS |
| 5582 | test -z "$as_dir" && as_dir=. |
| 5583 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5584 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5585 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5587 | break 2 |
| 5588 | fi |
| 5589 | done |
| 5590 | done |
| 5591 | IFS=$as_save_IFS |
| 5592 | |
| 5593 | ;; |
| 5594 | esac |
| 5595 | fi |
| 5596 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5597 | if test -n "$PKG_CONFIG"; then |
| 5598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 5599 | $as_echo "$PKG_CONFIG" >&6; } |
| 5600 | else |
| 5601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5602 | $as_echo "no" >&6; } |
| 5603 | fi |
| 5604 | |
| 5605 | |
| 5606 | fi |
| 5607 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5608 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5609 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5610 | set dummy pkg-config; ac_word=$2 |
| 5611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5612 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5613 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5614 | $as_echo_n "(cached) " >&6 |
| 5615 | else |
| 5616 | case $ac_pt_PKG_CONFIG in |
| 5617 | [\\/]* | ?:[\\/]*) |
| 5618 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5619 | ;; |
| 5620 | *) |
| 5621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5622 | for as_dir in $PATH |
| 5623 | do |
| 5624 | IFS=$as_save_IFS |
| 5625 | test -z "$as_dir" && as_dir=. |
| 5626 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5628 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5630 | break 2 |
| 5631 | fi |
| 5632 | done |
| 5633 | done |
| 5634 | IFS=$as_save_IFS |
| 5635 | |
| 5636 | ;; |
| 5637 | esac |
| 5638 | fi |
| 5639 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5640 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 5642 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5643 | else |
| 5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5645 | $as_echo "no" >&6; } |
| 5646 | fi |
| 5647 | |
| 5648 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5649 | PKG_CONFIG="" |
| 5650 | else |
| 5651 | case $cross_compiling:$ac_tool_warned in |
| 5652 | yes:) |
| 5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5654 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5655 | ac_tool_warned=yes ;; |
| 5656 | esac |
| 5657 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5658 | fi |
| 5659 | else |
| 5660 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5661 | fi |
| 5662 | |
| 5663 | fi |
| 5664 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5665 | _pkg_min_version=0.9.0 |
| 5666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5667 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5668 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5670 | $as_echo "yes" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5671 | else |
| 5672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5673 | $as_echo "no" >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 5674 | PKG_CONFIG="" |
| 5675 | fi |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5676 | fi |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5677 | |
| 5678 | # Check whether --enable-quota was given. |
| 5679 | if test "${enable_quota+set}" = set; then : |
| 5680 | enableval=$enable_quota; if test "$enableval" = "no" |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5681 | then |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5682 | QUOTA_CMT=# |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5 |
| 5684 | $as_echo "Disabling quota support" >&6; } |
| 5685 | else |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5686 | QUOTA_CMT= |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5687 | $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5688 | |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5 |
| 5690 | $as_echo "Enabling quota support" >&6; } |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 5691 | QUOTA_MAN_COMMENT="" |
| 5692 | |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5693 | fi |
| 5694 | |
| 5695 | else |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5696 | QUOTA_CMT=# |
| 5697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5 |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5698 | $as_echo "Disabling quota support by default" >&6; } |
| 5699 | |
| 5700 | fi |
| 5701 | |
| 5702 | LIBQUOTA='$(LIB)/libquota'$LIB_EXT |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5703 | DEPLIBQUOTA=$LIBQUOTA |
| 5704 | STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT |
| 5705 | DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA |
| 5706 | PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT |
| 5707 | DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5708 | |
| 5709 | |
| 5710 | |
| 5711 | |
| 5712 | |
| 5713 | |
| 5714 | |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 5715 | |
| 5716 | # Check whether --enable-backtrace was given. |
| 5717 | if test "${enable_backtrace+set}" = set; then : |
| 5718 | enableval=$enable_backtrace; if test "$enableval" = "no" |
| 5719 | then |
| 5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5 |
| 5721 | $as_echo "Disabling use of backtrace" >&6; } |
| 5722 | $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h |
| 5723 | |
| 5724 | else |
| 5725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5 |
| 5726 | $as_echo "Enabling use of backtrace" >&6; } |
| 5727 | fi |
| 5728 | |
| 5729 | else |
| 5730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5 |
| 5731 | $as_echo "Enabling use of backtrace by default" >&6; } |
| 5732 | |
| 5733 | fi |
| 5734 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5735 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5736 | if test "${enable_debugfs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5737 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5738 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5740 | $as_echo "Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5741 | DEBUGFS_CMT="#" |
| 5742 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5743 | DEBUGFS_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5745 | $as_echo "Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5746 | fi |
| 5747 | |
| 5748 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5750 | $as_echo "Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5751 | DEBUGFS_CMT= |
| 5752 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5753 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5754 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5755 | |
| 5756 | # Check whether --enable-imager was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5757 | if test "${enable_imager+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5758 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5759 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5761 | $as_echo "Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5762 | IMAGER_CMT="#" |
| 5763 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5764 | IMAGER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5766 | $as_echo "Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5767 | fi |
| 5768 | |
| 5769 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5771 | $as_echo "Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5772 | IMAGER_CMT= |
| 5773 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5774 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5775 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5776 | |
| 5777 | # Check whether --enable-resizer was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5778 | if test "${enable_resizer+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5779 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5780 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5782 | $as_echo "Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5783 | RESIZER_CMT="#" |
| 5784 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5785 | RESIZER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5787 | $as_echo "Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5788 | fi |
| 5789 | |
| 5790 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5792 | $as_echo "Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5793 | RESIZER_CMT= |
| 5794 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5795 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5796 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5797 | |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5798 | # Check whether --enable-defrag was given. |
| 5799 | if test "${enable_defrag+set}" = set; then : |
| 5800 | enableval=$enable_defrag; if test "$enableval" = "no" |
| 5801 | then |
| 5802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 |
| 5803 | $as_echo "Disabling e4defrag support" >&6; } |
| 5804 | DEFRAG_CMT="#" |
| 5805 | else |
| 5806 | DEFRAG_CMT= |
| 5807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 |
| 5808 | $as_echo "Enabling e4defrag support" >&6; } |
| 5809 | fi |
| 5810 | |
| 5811 | else |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 5812 | if test -z "$WITH_DIET_LIBC" |
| 5813 | then |
| 5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5815 | $as_echo "Enabling e4defrag support by default" >&6; } |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 5816 | DEFRAG_CMT= |
| 5817 | else |
| 5818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5 |
| 5819 | $as_echo "Disabling e4defrag support by default" >&6; } |
| 5820 | DEFRAG_CMT="#" |
| 5821 | fi |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5822 | |
| 5823 | fi |
| 5824 | |
| 5825 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5826 | # Check whether --enable-fsck was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5827 | if test "${enable_fsck+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5828 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5829 | then |
| 5830 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5832 | $as_echo "Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5833 | else |
| 5834 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5836 | $as_echo "Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5837 | fi |
| 5838 | |
| 5839 | else |
| 5840 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 5841 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5842 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5844 | $as_echo "Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5845 | ;; |
| 5846 | *) |
| 5847 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5849 | $as_echo "Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5850 | esac |
| 5851 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5852 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5853 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5854 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5855 | |
| 5856 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5857 | if test "${enable_e2initrd_helper+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5858 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5859 | then |
| 5860 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5862 | $as_echo "Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5863 | else |
| 5864 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5866 | $as_echo "Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5867 | fi |
| 5868 | |
| 5869 | else |
| 5870 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5872 | $as_echo "Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5873 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5874 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5875 | |
| 5876 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5877 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5878 | # Check whether --enable-tls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5879 | if test "${enable_tls+set}" = set; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5880 | enableval=$enable_tls; if test "$enableval" = "no" |
| 5881 | then |
| 5882 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5884 | $as_echo "Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5885 | else |
| 5886 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5888 | $as_echo "Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5889 | fi |
| 5890 | |
| 5891 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5892 | if test -n "$WITH_DIET_LIBC" |
| 5893 | then |
| 5894 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5896 | $as_echo "Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5897 | else |
| 5898 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5900 | $as_echo "Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5901 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5902 | |
| 5903 | fi |
| 5904 | |
| 5905 | if test "$try_tls" = "yes" |
| 5906 | then |
| 5907 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5909 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5910 | if ${ac_cv_tls+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5911 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5912 | else |
| 5913 | |
| 5914 | ax_tls_keywords="__thread __declspec(thread) none" |
| 5915 | for ax_tls_keyword in $ax_tls_keywords; do |
| 5916 | case $ax_tls_keyword in |
| 5917 | none) ac_cv_tls=none ; break ;; |
| 5918 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5920 | /* end confdefs.h. */ |
| 5921 | #include <stdlib.h> |
| 5922 | static void |
| 5923 | foo(void) { |
| 5924 | static $ax_tls_keyword int bar; |
| 5925 | exit(1); |
| 5926 | } |
| 5927 | int |
| 5928 | main () |
| 5929 | { |
| 5930 | |
| 5931 | ; |
| 5932 | return 0; |
| 5933 | } |
| 5934 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5935 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5936 | ac_cv_tls=$ax_tls_keyword ; break |
| 5937 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5938 | ac_cv_tls=none |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5939 | |
| 5940 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5942 | esac |
| 5943 | done |
| 5944 | |
| 5945 | fi |
| 5946 | |
| 5947 | |
| 5948 | if test "$ac_cv_tls" != "none"; then |
| 5949 | |
| 5950 | cat >>confdefs.h <<_ACEOF |
| 5951 | #define TLS $ac_cv_tls |
| 5952 | _ACEOF |
| 5953 | |
| 5954 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5956 | $as_echo "$ac_cv_tls" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5957 | |
| 5958 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5959 | |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5960 | # Check whether --enable-uuidd was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5961 | if test "${enable_uuidd+set}" = set; then : |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5962 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 5963 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5965 | $as_echo "Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5966 | UUIDD_CMT="#" |
| 5967 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5968 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5969 | |
| 5970 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5972 | $as_echo "Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5973 | fi |
| 5974 | |
| 5975 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5976 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5977 | |
| 5978 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5980 | $as_echo "Building uuidd by default" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5981 | |
| 5982 | fi |
| 5983 | |
| 5984 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5985 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 5986 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5987 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5988 | PACKAGE=e2fsprogs |
| 5989 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5990 | VERSION=0.14.1 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5991 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5992 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5993 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5994 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5995 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5996 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5997 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5998 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5999 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6000 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6001 | |
| 6002 | |
| 6003 | |
| 6004 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6006 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 6007 | set x ${MAKE-make} |
| 6008 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6009 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6010 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6011 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6012 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6013 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6014 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6015 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6016 | _ACEOF |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6017 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6018 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 6019 | *@@@%%%=?*=@@@%%%*) |
| 6020 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 6021 | *) |
| 6022 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 6023 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6024 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6025 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6026 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6028 | $as_echo "yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6029 | SET_MAKE= |
| 6030 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6032 | $as_echo "no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6033 | SET_MAKE="MAKE=${MAKE-make}" |
| 6034 | fi |
| 6035 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6036 | # Find a good install program. We prefer a C program (faster), |
| 6037 | # so one script is as good as another. But avoid the broken or |
| 6038 | # incompatible versions: |
| 6039 | # SysV /etc/install, /usr/sbin/install |
| 6040 | # SunOS /usr/etc/install |
| 6041 | # IRIX /sbin/install |
| 6042 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6043 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6044 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 6045 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 6046 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6047 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6048 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6049 | # Reject install programs that cannot install multiple files. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6051 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6052 | if test -z "$INSTALL"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6053 | if ${ac_cv_path_install+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6054 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6055 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6057 | for as_dir in $PATH |
| 6058 | do |
| 6059 | IFS=$as_save_IFS |
| 6060 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6061 | # Account for people who put trailing slashes in PATH elements. |
| 6062 | case $as_dir/ in #(( |
| 6063 | ./ | .// | /[cC]/* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6064 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6065 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6066 | /usr/ucb/* ) ;; |
| 6067 | *) |
| 6068 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 6069 | # Don't use installbsd from OSF since it installs stuff as root |
| 6070 | # by default. |
| 6071 | for ac_prog in ginstall scoinst install; do |
| 6072 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6073 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6074 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6075 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6076 | # AIX install. It has an incompatible calling convention. |
| 6077 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6078 | elif test $ac_prog = install && |
| 6079 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 6080 | # program-specific install script used by HP pwplus--don't use. |
| 6081 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6082 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6083 | rm -rf conftest.one conftest.two conftest.dir |
| 6084 | echo one > conftest.one |
| 6085 | echo two > conftest.two |
| 6086 | mkdir conftest.dir |
| 6087 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 6088 | test -s conftest.one && test -s conftest.two && |
| 6089 | test -s conftest.dir/conftest.one && |
| 6090 | test -s conftest.dir/conftest.two |
| 6091 | then |
| 6092 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6093 | break 3 |
| 6094 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6095 | fi |
| 6096 | fi |
| 6097 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6098 | done |
| 6099 | ;; |
| 6100 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6101 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6102 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6103 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6104 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6105 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6106 | |
| 6107 | fi |
| 6108 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6109 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6110 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6111 | # As a last resort, use the slow shell script. Don't cache a |
| 6112 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6113 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6114 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6115 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6116 | fi |
| 6117 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6119 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6120 | |
| 6121 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6122 | # It thinks the first close brace ends the variable substitution. |
| 6123 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 6124 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6125 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6126 | |
| 6127 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 6128 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 6130 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 6131 | if test -z "$MKDIR_P"; then |
| 6132 | if ${ac_cv_path_mkdir+:} false; then : |
| 6133 | $as_echo_n "(cached) " >&6 |
| 6134 | else |
| 6135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6136 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 6137 | do |
| 6138 | IFS=$as_save_IFS |
| 6139 | test -z "$as_dir" && as_dir=. |
| 6140 | for ac_prog in mkdir gmkdir; do |
| 6141 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6142 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 6143 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 6144 | 'mkdir (GNU coreutils) '* | \ |
| 6145 | 'mkdir (coreutils) '* | \ |
| 6146 | 'mkdir (fileutils) '4.1*) |
| 6147 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 6148 | break 3;; |
| 6149 | esac |
| 6150 | done |
| 6151 | done |
| 6152 | done |
| 6153 | IFS=$as_save_IFS |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6154 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6155 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6156 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6157 | test -d ./--version && rmdir ./--version |
| 6158 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 6159 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 6160 | else |
| 6161 | # As a last resort, use the slow shell script. Don't cache a |
| 6162 | # value for MKDIR_P within a source directory, because that will |
| 6163 | # break other packages using the cache if that directory is |
| 6164 | # removed, or if the value is a relative name. |
| 6165 | MKDIR_P="$ac_install_sh -d" |
| 6166 | fi |
| 6167 | fi |
| 6168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 6169 | $as_echo "$MKDIR_P" >&6; } |
| 6170 | |
| 6171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 6172 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 6173 | if ${ac_cv_path_SED+:} false; then : |
| 6174 | $as_echo_n "(cached) " >&6 |
| 6175 | else |
| 6176 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 6177 | for ac_i in 1 2 3 4 5 6 7; do |
| 6178 | ac_script="$ac_script$as_nl$ac_script" |
| 6179 | done |
| 6180 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 6181 | { ac_script=; unset ac_script;} |
| 6182 | if test -z "$SED"; then |
| 6183 | ac_path_SED_found=false |
| 6184 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6186 | for as_dir in $PATH |
| 6187 | do |
| 6188 | IFS=$as_save_IFS |
| 6189 | test -z "$as_dir" && as_dir=. |
| 6190 | for ac_prog in sed gsed; do |
| 6191 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6192 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 6193 | as_fn_executable_p "$ac_path_SED" || continue |
| 6194 | # Check for GNU ac_path_SED and select it if it is found. |
| 6195 | # Check for GNU $ac_path_SED |
| 6196 | case `"$ac_path_SED" --version 2>&1` in |
| 6197 | *GNU*) |
| 6198 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 6199 | *) |
| 6200 | ac_count=0 |
| 6201 | $as_echo_n 0123456789 >"conftest.in" |
| 6202 | while : |
| 6203 | do |
| 6204 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6205 | mv "conftest.tmp" "conftest.in" |
| 6206 | cp "conftest.in" "conftest.nl" |
| 6207 | $as_echo '' >> "conftest.nl" |
| 6208 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6209 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6210 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6211 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 6212 | # Best one so far, save it but keep looking for a better one |
| 6213 | ac_cv_path_SED="$ac_path_SED" |
| 6214 | ac_path_SED_max=$ac_count |
| 6215 | fi |
| 6216 | # 10*(2^10) chars as input seems more than enough |
| 6217 | test $ac_count -gt 10 && break |
| 6218 | done |
| 6219 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6220 | esac |
| 6221 | |
| 6222 | $ac_path_SED_found && break 3 |
| 6223 | done |
| 6224 | done |
| 6225 | done |
| 6226 | IFS=$as_save_IFS |
| 6227 | if test -z "$ac_cv_path_SED"; then |
| 6228 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 6229 | fi |
| 6230 | else |
| 6231 | ac_cv_path_SED=$SED |
| 6232 | fi |
| 6233 | |
| 6234 | fi |
| 6235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 6236 | $as_echo "$ac_cv_path_SED" >&6; } |
| 6237 | SED="$ac_cv_path_SED" |
| 6238 | rm -f conftest.sed |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6239 | |
| 6240 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6242 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6243 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6244 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6245 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6246 | else |
| 6247 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6248 | fi |
| 6249 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6251 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6252 | |
| 6253 | |
| 6254 | |
| 6255 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6256 | GETTEXT_MACRO_VERSION=0.18 |
| 6257 | |
| 6258 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6259 | |
| 6260 | |
| 6261 | # Prepare PATH_SEPARATOR. |
| 6262 | # The user is always right. |
| 6263 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6264 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6265 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6266 | # so we have to set that as well for the test. |
| 6267 | PATH_SEPARATOR=: |
| 6268 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6269 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6270 | || PATH_SEPARATOR=';' |
| 6271 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6272 | fi |
| 6273 | |
| 6274 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6275 | # as systems may use methods other than mode bits to determine executability. |
| 6276 | cat >conf$$.file <<_ASEOF |
| 6277 | #! /bin/sh |
| 6278 | exit 0 |
| 6279 | _ASEOF |
| 6280 | chmod +x conf$$.file |
| 6281 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6282 | ac_executable_p="test -x" |
| 6283 | else |
| 6284 | ac_executable_p="test -f" |
| 6285 | fi |
| 6286 | rm -f conf$$.file |
| 6287 | |
| 6288 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 6289 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6291 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6292 | if ${ac_cv_path_MSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6293 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6294 | else |
| 6295 | case "$MSGFMT" in |
| 6296 | [\\/]* | ?:[\\/]*) |
| 6297 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 6298 | ;; |
| 6299 | *) |
| 6300 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6301 | for ac_dir in $PATH; do |
| 6302 | IFS="$ac_save_IFS" |
| 6303 | test -z "$ac_dir" && ac_dir=. |
| 6304 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6305 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6306 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6307 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6308 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6309 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 6310 | break 2 |
| 6311 | fi |
| 6312 | fi |
| 6313 | done |
| 6314 | done |
| 6315 | IFS="$ac_save_IFS" |
| 6316 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 6317 | ;; |
| 6318 | esac |
| 6319 | fi |
| 6320 | MSGFMT="$ac_cv_path_MSGFMT" |
| 6321 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6323 | $as_echo "$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6324 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6326 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6327 | fi |
| 6328 | |
| 6329 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 6330 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6332 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6333 | if ${ac_cv_path_GMSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6334 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6335 | else |
| 6336 | case $GMSGFMT in |
| 6337 | [\\/]* | ?:[\\/]*) |
| 6338 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 6339 | ;; |
| 6340 | *) |
| 6341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6342 | for as_dir in $PATH |
| 6343 | do |
| 6344 | IFS=$as_save_IFS |
| 6345 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6346 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6347 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6348 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6349 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6350 | break 2 |
| 6351 | fi |
| 6352 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6353 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6354 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6355 | |
| 6356 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 6357 | ;; |
| 6358 | esac |
| 6359 | fi |
| 6360 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6361 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6363 | $as_echo "$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6364 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6366 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6367 | fi |
| 6368 | |
| 6369 | |
| 6370 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6371 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6372 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; |
| 6373 | *) MSGFMT_015=$MSGFMT ;; |
| 6374 | esac |
| 6375 | |
| 6376 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6377 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; |
| 6378 | *) GMSGFMT_015=$GMSGFMT ;; |
| 6379 | esac |
| 6380 | |
| 6381 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6382 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6383 | # Prepare PATH_SEPARATOR. |
| 6384 | # The user is always right. |
| 6385 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6386 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6387 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6388 | # so we have to set that as well for the test. |
| 6389 | PATH_SEPARATOR=: |
| 6390 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6391 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6392 | || PATH_SEPARATOR=';' |
| 6393 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6394 | fi |
| 6395 | |
| 6396 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6397 | # as systems may use methods other than mode bits to determine executability. |
| 6398 | cat >conf$$.file <<_ASEOF |
| 6399 | #! /bin/sh |
| 6400 | exit 0 |
| 6401 | _ASEOF |
| 6402 | chmod +x conf$$.file |
| 6403 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6404 | ac_executable_p="test -x" |
| 6405 | else |
| 6406 | ac_executable_p="test -f" |
| 6407 | fi |
| 6408 | rm -f conf$$.file |
| 6409 | |
| 6410 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 6411 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6413 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6414 | if ${ac_cv_path_XGETTEXT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6415 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6416 | else |
| 6417 | case "$XGETTEXT" in |
| 6418 | [\\/]* | ?:[\\/]*) |
| 6419 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 6420 | ;; |
| 6421 | *) |
| 6422 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6423 | for ac_dir in $PATH; do |
| 6424 | IFS="$ac_save_IFS" |
| 6425 | test -z "$ac_dir" && ac_dir=. |
| 6426 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6427 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6428 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6429 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6430 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6431 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 6432 | break 2 |
| 6433 | fi |
| 6434 | fi |
| 6435 | done |
| 6436 | done |
| 6437 | IFS="$ac_save_IFS" |
| 6438 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 6439 | ;; |
| 6440 | esac |
| 6441 | fi |
| 6442 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 6443 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6445 | $as_echo "$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6446 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6448 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6449 | fi |
| 6450 | |
| 6451 | rm -f messages.po |
| 6452 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6453 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
| 6454 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; |
| 6455 | *) XGETTEXT_015=$XGETTEXT ;; |
| 6456 | esac |
| 6457 | |
| 6458 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6459 | |
| 6460 | # Prepare PATH_SEPARATOR. |
| 6461 | # The user is always right. |
| 6462 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6463 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 6464 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 6465 | # so we have to set that as well for the test. |
| 6466 | PATH_SEPARATOR=: |
| 6467 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6468 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 6469 | || PATH_SEPARATOR=';' |
| 6470 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6471 | fi |
| 6472 | |
| 6473 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6474 | # as systems may use methods other than mode bits to determine executability. |
| 6475 | cat >conf$$.file <<_ASEOF |
| 6476 | #! /bin/sh |
| 6477 | exit 0 |
| 6478 | _ASEOF |
| 6479 | chmod +x conf$$.file |
| 6480 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6481 | ac_executable_p="test -x" |
| 6482 | else |
| 6483 | ac_executable_p="test -f" |
| 6484 | fi |
| 6485 | rm -f conf$$.file |
| 6486 | |
| 6487 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 6488 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6490 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6491 | if ${ac_cv_path_MSGMERGE+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6492 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6493 | else |
| 6494 | case "$MSGMERGE" in |
| 6495 | [\\/]* | ?:[\\/]*) |
| 6496 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 6497 | ;; |
| 6498 | *) |
| 6499 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6500 | for ac_dir in $PATH; do |
| 6501 | IFS="$ac_save_IFS" |
| 6502 | test -z "$ac_dir" && ac_dir=. |
| 6503 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6504 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6505 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
| 6506 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6507 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 6508 | break 2 |
| 6509 | fi |
| 6510 | fi |
| 6511 | done |
| 6512 | done |
| 6513 | IFS="$ac_save_IFS" |
| 6514 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 6515 | ;; |
| 6516 | esac |
| 6517 | fi |
| 6518 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 6519 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6521 | $as_echo "$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6522 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6524 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6525 | fi |
| 6526 | |
| 6527 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6528 | test -n "$localedir" || localedir='${datadir}/locale' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6529 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6530 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6531 | test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= |
| 6532 | |
| 6533 | |
| 6534 | ac_config_commands="$ac_config_commands po-directories" |
| 6535 | |
| 6536 | |
| 6537 | |
| 6538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 |
| 6539 | $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } |
| 6540 | if ${ac_cv_gnu_library_2+:} false; then : |
| 6541 | $as_echo_n "(cached) " >&6 |
| 6542 | else |
| 6543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6544 | /* end confdefs.h. */ |
| 6545 | |
| 6546 | #include <features.h> |
| 6547 | #ifdef __GNU_LIBRARY__ |
| 6548 | #if (__GLIBC__ >= 2) && !defined __UCLIBC__ |
| 6549 | Lucky GNU user |
| 6550 | #endif |
| 6551 | #endif |
| 6552 | |
| 6553 | _ACEOF |
| 6554 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6555 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
| 6556 | ac_cv_gnu_library_2=yes |
| 6557 | else |
| 6558 | ac_cv_gnu_library_2=no |
| 6559 | fi |
| 6560 | rm -f conftest* |
| 6561 | |
| 6562 | |
| 6563 | |
| 6564 | fi |
| 6565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 |
| 6566 | $as_echo "$ac_cv_gnu_library_2" >&6; } |
| 6567 | |
| 6568 | GLIBC2="$ac_cv_gnu_library_2" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6569 | |
| 6570 | |
| 6571 | if test -n "$ac_tool_prefix"; then |
| 6572 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6573 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6575 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6576 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6577 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6578 | else |
| 6579 | if test -n "$RANLIB"; then |
| 6580 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6581 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6583 | for as_dir in $PATH |
| 6584 | do |
| 6585 | IFS=$as_save_IFS |
| 6586 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6587 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6588 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6589 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6591 | break 2 |
| 6592 | fi |
| 6593 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6594 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6595 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6596 | |
| 6597 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6598 | fi |
| 6599 | RANLIB=$ac_cv_prog_RANLIB |
| 6600 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6602 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6603 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6605 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6606 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6607 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6608 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6609 | fi |
| 6610 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6611 | ac_ct_RANLIB=$RANLIB |
| 6612 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6613 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6615 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6616 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6617 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6618 | else |
| 6619 | if test -n "$ac_ct_RANLIB"; then |
| 6620 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6621 | else |
| 6622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6623 | for as_dir in $PATH |
| 6624 | do |
| 6625 | IFS=$as_save_IFS |
| 6626 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6627 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6628 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6629 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6631 | break 2 |
| 6632 | fi |
| 6633 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6634 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6635 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6636 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6637 | fi |
| 6638 | fi |
| 6639 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6640 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6642 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6643 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6645 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6646 | fi |
| 6647 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6648 | if test "x$ac_ct_RANLIB" = x; then |
| 6649 | RANLIB=":" |
| 6650 | else |
| 6651 | case $cross_compiling:$ac_tool_warned in |
| 6652 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6653 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6654 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6655 | ac_tool_warned=yes ;; |
| 6656 | esac |
| 6657 | RANLIB=$ac_ct_RANLIB |
| 6658 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6659 | else |
| 6660 | RANLIB="$ac_cv_prog_RANLIB" |
| 6661 | fi |
| 6662 | |
| 6663 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6664 | |
| 6665 | CFLAG_VISIBILITY= |
| 6666 | HAVE_VISIBILITY=0 |
| 6667 | if test -n "$GCC"; then |
| 6668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 |
| 6669 | $as_echo_n "checking whether the -Werror option is usable... " >&6; } |
| 6670 | if ${gl_cv_cc_vis_werror+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6671 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6672 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6673 | |
| 6674 | gl_save_CFLAGS="$CFLAGS" |
| 6675 | CFLAGS="$CFLAGS -Werror" |
| 6676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6677 | /* end confdefs.h. */ |
| 6678 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6679 | int |
| 6680 | main () |
| 6681 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6682 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6683 | ; |
| 6684 | return 0; |
| 6685 | } |
| 6686 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6687 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6688 | gl_cv_cc_vis_werror=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6689 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6690 | gl_cv_cc_vis_werror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6691 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6693 | CFLAGS="$gl_save_CFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6694 | fi |
| 6695 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 |
| 6697 | $as_echo "$gl_cv_cc_vis_werror" >&6; } |
| 6698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 |
| 6699 | $as_echo_n "checking for simple visibility declarations... " >&6; } |
| 6700 | if ${gl_cv_cc_visibility+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6701 | $as_echo_n "(cached) " >&6 |
| 6702 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6703 | |
| 6704 | gl_save_CFLAGS="$CFLAGS" |
| 6705 | CFLAGS="$CFLAGS -fvisibility=hidden" |
| 6706 | if test $gl_cv_cc_vis_werror = yes; then |
| 6707 | CFLAGS="$CFLAGS -Werror" |
| 6708 | fi |
| 6709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6710 | /* end confdefs.h. */ |
| 6711 | extern __attribute__((__visibility__("hidden"))) int hiddenvar; |
| 6712 | extern __attribute__((__visibility__("default"))) int exportedvar; |
| 6713 | extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); |
| 6714 | extern __attribute__((__visibility__("default"))) int exportedfunc (void); |
| 6715 | void dummyfunc (void) {} |
| 6716 | |
| 6717 | int |
| 6718 | main () |
| 6719 | { |
| 6720 | |
| 6721 | ; |
| 6722 | return 0; |
| 6723 | } |
| 6724 | _ACEOF |
| 6725 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6726 | gl_cv_cc_visibility=yes |
| 6727 | else |
| 6728 | gl_cv_cc_visibility=no |
| 6729 | fi |
| 6730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6731 | CFLAGS="$gl_save_CFLAGS" |
| 6732 | fi |
| 6733 | |
| 6734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 |
| 6735 | $as_echo "$gl_cv_cc_visibility" >&6; } |
| 6736 | if test $gl_cv_cc_visibility = yes; then |
| 6737 | CFLAG_VISIBILITY="-fvisibility=hidden" |
| 6738 | HAVE_VISIBILITY=1 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6739 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6740 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6741 | |
| 6742 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6743 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6744 | cat >>confdefs.h <<_ACEOF |
| 6745 | #define HAVE_VISIBILITY $HAVE_VISIBILITY |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6746 | _ACEOF |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6747 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6748 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6750 | $as_echo_n "checking for inline... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6751 | if ${ac_cv_c_inline+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6752 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6753 | else |
| 6754 | ac_cv_c_inline=no |
| 6755 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6757 | /* end confdefs.h. */ |
| 6758 | #ifndef __cplusplus |
| 6759 | typedef int foo_t; |
| 6760 | static $ac_kw foo_t static_foo () {return 0; } |
| 6761 | $ac_kw foo_t foo () {return 0; } |
| 6762 | #endif |
| 6763 | |
| 6764 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6765 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6766 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6767 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6769 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6770 | done |
| 6771 | |
| 6772 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6774 | $as_echo "$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6775 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6776 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6777 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6778 | *) |
| 6779 | case $ac_cv_c_inline in |
| 6780 | no) ac_val=;; |
| 6781 | *) ac_val=$ac_cv_c_inline;; |
| 6782 | esac |
| 6783 | cat >>confdefs.h <<_ACEOF |
| 6784 | #ifndef __cplusplus |
| 6785 | #define inline $ac_val |
| 6786 | #endif |
| 6787 | _ACEOF |
| 6788 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6789 | esac |
| 6790 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6791 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6792 | if test "x$ac_cv_type_size_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6793 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6794 | else |
| 6795 | |
| 6796 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6797 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6798 | _ACEOF |
| 6799 | |
| 6800 | fi |
| 6801 | |
| 6802 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6804 | $as_echo_n "checking for stdint.h... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6805 | if ${gl_cv_header_stdint_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6806 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6807 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6809 | /* end confdefs.h. */ |
| 6810 | #include <sys/types.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6811 | #include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6812 | int |
| 6813 | main () |
| 6814 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6815 | uintmax_t i = (uintmax_t) -1; return !i; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6816 | ; |
| 6817 | return 0; |
| 6818 | } |
| 6819 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6820 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6821 | gl_cv_header_stdint_h=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6822 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6823 | gl_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6824 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6826 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 |
| 6828 | $as_echo "$gl_cv_header_stdint_h" >&6; } |
| 6829 | if test $gl_cv_header_stdint_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6830 | |
| 6831 | cat >>confdefs.h <<_ACEOF |
| 6832 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6833 | _ACEOF |
| 6834 | |
| 6835 | fi |
| 6836 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6837 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6838 | # for constant arguments. Useless! |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6840 | $as_echo_n "checking for working alloca.h... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6841 | if ${ac_cv_working_alloca_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6842 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6843 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6845 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6846 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6847 | int |
| 6848 | main () |
| 6849 | { |
| 6850 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6851 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6852 | ; |
| 6853 | return 0; |
| 6854 | } |
| 6855 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6856 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6857 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6858 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6859 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6860 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6861 | rm -f core conftest.err conftest.$ac_objext \ |
| 6862 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6863 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6865 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6866 | if test $ac_cv_working_alloca_h = yes; then |
| 6867 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6868 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6869 | |
| 6870 | fi |
| 6871 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6873 | $as_echo_n "checking for alloca... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6874 | if ${ac_cv_func_alloca_works+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6875 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6876 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6878 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6879 | #ifdef __GNUC__ |
| 6880 | # define alloca __builtin_alloca |
| 6881 | #else |
| 6882 | # ifdef _MSC_VER |
| 6883 | # include <malloc.h> |
| 6884 | # define alloca _alloca |
| 6885 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6886 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6887 | # include <alloca.h> |
| 6888 | # else |
| 6889 | # ifdef _AIX |
| 6890 | #pragma alloca |
| 6891 | # else |
| 6892 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6893 | void *alloca (size_t); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6894 | # endif |
| 6895 | # endif |
| 6896 | # endif |
| 6897 | # endif |
| 6898 | #endif |
| 6899 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6900 | int |
| 6901 | main () |
| 6902 | { |
| 6903 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6904 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6905 | ; |
| 6906 | return 0; |
| 6907 | } |
| 6908 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6909 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6910 | ac_cv_func_alloca_works=yes |
| 6911 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6912 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6913 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6914 | rm -f core conftest.err conftest.$ac_objext \ |
| 6915 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6916 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6918 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6919 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6920 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6921 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6922 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6923 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6924 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6925 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6926 | # that cause trouble. Some versions do not even contain alloca or |
| 6927 | # contain a buggy version. If you still want to use their alloca, |
| 6928 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6929 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6930 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6931 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6932 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6933 | |
| 6934 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6936 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6937 | if ${ac_cv_os_cray+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6938 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6939 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6941 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6942 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6943 | webecray |
| 6944 | #else |
| 6945 | wenotbecray |
| 6946 | #endif |
| 6947 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6948 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6949 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6950 | $EGREP "webecray" >/dev/null 2>&1; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6951 | ac_cv_os_cray=yes |
| 6952 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6953 | ac_cv_os_cray=no |
| 6954 | fi |
| 6955 | rm -f conftest* |
| 6956 | |
| 6957 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6959 | $as_echo "$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6960 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6961 | for ac_func in _getb67 GETB67 getb67; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6962 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6963 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6964 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6965 | |
| 6966 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6967 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6968 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6969 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6970 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6971 | fi |
| 6972 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6973 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6974 | fi |
| 6975 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6977 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6978 | if ${ac_cv_c_stack_direction+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6979 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6980 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6981 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6982 | ac_cv_c_stack_direction=0 |
| 6983 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6985 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6986 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6987 | int |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6988 | find_stack_direction (int *addr, int depth) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6989 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6990 | int dir, dummy = 0; |
| 6991 | if (! addr) |
| 6992 | addr = &dummy; |
| 6993 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 6994 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 6995 | return dir + dummy; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6996 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6997 | |
| 6998 | int |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6999 | main (int argc, char **argv) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7000 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7001 | return find_stack_direction (0, argc + !argv + 20) < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7002 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7003 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7004 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7005 | ac_cv_c_stack_direction=1 |
| 7006 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7007 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7008 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7009 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7010 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7011 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7012 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7013 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7015 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7016 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7017 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7018 | _ACEOF |
| 7019 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7020 | |
| 7021 | fi |
| 7022 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7023 | |
| 7024 | |
| 7025 | |
| 7026 | for ac_header in $ac_header_list |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7027 | do : |
| 7028 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7029 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7030 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7031 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7032 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7033 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7034 | _ACEOF |
| 7035 | |
| 7036 | fi |
| 7037 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7038 | done |
| 7039 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7040 | |
| 7041 | |
| 7042 | |
| 7043 | |
| 7044 | |
| 7045 | |
| 7046 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7047 | for ac_func in getpagesize |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7048 | do : |
| 7049 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7050 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7051 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7052 | #define HAVE_GETPAGESIZE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7053 | _ACEOF |
| 7054 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7055 | fi |
| 7056 | done |
| 7057 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7059 | $as_echo_n "checking for working mmap... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7060 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7061 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7062 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7063 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7064 | ac_cv_func_mmap_fixed_mapped=no |
| 7065 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7067 | /* end confdefs.h. */ |
| 7068 | $ac_includes_default |
| 7069 | /* malloc might have been renamed as rpl_malloc. */ |
| 7070 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7071 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7072 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7073 | Here is a matrix of mmap possibilities: |
| 7074 | mmap private not fixed |
| 7075 | mmap private fixed at somewhere currently unmapped |
| 7076 | mmap private fixed at somewhere already mapped |
| 7077 | mmap shared not fixed |
| 7078 | mmap shared fixed at somewhere currently unmapped |
| 7079 | mmap shared fixed at somewhere already mapped |
| 7080 | For private mappings, we should verify that changes cannot be read() |
| 7081 | back from the file, nor mmap's back from the file at a different |
| 7082 | address. (There have been systems where private was not correctly |
| 7083 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7084 | VM page cache was not coherent with the file system buffer cache |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7085 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7086 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7087 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7088 | |
| 7089 | Grep wants private fixed already mapped. |
| 7090 | The main things grep needs to know about mmap are: |
| 7091 | * does it exist and is it safe to write into the mmap'd area |
| 7092 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7093 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7094 | #include <fcntl.h> |
| 7095 | #include <sys/mman.h> |
| 7096 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7097 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7098 | char *malloc (); |
| 7099 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7100 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7101 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7102 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7103 | # ifdef _SC_PAGESIZE |
| 7104 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7105 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7106 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7107 | # include <sys/param.h> |
| 7108 | # ifdef EXEC_PAGESIZE |
| 7109 | # define getpagesize() EXEC_PAGESIZE |
| 7110 | # else /* no EXEC_PAGESIZE */ |
| 7111 | # ifdef NBPG |
| 7112 | # define getpagesize() NBPG * CLSIZE |
| 7113 | # ifndef CLSIZE |
| 7114 | # define CLSIZE 1 |
| 7115 | # endif /* no CLSIZE */ |
| 7116 | # else /* no NBPG */ |
| 7117 | # ifdef NBPC |
| 7118 | # define getpagesize() NBPC |
| 7119 | # else /* no NBPC */ |
| 7120 | # ifdef PAGESIZE |
| 7121 | # define getpagesize() PAGESIZE |
| 7122 | # endif /* PAGESIZE */ |
| 7123 | # endif /* no NBPC */ |
| 7124 | # endif /* no NBPG */ |
| 7125 | # endif /* no EXEC_PAGESIZE */ |
| 7126 | # else /* no HAVE_SYS_PARAM_H */ |
| 7127 | # define getpagesize() 8192 /* punt totally */ |
| 7128 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7129 | # endif /* no _SC_PAGESIZE */ |
| 7130 | |
| 7131 | #endif /* no HAVE_GETPAGESIZE */ |
| 7132 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7133 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7134 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7135 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7136 | char *data, *data2, *data3; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7137 | const char *cdata2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7138 | int i, pagesize; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7139 | int fd, fd2; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7140 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7141 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7142 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7143 | /* First, make a file with some known garbage in it. */ |
| 7144 | data = (char *) malloc (pagesize); |
| 7145 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7146 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7147 | for (i = 0; i < pagesize; ++i) |
| 7148 | *(data + i) = rand (); |
| 7149 | umask (0); |
| 7150 | fd = creat ("conftest.mmap", 0600); |
| 7151 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7152 | return 2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7153 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7154 | return 3; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7155 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7156 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7157 | /* Next, check that the tail of a page is zero-filled. File must have |
| 7158 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 7159 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 7160 | if (fd2 < 0) |
| 7161 | return 4; |
| 7162 | cdata2 = ""; |
| 7163 | if (write (fd2, cdata2, 1) != 1) |
| 7164 | return 5; |
| 7165 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 7166 | if (data2 == MAP_FAILED) |
| 7167 | return 6; |
| 7168 | for (i = 0; i < pagesize; ++i) |
| 7169 | if (*(data2 + i)) |
| 7170 | return 7; |
| 7171 | close (fd2); |
| 7172 | if (munmap (data2, pagesize)) |
| 7173 | return 8; |
| 7174 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7175 | /* Next, try to mmap the file at a fixed address which already has |
| 7176 | something else allocated at it. If we can, also make sure that |
| 7177 | we see the same garbage. */ |
| 7178 | fd = open ("conftest.mmap", O_RDWR); |
| 7179 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7180 | return 9; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7181 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 7182 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7183 | return 10; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7184 | for (i = 0; i < pagesize; ++i) |
| 7185 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7186 | return 11; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7187 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7188 | /* Finally, make sure that changes to the mapped area do not |
| 7189 | percolate back to the file as seen by read(). (This is a bug on |
| 7190 | some variants of i386 svr4.0.) */ |
| 7191 | for (i = 0; i < pagesize; ++i) |
| 7192 | *(data2 + i) = *(data2 + i) + 1; |
| 7193 | data3 = (char *) malloc (pagesize); |
| 7194 | if (!data3) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7195 | return 12; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7196 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7197 | return 13; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7198 | for (i = 0; i < pagesize; ++i) |
| 7199 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7200 | return 14; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7201 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7202 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7203 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7204 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7205 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7206 | ac_cv_func_mmap_fixed_mapped=yes |
| 7207 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7208 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7209 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7210 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7211 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7212 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7213 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7214 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7216 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7217 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7218 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7219 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7220 | |
| 7221 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7222 | rm -f conftest.mmap conftest.txt |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7223 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7224 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7225 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7227 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7228 | if ${gt_cv_int_divbyzero_sigfpe+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7229 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7230 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7231 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7232 | gt_cv_int_divbyzero_sigfpe= |
| 7233 | case "$host_os" in |
| 7234 | macos* | darwin[6-9]* | darwin[1-9][0-9]*) |
| 7235 | # On Mac OS X 10.2 or newer, just assume the same as when cross- |
| 7236 | # compiling. If we were to perform the real test, 1 Crash Report |
| 7237 | # dialog window would pop up. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7238 | case "$host_cpu" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7239 | i[34567]86 | x86_64) |
| 7240 | gt_cv_int_divbyzero_sigfpe="guessing yes" ;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7241 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7242 | ;; |
| 7243 | esac |
| 7244 | if test -z "$gt_cv_int_divbyzero_sigfpe"; then |
| 7245 | if test "$cross_compiling" = yes; then : |
| 7246 | |
| 7247 | # Guess based on the CPU. |
| 7248 | case "$host_cpu" in |
| 7249 | alpha* | i[34567]86 | x86_64 | m68k | s390*) |
| 7250 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7251 | *) |
| 7252 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7253 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7254 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7255 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7257 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7258 | |
| 7259 | #include <stdlib.h> |
| 7260 | #include <signal.h> |
| 7261 | |
| 7262 | static void |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7263 | sigfpe_handler (int sig) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7264 | { |
| 7265 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7266 | exit (sig != SIGFPE); |
| 7267 | } |
| 7268 | |
| 7269 | int x = 1; |
| 7270 | int y = 0; |
| 7271 | int z; |
| 7272 | int nan; |
| 7273 | |
| 7274 | int main () |
| 7275 | { |
| 7276 | signal (SIGFPE, sigfpe_handler); |
| 7277 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7278 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7279 | signal (SIGTRAP, sigfpe_handler); |
| 7280 | #endif |
| 7281 | /* Linux/SPARC yields signal SIGILL. */ |
| 7282 | #if defined (__sparc__) && defined (__linux__) |
| 7283 | signal (SIGILL, sigfpe_handler); |
| 7284 | #endif |
| 7285 | |
| 7286 | z = x / y; |
| 7287 | nan = y / y; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7288 | exit (2); |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7289 | } |
| 7290 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7291 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7292 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7293 | gt_cv_int_divbyzero_sigfpe=yes |
| 7294 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7295 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7296 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7297 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7298 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7299 | fi |
| 7300 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7301 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7302 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7303 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7305 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7306 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7307 | *yes) value=1;; |
| 7308 | *) value=0;; |
| 7309 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7310 | |
| 7311 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7312 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7313 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7314 | |
| 7315 | |
| 7316 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
| 7318 | $as_echo_n "checking for inttypes.h... " >&6; } |
| 7319 | if ${gl_cv_header_inttypes_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7320 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7321 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7323 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7324 | |
| 7325 | #include <sys/types.h> |
| 7326 | #include <inttypes.h> |
| 7327 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7328 | int |
| 7329 | main () |
| 7330 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7331 | uintmax_t i = (uintmax_t) -1; return !i; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7332 | ; |
| 7333 | return 0; |
| 7334 | } |
| 7335 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7336 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7337 | gl_cv_header_inttypes_h=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7338 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7339 | gl_cv_header_inttypes_h=no |
| 7340 | fi |
| 7341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7342 | fi |
| 7343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 |
| 7344 | $as_echo "$gl_cv_header_inttypes_h" >&6; } |
| 7345 | if test $gl_cv_header_inttypes_h = yes; then |
| 7346 | |
| 7347 | cat >>confdefs.h <<_ACEOF |
| 7348 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 7349 | _ACEOF |
| 7350 | |
| 7351 | fi |
| 7352 | |
| 7353 | |
| 7354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 7355 | $as_echo_n "checking for unsigned long long int... " >&6; } |
| 7356 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : |
| 7357 | $as_echo_n "(cached) " >&6 |
| 7358 | else |
| 7359 | ac_cv_type_unsigned_long_long_int=yes |
| 7360 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 7361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7362 | /* end confdefs.h. */ |
| 7363 | |
| 7364 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 7365 | implementations with broken preprocessors. Perhaps this can |
| 7366 | be revisited in 2012. In the meantime, code should not expect |
| 7367 | #if to work with literals wider than 32 bits. */ |
| 7368 | /* Test literals. */ |
| 7369 | long long int ll = 9223372036854775807ll; |
| 7370 | long long int nll = -9223372036854775807LL; |
| 7371 | unsigned long long int ull = 18446744073709551615ULL; |
| 7372 | /* Test constant expressions. */ |
| 7373 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 7374 | ? 1 : -1)]; |
| 7375 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 7376 | ? 1 : -1)]; |
| 7377 | int i = 63; |
| 7378 | int |
| 7379 | main () |
| 7380 | { |
| 7381 | /* Test availability of runtime routines for shift and division. */ |
| 7382 | long long int llmax = 9223372036854775807ll; |
| 7383 | unsigned long long int ullmax = 18446744073709551615ull; |
| 7384 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 7385 | | (llmax / ll) | (llmax % ll) |
| 7386 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 7387 | | (ullmax / ull) | (ullmax % ull)); |
| 7388 | ; |
| 7389 | return 0; |
| 7390 | } |
| 7391 | |
| 7392 | _ACEOF |
| 7393 | if ac_fn_c_try_link "$LINENO"; then : |
| 7394 | |
| 7395 | else |
| 7396 | ac_cv_type_unsigned_long_long_int=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7397 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7398 | rm -f core conftest.err conftest.$ac_objext \ |
| 7399 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7400 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7401 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 7403 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 7404 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7405 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7406 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7407 | |
| 7408 | fi |
| 7409 | |
| 7410 | |
| 7411 | |
| 7412 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7413 | if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7414 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7415 | test $ac_cv_type_unsigned_long_long_int = yes \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7416 | && ac_type='unsigned long long' \ |
| 7417 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7418 | |
| 7419 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7420 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7421 | _ACEOF |
| 7422 | |
| 7423 | else |
| 7424 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7425 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7426 | |
| 7427 | fi |
| 7428 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7429 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7430 | for ac_header in inttypes.h |
| 7431 | do : |
| 7432 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 7433 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
| 7434 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7435 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7436 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7437 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7438 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7439 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7440 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7441 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7442 | if test $ac_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7444 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7445 | if ${gt_cv_inttypes_pri_broken+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7446 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7447 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7448 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7450 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7451 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7452 | #include <inttypes.h> |
| 7453 | #ifdef PRId32 |
| 7454 | char *p = PRId32; |
| 7455 | #endif |
| 7456 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7457 | int |
| 7458 | main () |
| 7459 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7460 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7461 | ; |
| 7462 | return 0; |
| 7463 | } |
| 7464 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7465 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7466 | gt_cv_inttypes_pri_broken=no |
| 7467 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7468 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7469 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7470 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7471 | |
| 7472 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7474 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7475 | fi |
| 7476 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7477 | |
| 7478 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7479 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7480 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7481 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7482 | PRI_MACROS_BROKEN=1 |
| 7483 | else |
| 7484 | PRI_MACROS_BROKEN=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7485 | fi |
| 7486 | |
| 7487 | |
| 7488 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7489 | |
| 7490 | |
| 7491 | |
| 7492 | |
| 7493 | # Check whether --enable-threads was given. |
| 7494 | if test "${enable_threads+set}" = set; then : |
| 7495 | enableval=$enable_threads; gl_use_threads=$enableval |
| 7496 | else |
| 7497 | if test -n "$gl_use_threads_default"; then |
| 7498 | gl_use_threads="$gl_use_threads_default" |
| 7499 | else |
| 7500 | case "$host_os" in |
| 7501 | osf*) gl_use_threads=no ;; |
| 7502 | cygwin*) |
| 7503 | case `uname -r` in |
| 7504 | 1.[0-5].*) gl_use_threads=no ;; |
| 7505 | *) gl_use_threads=yes ;; |
| 7506 | esac |
| 7507 | ;; |
| 7508 | *) gl_use_threads=yes ;; |
| 7509 | esac |
| 7510 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7511 | |
| 7512 | fi |
| 7513 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7514 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then |
| 7515 | # For using <pthread.h>: |
| 7516 | case "$host_os" in |
| 7517 | osf*) |
| 7518 | # On OSF/1, the compiler needs the flag -D_REENTRANT so that it |
| 7519 | # groks <pthread.h>. cc also understands the flag -pthread, but |
| 7520 | # we don't use it because 1. gcc-2.95 doesn't understand -pthread, |
| 7521 | # 2. putting a flag into CPPFLAGS that has an effect on the linker |
| 7522 | # causes the AC_LINK_IFELSE test below to succeed unexpectedly, |
| 7523 | # leading to wrong values of LIBTHREAD and LTLIBTHREAD. |
| 7524 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" |
| 7525 | ;; |
| 7526 | esac |
| 7527 | # Some systems optimize for single-threaded programs by default, and |
| 7528 | # need special flags to disable these optimizations. For example, the |
| 7529 | # definition of 'errno' in <errno.h>. |
| 7530 | case "$host_os" in |
| 7531 | aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; |
| 7532 | solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; |
| 7533 | esac |
| 7534 | fi |
| 7535 | |
| 7536 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7537 | |
| 7538 | |
| 7539 | |
| 7540 | if test "X$prefix" = "XNONE"; then |
| 7541 | acl_final_prefix="$ac_default_prefix" |
| 7542 | else |
| 7543 | acl_final_prefix="$prefix" |
| 7544 | fi |
| 7545 | if test "X$exec_prefix" = "XNONE"; then |
| 7546 | acl_final_exec_prefix='${prefix}' |
| 7547 | else |
| 7548 | acl_final_exec_prefix="$exec_prefix" |
| 7549 | fi |
| 7550 | acl_save_prefix="$prefix" |
| 7551 | prefix="$acl_final_prefix" |
| 7552 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 7553 | prefix="$acl_save_prefix" |
| 7554 | |
| 7555 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7556 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7557 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7558 | if test "${with_gnu_ld+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7559 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7560 | else |
| 7561 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7562 | fi |
| 7563 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7564 | # Prepare PATH_SEPARATOR. |
| 7565 | # The user is always right. |
| 7566 | if test "${PATH_SEPARATOR+set}" != set; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7567 | # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which |
| 7568 | # contains only /bin. Note that ksh looks also at the FPATH variable, |
| 7569 | # so we have to set that as well for the test. |
| 7570 | PATH_SEPARATOR=: |
| 7571 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 7572 | && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ |
| 7573 | || PATH_SEPARATOR=';' |
| 7574 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7575 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7576 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7577 | ac_prog=ld |
| 7578 | if test "$GCC" = yes; then |
| 7579 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 7581 | $as_echo_n "checking for ld used by $CC... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7582 | case $host in |
| 7583 | *-*-mingw*) |
| 7584 | # gcc leaves a trailing carriage return which upsets mingw |
| 7585 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7586 | *) |
| 7587 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7588 | esac |
| 7589 | case $ac_prog in |
| 7590 | # Accept absolute paths. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7591 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7592 | re_direlt='/[^/][^/]*/\.\./' |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7593 | # Canonicalize the pathname of ld |
| 7594 | ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` |
| 7595 | while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do |
| 7596 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7597 | done |
| 7598 | test -z "$LD" && LD="$ac_prog" |
| 7599 | ;; |
| 7600 | "") |
| 7601 | # If it fails, then pretend we aren't using GCC. |
| 7602 | ac_prog=ld |
| 7603 | ;; |
| 7604 | *) |
| 7605 | # If it is relative, then search for the first ld in PATH. |
| 7606 | with_gnu_ld=unknown |
| 7607 | ;; |
| 7608 | esac |
| 7609 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7611 | $as_echo_n "checking for GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7612 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7614 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7615 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7616 | if ${acl_cv_path_LD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7617 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7618 | else |
| 7619 | if test -z "$LD"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7620 | acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7621 | for ac_dir in $PATH; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7622 | IFS="$acl_save_ifs" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7623 | test -z "$ac_dir" && ac_dir=. |
| 7624 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7625 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 7626 | # Check to see if the program is GNU ld. I'd rather use --version, |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7627 | # but apparently some variants of GNU ld only accept -v. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7628 | # Break only if it was the GNU/non-GNU ld that we prefer. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7629 | case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7630 | *GNU* | *'with BFD'*) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7631 | test "$with_gnu_ld" != no && break |
| 7632 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7633 | *) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7634 | test "$with_gnu_ld" != yes && break |
| 7635 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7636 | esac |
| 7637 | fi |
| 7638 | done |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7639 | IFS="$acl_save_ifs" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7640 | else |
| 7641 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7642 | fi |
| 7643 | fi |
| 7644 | |
| 7645 | LD="$acl_cv_path_LD" |
| 7646 | if test -n "$LD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7648 | $as_echo "$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7649 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7651 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7652 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7653 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7655 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7656 | if ${acl_cv_prog_gnu_ld+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7657 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7658 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7659 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7660 | case `$LD -v 2>&1 </dev/null` in |
| 7661 | *GNU* | *'with BFD'*) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7662 | acl_cv_prog_gnu_ld=yes |
| 7663 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7664 | *) |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7665 | acl_cv_prog_gnu_ld=no |
| 7666 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7667 | esac |
| 7668 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7670 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7671 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 7672 | |
| 7673 | |
| 7674 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7675 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7677 | $as_echo_n "checking for shared library run path origin... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7678 | if ${acl_cv_rpath+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7679 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7680 | else |
| 7681 | |
| 7682 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 7683 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 7684 | . ./conftest.sh |
| 7685 | rm -f ./conftest.sh |
| 7686 | acl_cv_rpath=done |
| 7687 | |
| 7688 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7690 | $as_echo "$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7691 | wl="$acl_cv_wl" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7692 | acl_libext="$acl_cv_libext" |
| 7693 | acl_shlibext="$acl_cv_shlibext" |
| 7694 | acl_libname_spec="$acl_cv_libname_spec" |
| 7695 | acl_library_names_spec="$acl_cv_library_names_spec" |
| 7696 | acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 7697 | acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 7698 | acl_hardcode_direct="$acl_cv_hardcode_direct" |
| 7699 | acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7700 | # Check whether --enable-rpath was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7701 | if test "${enable_rpath+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7702 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7703 | else |
| 7704 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7705 | fi |
| 7706 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7707 | |
| 7708 | |
| 7709 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 7710 | acl_libdirstem=lib |
| 7711 | acl_libdirstem2= |
| 7712 | case "$host_os" in |
| 7713 | solaris*) |
| 7714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 |
| 7715 | $as_echo_n "checking for 64-bit host... " >&6; } |
| 7716 | if ${gl_cv_solaris_64bit+:} false; then : |
| 7717 | $as_echo_n "(cached) " >&6 |
| 7718 | else |
| 7719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7720 | /* end confdefs.h. */ |
| 7721 | |
| 7722 | #ifdef _LP64 |
| 7723 | sixtyfour bits |
| 7724 | #endif |
| 7725 | |
| 7726 | _ACEOF |
| 7727 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7728 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : |
| 7729 | gl_cv_solaris_64bit=yes |
| 7730 | else |
| 7731 | gl_cv_solaris_64bit=no |
| 7732 | fi |
| 7733 | rm -f conftest* |
| 7734 | |
| 7735 | |
| 7736 | fi |
| 7737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 |
| 7738 | $as_echo "$gl_cv_solaris_64bit" >&6; } |
| 7739 | if test $gl_cv_solaris_64bit = yes; then |
| 7740 | acl_libdirstem=lib/64 |
| 7741 | case "$host_cpu" in |
| 7742 | sparc*) acl_libdirstem2=lib/sparcv9 ;; |
| 7743 | i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; |
| 7744 | esac |
| 7745 | fi |
| 7746 | ;; |
| 7747 | *) |
| 7748 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` |
| 7749 | if test -n "$searchpath"; then |
| 7750 | acl_save_IFS="${IFS= }"; IFS=":" |
| 7751 | for searchdir in $searchpath; do |
| 7752 | if test -d "$searchdir"; then |
| 7753 | case "$searchdir" in |
| 7754 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; |
| 7755 | */../ | */.. ) |
| 7756 | # Better ignore directories of this form. They are misleading. |
| 7757 | ;; |
| 7758 | *) searchdir=`cd "$searchdir" && pwd` |
| 7759 | case "$searchdir" in |
| 7760 | */lib64 ) acl_libdirstem=lib64 ;; |
| 7761 | esac ;; |
| 7762 | esac |
| 7763 | fi |
| 7764 | done |
| 7765 | IFS="$acl_save_IFS" |
| 7766 | fi |
| 7767 | ;; |
| 7768 | esac |
| 7769 | test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" |
| 7770 | |
| 7771 | |
| 7772 | |
| 7773 | gl_threads_api=none |
| 7774 | LIBTHREAD= |
| 7775 | LTLIBTHREAD= |
| 7776 | LIBMULTITHREAD= |
| 7777 | LTLIBMULTITHREAD= |
| 7778 | if test "$gl_use_threads" != no; then |
| 7779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 |
| 7780 | $as_echo_n "checking whether imported symbols can be declared weak... " >&6; } |
| 7781 | if ${gl_cv_have_weak+:} false; then : |
| 7782 | $as_echo_n "(cached) " >&6 |
| 7783 | else |
| 7784 | gl_cv_have_weak=no |
| 7785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7786 | /* end confdefs.h. */ |
| 7787 | extern void xyzzy (); |
| 7788 | #pragma weak xyzzy |
| 7789 | int |
| 7790 | main () |
| 7791 | { |
| 7792 | xyzzy(); |
| 7793 | ; |
| 7794 | return 0; |
| 7795 | } |
| 7796 | _ACEOF |
| 7797 | if ac_fn_c_try_link "$LINENO"; then : |
| 7798 | gl_cv_have_weak=maybe |
| 7799 | fi |
| 7800 | rm -f core conftest.err conftest.$ac_objext \ |
| 7801 | conftest$ac_exeext conftest.$ac_ext |
| 7802 | if test $gl_cv_have_weak = maybe; then |
| 7803 | if test "$cross_compiling" = yes; then : |
| 7804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7805 | /* end confdefs.h. */ |
| 7806 | #ifdef __ELF__ |
| 7807 | Extensible Linking Format |
| 7808 | #endif |
| 7809 | |
| 7810 | _ACEOF |
| 7811 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7812 | $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : |
| 7813 | gl_cv_have_weak="guessing yes" |
| 7814 | else |
| 7815 | gl_cv_have_weak="guessing no" |
| 7816 | fi |
| 7817 | rm -f conftest* |
| 7818 | |
| 7819 | |
| 7820 | else |
| 7821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7822 | /* end confdefs.h. */ |
| 7823 | |
| 7824 | #include <stdio.h> |
| 7825 | #pragma weak fputs |
| 7826 | int main () |
| 7827 | { |
| 7828 | return (fputs == NULL); |
| 7829 | } |
| 7830 | _ACEOF |
| 7831 | if ac_fn_c_try_run "$LINENO"; then : |
| 7832 | gl_cv_have_weak=yes |
| 7833 | else |
| 7834 | gl_cv_have_weak=no |
| 7835 | fi |
| 7836 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7837 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7838 | fi |
| 7839 | |
| 7840 | fi |
| 7841 | |
| 7842 | fi |
| 7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 |
| 7844 | $as_echo "$gl_cv_have_weak" >&6; } |
| 7845 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then |
| 7846 | # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that |
| 7847 | # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY. |
| 7848 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
| 7849 | if test "x$ac_cv_header_pthread_h" = xyes; then : |
| 7850 | gl_have_pthread_h=yes |
| 7851 | else |
| 7852 | gl_have_pthread_h=no |
| 7853 | fi |
| 7854 | |
| 7855 | |
| 7856 | if test "$gl_have_pthread_h" = yes; then |
| 7857 | # Other possible tests: |
| 7858 | # -lpthreads (FSU threads, PCthreads) |
| 7859 | # -lgthreads |
| 7860 | gl_have_pthread= |
| 7861 | # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist |
| 7862 | # in libc. IRIX 6.5 has the first one in both libc and libpthread, but |
| 7863 | # the second one only in libpthread, and lock.c needs it. |
| 7864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7865 | /* end confdefs.h. */ |
| 7866 | #include <pthread.h> |
| 7867 | int |
| 7868 | main () |
| 7869 | { |
| 7870 | pthread_mutex_lock((pthread_mutex_t*)0); |
| 7871 | pthread_mutexattr_init((pthread_mutexattr_t*)0); |
| 7872 | ; |
| 7873 | return 0; |
| 7874 | } |
| 7875 | _ACEOF |
| 7876 | if ac_fn_c_try_link "$LINENO"; then : |
| 7877 | gl_have_pthread=yes |
| 7878 | fi |
| 7879 | rm -f core conftest.err conftest.$ac_objext \ |
| 7880 | conftest$ac_exeext conftest.$ac_ext |
| 7881 | # Test for libpthread by looking for pthread_kill. (Not pthread_self, |
| 7882 | # since it is defined as a macro on OSF/1.) |
| 7883 | if test -n "$gl_have_pthread"; then |
| 7884 | # The program links fine without libpthread. But it may actually |
| 7885 | # need to link with libpthread in order to create multiple threads. |
| 7886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 7887 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } |
| 7888 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : |
| 7889 | $as_echo_n "(cached) " >&6 |
| 7890 | else |
| 7891 | ac_check_lib_save_LIBS=$LIBS |
| 7892 | LIBS="-lpthread $LIBS" |
| 7893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7894 | /* end confdefs.h. */ |
| 7895 | |
| 7896 | /* Override any GCC internal prototype to avoid an error. |
| 7897 | Use char because int might match the return type of a GCC |
| 7898 | builtin and then its argument prototype would still apply. */ |
| 7899 | #ifdef __cplusplus |
| 7900 | extern "C" |
| 7901 | #endif |
| 7902 | char pthread_kill (); |
| 7903 | int |
| 7904 | main () |
| 7905 | { |
| 7906 | return pthread_kill (); |
| 7907 | ; |
| 7908 | return 0; |
| 7909 | } |
| 7910 | _ACEOF |
| 7911 | if ac_fn_c_try_link "$LINENO"; then : |
| 7912 | ac_cv_lib_pthread_pthread_kill=yes |
| 7913 | else |
| 7914 | ac_cv_lib_pthread_pthread_kill=no |
| 7915 | fi |
| 7916 | rm -f core conftest.err conftest.$ac_objext \ |
| 7917 | conftest$ac_exeext conftest.$ac_ext |
| 7918 | LIBS=$ac_check_lib_save_LIBS |
| 7919 | fi |
| 7920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 7921 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 7922 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : |
| 7923 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread |
| 7924 | # On Solaris and HP-UX, most pthread functions exist also in libc. |
| 7925 | # Therefore pthread_in_use() needs to actually try to create a |
| 7926 | # thread: pthread_create from libc will fail, whereas |
| 7927 | # pthread_create will actually create a thread. |
| 7928 | case "$host_os" in |
| 7929 | solaris* | hpux*) |
| 7930 | |
| 7931 | $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h |
| 7932 | |
| 7933 | esac |
| 7934 | |
| 7935 | fi |
| 7936 | |
| 7937 | else |
| 7938 | # Some library is needed. Try libpthread and libc_r. |
| 7939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 |
| 7940 | $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } |
| 7941 | if ${ac_cv_lib_pthread_pthread_kill+:} false; then : |
| 7942 | $as_echo_n "(cached) " >&6 |
| 7943 | else |
| 7944 | ac_check_lib_save_LIBS=$LIBS |
| 7945 | LIBS="-lpthread $LIBS" |
| 7946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7947 | /* end confdefs.h. */ |
| 7948 | |
| 7949 | /* Override any GCC internal prototype to avoid an error. |
| 7950 | Use char because int might match the return type of a GCC |
| 7951 | builtin and then its argument prototype would still apply. */ |
| 7952 | #ifdef __cplusplus |
| 7953 | extern "C" |
| 7954 | #endif |
| 7955 | char pthread_kill (); |
| 7956 | int |
| 7957 | main () |
| 7958 | { |
| 7959 | return pthread_kill (); |
| 7960 | ; |
| 7961 | return 0; |
| 7962 | } |
| 7963 | _ACEOF |
| 7964 | if ac_fn_c_try_link "$LINENO"; then : |
| 7965 | ac_cv_lib_pthread_pthread_kill=yes |
| 7966 | else |
| 7967 | ac_cv_lib_pthread_pthread_kill=no |
| 7968 | fi |
| 7969 | rm -f core conftest.err conftest.$ac_objext \ |
| 7970 | conftest$ac_exeext conftest.$ac_ext |
| 7971 | LIBS=$ac_check_lib_save_LIBS |
| 7972 | fi |
| 7973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 |
| 7974 | $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } |
| 7975 | if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : |
| 7976 | gl_have_pthread=yes |
| 7977 | LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread |
| 7978 | LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread |
| 7979 | fi |
| 7980 | |
| 7981 | if test -z "$gl_have_pthread"; then |
| 7982 | # For FreeBSD 4. |
| 7983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 |
| 7984 | $as_echo_n "checking for pthread_kill in -lc_r... " >&6; } |
| 7985 | if ${ac_cv_lib_c_r_pthread_kill+:} false; then : |
| 7986 | $as_echo_n "(cached) " >&6 |
| 7987 | else |
| 7988 | ac_check_lib_save_LIBS=$LIBS |
| 7989 | LIBS="-lc_r $LIBS" |
| 7990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7991 | /* end confdefs.h. */ |
| 7992 | |
| 7993 | /* Override any GCC internal prototype to avoid an error. |
| 7994 | Use char because int might match the return type of a GCC |
| 7995 | builtin and then its argument prototype would still apply. */ |
| 7996 | #ifdef __cplusplus |
| 7997 | extern "C" |
| 7998 | #endif |
| 7999 | char pthread_kill (); |
| 8000 | int |
| 8001 | main () |
| 8002 | { |
| 8003 | return pthread_kill (); |
| 8004 | ; |
| 8005 | return 0; |
| 8006 | } |
| 8007 | _ACEOF |
| 8008 | if ac_fn_c_try_link "$LINENO"; then : |
| 8009 | ac_cv_lib_c_r_pthread_kill=yes |
| 8010 | else |
| 8011 | ac_cv_lib_c_r_pthread_kill=no |
| 8012 | fi |
| 8013 | rm -f core conftest.err conftest.$ac_objext \ |
| 8014 | conftest$ac_exeext conftest.$ac_ext |
| 8015 | LIBS=$ac_check_lib_save_LIBS |
| 8016 | fi |
| 8017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 |
| 8018 | $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } |
| 8019 | if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : |
| 8020 | gl_have_pthread=yes |
| 8021 | LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r |
| 8022 | LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r |
| 8023 | fi |
| 8024 | |
| 8025 | fi |
| 8026 | fi |
| 8027 | if test -n "$gl_have_pthread"; then |
| 8028 | gl_threads_api=posix |
| 8029 | |
| 8030 | $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h |
| 8031 | |
| 8032 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then |
| 8033 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8034 | |
| 8035 | $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h |
| 8036 | |
| 8037 | LIBTHREAD= |
| 8038 | LTLIBTHREAD= |
| 8039 | fi |
| 8040 | fi |
| 8041 | fi |
| 8042 | fi |
| 8043 | fi |
| 8044 | if test -z "$gl_have_pthread"; then |
| 8045 | if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then |
| 8046 | gl_have_solaristhread= |
| 8047 | gl_save_LIBS="$LIBS" |
| 8048 | LIBS="$LIBS -lthread" |
| 8049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8050 | /* end confdefs.h. */ |
| 8051 | |
| 8052 | #include <thread.h> |
| 8053 | #include <synch.h> |
| 8054 | |
| 8055 | int |
| 8056 | main () |
| 8057 | { |
| 8058 | thr_self(); |
| 8059 | ; |
| 8060 | return 0; |
| 8061 | } |
| 8062 | _ACEOF |
| 8063 | if ac_fn_c_try_link "$LINENO"; then : |
| 8064 | gl_have_solaristhread=yes |
| 8065 | fi |
| 8066 | rm -f core conftest.err conftest.$ac_objext \ |
| 8067 | conftest$ac_exeext conftest.$ac_ext |
| 8068 | LIBS="$gl_save_LIBS" |
| 8069 | if test -n "$gl_have_solaristhread"; then |
| 8070 | gl_threads_api=solaris |
| 8071 | LIBTHREAD=-lthread |
| 8072 | LTLIBTHREAD=-lthread |
| 8073 | LIBMULTITHREAD="$LIBTHREAD" |
| 8074 | LTLIBMULTITHREAD="$LTLIBTHREAD" |
| 8075 | |
| 8076 | $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h |
| 8077 | |
| 8078 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8079 | |
| 8080 | $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h |
| 8081 | |
| 8082 | LIBTHREAD= |
| 8083 | LTLIBTHREAD= |
| 8084 | fi |
| 8085 | fi |
| 8086 | fi |
| 8087 | fi |
| 8088 | if test "$gl_use_threads" = pth; then |
| 8089 | gl_save_CPPFLAGS="$CPPFLAGS" |
| 8090 | |
| 8091 | |
| 8092 | |
| 8093 | |
| 8094 | |
| 8095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 |
| 8096 | $as_echo_n "checking how to link with libpth... " >&6; } |
| 8097 | if ${ac_cv_libpth_libs+:} false; then : |
| 8098 | $as_echo_n "(cached) " >&6 |
| 8099 | else |
| 8100 | |
| 8101 | |
| 8102 | |
| 8103 | |
| 8104 | |
| 8105 | |
| 8106 | |
| 8107 | |
| 8108 | use_additional=yes |
| 8109 | |
| 8110 | acl_save_prefix="$prefix" |
| 8111 | prefix="$acl_final_prefix" |
| 8112 | acl_save_exec_prefix="$exec_prefix" |
| 8113 | exec_prefix="$acl_final_exec_prefix" |
| 8114 | |
| 8115 | eval additional_includedir=\"$includedir\" |
| 8116 | eval additional_libdir=\"$libdir\" |
| 8117 | |
| 8118 | exec_prefix="$acl_save_exec_prefix" |
| 8119 | prefix="$acl_save_prefix" |
| 8120 | |
| 8121 | |
| 8122 | # Check whether --with-libpth-prefix was given. |
| 8123 | if test "${with_libpth_prefix+set}" = set; then : |
| 8124 | withval=$with_libpth_prefix; |
| 8125 | if test "X$withval" = "Xno"; then |
| 8126 | use_additional=no |
| 8127 | else |
| 8128 | if test "X$withval" = "X"; then |
| 8129 | |
| 8130 | acl_save_prefix="$prefix" |
| 8131 | prefix="$acl_final_prefix" |
| 8132 | acl_save_exec_prefix="$exec_prefix" |
| 8133 | exec_prefix="$acl_final_exec_prefix" |
| 8134 | |
| 8135 | eval additional_includedir=\"$includedir\" |
| 8136 | eval additional_libdir=\"$libdir\" |
| 8137 | |
| 8138 | exec_prefix="$acl_save_exec_prefix" |
| 8139 | prefix="$acl_save_prefix" |
| 8140 | |
| 8141 | else |
| 8142 | additional_includedir="$withval/include" |
| 8143 | additional_libdir="$withval/$acl_libdirstem" |
| 8144 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 8145 | && ! test -d "$withval/$acl_libdirstem"; then |
| 8146 | additional_libdir="$withval/$acl_libdirstem2" |
| 8147 | fi |
| 8148 | fi |
| 8149 | fi |
| 8150 | |
| 8151 | fi |
| 8152 | |
| 8153 | LIBPTH= |
| 8154 | LTLIBPTH= |
| 8155 | INCPTH= |
| 8156 | LIBPTH_PREFIX= |
| 8157 | HAVE_LIBPTH= |
| 8158 | rpathdirs= |
| 8159 | ltrpathdirs= |
| 8160 | names_already_handled= |
| 8161 | names_next_round='pth ' |
| 8162 | while test -n "$names_next_round"; do |
| 8163 | names_this_round="$names_next_round" |
| 8164 | names_next_round= |
| 8165 | for name in $names_this_round; do |
| 8166 | already_handled= |
| 8167 | for n in $names_already_handled; do |
| 8168 | if test "$n" = "$name"; then |
| 8169 | already_handled=yes |
| 8170 | break |
| 8171 | fi |
| 8172 | done |
| 8173 | if test -z "$already_handled"; then |
| 8174 | names_already_handled="$names_already_handled $name" |
| 8175 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
| 8176 | eval value=\"\$HAVE_LIB$uppername\" |
| 8177 | if test -n "$value"; then |
| 8178 | if test "$value" = yes; then |
| 8179 | eval value=\"\$LIB$uppername\" |
| 8180 | test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" |
| 8181 | eval value=\"\$LTLIB$uppername\" |
| 8182 | test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" |
| 8183 | else |
| 8184 | : |
| 8185 | fi |
| 8186 | else |
| 8187 | found_dir= |
| 8188 | found_la= |
| 8189 | found_so= |
| 8190 | found_a= |
| 8191 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 8192 | if test -n "$acl_shlibext"; then |
| 8193 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 8194 | else |
| 8195 | shrext= |
| 8196 | fi |
| 8197 | if test $use_additional = yes; then |
| 8198 | dir="$additional_libdir" |
| 8199 | if test -n "$acl_shlibext"; then |
| 8200 | if test -f "$dir/$libname$shrext"; then |
| 8201 | found_dir="$dir" |
| 8202 | found_so="$dir/$libname$shrext" |
| 8203 | else |
| 8204 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8205 | ver=`(cd "$dir" && \ |
| 8206 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8207 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8208 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8209 | | sed 1q ) 2>/dev/null` |
| 8210 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8211 | found_dir="$dir" |
| 8212 | found_so="$dir/$libname$shrext.$ver" |
| 8213 | fi |
| 8214 | else |
| 8215 | eval library_names=\"$acl_library_names_spec\" |
| 8216 | for f in $library_names; do |
| 8217 | if test -f "$dir/$f"; then |
| 8218 | found_dir="$dir" |
| 8219 | found_so="$dir/$f" |
| 8220 | break |
| 8221 | fi |
| 8222 | done |
| 8223 | fi |
| 8224 | fi |
| 8225 | fi |
| 8226 | if test "X$found_dir" = "X"; then |
| 8227 | if test -f "$dir/$libname.$acl_libext"; then |
| 8228 | found_dir="$dir" |
| 8229 | found_a="$dir/$libname.$acl_libext" |
| 8230 | fi |
| 8231 | fi |
| 8232 | if test "X$found_dir" != "X"; then |
| 8233 | if test -f "$dir/$libname.la"; then |
| 8234 | found_la="$dir/$libname.la" |
| 8235 | fi |
| 8236 | fi |
| 8237 | fi |
| 8238 | if test "X$found_dir" = "X"; then |
| 8239 | for x in $LDFLAGS $LTLIBPTH; do |
| 8240 | |
| 8241 | acl_save_prefix="$prefix" |
| 8242 | prefix="$acl_final_prefix" |
| 8243 | acl_save_exec_prefix="$exec_prefix" |
| 8244 | exec_prefix="$acl_final_exec_prefix" |
| 8245 | eval x=\"$x\" |
| 8246 | exec_prefix="$acl_save_exec_prefix" |
| 8247 | prefix="$acl_save_prefix" |
| 8248 | |
| 8249 | case "$x" in |
| 8250 | -L*) |
| 8251 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8252 | if test -n "$acl_shlibext"; then |
| 8253 | if test -f "$dir/$libname$shrext"; then |
| 8254 | found_dir="$dir" |
| 8255 | found_so="$dir/$libname$shrext" |
| 8256 | else |
| 8257 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8258 | ver=`(cd "$dir" && \ |
| 8259 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8260 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8261 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8262 | | sed 1q ) 2>/dev/null` |
| 8263 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8264 | found_dir="$dir" |
| 8265 | found_so="$dir/$libname$shrext.$ver" |
| 8266 | fi |
| 8267 | else |
| 8268 | eval library_names=\"$acl_library_names_spec\" |
| 8269 | for f in $library_names; do |
| 8270 | if test -f "$dir/$f"; then |
| 8271 | found_dir="$dir" |
| 8272 | found_so="$dir/$f" |
| 8273 | break |
| 8274 | fi |
| 8275 | done |
| 8276 | fi |
| 8277 | fi |
| 8278 | fi |
| 8279 | if test "X$found_dir" = "X"; then |
| 8280 | if test -f "$dir/$libname.$acl_libext"; then |
| 8281 | found_dir="$dir" |
| 8282 | found_a="$dir/$libname.$acl_libext" |
| 8283 | fi |
| 8284 | fi |
| 8285 | if test "X$found_dir" != "X"; then |
| 8286 | if test -f "$dir/$libname.la"; then |
| 8287 | found_la="$dir/$libname.la" |
| 8288 | fi |
| 8289 | fi |
| 8290 | ;; |
| 8291 | esac |
| 8292 | if test "X$found_dir" != "X"; then |
| 8293 | break |
| 8294 | fi |
| 8295 | done |
| 8296 | fi |
| 8297 | if test "X$found_dir" != "X"; then |
| 8298 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" |
| 8299 | if test "X$found_so" != "X"; then |
| 8300 | if test "$enable_rpath" = no \ |
| 8301 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 8302 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
| 8303 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8304 | else |
| 8305 | haveit= |
| 8306 | for x in $ltrpathdirs; do |
| 8307 | if test "X$x" = "X$found_dir"; then |
| 8308 | haveit=yes |
| 8309 | break |
| 8310 | fi |
| 8311 | done |
| 8312 | if test -z "$haveit"; then |
| 8313 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8314 | fi |
| 8315 | if test "$acl_hardcode_direct" = yes; then |
| 8316 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8317 | else |
| 8318 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
| 8319 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8320 | haveit= |
| 8321 | for x in $rpathdirs; do |
| 8322 | if test "X$x" = "X$found_dir"; then |
| 8323 | haveit=yes |
| 8324 | break |
| 8325 | fi |
| 8326 | done |
| 8327 | if test -z "$haveit"; then |
| 8328 | rpathdirs="$rpathdirs $found_dir" |
| 8329 | fi |
| 8330 | else |
| 8331 | haveit= |
| 8332 | for x in $LDFLAGS $LIBPTH; do |
| 8333 | |
| 8334 | acl_save_prefix="$prefix" |
| 8335 | prefix="$acl_final_prefix" |
| 8336 | acl_save_exec_prefix="$exec_prefix" |
| 8337 | exec_prefix="$acl_final_exec_prefix" |
| 8338 | eval x=\"$x\" |
| 8339 | exec_prefix="$acl_save_exec_prefix" |
| 8340 | prefix="$acl_save_prefix" |
| 8341 | |
| 8342 | if test "X$x" = "X-L$found_dir"; then |
| 8343 | haveit=yes |
| 8344 | break |
| 8345 | fi |
| 8346 | done |
| 8347 | if test -z "$haveit"; then |
| 8348 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" |
| 8349 | fi |
| 8350 | if test "$acl_hardcode_minus_L" != no; then |
| 8351 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" |
| 8352 | else |
| 8353 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
| 8354 | fi |
| 8355 | fi |
| 8356 | fi |
| 8357 | fi |
| 8358 | else |
| 8359 | if test "X$found_a" != "X"; then |
| 8360 | LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" |
| 8361 | else |
| 8362 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" |
| 8363 | fi |
| 8364 | fi |
| 8365 | additional_includedir= |
| 8366 | case "$found_dir" in |
| 8367 | */$acl_libdirstem | */$acl_libdirstem/) |
| 8368 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 8369 | if test "$name" = 'pth'; then |
| 8370 | LIBPTH_PREFIX="$basedir" |
| 8371 | fi |
| 8372 | additional_includedir="$basedir/include" |
| 8373 | ;; |
| 8374 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 8375 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 8376 | if test "$name" = 'pth'; then |
| 8377 | LIBPTH_PREFIX="$basedir" |
| 8378 | fi |
| 8379 | additional_includedir="$basedir/include" |
| 8380 | ;; |
| 8381 | esac |
| 8382 | if test "X$additional_includedir" != "X"; then |
| 8383 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8384 | haveit= |
| 8385 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8386 | if test -n "$GCC"; then |
| 8387 | case $host_os in |
| 8388 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 8389 | esac |
| 8390 | fi |
| 8391 | fi |
| 8392 | if test -z "$haveit"; then |
| 8393 | for x in $CPPFLAGS $INCPTH; do |
| 8394 | |
| 8395 | acl_save_prefix="$prefix" |
| 8396 | prefix="$acl_final_prefix" |
| 8397 | acl_save_exec_prefix="$exec_prefix" |
| 8398 | exec_prefix="$acl_final_exec_prefix" |
| 8399 | eval x=\"$x\" |
| 8400 | exec_prefix="$acl_save_exec_prefix" |
| 8401 | prefix="$acl_save_prefix" |
| 8402 | |
| 8403 | if test "X$x" = "X-I$additional_includedir"; then |
| 8404 | haveit=yes |
| 8405 | break |
| 8406 | fi |
| 8407 | done |
| 8408 | if test -z "$haveit"; then |
| 8409 | if test -d "$additional_includedir"; then |
| 8410 | INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" |
| 8411 | fi |
| 8412 | fi |
| 8413 | fi |
| 8414 | fi |
| 8415 | fi |
| 8416 | if test -n "$found_la"; then |
| 8417 | save_libdir="$libdir" |
| 8418 | case "$found_la" in |
| 8419 | */* | *\\*) . "$found_la" ;; |
| 8420 | *) . "./$found_la" ;; |
| 8421 | esac |
| 8422 | libdir="$save_libdir" |
| 8423 | for dep in $dependency_libs; do |
| 8424 | case "$dep" in |
| 8425 | -L*) |
| 8426 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8427 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 8428 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
| 8429 | haveit= |
| 8430 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 8431 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
| 8432 | if test -n "$GCC"; then |
| 8433 | case $host_os in |
| 8434 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
| 8435 | esac |
| 8436 | fi |
| 8437 | fi |
| 8438 | if test -z "$haveit"; then |
| 8439 | haveit= |
| 8440 | for x in $LDFLAGS $LIBPTH; do |
| 8441 | |
| 8442 | acl_save_prefix="$prefix" |
| 8443 | prefix="$acl_final_prefix" |
| 8444 | acl_save_exec_prefix="$exec_prefix" |
| 8445 | exec_prefix="$acl_final_exec_prefix" |
| 8446 | eval x=\"$x\" |
| 8447 | exec_prefix="$acl_save_exec_prefix" |
| 8448 | prefix="$acl_save_prefix" |
| 8449 | |
| 8450 | if test "X$x" = "X-L$additional_libdir"; then |
| 8451 | haveit=yes |
| 8452 | break |
| 8453 | fi |
| 8454 | done |
| 8455 | if test -z "$haveit"; then |
| 8456 | if test -d "$additional_libdir"; then |
| 8457 | LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" |
| 8458 | fi |
| 8459 | fi |
| 8460 | haveit= |
| 8461 | for x in $LDFLAGS $LTLIBPTH; do |
| 8462 | |
| 8463 | acl_save_prefix="$prefix" |
| 8464 | prefix="$acl_final_prefix" |
| 8465 | acl_save_exec_prefix="$exec_prefix" |
| 8466 | exec_prefix="$acl_final_exec_prefix" |
| 8467 | eval x=\"$x\" |
| 8468 | exec_prefix="$acl_save_exec_prefix" |
| 8469 | prefix="$acl_save_prefix" |
| 8470 | |
| 8471 | if test "X$x" = "X-L$additional_libdir"; then |
| 8472 | haveit=yes |
| 8473 | break |
| 8474 | fi |
| 8475 | done |
| 8476 | if test -z "$haveit"; then |
| 8477 | if test -d "$additional_libdir"; then |
| 8478 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" |
| 8479 | fi |
| 8480 | fi |
| 8481 | fi |
| 8482 | fi |
| 8483 | ;; |
| 8484 | -R*) |
| 8485 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8486 | if test "$enable_rpath" != no; then |
| 8487 | haveit= |
| 8488 | for x in $rpathdirs; do |
| 8489 | if test "X$x" = "X$dir"; then |
| 8490 | haveit=yes |
| 8491 | break |
| 8492 | fi |
| 8493 | done |
| 8494 | if test -z "$haveit"; then |
| 8495 | rpathdirs="$rpathdirs $dir" |
| 8496 | fi |
| 8497 | haveit= |
| 8498 | for x in $ltrpathdirs; do |
| 8499 | if test "X$x" = "X$dir"; then |
| 8500 | haveit=yes |
| 8501 | break |
| 8502 | fi |
| 8503 | done |
| 8504 | if test -z "$haveit"; then |
| 8505 | ltrpathdirs="$ltrpathdirs $dir" |
| 8506 | fi |
| 8507 | fi |
| 8508 | ;; |
| 8509 | -l*) |
| 8510 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8511 | ;; |
| 8512 | *.la) |
| 8513 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8514 | ;; |
| 8515 | *) |
| 8516 | LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" |
| 8517 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" |
| 8518 | ;; |
| 8519 | esac |
| 8520 | done |
| 8521 | fi |
| 8522 | else |
| 8523 | LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" |
| 8524 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" |
| 8525 | fi |
| 8526 | fi |
| 8527 | fi |
| 8528 | done |
| 8529 | done |
| 8530 | if test "X$rpathdirs" != "X"; then |
| 8531 | if test -n "$acl_hardcode_libdir_separator"; then |
| 8532 | alldirs= |
| 8533 | for found_dir in $rpathdirs; do |
| 8534 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
| 8535 | done |
| 8536 | acl_save_libdir="$libdir" |
| 8537 | libdir="$alldirs" |
| 8538 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 8539 | libdir="$acl_save_libdir" |
| 8540 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
| 8541 | else |
| 8542 | for found_dir in $rpathdirs; do |
| 8543 | acl_save_libdir="$libdir" |
| 8544 | libdir="$found_dir" |
| 8545 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
| 8546 | libdir="$acl_save_libdir" |
| 8547 | LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" |
| 8548 | done |
| 8549 | fi |
| 8550 | fi |
| 8551 | if test "X$ltrpathdirs" != "X"; then |
| 8552 | for found_dir in $ltrpathdirs; do |
| 8553 | LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" |
| 8554 | done |
| 8555 | fi |
| 8556 | |
| 8557 | |
| 8558 | |
| 8559 | |
| 8560 | |
| 8561 | |
| 8562 | ac_cv_libpth_libs="$LIBPTH" |
| 8563 | ac_cv_libpth_ltlibs="$LTLIBPTH" |
| 8564 | ac_cv_libpth_cppflags="$INCPTH" |
| 8565 | ac_cv_libpth_prefix="$LIBPTH_PREFIX" |
| 8566 | |
| 8567 | fi |
| 8568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 |
| 8569 | $as_echo "$ac_cv_libpth_libs" >&6; } |
| 8570 | LIBPTH="$ac_cv_libpth_libs" |
| 8571 | LTLIBPTH="$ac_cv_libpth_ltlibs" |
| 8572 | INCPTH="$ac_cv_libpth_cppflags" |
| 8573 | LIBPTH_PREFIX="$ac_cv_libpth_prefix" |
| 8574 | |
| 8575 | for element in $INCPTH; do |
| 8576 | haveit= |
| 8577 | for x in $CPPFLAGS; do |
| 8578 | |
| 8579 | acl_save_prefix="$prefix" |
| 8580 | prefix="$acl_final_prefix" |
| 8581 | acl_save_exec_prefix="$exec_prefix" |
| 8582 | exec_prefix="$acl_final_exec_prefix" |
| 8583 | eval x=\"$x\" |
| 8584 | exec_prefix="$acl_save_exec_prefix" |
| 8585 | prefix="$acl_save_prefix" |
| 8586 | |
| 8587 | if test "X$x" = "X$element"; then |
| 8588 | haveit=yes |
| 8589 | break |
| 8590 | fi |
| 8591 | done |
| 8592 | if test -z "$haveit"; then |
| 8593 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 8594 | fi |
| 8595 | done |
| 8596 | |
| 8597 | |
| 8598 | |
| 8599 | |
| 8600 | HAVE_LIBPTH=yes |
| 8601 | |
| 8602 | |
| 8603 | |
| 8604 | gl_have_pth= |
| 8605 | gl_save_LIBS="$LIBS" |
| 8606 | LIBS="$LIBS $LIBPTH" |
| 8607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8608 | /* end confdefs.h. */ |
| 8609 | #include <pth.h> |
| 8610 | int |
| 8611 | main () |
| 8612 | { |
| 8613 | pth_self(); |
| 8614 | ; |
| 8615 | return 0; |
| 8616 | } |
| 8617 | _ACEOF |
| 8618 | if ac_fn_c_try_link "$LINENO"; then : |
| 8619 | gl_have_pth=yes |
| 8620 | fi |
| 8621 | rm -f core conftest.err conftest.$ac_objext \ |
| 8622 | conftest$ac_exeext conftest.$ac_ext |
| 8623 | LIBS="$gl_save_LIBS" |
| 8624 | if test -n "$gl_have_pth"; then |
| 8625 | gl_threads_api=pth |
| 8626 | LIBTHREAD="$LIBPTH" |
| 8627 | LTLIBTHREAD="$LTLIBPTH" |
| 8628 | LIBMULTITHREAD="$LIBTHREAD" |
| 8629 | LTLIBMULTITHREAD="$LTLIBTHREAD" |
| 8630 | |
| 8631 | $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h |
| 8632 | |
| 8633 | if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then |
| 8634 | if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then |
| 8635 | |
| 8636 | $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h |
| 8637 | |
| 8638 | LIBTHREAD= |
| 8639 | LTLIBTHREAD= |
| 8640 | fi |
| 8641 | fi |
| 8642 | else |
| 8643 | CPPFLAGS="$gl_save_CPPFLAGS" |
| 8644 | fi |
| 8645 | fi |
| 8646 | if test -z "$gl_have_pthread"; then |
| 8647 | case "$gl_use_threads" in |
| 8648 | yes | windows | win32) # The 'win32' is for backward compatibility. |
| 8649 | if { case "$host_os" in |
| 8650 | mingw*) true;; |
| 8651 | *) false;; |
| 8652 | esac |
| 8653 | }; then |
| 8654 | gl_threads_api=windows |
| 8655 | |
| 8656 | $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h |
| 8657 | |
| 8658 | fi |
| 8659 | ;; |
| 8660 | esac |
| 8661 | fi |
| 8662 | fi |
| 8663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 |
| 8664 | $as_echo_n "checking for multithread API to use... " >&6; } |
| 8665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 |
| 8666 | $as_echo "$gl_threads_api" >&6; } |
| 8667 | |
| 8668 | |
| 8669 | |
| 8670 | |
| 8671 | |
| 8672 | |
| 8673 | |
| 8674 | |
| 8675 | |
| 8676 | |
| 8677 | |
| 8678 | if test "$gl_threads_api" = posix; then |
| 8679 | # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the |
| 8680 | # pthread_rwlock_* functions. |
| 8681 | ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> |
| 8682 | " |
| 8683 | if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : |
| 8684 | |
| 8685 | $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h |
| 8686 | |
| 8687 | fi |
| 8688 | |
| 8689 | # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. |
| 8690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8691 | /* end confdefs.h. */ |
| 8692 | |
| 8693 | #include <pthread.h> |
| 8694 | int |
| 8695 | main () |
| 8696 | { |
| 8697 | |
| 8698 | #if __FreeBSD__ == 4 |
| 8699 | error "No, in FreeBSD 4.0 recursive mutexes actually don't work." |
| 8700 | #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ |
| 8701 | && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) |
| 8702 | error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." |
| 8703 | #else |
| 8704 | int x = (int)PTHREAD_MUTEX_RECURSIVE; |
| 8705 | return !x; |
| 8706 | #endif |
| 8707 | |
| 8708 | ; |
| 8709 | return 0; |
| 8710 | } |
| 8711 | _ACEOF |
| 8712 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8713 | |
| 8714 | $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h |
| 8715 | |
| 8716 | fi |
| 8717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8718 | fi |
| 8719 | : |
| 8720 | |
| 8721 | |
| 8722 | |
| 8723 | |
| 8724 | |
| 8725 | |
| 8726 | |
| 8727 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8728 | |
| 8729 | |
| 8730 | |
| 8731 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8732 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8733 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8734 | acl_save_prefix="$prefix" |
| 8735 | prefix="$acl_final_prefix" |
| 8736 | acl_save_exec_prefix="$exec_prefix" |
| 8737 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8738 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8739 | eval additional_includedir=\"$includedir\" |
| 8740 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8741 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8742 | exec_prefix="$acl_save_exec_prefix" |
| 8743 | prefix="$acl_save_prefix" |
| 8744 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8745 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8746 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8747 | if test "${with_libiconv_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8748 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8749 | if test "X$withval" = "Xno"; then |
| 8750 | use_additional=no |
| 8751 | else |
| 8752 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8753 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8754 | acl_save_prefix="$prefix" |
| 8755 | prefix="$acl_final_prefix" |
| 8756 | acl_save_exec_prefix="$exec_prefix" |
| 8757 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8758 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8759 | eval additional_includedir=\"$includedir\" |
| 8760 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8761 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8762 | exec_prefix="$acl_save_exec_prefix" |
| 8763 | prefix="$acl_save_prefix" |
| 8764 | |
| 8765 | else |
| 8766 | additional_includedir="$withval/include" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8767 | additional_libdir="$withval/$acl_libdirstem" |
| 8768 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 8769 | && ! test -d "$withval/$acl_libdirstem"; then |
| 8770 | additional_libdir="$withval/$acl_libdirstem2" |
| 8771 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8772 | fi |
| 8773 | fi |
| 8774 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8775 | fi |
| 8776 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8777 | LIBICONV= |
| 8778 | LTLIBICONV= |
| 8779 | INCICONV= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8780 | LIBICONV_PREFIX= |
| 8781 | HAVE_LIBICONV= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8782 | rpathdirs= |
| 8783 | ltrpathdirs= |
| 8784 | names_already_handled= |
| 8785 | names_next_round='iconv ' |
| 8786 | while test -n "$names_next_round"; do |
| 8787 | names_this_round="$names_next_round" |
| 8788 | names_next_round= |
| 8789 | for name in $names_this_round; do |
| 8790 | already_handled= |
| 8791 | for n in $names_already_handled; do |
| 8792 | if test "$n" = "$name"; then |
| 8793 | already_handled=yes |
| 8794 | break |
| 8795 | fi |
| 8796 | done |
| 8797 | if test -z "$already_handled"; then |
| 8798 | names_already_handled="$names_already_handled $name" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8799 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8800 | eval value=\"\$HAVE_LIB$uppername\" |
| 8801 | if test -n "$value"; then |
| 8802 | if test "$value" = yes; then |
| 8803 | eval value=\"\$LIB$uppername\" |
| 8804 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 8805 | eval value=\"\$LTLIB$uppername\" |
| 8806 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 8807 | else |
| 8808 | : |
| 8809 | fi |
| 8810 | else |
| 8811 | found_dir= |
| 8812 | found_la= |
| 8813 | found_so= |
| 8814 | found_a= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8815 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 8816 | if test -n "$acl_shlibext"; then |
| 8817 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 8818 | else |
| 8819 | shrext= |
| 8820 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8821 | if test $use_additional = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8822 | dir="$additional_libdir" |
| 8823 | if test -n "$acl_shlibext"; then |
| 8824 | if test -f "$dir/$libname$shrext"; then |
| 8825 | found_dir="$dir" |
| 8826 | found_so="$dir/$libname$shrext" |
| 8827 | else |
| 8828 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8829 | ver=`(cd "$dir" && \ |
| 8830 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8831 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8832 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8833 | | sed 1q ) 2>/dev/null` |
| 8834 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8835 | found_dir="$dir" |
| 8836 | found_so="$dir/$libname$shrext.$ver" |
| 8837 | fi |
| 8838 | else |
| 8839 | eval library_names=\"$acl_library_names_spec\" |
| 8840 | for f in $library_names; do |
| 8841 | if test -f "$dir/$f"; then |
| 8842 | found_dir="$dir" |
| 8843 | found_so="$dir/$f" |
| 8844 | break |
| 8845 | fi |
| 8846 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8847 | fi |
| 8848 | fi |
| 8849 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8850 | if test "X$found_dir" = "X"; then |
| 8851 | if test -f "$dir/$libname.$acl_libext"; then |
| 8852 | found_dir="$dir" |
| 8853 | found_a="$dir/$libname.$acl_libext" |
| 8854 | fi |
| 8855 | fi |
| 8856 | if test "X$found_dir" != "X"; then |
| 8857 | if test -f "$dir/$libname.la"; then |
| 8858 | found_la="$dir/$libname.la" |
| 8859 | fi |
| 8860 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8861 | fi |
| 8862 | if test "X$found_dir" = "X"; then |
| 8863 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8864 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8865 | acl_save_prefix="$prefix" |
| 8866 | prefix="$acl_final_prefix" |
| 8867 | acl_save_exec_prefix="$exec_prefix" |
| 8868 | exec_prefix="$acl_final_exec_prefix" |
| 8869 | eval x=\"$x\" |
| 8870 | exec_prefix="$acl_save_exec_prefix" |
| 8871 | prefix="$acl_save_prefix" |
| 8872 | |
| 8873 | case "$x" in |
| 8874 | -L*) |
| 8875 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8876 | if test -n "$acl_shlibext"; then |
| 8877 | if test -f "$dir/$libname$shrext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8878 | found_dir="$dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8879 | found_so="$dir/$libname$shrext" |
| 8880 | else |
| 8881 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 8882 | ver=`(cd "$dir" && \ |
| 8883 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 8884 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 8885 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 8886 | | sed 1q ) 2>/dev/null` |
| 8887 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 8888 | found_dir="$dir" |
| 8889 | found_so="$dir/$libname$shrext.$ver" |
| 8890 | fi |
| 8891 | else |
| 8892 | eval library_names=\"$acl_library_names_spec\" |
| 8893 | for f in $library_names; do |
| 8894 | if test -f "$dir/$f"; then |
| 8895 | found_dir="$dir" |
| 8896 | found_so="$dir/$f" |
| 8897 | break |
| 8898 | fi |
| 8899 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8900 | fi |
| 8901 | fi |
| 8902 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8903 | if test "X$found_dir" = "X"; then |
| 8904 | if test -f "$dir/$libname.$acl_libext"; then |
| 8905 | found_dir="$dir" |
| 8906 | found_a="$dir/$libname.$acl_libext" |
| 8907 | fi |
| 8908 | fi |
| 8909 | if test "X$found_dir" != "X"; then |
| 8910 | if test -f "$dir/$libname.la"; then |
| 8911 | found_la="$dir/$libname.la" |
| 8912 | fi |
| 8913 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8914 | ;; |
| 8915 | esac |
| 8916 | if test "X$found_dir" != "X"; then |
| 8917 | break |
| 8918 | fi |
| 8919 | done |
| 8920 | fi |
| 8921 | if test "X$found_dir" != "X"; then |
| 8922 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 8923 | if test "X$found_so" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8924 | if test "$enable_rpath" = no \ |
| 8925 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 8926 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8927 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8928 | else |
| 8929 | haveit= |
| 8930 | for x in $ltrpathdirs; do |
| 8931 | if test "X$x" = "X$found_dir"; then |
| 8932 | haveit=yes |
| 8933 | break |
| 8934 | fi |
| 8935 | done |
| 8936 | if test -z "$haveit"; then |
| 8937 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8938 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8939 | if test "$acl_hardcode_direct" = yes; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8940 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8941 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8942 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8943 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8944 | haveit= |
| 8945 | for x in $rpathdirs; do |
| 8946 | if test "X$x" = "X$found_dir"; then |
| 8947 | haveit=yes |
| 8948 | break |
| 8949 | fi |
| 8950 | done |
| 8951 | if test -z "$haveit"; then |
| 8952 | rpathdirs="$rpathdirs $found_dir" |
| 8953 | fi |
| 8954 | else |
| 8955 | haveit= |
| 8956 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8957 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8958 | acl_save_prefix="$prefix" |
| 8959 | prefix="$acl_final_prefix" |
| 8960 | acl_save_exec_prefix="$exec_prefix" |
| 8961 | exec_prefix="$acl_final_exec_prefix" |
| 8962 | eval x=\"$x\" |
| 8963 | exec_prefix="$acl_save_exec_prefix" |
| 8964 | prefix="$acl_save_prefix" |
| 8965 | |
| 8966 | if test "X$x" = "X-L$found_dir"; then |
| 8967 | haveit=yes |
| 8968 | break |
| 8969 | fi |
| 8970 | done |
| 8971 | if test -z "$haveit"; then |
| 8972 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 8973 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8974 | if test "$acl_hardcode_minus_L" != no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8975 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8976 | else |
| 8977 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8978 | fi |
| 8979 | fi |
| 8980 | fi |
| 8981 | fi |
| 8982 | else |
| 8983 | if test "X$found_a" != "X"; then |
| 8984 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 8985 | else |
| 8986 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8987 | fi |
| 8988 | fi |
| 8989 | additional_includedir= |
| 8990 | case "$found_dir" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 8991 | */$acl_libdirstem | */$acl_libdirstem/) |
| 8992 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 8993 | if test "$name" = 'iconv'; then |
| 8994 | LIBICONV_PREFIX="$basedir" |
| 8995 | fi |
| 8996 | additional_includedir="$basedir/include" |
| 8997 | ;; |
| 8998 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 8999 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 9000 | if test "$name" = 'iconv'; then |
| 9001 | LIBICONV_PREFIX="$basedir" |
| 9002 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9003 | additional_includedir="$basedir/include" |
| 9004 | ;; |
| 9005 | esac |
| 9006 | if test "X$additional_includedir" != "X"; then |
| 9007 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9008 | haveit= |
| 9009 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9010 | if test -n "$GCC"; then |
| 9011 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9012 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9013 | esac |
| 9014 | fi |
| 9015 | fi |
| 9016 | if test -z "$haveit"; then |
| 9017 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9018 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9019 | acl_save_prefix="$prefix" |
| 9020 | prefix="$acl_final_prefix" |
| 9021 | acl_save_exec_prefix="$exec_prefix" |
| 9022 | exec_prefix="$acl_final_exec_prefix" |
| 9023 | eval x=\"$x\" |
| 9024 | exec_prefix="$acl_save_exec_prefix" |
| 9025 | prefix="$acl_save_prefix" |
| 9026 | |
| 9027 | if test "X$x" = "X-I$additional_includedir"; then |
| 9028 | haveit=yes |
| 9029 | break |
| 9030 | fi |
| 9031 | done |
| 9032 | if test -z "$haveit"; then |
| 9033 | if test -d "$additional_includedir"; then |
| 9034 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 9035 | fi |
| 9036 | fi |
| 9037 | fi |
| 9038 | fi |
| 9039 | fi |
| 9040 | if test -n "$found_la"; then |
| 9041 | save_libdir="$libdir" |
| 9042 | case "$found_la" in |
| 9043 | */* | *\\*) . "$found_la" ;; |
| 9044 | *) . "./$found_la" ;; |
| 9045 | esac |
| 9046 | libdir="$save_libdir" |
| 9047 | for dep in $dependency_libs; do |
| 9048 | case "$dep" in |
| 9049 | -L*) |
| 9050 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9051 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 9052 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9053 | haveit= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9054 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 9055 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9056 | if test -n "$GCC"; then |
| 9057 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9058 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9059 | esac |
| 9060 | fi |
| 9061 | fi |
| 9062 | if test -z "$haveit"; then |
| 9063 | haveit= |
| 9064 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9065 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9066 | acl_save_prefix="$prefix" |
| 9067 | prefix="$acl_final_prefix" |
| 9068 | acl_save_exec_prefix="$exec_prefix" |
| 9069 | exec_prefix="$acl_final_exec_prefix" |
| 9070 | eval x=\"$x\" |
| 9071 | exec_prefix="$acl_save_exec_prefix" |
| 9072 | prefix="$acl_save_prefix" |
| 9073 | |
| 9074 | if test "X$x" = "X-L$additional_libdir"; then |
| 9075 | haveit=yes |
| 9076 | break |
| 9077 | fi |
| 9078 | done |
| 9079 | if test -z "$haveit"; then |
| 9080 | if test -d "$additional_libdir"; then |
| 9081 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 9082 | fi |
| 9083 | fi |
| 9084 | haveit= |
| 9085 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9086 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9087 | acl_save_prefix="$prefix" |
| 9088 | prefix="$acl_final_prefix" |
| 9089 | acl_save_exec_prefix="$exec_prefix" |
| 9090 | exec_prefix="$acl_final_exec_prefix" |
| 9091 | eval x=\"$x\" |
| 9092 | exec_prefix="$acl_save_exec_prefix" |
| 9093 | prefix="$acl_save_prefix" |
| 9094 | |
| 9095 | if test "X$x" = "X-L$additional_libdir"; then |
| 9096 | haveit=yes |
| 9097 | break |
| 9098 | fi |
| 9099 | done |
| 9100 | if test -z "$haveit"; then |
| 9101 | if test -d "$additional_libdir"; then |
| 9102 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 9103 | fi |
| 9104 | fi |
| 9105 | fi |
| 9106 | fi |
| 9107 | ;; |
| 9108 | -R*) |
| 9109 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9110 | if test "$enable_rpath" != no; then |
| 9111 | haveit= |
| 9112 | for x in $rpathdirs; do |
| 9113 | if test "X$x" = "X$dir"; then |
| 9114 | haveit=yes |
| 9115 | break |
| 9116 | fi |
| 9117 | done |
| 9118 | if test -z "$haveit"; then |
| 9119 | rpathdirs="$rpathdirs $dir" |
| 9120 | fi |
| 9121 | haveit= |
| 9122 | for x in $ltrpathdirs; do |
| 9123 | if test "X$x" = "X$dir"; then |
| 9124 | haveit=yes |
| 9125 | break |
| 9126 | fi |
| 9127 | done |
| 9128 | if test -z "$haveit"; then |
| 9129 | ltrpathdirs="$ltrpathdirs $dir" |
| 9130 | fi |
| 9131 | fi |
| 9132 | ;; |
| 9133 | -l*) |
| 9134 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9135 | ;; |
| 9136 | *.la) |
| 9137 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9138 | ;; |
| 9139 | *) |
| 9140 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 9141 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 9142 | ;; |
| 9143 | esac |
| 9144 | done |
| 9145 | fi |
| 9146 | else |
| 9147 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9148 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 9149 | fi |
| 9150 | fi |
| 9151 | fi |
| 9152 | done |
| 9153 | done |
| 9154 | if test "X$rpathdirs" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9155 | if test -n "$acl_hardcode_libdir_separator"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9156 | alldirs= |
| 9157 | for found_dir in $rpathdirs; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9158 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9159 | done |
| 9160 | acl_save_libdir="$libdir" |
| 9161 | libdir="$alldirs" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9162 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9163 | libdir="$acl_save_libdir" |
| 9164 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9165 | else |
| 9166 | for found_dir in $rpathdirs; do |
| 9167 | acl_save_libdir="$libdir" |
| 9168 | libdir="$found_dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9169 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9170 | libdir="$acl_save_libdir" |
| 9171 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9172 | done |
| 9173 | fi |
| 9174 | fi |
| 9175 | if test "X$ltrpathdirs" != "X"; then |
| 9176 | for found_dir in $ltrpathdirs; do |
| 9177 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 9178 | done |
| 9179 | fi |
| 9180 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9181 | |
| 9182 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9183 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9184 | |
| 9185 | |
| 9186 | |
| 9187 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9188 | |
| 9189 | |
| 9190 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9191 | |
| 9192 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9193 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9194 | for element in $INCICONV; do |
| 9195 | haveit= |
| 9196 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9197 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9198 | acl_save_prefix="$prefix" |
| 9199 | prefix="$acl_final_prefix" |
| 9200 | acl_save_exec_prefix="$exec_prefix" |
| 9201 | exec_prefix="$acl_final_exec_prefix" |
| 9202 | eval x=\"$x\" |
| 9203 | exec_prefix="$acl_save_exec_prefix" |
| 9204 | prefix="$acl_save_prefix" |
| 9205 | |
| 9206 | if test "X$x" = "X$element"; then |
| 9207 | haveit=yes |
| 9208 | break |
| 9209 | fi |
| 9210 | done |
| 9211 | if test -z "$haveit"; then |
| 9212 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9213 | fi |
| 9214 | done |
| 9215 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9216 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9218 | $as_echo_n "checking for iconv... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9219 | if ${am_cv_func_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9220 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9221 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9222 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9223 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 9224 | am_cv_lib_iconv=no |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9226 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9227 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9228 | #include <stdlib.h> |
| 9229 | #include <iconv.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9230 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9231 | int |
| 9232 | main () |
| 9233 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9234 | iconv_t cd = iconv_open("",""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9235 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9236 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9237 | ; |
| 9238 | return 0; |
| 9239 | } |
| 9240 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9241 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9242 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9243 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9244 | rm -f core conftest.err conftest.$ac_objext \ |
| 9245 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9246 | if test "$am_cv_func_iconv" != yes; then |
| 9247 | am_save_LIBS="$LIBS" |
| 9248 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9250 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9251 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9252 | #include <stdlib.h> |
| 9253 | #include <iconv.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9254 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9255 | int |
| 9256 | main () |
| 9257 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9258 | iconv_t cd = iconv_open("",""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9259 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9260 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9261 | ; |
| 9262 | return 0; |
| 9263 | } |
| 9264 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9265 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9266 | am_cv_lib_iconv=yes |
| 9267 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9268 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9269 | rm -f core conftest.err conftest.$ac_objext \ |
| 9270 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9271 | LIBS="$am_save_LIBS" |
| 9272 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9273 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9274 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9276 | $as_echo "$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9277 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 |
| 9279 | $as_echo_n "checking for working iconv... " >&6; } |
| 9280 | if ${am_cv_func_iconv_works+:} false; then : |
| 9281 | $as_echo_n "(cached) " >&6 |
| 9282 | else |
| 9283 | |
| 9284 | am_save_LIBS="$LIBS" |
| 9285 | if test $am_cv_lib_iconv = yes; then |
| 9286 | LIBS="$LIBS $LIBICONV" |
| 9287 | fi |
| 9288 | if test "$cross_compiling" = yes; then : |
| 9289 | |
| 9290 | case "$host_os" in |
| 9291 | aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; |
| 9292 | *) am_cv_func_iconv_works="guessing yes" ;; |
| 9293 | esac |
| 9294 | |
| 9295 | else |
| 9296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9297 | /* end confdefs.h. */ |
| 9298 | |
| 9299 | #include <iconv.h> |
| 9300 | #include <string.h> |
| 9301 | int main () |
| 9302 | { |
| 9303 | int result = 0; |
| 9304 | /* Test against AIX 5.1 bug: Failures are not distinguishable from successful |
| 9305 | returns. */ |
| 9306 | { |
| 9307 | iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); |
| 9308 | if (cd_utf8_to_88591 != (iconv_t)(-1)) |
| 9309 | { |
| 9310 | static const char input[] = "\342\202\254"; /* EURO SIGN */ |
| 9311 | char buf[10]; |
| 9312 | const char *inptr = input; |
| 9313 | size_t inbytesleft = strlen (input); |
| 9314 | char *outptr = buf; |
| 9315 | size_t outbytesleft = sizeof (buf); |
| 9316 | size_t res = iconv (cd_utf8_to_88591, |
| 9317 | (char **) &inptr, &inbytesleft, |
| 9318 | &outptr, &outbytesleft); |
| 9319 | if (res == 0) |
| 9320 | result |= 1; |
| 9321 | iconv_close (cd_utf8_to_88591); |
| 9322 | } |
| 9323 | } |
| 9324 | /* Test against Solaris 10 bug: Failures are not distinguishable from |
| 9325 | successful returns. */ |
| 9326 | { |
| 9327 | iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); |
| 9328 | if (cd_ascii_to_88591 != (iconv_t)(-1)) |
| 9329 | { |
| 9330 | static const char input[] = "\263"; |
| 9331 | char buf[10]; |
| 9332 | const char *inptr = input; |
| 9333 | size_t inbytesleft = strlen (input); |
| 9334 | char *outptr = buf; |
| 9335 | size_t outbytesleft = sizeof (buf); |
| 9336 | size_t res = iconv (cd_ascii_to_88591, |
| 9337 | (char **) &inptr, &inbytesleft, |
| 9338 | &outptr, &outbytesleft); |
| 9339 | if (res == 0) |
| 9340 | result |= 2; |
| 9341 | iconv_close (cd_ascii_to_88591); |
| 9342 | } |
| 9343 | } |
| 9344 | /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ |
| 9345 | { |
| 9346 | iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); |
| 9347 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 9348 | { |
| 9349 | static const char input[] = "\304"; |
| 9350 | static char buf[2] = { (char)0xDE, (char)0xAD }; |
| 9351 | const char *inptr = input; |
| 9352 | size_t inbytesleft = 1; |
| 9353 | char *outptr = buf; |
| 9354 | size_t outbytesleft = 1; |
| 9355 | size_t res = iconv (cd_88591_to_utf8, |
| 9356 | (char **) &inptr, &inbytesleft, |
| 9357 | &outptr, &outbytesleft); |
| 9358 | if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) |
| 9359 | result |= 4; |
| 9360 | iconv_close (cd_88591_to_utf8); |
| 9361 | } |
| 9362 | } |
| 9363 | #if 0 /* This bug could be worked around by the caller. */ |
| 9364 | /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ |
| 9365 | { |
| 9366 | iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); |
| 9367 | if (cd_88591_to_utf8 != (iconv_t)(-1)) |
| 9368 | { |
| 9369 | static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; |
| 9370 | char buf[50]; |
| 9371 | const char *inptr = input; |
| 9372 | size_t inbytesleft = strlen (input); |
| 9373 | char *outptr = buf; |
| 9374 | size_t outbytesleft = sizeof (buf); |
| 9375 | size_t res = iconv (cd_88591_to_utf8, |
| 9376 | (char **) &inptr, &inbytesleft, |
| 9377 | &outptr, &outbytesleft); |
| 9378 | if ((int)res > 0) |
| 9379 | result |= 8; |
| 9380 | iconv_close (cd_88591_to_utf8); |
| 9381 | } |
| 9382 | } |
| 9383 | #endif |
| 9384 | /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is |
| 9385 | provided. */ |
| 9386 | if (/* Try standardized names. */ |
| 9387 | iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) |
| 9388 | /* Try IRIX, OSF/1 names. */ |
| 9389 | && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) |
| 9390 | /* Try AIX names. */ |
| 9391 | && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) |
| 9392 | /* Try HP-UX names. */ |
| 9393 | && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) |
| 9394 | result |= 16; |
| 9395 | return result; |
| 9396 | } |
| 9397 | _ACEOF |
| 9398 | if ac_fn_c_try_run "$LINENO"; then : |
| 9399 | am_cv_func_iconv_works=yes |
| 9400 | else |
| 9401 | am_cv_func_iconv_works=no |
| 9402 | fi |
| 9403 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9404 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9405 | fi |
| 9406 | |
| 9407 | LIBS="$am_save_LIBS" |
| 9408 | |
| 9409 | fi |
| 9410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 |
| 9411 | $as_echo "$am_cv_func_iconv_works" >&6; } |
| 9412 | case "$am_cv_func_iconv_works" in |
| 9413 | *no) am_func_iconv=no am_cv_lib_iconv=no ;; |
| 9414 | *) am_func_iconv=yes ;; |
| 9415 | esac |
| 9416 | else |
| 9417 | am_func_iconv=no am_cv_lib_iconv=no |
| 9418 | fi |
| 9419 | if test "$am_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9420 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9421 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9422 | |
| 9423 | fi |
| 9424 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9426 | $as_echo_n "checking how to link with libiconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9428 | $as_echo "$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9429 | else |
| 9430 | CPPFLAGS="$am_save_CPPFLAGS" |
| 9431 | LIBICONV= |
| 9432 | LTLIBICONV= |
| 9433 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9434 | |
| 9435 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9436 | |
| 9437 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9439 | $as_echo_n "checking for iconv declaration... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9440 | if ${am_cv_proto_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9441 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9442 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9443 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9445 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9446 | |
| 9447 | #include <stdlib.h> |
| 9448 | #include <iconv.h> |
| 9449 | extern |
| 9450 | #ifdef __cplusplus |
| 9451 | "C" |
| 9452 | #endif |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9453 | #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9454 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 9455 | #else |
| 9456 | size_t iconv(); |
| 9457 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9458 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9459 | int |
| 9460 | main () |
| 9461 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9462 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9463 | ; |
| 9464 | return 0; |
| 9465 | } |
| 9466 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9467 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9468 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9469 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9470 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9471 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9472 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9473 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9474 | fi |
| 9475 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9476 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
| 9478 | $am_cv_proto_iconv" >&5 |
| 9479 | $as_echo " |
| 9480 | $am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9481 | |
| 9482 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9483 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9484 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9485 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9486 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9487 | fi |
| 9488 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9489 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9490 | |
| 9491 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9493 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9494 | int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9495 | int |
| 9496 | main () |
| 9497 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9498 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9499 | ; |
| 9500 | return 0; |
| 9501 | } |
| 9502 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9503 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9504 | |
| 9505 | $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h |
| 9506 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9507 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9508 | rm -f core conftest.err conftest.$ac_objext \ |
| 9509 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9510 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9511 | for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h |
| 9512 | do : |
| 9513 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9514 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 9515 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 9516 | cat >>confdefs.h <<_ACEOF |
| 9517 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9518 | _ACEOF |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9519 | |
| 9520 | fi |
| 9521 | |
| 9522 | done |
| 9523 | |
| 9524 | for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ |
| 9525 | stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ |
| 9526 | argz_stringify argz_next __fsetlocking |
| 9527 | do : |
| 9528 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9529 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 9530 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 9531 | cat >>confdefs.h <<_ACEOF |
| 9532 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9533 | _ACEOF |
| 9534 | |
| 9535 | fi |
| 9536 | done |
| 9537 | |
| 9538 | |
| 9539 | ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h> |
| 9540 | " |
| 9541 | if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : |
| 9542 | ac_have_decl=1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9543 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9544 | ac_have_decl=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9545 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9546 | |
| 9547 | cat >>confdefs.h <<_ACEOF |
| 9548 | #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl |
| 9549 | _ACEOF |
| 9550 | ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h> |
| 9551 | " |
| 9552 | if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : |
| 9553 | ac_have_decl=1 |
| 9554 | else |
| 9555 | ac_have_decl=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9556 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9557 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9558 | cat >>confdefs.h <<_ACEOF |
| 9559 | #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl |
| 9560 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9561 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9562 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9563 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9564 | |
| 9565 | for ac_prog in bison |
| 9566 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9567 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9568 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9570 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9571 | if ${ac_cv_prog_INTLBISON+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9572 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9573 | else |
| 9574 | if test -n "$INTLBISON"; then |
| 9575 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 9576 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9578 | for as_dir in $PATH |
| 9579 | do |
| 9580 | IFS=$as_save_IFS |
| 9581 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9582 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9583 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9584 | ac_cv_prog_INTLBISON="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9586 | break 2 |
| 9587 | fi |
| 9588 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9589 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9590 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9591 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9592 | fi |
| 9593 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9594 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9595 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9597 | $as_echo "$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9598 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9600 | $as_echo "no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9601 | fi |
| 9602 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9603 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9604 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9605 | done |
| 9606 | |
| 9607 | if test -z "$INTLBISON"; then |
| 9608 | ac_verc_fail=yes |
| 9609 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9611 | $as_echo_n "checking version of bison... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9612 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 9613 | case $ac_prog_version in |
| 9614 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 9615 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 9616 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 9617 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 9618 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9620 | $as_echo "$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9621 | fi |
| 9622 | if test $ac_verc_fail = yes; then |
| 9623 | INTLBISON=: |
| 9624 | fi |
| 9625 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9626 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9627 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 9629 | $as_echo_n "checking for long long int... " >&6; } |
| 9630 | if ${ac_cv_type_long_long_int+:} false; then : |
| 9631 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9632 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9633 | ac_cv_type_long_long_int=yes |
| 9634 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 9635 | ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int |
| 9636 | if test $ac_cv_type_long_long_int = yes; then |
| 9637 | if test "$cross_compiling" = yes; then : |
| 9638 | : |
| 9639 | else |
| 9640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9641 | /* end confdefs.h. */ |
| 9642 | #include <limits.h> |
| 9643 | #ifndef LLONG_MAX |
| 9644 | # define HALF \ |
| 9645 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 9646 | # define LLONG_MAX (HALF - 1 + HALF) |
| 9647 | #endif |
| 9648 | int |
| 9649 | main () |
| 9650 | { |
| 9651 | long long int n = 1; |
| 9652 | int i; |
| 9653 | for (i = 0; ; i++) |
| 9654 | { |
| 9655 | long long int m = n << i; |
| 9656 | if (m >> i != n) |
| 9657 | return 1; |
| 9658 | if (LLONG_MAX / 2 < m) |
| 9659 | break; |
| 9660 | } |
| 9661 | return 0; |
| 9662 | ; |
| 9663 | return 0; |
| 9664 | } |
| 9665 | _ACEOF |
| 9666 | if ac_fn_c_try_run "$LINENO"; then : |
| 9667 | |
| 9668 | else |
| 9669 | ac_cv_type_long_long_int=no |
| 9670 | fi |
| 9671 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9672 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9673 | fi |
| 9674 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 9675 | fi |
| 9676 | fi |
| 9677 | fi |
| 9678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 9679 | $as_echo "$ac_cv_type_long_long_int" >&6; } |
| 9680 | if test $ac_cv_type_long_long_int = yes; then |
| 9681 | |
| 9682 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 9683 | |
| 9684 | fi |
| 9685 | |
| 9686 | |
| 9687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
| 9688 | $as_echo_n "checking for wchar_t... " >&6; } |
| 9689 | if ${gt_cv_c_wchar_t+:} false; then : |
| 9690 | $as_echo_n "(cached) " >&6 |
| 9691 | else |
| 9692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9693 | /* end confdefs.h. */ |
| 9694 | #include <stddef.h> |
| 9695 | wchar_t foo = (wchar_t)'\0'; |
| 9696 | int |
| 9697 | main () |
| 9698 | { |
| 9699 | |
| 9700 | ; |
| 9701 | return 0; |
| 9702 | } |
| 9703 | _ACEOF |
| 9704 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9705 | gt_cv_c_wchar_t=yes |
| 9706 | else |
| 9707 | gt_cv_c_wchar_t=no |
| 9708 | fi |
| 9709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9710 | fi |
| 9711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
| 9712 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
| 9713 | if test $gt_cv_c_wchar_t = yes; then |
| 9714 | |
| 9715 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
| 9716 | |
| 9717 | fi |
| 9718 | |
| 9719 | |
| 9720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
| 9721 | $as_echo_n "checking for wint_t... " >&6; } |
| 9722 | if ${gt_cv_c_wint_t+:} false; then : |
| 9723 | $as_echo_n "(cached) " >&6 |
| 9724 | else |
| 9725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9726 | /* end confdefs.h. */ |
| 9727 | |
| 9728 | /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before |
| 9729 | <wchar.h>. |
| 9730 | BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included |
| 9731 | before <wchar.h>. */ |
| 9732 | #include <stddef.h> |
| 9733 | #include <stdio.h> |
| 9734 | #include <time.h> |
| 9735 | #include <wchar.h> |
| 9736 | wint_t foo = (wchar_t)'\0'; |
| 9737 | int |
| 9738 | main () |
| 9739 | { |
| 9740 | |
| 9741 | ; |
| 9742 | return 0; |
| 9743 | } |
| 9744 | _ACEOF |
| 9745 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9746 | gt_cv_c_wint_t=yes |
| 9747 | else |
| 9748 | gt_cv_c_wint_t=no |
| 9749 | fi |
| 9750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9751 | fi |
| 9752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
| 9753 | $as_echo "$gt_cv_c_wint_t" >&6; } |
| 9754 | if test $gt_cv_c_wint_t = yes; then |
| 9755 | |
| 9756 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
| 9757 | |
| 9758 | fi |
| 9759 | |
| 9760 | |
| 9761 | |
| 9762 | |
| 9763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
| 9764 | $as_echo_n "checking for intmax_t... " >&6; } |
| 9765 | if ${gt_cv_c_intmax_t+:} false; then : |
| 9766 | $as_echo_n "(cached) " >&6 |
| 9767 | else |
| 9768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9769 | /* end confdefs.h. */ |
| 9770 | |
| 9771 | #include <stddef.h> |
| 9772 | #include <stdlib.h> |
| 9773 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 9774 | #include <stdint.h> |
| 9775 | #endif |
| 9776 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 9777 | #include <inttypes.h> |
| 9778 | #endif |
| 9779 | |
| 9780 | int |
| 9781 | main () |
| 9782 | { |
| 9783 | intmax_t x = -1; |
| 9784 | return !x; |
| 9785 | ; |
| 9786 | return 0; |
| 9787 | } |
| 9788 | _ACEOF |
| 9789 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9790 | gt_cv_c_intmax_t=yes |
| 9791 | else |
| 9792 | gt_cv_c_intmax_t=no |
| 9793 | fi |
| 9794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9795 | fi |
| 9796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
| 9797 | $as_echo "$gt_cv_c_intmax_t" >&6; } |
| 9798 | if test $gt_cv_c_intmax_t = yes; then |
| 9799 | |
| 9800 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
| 9801 | |
| 9802 | fi |
| 9803 | |
| 9804 | |
| 9805 | |
| 9806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 9807 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } |
| 9808 | if ${gt_cv_func_printf_posix+:} false; then : |
| 9809 | $as_echo_n "(cached) " >&6 |
| 9810 | else |
| 9811 | |
| 9812 | if test "$cross_compiling" = yes; then : |
| 9813 | |
| 9814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9815 | /* end confdefs.h. */ |
| 9816 | |
| 9817 | #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 9818 | notposix |
| 9819 | #endif |
| 9820 | |
| 9821 | _ACEOF |
| 9822 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9823 | $EGREP "notposix" >/dev/null 2>&1; then : |
| 9824 | gt_cv_func_printf_posix="guessing no" |
| 9825 | else |
| 9826 | gt_cv_func_printf_posix="guessing yes" |
| 9827 | fi |
| 9828 | rm -f conftest* |
| 9829 | |
| 9830 | |
| 9831 | else |
| 9832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9833 | /* end confdefs.h. */ |
| 9834 | |
| 9835 | #include <stdio.h> |
| 9836 | #include <string.h> |
| 9837 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 9838 | dollar expansion (possibly an autoconf bug). */ |
| 9839 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 9840 | static char buf[100]; |
| 9841 | int main () |
| 9842 | { |
| 9843 | sprintf (buf, format, 33, 55); |
| 9844 | return (strcmp (buf, "55 33") != 0); |
| 9845 | } |
| 9846 | _ACEOF |
| 9847 | if ac_fn_c_try_run "$LINENO"; then : |
| 9848 | gt_cv_func_printf_posix=yes |
| 9849 | else |
| 9850 | gt_cv_func_printf_posix=no |
| 9851 | fi |
| 9852 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9853 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9854 | fi |
| 9855 | |
| 9856 | |
| 9857 | fi |
| 9858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 |
| 9859 | $as_echo "$gt_cv_func_printf_posix" >&6; } |
| 9860 | case $gt_cv_func_printf_posix in |
| 9861 | *yes) |
| 9862 | |
| 9863 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h |
| 9864 | |
| 9865 | ;; |
| 9866 | esac |
| 9867 | |
| 9868 | |
| 9869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5 |
| 9870 | $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; } |
| 9871 | if ${ac_cv_gnu_library_2_1+:} false; then : |
| 9872 | $as_echo_n "(cached) " >&6 |
| 9873 | else |
| 9874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9875 | /* end confdefs.h. */ |
| 9876 | |
| 9877 | #include <features.h> |
| 9878 | #ifdef __GNU_LIBRARY__ |
| 9879 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 9880 | Lucky GNU user |
| 9881 | #endif |
| 9882 | #endif |
| 9883 | #ifdef __UCLIBC__ |
| 9884 | Lucky user |
| 9885 | #endif |
| 9886 | |
| 9887 | _ACEOF |
| 9888 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9889 | $EGREP "Lucky" >/dev/null 2>&1; then : |
| 9890 | ac_cv_gnu_library_2_1=yes |
| 9891 | else |
| 9892 | ac_cv_gnu_library_2_1=no |
| 9893 | fi |
| 9894 | rm -f conftest* |
| 9895 | |
| 9896 | |
| 9897 | |
| 9898 | fi |
| 9899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
| 9900 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
| 9901 | |
| 9902 | GLIBC21="$ac_cv_gnu_library_2_1" |
| 9903 | |
| 9904 | |
| 9905 | |
| 9906 | for ac_header in stdint.h |
| 9907 | do : |
| 9908 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 9909 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 9910 | cat >>confdefs.h <<_ACEOF |
| 9911 | #define HAVE_STDINT_H 1 |
| 9912 | _ACEOF |
| 9913 | |
| 9914 | fi |
| 9915 | |
| 9916 | done |
| 9917 | |
| 9918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
| 9919 | $as_echo_n "checking for SIZE_MAX... " >&6; } |
| 9920 | if ${gl_cv_size_max+:} false; then : |
| 9921 | $as_echo_n "(cached) " >&6 |
| 9922 | else |
| 9923 | |
| 9924 | gl_cv_size_max= |
| 9925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9926 | /* end confdefs.h. */ |
| 9927 | |
| 9928 | #include <limits.h> |
| 9929 | #if HAVE_STDINT_H |
| 9930 | #include <stdint.h> |
| 9931 | #endif |
| 9932 | #ifdef SIZE_MAX |
| 9933 | Found it |
| 9934 | #endif |
| 9935 | |
| 9936 | _ACEOF |
| 9937 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9938 | $EGREP "Found it" >/dev/null 2>&1; then : |
| 9939 | gl_cv_size_max=yes |
| 9940 | fi |
| 9941 | rm -f conftest* |
| 9942 | |
| 9943 | if test -z "$gl_cv_size_max"; then |
| 9944 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> |
| 9945 | #include <limits.h>"; then : |
| 9946 | |
| 9947 | else |
| 9948 | size_t_bits_minus_1= |
| 9949 | fi |
| 9950 | |
| 9951 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
| 9952 | |
| 9953 | else |
| 9954 | fits_in_uint= |
| 9955 | fi |
| 9956 | |
| 9957 | if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then |
| 9958 | if test $fits_in_uint = 1; then |
| 9959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9960 | /* end confdefs.h. */ |
| 9961 | #include <stddef.h> |
| 9962 | extern size_t foo; |
| 9963 | extern unsigned long foo; |
| 9964 | |
| 9965 | int |
| 9966 | main () |
| 9967 | { |
| 9968 | |
| 9969 | ; |
| 9970 | return 0; |
| 9971 | } |
| 9972 | _ACEOF |
| 9973 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9974 | fits_in_uint=0 |
| 9975 | fi |
| 9976 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9977 | fi |
| 9978 | if test $fits_in_uint = 1; then |
| 9979 | gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 9980 | else |
| 9981 | gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" |
| 9982 | fi |
| 9983 | else |
| 9984 | gl_cv_size_max='((size_t)~(size_t)0)' |
| 9985 | fi |
| 9986 | fi |
| 9987 | |
| 9988 | fi |
| 9989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 |
| 9990 | $as_echo "$gl_cv_size_max" >&6; } |
| 9991 | if test "$gl_cv_size_max" != yes; then |
| 9992 | |
| 9993 | cat >>confdefs.h <<_ACEOF |
| 9994 | #define SIZE_MAX $gl_cv_size_max |
| 9995 | _ACEOF |
| 9996 | |
| 9997 | fi |
| 9998 | |
| 9999 | |
| 10000 | |
| 10001 | |
| 10002 | for ac_header in stdint.h |
| 10003 | do : |
| 10004 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 10005 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
| 10006 | cat >>confdefs.h <<_ACEOF |
| 10007 | #define HAVE_STDINT_H 1 |
| 10008 | _ACEOF |
| 10009 | |
| 10010 | fi |
| 10011 | |
| 10012 | done |
| 10013 | |
| 10014 | |
| 10015 | |
| 10016 | |
| 10017 | |
| 10018 | for ac_func in $ac_func_list |
| 10019 | do : |
| 10020 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10021 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10022 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 10023 | cat >>confdefs.h <<_ACEOF |
| 10024 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10025 | _ACEOF |
| 10026 | |
| 10027 | fi |
| 10028 | done |
| 10029 | |
| 10030 | |
| 10031 | |
| 10032 | |
| 10033 | |
| 10034 | |
| 10035 | |
| 10036 | |
| 10037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 |
| 10038 | $as_echo_n "checking for working fcntl.h... " >&6; } |
| 10039 | if ${gl_cv_header_working_fcntl_h+:} false; then : |
| 10040 | $as_echo_n "(cached) " >&6 |
| 10041 | else |
| 10042 | if test "$cross_compiling" = yes; then : |
| 10043 | gl_cv_header_working_fcntl_h=cross-compiling |
| 10044 | else |
| 10045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10046 | /* end confdefs.h. */ |
| 10047 | #include <sys/types.h> |
| 10048 | #include <sys/stat.h> |
| 10049 | #if HAVE_UNISTD_H |
| 10050 | # include <unistd.h> |
| 10051 | #else /* on Windows with MSVC */ |
| 10052 | # include <io.h> |
| 10053 | # include <stdlib.h> |
| 10054 | # defined sleep(n) _sleep ((n) * 1000) |
| 10055 | #endif |
| 10056 | #include <fcntl.h> |
| 10057 | #ifndef O_NOATIME |
| 10058 | #define O_NOATIME 0 |
| 10059 | #endif |
| 10060 | #ifndef O_NOFOLLOW |
| 10061 | #define O_NOFOLLOW 0 |
| 10062 | #endif |
| 10063 | static int const constants[] = |
| 10064 | { |
| 10065 | O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, |
| 10066 | O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY |
| 10067 | }; |
| 10068 | |
| 10069 | int |
| 10070 | main () |
| 10071 | { |
| 10072 | |
| 10073 | int result = !constants; |
| 10074 | #if HAVE_SYMLINK |
| 10075 | { |
| 10076 | static char const sym[] = "conftest.sym"; |
| 10077 | if (symlink ("/dev/null", sym) != 0) |
| 10078 | result |= 2; |
| 10079 | else |
| 10080 | { |
| 10081 | int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); |
| 10082 | if (fd >= 0) |
| 10083 | { |
| 10084 | close (fd); |
| 10085 | result |= 4; |
| 10086 | } |
| 10087 | } |
| 10088 | if (unlink (sym) != 0 || symlink (".", sym) != 0) |
| 10089 | result |= 2; |
| 10090 | else |
| 10091 | { |
| 10092 | int fd = open (sym, O_RDONLY | O_NOFOLLOW); |
| 10093 | if (fd >= 0) |
| 10094 | { |
| 10095 | close (fd); |
| 10096 | result |= 4; |
| 10097 | } |
| 10098 | } |
| 10099 | unlink (sym); |
| 10100 | } |
| 10101 | #endif |
| 10102 | { |
| 10103 | static char const file[] = "confdefs.h"; |
| 10104 | int fd = open (file, O_RDONLY | O_NOATIME); |
| 10105 | if (fd < 0) |
| 10106 | result |= 8; |
| 10107 | else |
| 10108 | { |
| 10109 | struct stat st0; |
| 10110 | if (fstat (fd, &st0) != 0) |
| 10111 | result |= 16; |
| 10112 | else |
| 10113 | { |
| 10114 | char c; |
| 10115 | sleep (1); |
| 10116 | if (read (fd, &c, 1) != 1) |
| 10117 | result |= 24; |
| 10118 | else |
| 10119 | { |
| 10120 | if (close (fd) != 0) |
| 10121 | result |= 32; |
| 10122 | else |
| 10123 | { |
| 10124 | struct stat st1; |
| 10125 | if (stat (file, &st1) != 0) |
| 10126 | result |= 40; |
| 10127 | else |
| 10128 | if (st0.st_atime != st1.st_atime) |
| 10129 | result |= 64; |
| 10130 | } |
| 10131 | } |
| 10132 | } |
| 10133 | } |
| 10134 | } |
| 10135 | return result; |
| 10136 | ; |
| 10137 | return 0; |
| 10138 | } |
| 10139 | _ACEOF |
| 10140 | if ac_fn_c_try_run "$LINENO"; then : |
| 10141 | gl_cv_header_working_fcntl_h=yes |
| 10142 | else |
| 10143 | case $? in #( |
| 10144 | 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( |
| 10145 | 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( |
| 10146 | 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( |
| 10147 | *) gl_cv_header_working_fcntl_h='no';; |
| 10148 | esac |
| 10149 | fi |
| 10150 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10151 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10152 | fi |
| 10153 | |
| 10154 | fi |
| 10155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 |
| 10156 | $as_echo "$gl_cv_header_working_fcntl_h" >&6; } |
| 10157 | |
| 10158 | case $gl_cv_header_working_fcntl_h in #( |
| 10159 | *O_NOATIME* | no | cross-compiling) ac_val=0;; #( |
| 10160 | *) ac_val=1;; |
| 10161 | esac |
| 10162 | |
| 10163 | cat >>confdefs.h <<_ACEOF |
| 10164 | #define HAVE_WORKING_O_NOATIME $ac_val |
| 10165 | _ACEOF |
| 10166 | |
| 10167 | |
| 10168 | case $gl_cv_header_working_fcntl_h in #( |
| 10169 | *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( |
| 10170 | *) ac_val=1;; |
| 10171 | esac |
| 10172 | |
| 10173 | cat >>confdefs.h <<_ACEOF |
| 10174 | #define HAVE_WORKING_O_NOFOLLOW $ac_val |
| 10175 | _ACEOF |
| 10176 | |
| 10177 | |
| 10178 | |
| 10179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
| 10180 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } |
| 10181 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : |
| 10182 | $as_echo_n "(cached) " >&6 |
| 10183 | else |
| 10184 | gt_save_LIBS="$LIBS" |
| 10185 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10187 | /* end confdefs.h. */ |
| 10188 | #include <CoreFoundation/CFPreferences.h> |
| 10189 | int |
| 10190 | main () |
| 10191 | { |
| 10192 | CFPreferencesCopyAppValue(NULL, NULL) |
| 10193 | ; |
| 10194 | return 0; |
| 10195 | } |
| 10196 | _ACEOF |
| 10197 | if ac_fn_c_try_link "$LINENO"; then : |
| 10198 | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 10199 | else |
| 10200 | gt_cv_func_CFPreferencesCopyAppValue=no |
| 10201 | fi |
| 10202 | rm -f core conftest.err conftest.$ac_objext \ |
| 10203 | conftest$ac_exeext conftest.$ac_ext |
| 10204 | LIBS="$gt_save_LIBS" |
| 10205 | fi |
| 10206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 10207 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 10208 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 10209 | |
| 10210 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
| 10211 | |
| 10212 | fi |
| 10213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 |
| 10214 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } |
| 10215 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : |
| 10216 | $as_echo_n "(cached) " >&6 |
| 10217 | else |
| 10218 | gt_save_LIBS="$LIBS" |
| 10219 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10221 | /* end confdefs.h. */ |
| 10222 | #include <CoreFoundation/CFLocale.h> |
| 10223 | int |
| 10224 | main () |
| 10225 | { |
| 10226 | CFLocaleCopyCurrent(); |
| 10227 | ; |
| 10228 | return 0; |
| 10229 | } |
| 10230 | _ACEOF |
| 10231 | if ac_fn_c_try_link "$LINENO"; then : |
| 10232 | gt_cv_func_CFLocaleCopyCurrent=yes |
| 10233 | else |
| 10234 | gt_cv_func_CFLocaleCopyCurrent=no |
| 10235 | fi |
| 10236 | rm -f core conftest.err conftest.$ac_objext \ |
| 10237 | conftest$ac_exeext conftest.$ac_ext |
| 10238 | LIBS="$gt_save_LIBS" |
| 10239 | fi |
| 10240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 10241 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 10242 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10243 | |
| 10244 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
| 10245 | |
| 10246 | fi |
| 10247 | INTL_MACOSX_LIBS= |
| 10248 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10249 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 10250 | fi |
| 10251 | |
| 10252 | |
| 10253 | |
| 10254 | |
| 10255 | |
| 10256 | |
| 10257 | |
| 10258 | |
| 10259 | |
| 10260 | |
| 10261 | case "$enable_silent_rules" in |
| 10262 | yes) INTL_DEFAULT_VERBOSITY=0;; |
| 10263 | no) INTL_DEFAULT_VERBOSITY=1;; |
| 10264 | *) INTL_DEFAULT_VERBOSITY=1;; |
| 10265 | esac |
| 10266 | |
| 10267 | |
| 10268 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 10269 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
| 10270 | |
| 10271 | else |
| 10272 | |
| 10273 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
| 10274 | |
| 10275 | |
| 10276 | fi |
| 10277 | |
| 10278 | for ac_header in features.h stddef.h stdlib.h string.h |
| 10279 | do : |
| 10280 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10281 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 10282 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 10283 | cat >>confdefs.h <<_ACEOF |
| 10284 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10285 | _ACEOF |
| 10286 | |
| 10287 | fi |
| 10288 | |
| 10289 | done |
| 10290 | |
| 10291 | for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ |
| 10292 | snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb |
| 10293 | do : |
| 10294 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10295 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10296 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 10297 | cat >>confdefs.h <<_ACEOF |
| 10298 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10299 | _ACEOF |
| 10300 | |
| 10301 | fi |
| 10302 | done |
| 10303 | |
| 10304 | |
| 10305 | ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> |
| 10306 | " |
| 10307 | if test "x$ac_cv_have_decl__snprintf" = xyes; then : |
| 10308 | ac_have_decl=1 |
| 10309 | else |
| 10310 | ac_have_decl=0 |
| 10311 | fi |
| 10312 | |
| 10313 | cat >>confdefs.h <<_ACEOF |
| 10314 | #define HAVE_DECL__SNPRINTF $ac_have_decl |
| 10315 | _ACEOF |
| 10316 | ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h> |
| 10317 | " |
| 10318 | if test "x$ac_cv_have_decl__snwprintf" = xyes; then : |
| 10319 | ac_have_decl=1 |
| 10320 | else |
| 10321 | ac_have_decl=0 |
| 10322 | fi |
| 10323 | |
| 10324 | cat >>confdefs.h <<_ACEOF |
| 10325 | #define HAVE_DECL__SNWPRINTF $ac_have_decl |
| 10326 | _ACEOF |
| 10327 | |
| 10328 | |
| 10329 | ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h> |
| 10330 | " |
| 10331 | if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : |
| 10332 | ac_have_decl=1 |
| 10333 | else |
| 10334 | ac_have_decl=0 |
| 10335 | fi |
| 10336 | |
| 10337 | cat >>confdefs.h <<_ACEOF |
| 10338 | #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl |
| 10339 | _ACEOF |
| 10340 | |
| 10341 | |
| 10342 | case $gt_cv_func_printf_posix in |
| 10343 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 10344 | *) HAVE_POSIX_PRINTF=0 ;; |
| 10345 | esac |
| 10346 | |
| 10347 | if test "$ac_cv_func_asprintf" = yes; then |
| 10348 | HAVE_ASPRINTF=1 |
| 10349 | else |
| 10350 | HAVE_ASPRINTF=0 |
| 10351 | fi |
| 10352 | |
| 10353 | if test "$ac_cv_func_snprintf" = yes; then |
| 10354 | HAVE_SNPRINTF=1 |
| 10355 | else |
| 10356 | HAVE_SNPRINTF=0 |
| 10357 | fi |
| 10358 | |
| 10359 | if test "$ac_cv_func_newlocale" = yes; then |
| 10360 | HAVE_NEWLOCALE=1 |
| 10361 | else |
| 10362 | HAVE_NEWLOCALE=0 |
| 10363 | fi |
| 10364 | |
| 10365 | if test "$ac_cv_func_wprintf" = yes; then |
| 10366 | HAVE_WPRINTF=1 |
| 10367 | else |
| 10368 | HAVE_WPRINTF=0 |
| 10369 | fi |
| 10370 | |
| 10371 | |
| 10372 | |
| 10373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
| 10374 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
| 10375 | if ${am_cv_langinfo_codeset+:} false; then : |
| 10376 | $as_echo_n "(cached) " >&6 |
| 10377 | else |
| 10378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10379 | /* end confdefs.h. */ |
| 10380 | #include <langinfo.h> |
| 10381 | int |
| 10382 | main () |
| 10383 | { |
| 10384 | char* cs = nl_langinfo(CODESET); return !cs; |
| 10385 | ; |
| 10386 | return 0; |
| 10387 | } |
| 10388 | _ACEOF |
| 10389 | if ac_fn_c_try_link "$LINENO"; then : |
| 10390 | am_cv_langinfo_codeset=yes |
| 10391 | else |
| 10392 | am_cv_langinfo_codeset=no |
| 10393 | fi |
| 10394 | rm -f core conftest.err conftest.$ac_objext \ |
| 10395 | conftest$ac_exeext conftest.$ac_ext |
| 10396 | |
| 10397 | fi |
| 10398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
| 10399 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
| 10400 | if test $am_cv_langinfo_codeset = yes; then |
| 10401 | |
| 10402 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
| 10403 | |
| 10404 | fi |
| 10405 | |
| 10406 | |
| 10407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
| 10408 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
| 10409 | if ${gt_cv_val_LC_MESSAGES+:} false; then : |
| 10410 | $as_echo_n "(cached) " >&6 |
| 10411 | else |
| 10412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10413 | /* end confdefs.h. */ |
| 10414 | #include <locale.h> |
| 10415 | int |
| 10416 | main () |
| 10417 | { |
| 10418 | return LC_MESSAGES |
| 10419 | ; |
| 10420 | return 0; |
| 10421 | } |
| 10422 | _ACEOF |
| 10423 | if ac_fn_c_try_link "$LINENO"; then : |
| 10424 | gt_cv_val_LC_MESSAGES=yes |
| 10425 | else |
| 10426 | gt_cv_val_LC_MESSAGES=no |
| 10427 | fi |
| 10428 | rm -f core conftest.err conftest.$ac_objext \ |
| 10429 | conftest$ac_exeext conftest.$ac_ext |
| 10430 | fi |
| 10431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 |
| 10432 | $as_echo "$gt_cv_val_LC_MESSAGES" >&6; } |
| 10433 | if test $gt_cv_val_LC_MESSAGES = yes; then |
| 10434 | |
| 10435 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
| 10436 | |
| 10437 | fi |
| 10438 | |
| 10439 | |
| 10440 | if test "$enable_shared" = yes; then |
| 10441 | case "$host_os" in |
| 10442 | mingw* | cygwin*) is_woe32dll=yes ;; |
| 10443 | *) is_woe32dll=no ;; |
| 10444 | esac |
| 10445 | else |
| 10446 | is_woe32dll=no |
| 10447 | fi |
| 10448 | WOE32DLL=$is_woe32dll |
| 10449 | |
| 10450 | |
| 10451 | case "$host_os" in |
| 10452 | mingw* | cygwin*) is_woe32=yes ;; |
| 10453 | *) is_woe32=no ;; |
| 10454 | esac |
| 10455 | WOE32=$is_woe32 |
| 10456 | |
| 10457 | if test $WOE32 = yes; then |
| 10458 | if test -n "$ac_tool_prefix"; then |
| 10459 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 10460 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 10461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10462 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10463 | if ${ac_cv_prog_WINDRES+:} false; then : |
| 10464 | $as_echo_n "(cached) " >&6 |
| 10465 | else |
| 10466 | if test -n "$WINDRES"; then |
| 10467 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 10468 | else |
| 10469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10470 | for as_dir in $PATH |
| 10471 | do |
| 10472 | IFS=$as_save_IFS |
| 10473 | test -z "$as_dir" && as_dir=. |
| 10474 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10475 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10476 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 10477 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10478 | break 2 |
| 10479 | fi |
| 10480 | done |
| 10481 | done |
| 10482 | IFS=$as_save_IFS |
| 10483 | |
| 10484 | fi |
| 10485 | fi |
| 10486 | WINDRES=$ac_cv_prog_WINDRES |
| 10487 | if test -n "$WINDRES"; then |
| 10488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
| 10489 | $as_echo "$WINDRES" >&6; } |
| 10490 | else |
| 10491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10492 | $as_echo "no" >&6; } |
| 10493 | fi |
| 10494 | |
| 10495 | |
| 10496 | fi |
| 10497 | if test -z "$ac_cv_prog_WINDRES"; then |
| 10498 | ac_ct_WINDRES=$WINDRES |
| 10499 | # Extract the first word of "windres", so it can be a program name with args. |
| 10500 | set dummy windres; ac_word=$2 |
| 10501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10502 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10503 | if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : |
| 10504 | $as_echo_n "(cached) " >&6 |
| 10505 | else |
| 10506 | if test -n "$ac_ct_WINDRES"; then |
| 10507 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 10508 | else |
| 10509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10510 | for as_dir in $PATH |
| 10511 | do |
| 10512 | IFS=$as_save_IFS |
| 10513 | test -z "$as_dir" && as_dir=. |
| 10514 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10515 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10516 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 10517 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10518 | break 2 |
| 10519 | fi |
| 10520 | done |
| 10521 | done |
| 10522 | IFS=$as_save_IFS |
| 10523 | |
| 10524 | fi |
| 10525 | fi |
| 10526 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 10527 | if test -n "$ac_ct_WINDRES"; then |
| 10528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 |
| 10529 | $as_echo "$ac_ct_WINDRES" >&6; } |
| 10530 | else |
| 10531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10532 | $as_echo "no" >&6; } |
| 10533 | fi |
| 10534 | |
| 10535 | if test "x$ac_ct_WINDRES" = x; then |
| 10536 | WINDRES="" |
| 10537 | else |
| 10538 | case $cross_compiling:$ac_tool_warned in |
| 10539 | yes:) |
| 10540 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10541 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10542 | ac_tool_warned=yes ;; |
| 10543 | esac |
| 10544 | WINDRES=$ac_ct_WINDRES |
| 10545 | fi |
| 10546 | else |
| 10547 | WINDRES="$ac_cv_prog_WINDRES" |
| 10548 | fi |
| 10549 | |
| 10550 | fi |
| 10551 | |
| 10552 | case "$host_os" in |
| 10553 | hpux*) LTLIBC="" ;; |
| 10554 | *) LTLIBC="-lc" ;; |
| 10555 | esac |
| 10556 | |
| 10557 | |
| 10558 | |
| 10559 | |
| 10560 | |
| 10561 | |
| 10562 | |
| 10563 | |
| 10564 | |
| 10565 | |
| 10566 | |
| 10567 | |
| 10568 | |
| 10569 | |
| 10570 | |
| 10571 | |
| 10572 | |
| 10573 | |
| 10574 | |
| 10575 | |
| 10576 | |
| 10577 | |
| 10578 | |
| 10579 | |
| 10580 | |
| 10581 | |
| 10582 | |
| 10583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 |
| 10584 | $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } |
| 10585 | if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : |
| 10586 | $as_echo_n "(cached) " >&6 |
| 10587 | else |
| 10588 | gt_save_LIBS="$LIBS" |
| 10589 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10591 | /* end confdefs.h. */ |
| 10592 | #include <CoreFoundation/CFPreferences.h> |
| 10593 | int |
| 10594 | main () |
| 10595 | { |
| 10596 | CFPreferencesCopyAppValue(NULL, NULL) |
| 10597 | ; |
| 10598 | return 0; |
| 10599 | } |
| 10600 | _ACEOF |
| 10601 | if ac_fn_c_try_link "$LINENO"; then : |
| 10602 | gt_cv_func_CFPreferencesCopyAppValue=yes |
| 10603 | else |
| 10604 | gt_cv_func_CFPreferencesCopyAppValue=no |
| 10605 | fi |
| 10606 | rm -f core conftest.err conftest.$ac_objext \ |
| 10607 | conftest$ac_exeext conftest.$ac_ext |
| 10608 | LIBS="$gt_save_LIBS" |
| 10609 | fi |
| 10610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
| 10611 | $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
| 10612 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
| 10613 | |
| 10614 | $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h |
| 10615 | |
| 10616 | fi |
| 10617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 |
| 10618 | $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } |
| 10619 | if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : |
| 10620 | $as_echo_n "(cached) " >&6 |
| 10621 | else |
| 10622 | gt_save_LIBS="$LIBS" |
| 10623 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
| 10624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10625 | /* end confdefs.h. */ |
| 10626 | #include <CoreFoundation/CFLocale.h> |
| 10627 | int |
| 10628 | main () |
| 10629 | { |
| 10630 | CFLocaleCopyCurrent(); |
| 10631 | ; |
| 10632 | return 0; |
| 10633 | } |
| 10634 | _ACEOF |
| 10635 | if ac_fn_c_try_link "$LINENO"; then : |
| 10636 | gt_cv_func_CFLocaleCopyCurrent=yes |
| 10637 | else |
| 10638 | gt_cv_func_CFLocaleCopyCurrent=no |
| 10639 | fi |
| 10640 | rm -f core conftest.err conftest.$ac_objext \ |
| 10641 | conftest$ac_exeext conftest.$ac_ext |
| 10642 | LIBS="$gt_save_LIBS" |
| 10643 | fi |
| 10644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
| 10645 | $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
| 10646 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10647 | |
| 10648 | $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h |
| 10649 | |
| 10650 | fi |
| 10651 | INTL_MACOSX_LIBS= |
| 10652 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
| 10653 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
| 10654 | fi |
| 10655 | |
| 10656 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10657 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10658 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10659 | |
| 10660 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10661 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10662 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10663 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10664 | LIBINTL= |
| 10665 | LTLIBINTL= |
| 10666 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10667 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10668 | case " $gt_needs " in |
| 10669 | *" need-formatstring-macros "*) gt_api_version=3 ;; |
| 10670 | *" need-ngettext "*) gt_api_version=2 ;; |
| 10671 | *) gt_api_version=1 ;; |
| 10672 | esac |
| 10673 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" |
| 10674 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" |
| 10675 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10676 | if test "$USE_NLS" = "yes"; then |
| 10677 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10678 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10680 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10681 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10682 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10683 | if test "${with_included_gettext+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10684 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10685 | else |
| 10686 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10687 | fi |
| 10688 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10690 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10691 | |
| 10692 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 10693 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10694 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10695 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10696 | if test $gt_api_version -ge 3; then |
| 10697 | gt_revision_test_code=' |
| 10698 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
| 10699 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
| 10700 | #endif |
| 10701 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
| 10702 | ' |
| 10703 | else |
| 10704 | gt_revision_test_code= |
| 10705 | fi |
| 10706 | if test $gt_api_version -ge 2; then |
| 10707 | gt_expression_test_code=' + * ngettext ("", "", 0)' |
| 10708 | else |
| 10709 | gt_expression_test_code= |
| 10710 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10711 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10713 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10714 | if eval \${$gt_func_gnugettext_libc+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10715 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10716 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10718 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10719 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10720 | #include <libintl.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10721 | $gt_revision_test_code |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10722 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10723 | extern int *_nl_domain_bindings; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10724 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10725 | int |
| 10726 | main () |
| 10727 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10728 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10729 | bindtextdomain ("", ""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10730 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings |
| 10731 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10732 | ; |
| 10733 | return 0; |
| 10734 | } |
| 10735 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10736 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10737 | eval "$gt_func_gnugettext_libc=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10738 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10739 | eval "$gt_func_gnugettext_libc=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10740 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10741 | rm -f core conftest.err conftest.$ac_objext \ |
| 10742 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10743 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10744 | eval ac_res=\$$gt_func_gnugettext_libc |
| 10745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 10746 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10747 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10748 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
| 10749 | |
| 10750 | |
| 10751 | |
| 10752 | |
| 10753 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10754 | |
| 10755 | |
| 10756 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10757 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10758 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10759 | acl_save_prefix="$prefix" |
| 10760 | prefix="$acl_final_prefix" |
| 10761 | acl_save_exec_prefix="$exec_prefix" |
| 10762 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10763 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10764 | eval additional_includedir=\"$includedir\" |
| 10765 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10766 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10767 | exec_prefix="$acl_save_exec_prefix" |
| 10768 | prefix="$acl_save_prefix" |
| 10769 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10770 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10771 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10772 | if test "${with_libintl_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10773 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10774 | if test "X$withval" = "Xno"; then |
| 10775 | use_additional=no |
| 10776 | else |
| 10777 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10778 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10779 | acl_save_prefix="$prefix" |
| 10780 | prefix="$acl_final_prefix" |
| 10781 | acl_save_exec_prefix="$exec_prefix" |
| 10782 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10783 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10784 | eval additional_includedir=\"$includedir\" |
| 10785 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10786 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10787 | exec_prefix="$acl_save_exec_prefix" |
| 10788 | prefix="$acl_save_prefix" |
| 10789 | |
| 10790 | else |
| 10791 | additional_includedir="$withval/include" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10792 | additional_libdir="$withval/$acl_libdirstem" |
| 10793 | if test "$acl_libdirstem2" != "$acl_libdirstem" \ |
| 10794 | && ! test -d "$withval/$acl_libdirstem"; then |
| 10795 | additional_libdir="$withval/$acl_libdirstem2" |
| 10796 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10797 | fi |
| 10798 | fi |
| 10799 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10800 | fi |
| 10801 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10802 | LIBINTL= |
| 10803 | LTLIBINTL= |
| 10804 | INCINTL= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10805 | LIBINTL_PREFIX= |
| 10806 | HAVE_LIBINTL= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10807 | rpathdirs= |
| 10808 | ltrpathdirs= |
| 10809 | names_already_handled= |
| 10810 | names_next_round='intl ' |
| 10811 | while test -n "$names_next_round"; do |
| 10812 | names_this_round="$names_next_round" |
| 10813 | names_next_round= |
| 10814 | for name in $names_this_round; do |
| 10815 | already_handled= |
| 10816 | for n in $names_already_handled; do |
| 10817 | if test "$n" = "$name"; then |
| 10818 | already_handled=yes |
| 10819 | break |
| 10820 | fi |
| 10821 | done |
| 10822 | if test -z "$already_handled"; then |
| 10823 | names_already_handled="$names_already_handled $name" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10824 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10825 | eval value=\"\$HAVE_LIB$uppername\" |
| 10826 | if test -n "$value"; then |
| 10827 | if test "$value" = yes; then |
| 10828 | eval value=\"\$LIB$uppername\" |
| 10829 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10830 | eval value=\"\$LTLIB$uppername\" |
| 10831 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 10832 | else |
| 10833 | : |
| 10834 | fi |
| 10835 | else |
| 10836 | found_dir= |
| 10837 | found_la= |
| 10838 | found_so= |
| 10839 | found_a= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10840 | eval libname=\"$acl_libname_spec\" # typically: libname=lib$name |
| 10841 | if test -n "$acl_shlibext"; then |
| 10842 | shrext=".$acl_shlibext" # typically: shrext=.so |
| 10843 | else |
| 10844 | shrext= |
| 10845 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10846 | if test $use_additional = yes; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10847 | dir="$additional_libdir" |
| 10848 | if test -n "$acl_shlibext"; then |
| 10849 | if test -f "$dir/$libname$shrext"; then |
| 10850 | found_dir="$dir" |
| 10851 | found_so="$dir/$libname$shrext" |
| 10852 | else |
| 10853 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 10854 | ver=`(cd "$dir" && \ |
| 10855 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 10856 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 10857 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 10858 | | sed 1q ) 2>/dev/null` |
| 10859 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 10860 | found_dir="$dir" |
| 10861 | found_so="$dir/$libname$shrext.$ver" |
| 10862 | fi |
| 10863 | else |
| 10864 | eval library_names=\"$acl_library_names_spec\" |
| 10865 | for f in $library_names; do |
| 10866 | if test -f "$dir/$f"; then |
| 10867 | found_dir="$dir" |
| 10868 | found_so="$dir/$f" |
| 10869 | break |
| 10870 | fi |
| 10871 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10872 | fi |
| 10873 | fi |
| 10874 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10875 | if test "X$found_dir" = "X"; then |
| 10876 | if test -f "$dir/$libname.$acl_libext"; then |
| 10877 | found_dir="$dir" |
| 10878 | found_a="$dir/$libname.$acl_libext" |
| 10879 | fi |
| 10880 | fi |
| 10881 | if test "X$found_dir" != "X"; then |
| 10882 | if test -f "$dir/$libname.la"; then |
| 10883 | found_la="$dir/$libname.la" |
| 10884 | fi |
| 10885 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10886 | fi |
| 10887 | if test "X$found_dir" = "X"; then |
| 10888 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10889 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10890 | acl_save_prefix="$prefix" |
| 10891 | prefix="$acl_final_prefix" |
| 10892 | acl_save_exec_prefix="$exec_prefix" |
| 10893 | exec_prefix="$acl_final_exec_prefix" |
| 10894 | eval x=\"$x\" |
| 10895 | exec_prefix="$acl_save_exec_prefix" |
| 10896 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10897 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10898 | case "$x" in |
| 10899 | -L*) |
| 10900 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10901 | if test -n "$acl_shlibext"; then |
| 10902 | if test -f "$dir/$libname$shrext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10903 | found_dir="$dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10904 | found_so="$dir/$libname$shrext" |
| 10905 | else |
| 10906 | if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then |
| 10907 | ver=`(cd "$dir" && \ |
| 10908 | for f in "$libname$shrext".*; do echo "$f"; done \ |
| 10909 | | sed -e "s,^$libname$shrext\\\\.,," \ |
| 10910 | | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ |
| 10911 | | sed 1q ) 2>/dev/null` |
| 10912 | if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then |
| 10913 | found_dir="$dir" |
| 10914 | found_so="$dir/$libname$shrext.$ver" |
| 10915 | fi |
| 10916 | else |
| 10917 | eval library_names=\"$acl_library_names_spec\" |
| 10918 | for f in $library_names; do |
| 10919 | if test -f "$dir/$f"; then |
| 10920 | found_dir="$dir" |
| 10921 | found_so="$dir/$f" |
| 10922 | break |
| 10923 | fi |
| 10924 | done |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10925 | fi |
| 10926 | fi |
| 10927 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10928 | if test "X$found_dir" = "X"; then |
| 10929 | if test -f "$dir/$libname.$acl_libext"; then |
| 10930 | found_dir="$dir" |
| 10931 | found_a="$dir/$libname.$acl_libext" |
| 10932 | fi |
| 10933 | fi |
| 10934 | if test "X$found_dir" != "X"; then |
| 10935 | if test -f "$dir/$libname.la"; then |
| 10936 | found_la="$dir/$libname.la" |
| 10937 | fi |
| 10938 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10939 | ;; |
| 10940 | esac |
| 10941 | if test "X$found_dir" != "X"; then |
| 10942 | break |
| 10943 | fi |
| 10944 | done |
| 10945 | fi |
| 10946 | if test "X$found_dir" != "X"; then |
| 10947 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 10948 | if test "X$found_so" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10949 | if test "$enable_rpath" = no \ |
| 10950 | || test "X$found_dir" = "X/usr/$acl_libdirstem" \ |
| 10951 | || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10952 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10953 | else |
| 10954 | haveit= |
| 10955 | for x in $ltrpathdirs; do |
| 10956 | if test "X$x" = "X$found_dir"; then |
| 10957 | haveit=yes |
| 10958 | break |
| 10959 | fi |
| 10960 | done |
| 10961 | if test -z "$haveit"; then |
| 10962 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 10963 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10964 | if test "$acl_hardcode_direct" = yes; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10965 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10966 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10967 | if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10968 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10969 | haveit= |
| 10970 | for x in $rpathdirs; do |
| 10971 | if test "X$x" = "X$found_dir"; then |
| 10972 | haveit=yes |
| 10973 | break |
| 10974 | fi |
| 10975 | done |
| 10976 | if test -z "$haveit"; then |
| 10977 | rpathdirs="$rpathdirs $found_dir" |
| 10978 | fi |
| 10979 | else |
| 10980 | haveit= |
| 10981 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10982 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10983 | acl_save_prefix="$prefix" |
| 10984 | prefix="$acl_final_prefix" |
| 10985 | acl_save_exec_prefix="$exec_prefix" |
| 10986 | exec_prefix="$acl_final_exec_prefix" |
| 10987 | eval x=\"$x\" |
| 10988 | exec_prefix="$acl_save_exec_prefix" |
| 10989 | prefix="$acl_save_prefix" |
| 10990 | |
| 10991 | if test "X$x" = "X-L$found_dir"; then |
| 10992 | haveit=yes |
| 10993 | break |
| 10994 | fi |
| 10995 | done |
| 10996 | if test -z "$haveit"; then |
| 10997 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 10998 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 10999 | if test "$acl_hardcode_minus_L" != no; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11000 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11001 | else |
| 11002 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11003 | fi |
| 11004 | fi |
| 11005 | fi |
| 11006 | fi |
| 11007 | else |
| 11008 | if test "X$found_a" != "X"; then |
| 11009 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 11010 | else |
| 11011 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 11012 | fi |
| 11013 | fi |
| 11014 | additional_includedir= |
| 11015 | case "$found_dir" in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11016 | */$acl_libdirstem | */$acl_libdirstem/) |
| 11017 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
| 11018 | if test "$name" = 'intl'; then |
| 11019 | LIBINTL_PREFIX="$basedir" |
| 11020 | fi |
| 11021 | additional_includedir="$basedir/include" |
| 11022 | ;; |
| 11023 | */$acl_libdirstem2 | */$acl_libdirstem2/) |
| 11024 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` |
| 11025 | if test "$name" = 'intl'; then |
| 11026 | LIBINTL_PREFIX="$basedir" |
| 11027 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11028 | additional_includedir="$basedir/include" |
| 11029 | ;; |
| 11030 | esac |
| 11031 | if test "X$additional_includedir" != "X"; then |
| 11032 | if test "X$additional_includedir" != "X/usr/include"; then |
| 11033 | haveit= |
| 11034 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 11035 | if test -n "$GCC"; then |
| 11036 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11037 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11038 | esac |
| 11039 | fi |
| 11040 | fi |
| 11041 | if test -z "$haveit"; then |
| 11042 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11043 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11044 | acl_save_prefix="$prefix" |
| 11045 | prefix="$acl_final_prefix" |
| 11046 | acl_save_exec_prefix="$exec_prefix" |
| 11047 | exec_prefix="$acl_final_exec_prefix" |
| 11048 | eval x=\"$x\" |
| 11049 | exec_prefix="$acl_save_exec_prefix" |
| 11050 | prefix="$acl_save_prefix" |
| 11051 | |
| 11052 | if test "X$x" = "X-I$additional_includedir"; then |
| 11053 | haveit=yes |
| 11054 | break |
| 11055 | fi |
| 11056 | done |
| 11057 | if test -z "$haveit"; then |
| 11058 | if test -d "$additional_includedir"; then |
| 11059 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 11060 | fi |
| 11061 | fi |
| 11062 | fi |
| 11063 | fi |
| 11064 | fi |
| 11065 | if test -n "$found_la"; then |
| 11066 | save_libdir="$libdir" |
| 11067 | case "$found_la" in |
| 11068 | */* | *\\*) . "$found_la" ;; |
| 11069 | *) . "./$found_la" ;; |
| 11070 | esac |
| 11071 | libdir="$save_libdir" |
| 11072 | for dep in $dependency_libs; do |
| 11073 | case "$dep" in |
| 11074 | -L*) |
| 11075 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11076 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ |
| 11077 | && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11078 | haveit= |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11079 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ |
| 11080 | || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11081 | if test -n "$GCC"; then |
| 11082 | case $host_os in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11083 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11084 | esac |
| 11085 | fi |
| 11086 | fi |
| 11087 | if test -z "$haveit"; then |
| 11088 | haveit= |
| 11089 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11090 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11091 | acl_save_prefix="$prefix" |
| 11092 | prefix="$acl_final_prefix" |
| 11093 | acl_save_exec_prefix="$exec_prefix" |
| 11094 | exec_prefix="$acl_final_exec_prefix" |
| 11095 | eval x=\"$x\" |
| 11096 | exec_prefix="$acl_save_exec_prefix" |
| 11097 | prefix="$acl_save_prefix" |
| 11098 | |
| 11099 | if test "X$x" = "X-L$additional_libdir"; then |
| 11100 | haveit=yes |
| 11101 | break |
| 11102 | fi |
| 11103 | done |
| 11104 | if test -z "$haveit"; then |
| 11105 | if test -d "$additional_libdir"; then |
| 11106 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 11107 | fi |
| 11108 | fi |
| 11109 | haveit= |
| 11110 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11111 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11112 | acl_save_prefix="$prefix" |
| 11113 | prefix="$acl_final_prefix" |
| 11114 | acl_save_exec_prefix="$exec_prefix" |
| 11115 | exec_prefix="$acl_final_exec_prefix" |
| 11116 | eval x=\"$x\" |
| 11117 | exec_prefix="$acl_save_exec_prefix" |
| 11118 | prefix="$acl_save_prefix" |
| 11119 | |
| 11120 | if test "X$x" = "X-L$additional_libdir"; then |
| 11121 | haveit=yes |
| 11122 | break |
| 11123 | fi |
| 11124 | done |
| 11125 | if test -z "$haveit"; then |
| 11126 | if test -d "$additional_libdir"; then |
| 11127 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 11128 | fi |
| 11129 | fi |
| 11130 | fi |
| 11131 | fi |
| 11132 | ;; |
| 11133 | -R*) |
| 11134 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 11135 | if test "$enable_rpath" != no; then |
| 11136 | haveit= |
| 11137 | for x in $rpathdirs; do |
| 11138 | if test "X$x" = "X$dir"; then |
| 11139 | haveit=yes |
| 11140 | break |
| 11141 | fi |
| 11142 | done |
| 11143 | if test -z "$haveit"; then |
| 11144 | rpathdirs="$rpathdirs $dir" |
| 11145 | fi |
| 11146 | haveit= |
| 11147 | for x in $ltrpathdirs; do |
| 11148 | if test "X$x" = "X$dir"; then |
| 11149 | haveit=yes |
| 11150 | break |
| 11151 | fi |
| 11152 | done |
| 11153 | if test -z "$haveit"; then |
| 11154 | ltrpathdirs="$ltrpathdirs $dir" |
| 11155 | fi |
| 11156 | fi |
| 11157 | ;; |
| 11158 | -l*) |
| 11159 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 11160 | ;; |
| 11161 | *.la) |
| 11162 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 11163 | ;; |
| 11164 | *) |
| 11165 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 11166 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 11167 | ;; |
| 11168 | esac |
| 11169 | done |
| 11170 | fi |
| 11171 | else |
| 11172 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11173 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 11174 | fi |
| 11175 | fi |
| 11176 | fi |
| 11177 | done |
| 11178 | done |
| 11179 | if test "X$rpathdirs" != "X"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11180 | if test -n "$acl_hardcode_libdir_separator"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11181 | alldirs= |
| 11182 | for found_dir in $rpathdirs; do |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11183 | alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11184 | done |
| 11185 | acl_save_libdir="$libdir" |
| 11186 | libdir="$alldirs" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11187 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11188 | libdir="$acl_save_libdir" |
| 11189 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11190 | else |
| 11191 | for found_dir in $rpathdirs; do |
| 11192 | acl_save_libdir="$libdir" |
| 11193 | libdir="$found_dir" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11194 | eval flag=\"$acl_hardcode_libdir_flag_spec\" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11195 | libdir="$acl_save_libdir" |
| 11196 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11197 | done |
| 11198 | fi |
| 11199 | fi |
| 11200 | if test "X$ltrpathdirs" != "X"; then |
| 11201 | for found_dir in $ltrpathdirs; do |
| 11202 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 11203 | done |
| 11204 | fi |
| 11205 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11206 | |
| 11207 | |
| 11208 | |
| 11209 | |
| 11210 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11212 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11213 | if eval \${$gt_func_gnugettext_libintl+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11214 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11215 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11216 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 11217 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 11218 | gt_save_LIBS="$LIBS" |
| 11219 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11221 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11222 | |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11223 | #include <libintl.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11224 | $gt_revision_test_code |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11225 | extern int _nl_msg_cat_cntr; |
| 11226 | extern |
| 11227 | #ifdef __cplusplus |
| 11228 | "C" |
| 11229 | #endif |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11230 | const char *_nl_expand_alias (const char *); |
| 11231 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11232 | int |
| 11233 | main () |
| 11234 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11235 | |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11236 | bindtextdomain ("", ""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11237 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 11238 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11239 | ; |
| 11240 | return 0; |
| 11241 | } |
| 11242 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11243 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11244 | eval "$gt_func_gnugettext_libintl=yes" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11245 | else |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11246 | eval "$gt_func_gnugettext_libintl=no" |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11247 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11248 | rm -f core conftest.err conftest.$ac_objext \ |
| 11249 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11250 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 11251 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11253 | /* end confdefs.h. */ |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11254 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11255 | #include <libintl.h> |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11256 | $gt_revision_test_code |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11257 | extern int _nl_msg_cat_cntr; |
| 11258 | extern |
| 11259 | #ifdef __cplusplus |
| 11260 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11261 | #endif |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11262 | const char *_nl_expand_alias (const char *); |
| 11263 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11264 | int |
| 11265 | main () |
| 11266 | { |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11267 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11268 | bindtextdomain ("", ""); |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11269 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
| 11270 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11271 | ; |
| 11272 | return 0; |
| 11273 | } |
| 11274 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11275 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11276 | LIBINTL="$LIBINTL $LIBICONV" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11277 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 11278 | eval "$gt_func_gnugettext_libintl=yes" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11279 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11280 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11281 | rm -f core conftest.err conftest.$ac_objext \ |
| 11282 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11283 | fi |
| 11284 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 11285 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11286 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11287 | eval ac_res=\$$gt_func_gnugettext_libintl |
| 11288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 11289 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11290 | fi |
| 11291 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11292 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
| 11293 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11294 | && test "$PACKAGE" != gettext-runtime \ |
| 11295 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11296 | gt_use_preinstalled_gnugettext=yes |
| 11297 | else |
| 11298 | LIBINTL= |
| 11299 | LTLIBINTL= |
| 11300 | INCINTL= |
| 11301 | fi |
| 11302 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11303 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11304 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 11305 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11306 | fi |
| 11307 | fi |
| 11308 | |
| 11309 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11310 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11311 | USE_INCLUDED_LIBINTL=yes |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11312 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD" |
| 11313 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11314 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11315 | fi |
| 11316 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11317 | CATOBJEXT= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11318 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11319 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11320 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11321 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11322 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11323 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11324 | if test -n "$INTL_MACOSX_LIBS"; then |
| 11325 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11326 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11327 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" |
| 11328 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" |
| 11329 | fi |
| 11330 | fi |
| 11331 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11332 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11333 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11334 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11335 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11336 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11337 | else |
| 11338 | USE_NLS=no |
| 11339 | fi |
| 11340 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11341 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11343 | $as_echo_n "checking whether to use NLS... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11345 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11346 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11348 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11349 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11350 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11351 | gt_source="external libintl" |
| 11352 | else |
| 11353 | gt_source="libc" |
| 11354 | fi |
| 11355 | else |
| 11356 | gt_source="included intl directory" |
| 11357 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11359 | $as_echo "$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11360 | fi |
| 11361 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11362 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11363 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11364 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11365 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11367 | $as_echo_n "checking how to link with libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11369 | $as_echo "$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11370 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11371 | for element in $INCINTL; do |
| 11372 | haveit= |
| 11373 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11374 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11375 | acl_save_prefix="$prefix" |
| 11376 | prefix="$acl_final_prefix" |
| 11377 | acl_save_exec_prefix="$exec_prefix" |
| 11378 | exec_prefix="$acl_final_exec_prefix" |
| 11379 | eval x=\"$x\" |
| 11380 | exec_prefix="$acl_save_exec_prefix" |
| 11381 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11382 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11383 | if test "X$x" = "X$element"; then |
| 11384 | haveit=yes |
| 11385 | break |
| 11386 | fi |
| 11387 | done |
| 11388 | if test -z "$haveit"; then |
| 11389 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 11390 | fi |
| 11391 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11392 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11393 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 11394 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11395 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11396 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11397 | |
| 11398 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11399 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11400 | |
| 11401 | fi |
| 11402 | |
| 11403 | POSUB=po |
| 11404 | fi |
| 11405 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11406 | |
| 11407 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11408 | BUILD_INCLUDED_LIBINTL=yes |
| 11409 | fi |
| 11410 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11411 | |
| 11412 | |
| 11413 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11414 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11415 | nls_cv_header_intl= |
| 11416 | nls_cv_header_libgt= |
| 11417 | |
| 11418 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11419 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11420 | |
| 11421 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11422 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11423 | |
| 11424 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11425 | |
| 11426 | |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 11427 | INTLOBJS= |
| 11428 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11429 | INTLOBJS="\$(GETTOBJS)" |
| 11430 | fi |
| 11431 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11432 | |
| 11433 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11434 | |
| 11435 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11436 | |
| 11437 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11438 | |
| 11439 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11440 | |
| 11441 | |
| 11442 | |
| 11443 | |
| 11444 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11446 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 11447 | set x ${MAKE-make} |
| 11448 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11449 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11450 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11451 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11452 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11453 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11454 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11455 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11456 | _ACEOF |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11457 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11458 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 11459 | *@@@%%%=?*=@@@%%%*) |
| 11460 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 11461 | *) |
| 11462 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 11463 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11464 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11465 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11466 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11468 | $as_echo "yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11469 | SET_MAKE= |
| 11470 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11472 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11473 | SET_MAKE="MAKE=${MAKE-make}" |
| 11474 | fi |
| 11475 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11477 | $as_echo_n "checking for GNU make... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11478 | if ${_cv_gnu_make_command+:} false; then : |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11479 | $as_echo_n "(cached) " >&6 |
| 11480 | else |
| 11481 | _cv_gnu_make_command='' ; |
| 11482 | for a in "$MAKE" make gmake gnumake ; do |
| 11483 | if test -z "$a" ; then continue ; fi ; |
| 11484 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 11485 | _cv_gnu_make_command=$a ; |
| 11486 | break; |
| 11487 | fi |
| 11488 | done ; |
| 11489 | |
| 11490 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11492 | $as_echo "$_cv_gnu_make_command" >&6; } ; |
| 11493 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 11494 | ifGNUmake='' ; |
| 11495 | ifNotGNUmake='#' ; |
| 11496 | else |
| 11497 | ifGNUmake='#' ; |
| 11498 | ifNotGNUmake='' ; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 11500 | $as_echo "\"Not found\"" >&6; }; |
| 11501 | fi |
| 11502 | |
| 11503 | |
| 11504 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11505 | # Extract the first word of "ln", so it can be a program name with args. |
| 11506 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11508 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11509 | if ${ac_cv_path_LN+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11510 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11511 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11512 | case $LN in |
| 11513 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11514 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 11515 | ;; |
| 11516 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11518 | for as_dir in $PATH |
| 11519 | do |
| 11520 | IFS=$as_save_IFS |
| 11521 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11522 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11523 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11524 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11526 | break 2 |
| 11527 | fi |
| 11528 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11529 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11530 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11531 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11532 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 11533 | ;; |
| 11534 | esac |
| 11535 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11536 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11537 | if test -n "$LN"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11539 | $as_echo "$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11540 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11542 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11543 | fi |
| 11544 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11545 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11547 | $as_echo_n "checking whether ln -s works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11548 | LN_S=$as_ln_s |
| 11549 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11551 | $as_echo "yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11552 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11554 | $as_echo "no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11555 | fi |
| 11556 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11557 | # Extract the first word of "mv", so it can be a program name with args. |
| 11558 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11560 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11561 | if ${ac_cv_path_MV+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11562 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11563 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11564 | case $MV in |
| 11565 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11566 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 11567 | ;; |
| 11568 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11570 | for as_dir in $PATH |
| 11571 | do |
| 11572 | IFS=$as_save_IFS |
| 11573 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11574 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11575 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11576 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11578 | break 2 |
| 11579 | fi |
| 11580 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11581 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11582 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11583 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11584 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 11585 | ;; |
| 11586 | esac |
| 11587 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11588 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11589 | if test -n "$MV"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11591 | $as_echo "$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11592 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11594 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11595 | fi |
| 11596 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11597 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11598 | # Extract the first word of "cp", so it can be a program name with args. |
| 11599 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11601 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11602 | if ${ac_cv_path_CP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11603 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11604 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11605 | case $CP in |
| 11606 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11607 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 11608 | ;; |
| 11609 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11611 | for as_dir in $PATH |
| 11612 | do |
| 11613 | IFS=$as_save_IFS |
| 11614 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11615 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11616 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11617 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11619 | break 2 |
| 11620 | fi |
| 11621 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11622 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11623 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11624 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11625 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 11626 | ;; |
| 11627 | esac |
| 11628 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11629 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11630 | if test -n "$CP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11632 | $as_echo "$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11633 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11635 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11636 | fi |
| 11637 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11638 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11639 | # Extract the first word of "rm", so it can be a program name with args. |
| 11640 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11642 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11643 | if ${ac_cv_path_RM+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11644 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11645 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11646 | case $RM in |
| 11647 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11648 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 11649 | ;; |
| 11650 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11652 | for as_dir in $PATH |
| 11653 | do |
| 11654 | IFS=$as_save_IFS |
| 11655 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11656 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11657 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11658 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11660 | break 2 |
| 11661 | fi |
| 11662 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11663 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11664 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11665 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11666 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 11667 | ;; |
| 11668 | esac |
| 11669 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11670 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11671 | if test -n "$RM"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11673 | $as_echo "$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11674 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11676 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11677 | fi |
| 11678 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11679 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11680 | # Extract the first word of "chmod", so it can be a program name with args. |
| 11681 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11683 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11684 | if ${ac_cv_path_CHMOD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11685 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11686 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11687 | case $CHMOD in |
| 11688 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11689 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 11690 | ;; |
| 11691 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11693 | for as_dir in $PATH |
| 11694 | do |
| 11695 | IFS=$as_save_IFS |
| 11696 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11697 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11698 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11699 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11701 | break 2 |
| 11702 | fi |
| 11703 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11704 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11705 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11706 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11707 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 11708 | ;; |
| 11709 | esac |
| 11710 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11711 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11712 | if test -n "$CHMOD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11714 | $as_echo "$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11715 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11717 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11718 | fi |
| 11719 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11720 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11721 | for ac_prog in gawk mawk nawk awk |
| 11722 | do |
| 11723 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11724 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11726 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11727 | if ${ac_cv_prog_AWK+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11728 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11729 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11730 | if test -n "$AWK"; then |
| 11731 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 11732 | else |
| 11733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11734 | for as_dir in $PATH |
| 11735 | do |
| 11736 | IFS=$as_save_IFS |
| 11737 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11738 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11739 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11740 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11741 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11742 | break 2 |
| 11743 | fi |
| 11744 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11745 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11746 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11747 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11748 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11749 | fi |
| 11750 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11751 | if test -n "$AWK"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11753 | $as_echo "$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11754 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11756 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11757 | fi |
| 11758 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11759 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11760 | test -n "$AWK" && break |
| 11761 | done |
| 11762 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11764 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11765 | if ${ac_cv_path_EGREP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11766 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11767 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11768 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 11769 | then ac_cv_path_EGREP="$GREP -E" |
| 11770 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11771 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11772 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11773 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 11774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11775 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 11776 | do |
| 11777 | IFS=$as_save_IFS |
| 11778 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11779 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11780 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11781 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11782 | as_fn_executable_p "$ac_path_EGREP" || continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11783 | # Check for GNU ac_path_EGREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11784 | # Check for GNU $ac_path_EGREP |
| 11785 | case `"$ac_path_EGREP" --version 2>&1` in |
| 11786 | *GNU*) |
| 11787 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 11788 | *) |
| 11789 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11790 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11791 | while : |
| 11792 | do |
| 11793 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 11794 | mv "conftest.tmp" "conftest.in" |
| 11795 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11796 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11797 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 11798 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11799 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11800 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 11801 | # Best one so far, save it but keep looking for a better one |
| 11802 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 11803 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11804 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11805 | # 10*(2^10) chars as input seems more than enough |
| 11806 | test $ac_count -gt 10 && break |
| 11807 | done |
| 11808 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 11809 | esac |
| 11810 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11811 | $ac_path_EGREP_found && break 3 |
| 11812 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11813 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11814 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11815 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11816 | if test -z "$ac_cv_path_EGREP"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11817 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11818 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11819 | else |
| 11820 | ac_cv_path_EGREP=$EGREP |
| 11821 | fi |
| 11822 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11823 | fi |
| 11824 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11826 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11827 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11828 | |
| 11829 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11830 | # Extract the first word of "sed", so it can be a program name with args. |
| 11831 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11833 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11834 | if ${ac_cv_path_SED+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11835 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11836 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11837 | case $SED in |
| 11838 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11839 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 11840 | ;; |
| 11841 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11843 | for as_dir in $PATH |
| 11844 | do |
| 11845 | IFS=$as_save_IFS |
| 11846 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11847 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11848 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11849 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11851 | break 2 |
| 11852 | fi |
| 11853 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11854 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11855 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11856 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11857 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 11858 | ;; |
| 11859 | esac |
| 11860 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11861 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11862 | if test -n "$SED"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11864 | $as_echo "$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11865 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11867 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11868 | fi |
| 11869 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11870 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11871 | # Extract the first word of "perl", so it can be a program name with args. |
| 11872 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11874 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11875 | if ${ac_cv_path_PERL+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11876 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11877 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11878 | case $PERL in |
| 11879 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11880 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 11881 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11882 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11884 | for as_dir in $PATH |
| 11885 | do |
| 11886 | IFS=$as_save_IFS |
| 11887 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11888 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11889 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11890 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11892 | break 2 |
| 11893 | fi |
| 11894 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11895 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11896 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11897 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11898 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 11899 | ;; |
| 11900 | esac |
| 11901 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11902 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11903 | if test -n "$PERL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11905 | $as_echo "$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11906 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11908 | $as_echo "no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11909 | fi |
| 11910 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11911 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11912 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 11913 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11915 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11916 | if ${ac_cv_path_LDCONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11917 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11918 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11919 | case $LDCONFIG in |
| 11920 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11921 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 11922 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11923 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11925 | for as_dir in $PATH |
| 11926 | do |
| 11927 | IFS=$as_save_IFS |
| 11928 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11929 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11930 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11931 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11933 | break 2 |
| 11934 | fi |
| 11935 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11936 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11937 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11938 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11939 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 11940 | ;; |
| 11941 | esac |
| 11942 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11943 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11944 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11946 | $as_echo "$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11947 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11949 | $as_echo "no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11950 | fi |
| 11951 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11952 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11953 | if test -n "$ac_tool_prefix"; then |
| 11954 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11955 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11957 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11958 | if ${ac_cv_prog_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11959 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11960 | else |
| 11961 | if test -n "$AR"; then |
| 11962 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11963 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11965 | for as_dir in $PATH |
| 11966 | do |
| 11967 | IFS=$as_save_IFS |
| 11968 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11969 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11970 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11971 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11972 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11973 | break 2 |
| 11974 | fi |
| 11975 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11976 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11977 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11978 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11979 | fi |
| 11980 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11981 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11982 | if test -n "$AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11984 | $as_echo "$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11985 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11987 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11988 | fi |
| 11989 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11990 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11991 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11992 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11993 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11994 | # Extract the first word of "ar", so it can be a program name with args. |
| 11995 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11997 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11998 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11999 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12000 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12001 | if test -n "$ac_ct_AR"; then |
| 12002 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12003 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12005 | for as_dir in $PATH |
| 12006 | do |
| 12007 | IFS=$as_save_IFS |
| 12008 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12009 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12010 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12011 | ac_cv_prog_ac_ct_AR="ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12012 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12013 | break 2 |
| 12014 | fi |
| 12015 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12016 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12017 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12018 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12019 | fi |
| 12020 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12021 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 12022 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12024 | $as_echo "$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12025 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12027 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12028 | fi |
| 12029 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12030 | if test "x$ac_ct_AR" = x; then |
| 12031 | AR="ar" |
| 12032 | else |
| 12033 | case $cross_compiling:$ac_tool_warned in |
| 12034 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12035 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12036 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12037 | ac_tool_warned=yes ;; |
| 12038 | esac |
| 12039 | AR=$ac_ct_AR |
| 12040 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12041 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12042 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12043 | fi |
| 12044 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12045 | if test -n "$ac_tool_prefix"; then |
| 12046 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12047 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12049 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12050 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12051 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12052 | else |
| 12053 | if test -n "$RANLIB"; then |
| 12054 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 12055 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12057 | for as_dir in $PATH |
| 12058 | do |
| 12059 | IFS=$as_save_IFS |
| 12060 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12061 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12062 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12063 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12065 | break 2 |
| 12066 | fi |
| 12067 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12068 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12069 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12070 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12071 | fi |
| 12072 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12073 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12074 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12076 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12077 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12079 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12080 | fi |
| 12081 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12082 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12083 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12084 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12085 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12086 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 12087 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12089 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12090 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12091 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12092 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12093 | if test -n "$ac_ct_RANLIB"; then |
| 12094 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12095 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12097 | for as_dir in $PATH |
| 12098 | do |
| 12099 | IFS=$as_save_IFS |
| 12100 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12101 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12102 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12103 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12105 | break 2 |
| 12106 | fi |
| 12107 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12108 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12109 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12110 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12111 | fi |
| 12112 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12113 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 12114 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12116 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12117 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12119 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12120 | fi |
| 12121 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12122 | if test "x$ac_ct_RANLIB" = x; then |
| 12123 | RANLIB=":" |
| 12124 | else |
| 12125 | case $cross_compiling:$ac_tool_warned in |
| 12126 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12127 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12128 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12129 | ac_tool_warned=yes ;; |
| 12130 | esac |
| 12131 | RANLIB=$ac_ct_RANLIB |
| 12132 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12133 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12134 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12135 | fi |
| 12136 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12137 | if test -n "$ac_tool_prefix"; then |
| 12138 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12139 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12141 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12142 | if ${ac_cv_prog_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12143 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12144 | else |
| 12145 | if test -n "$STRIP"; then |
| 12146 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 12147 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12149 | for as_dir in $PATH |
| 12150 | do |
| 12151 | IFS=$as_save_IFS |
| 12152 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12153 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12154 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12155 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12157 | break 2 |
| 12158 | fi |
| 12159 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12160 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12161 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12162 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12163 | fi |
| 12164 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12165 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12166 | if test -n "$STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12168 | $as_echo "$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12169 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12171 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12172 | fi |
| 12173 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12174 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12175 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12176 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12177 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12178 | # Extract the first word of "strip", so it can be a program name with args. |
| 12179 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12181 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12182 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12183 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12184 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12185 | if test -n "$ac_ct_STRIP"; then |
| 12186 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12187 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12189 | for as_dir in $PATH |
| 12190 | do |
| 12191 | IFS=$as_save_IFS |
| 12192 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12193 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12194 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12195 | ac_cv_prog_ac_ct_STRIP="strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12197 | break 2 |
| 12198 | fi |
| 12199 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12200 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12201 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12202 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12203 | fi |
| 12204 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12205 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 12206 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12208 | $as_echo "$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12209 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12211 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12212 | fi |
| 12213 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12214 | if test "x$ac_ct_STRIP" = x; then |
| 12215 | STRIP=":" |
| 12216 | else |
| 12217 | case $cross_compiling:$ac_tool_warned in |
| 12218 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12219 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12220 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12221 | ac_tool_warned=yes ;; |
| 12222 | esac |
| 12223 | STRIP=$ac_ct_STRIP |
| 12224 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12225 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12226 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12227 | fi |
| 12228 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12229 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 12230 | set dummy makeinfo; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12232 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12233 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12234 | $as_echo_n "(cached) " >&6 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12235 | else |
| 12236 | if test -n "$MAKEINFO"; then |
| 12237 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 12238 | else |
| 12239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12240 | for as_dir in $PATH |
| 12241 | do |
| 12242 | IFS=$as_save_IFS |
| 12243 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12244 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12245 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12246 | ac_cv_prog_MAKEINFO="makeinfo" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12248 | break 2 |
| 12249 | fi |
| 12250 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12251 | done |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12252 | IFS=$as_save_IFS |
| 12253 | |
| 12254 | fi |
| 12255 | fi |
| 12256 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 12257 | if test -n "$MAKEINFO"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12259 | $as_echo "$MAKEINFO" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12260 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12262 | $as_echo "no" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12263 | fi |
| 12264 | |
| 12265 | |
| 12266 | if test "_$MAKEINFO" = "_"; then |
| 12267 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 12268 | else |
| 12269 | case "$MAKEINFO" in |
| 12270 | */missing.*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12271 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12272 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12273 | $as_echo "$as_me: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 12274 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 12275 | ;; |
| 12276 | *) |
| 12277 | ;; |
| 12278 | esac |
| 12279 | fi |
| 12280 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12281 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12282 | # See if we need a separate native compiler. |
| 12283 | if test $cross_compiling = no; then |
| 12284 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12285 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12286 | else |
| 12287 | for ac_prog in gcc cc |
| 12288 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12289 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12290 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12292 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12293 | if ${ac_cv_prog_BUILD_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12294 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 12295 | else |
| 12296 | if test -n "$BUILD_CC"; then |
| 12297 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 12298 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12300 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12301 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12302 | IFS=$as_save_IFS |
| 12303 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12304 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12305 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12306 | ac_cv_prog_BUILD_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12308 | break 2 |
| 12309 | fi |
| 12310 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12311 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12312 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12313 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12314 | fi |
| 12315 | fi |
| 12316 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 12317 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12319 | $as_echo "$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12320 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12322 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12323 | fi |
| 12324 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12325 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12326 | test -n "$BUILD_CC" && break |
| 12327 | done |
| 12328 | |
| 12329 | fi |
Andreas Dilger | 5105054 | 2014-06-11 12:59:05 -0600 | [diff] [blame] | 12330 | for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12331 | do : |
| 12332 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12333 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12334 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12335 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12336 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12337 | _ACEOF |
| 12338 | |
| 12339 | fi |
| 12340 | |
| 12341 | done |
| 12342 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12343 | for ac_header in net/if.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12344 | do : |
| 12345 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12346 | #if HAVE_SYS_TYPES_H |
| 12347 | #include <sys/types.h> |
| 12348 | #endif |
| 12349 | #if HAVE_SYS_SOCKET |
| 12350 | #include <sys/socket.h> |
| 12351 | #endif |
| 12352 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12353 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12354 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12355 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12356 | #define HAVE_NET_IF_H 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12357 | _ACEOF |
| 12358 | |
| 12359 | fi |
| 12360 | |
| 12361 | done |
| 12362 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12363 | for ac_func in vprintf |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12364 | do : |
| 12365 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12366 | if test "x$ac_cv_func_vprintf" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12367 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12368 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12369 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12370 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12371 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12372 | if test "x$ac_cv_func__doprnt" = xyes; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12373 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12374 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12375 | |
| 12376 | fi |
| 12377 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12378 | fi |
| 12379 | done |
| 12380 | |
| 12381 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12382 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
| 12383 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12384 | if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12385 | |
| 12386 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12387 | |
| 12388 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12389 | |
Theodore Ts'o | 2873927 | 2014-01-03 00:26:43 -0500 | [diff] [blame] | 12390 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" |
| 12391 | if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : |
| 12392 | |
| 12393 | cat >>confdefs.h <<_ACEOF |
| 12394 | #define HAVE_STRUCT_STAT_ST_ATIM 1 |
| 12395 | _ACEOF |
| 12396 | |
| 12397 | |
| 12398 | fi |
| 12399 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12400 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
| 12401 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12402 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12403 | |
| 12404 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12405 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12406 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12407 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12408 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
| 12409 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12410 | if test "x$ac_cv_have_decl_llseek" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12411 | |
| 12412 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12413 | |
| 12414 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12415 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12416 | ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12417 | #define _LARGEFILE64_SOURCE |
| 12418 | #include <unistd.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12419 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12420 | if test "x$ac_cv_have_decl_lseek64" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12421 | |
| 12422 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12423 | |
| 12424 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12425 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12426 | # The cast to long int works around a bug in the HP C Compiler |
| 12427 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12428 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12429 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12431 | $as_echo_n "checking size of short... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12432 | if ${ac_cv_sizeof_short+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12433 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12434 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12435 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12436 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12437 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12438 | if test "$ac_cv_type_short" = yes; then |
| 12439 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12440 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12441 | as_fn_error 77 "cannot compute sizeof (short) |
| 12442 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12443 | else |
| 12444 | ac_cv_sizeof_short=0 |
| 12445 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12446 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12447 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12448 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12450 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12451 | |
| 12452 | |
| 12453 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12454 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12455 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12456 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12457 | |
| 12458 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12459 | # The cast to long int works around a bug in the HP C Compiler |
| 12460 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12461 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12462 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12464 | $as_echo_n "checking size of int... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12465 | if ${ac_cv_sizeof_int+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12466 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12467 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12468 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12469 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12470 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12471 | if test "$ac_cv_type_int" = yes; then |
| 12472 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12473 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12474 | as_fn_error 77 "cannot compute sizeof (int) |
| 12475 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12476 | else |
| 12477 | ac_cv_sizeof_int=0 |
| 12478 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12479 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12480 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12481 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12483 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12484 | |
| 12485 | |
| 12486 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12487 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12488 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12489 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12490 | |
| 12491 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12492 | # The cast to long int works around a bug in the HP C Compiler |
| 12493 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12494 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12495 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12497 | $as_echo_n "checking size of long... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12498 | if ${ac_cv_sizeof_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12499 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12500 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12501 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12502 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12503 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12504 | if test "$ac_cv_type_long" = yes; then |
| 12505 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12506 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12507 | as_fn_error 77 "cannot compute sizeof (long) |
| 12508 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12509 | else |
| 12510 | ac_cv_sizeof_long=0 |
| 12511 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12512 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12513 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12514 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12516 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12517 | |
| 12518 | |
| 12519 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12520 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12521 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12522 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12523 | |
| 12524 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12525 | # The cast to long int works around a bug in the HP C Compiler |
| 12526 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12527 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12528 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12530 | $as_echo_n "checking size of long long... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12531 | if ${ac_cv_sizeof_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12532 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12533 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12534 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12535 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12536 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12537 | if test "$ac_cv_type_long_long" = yes; then |
| 12538 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12539 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12540 | as_fn_error 77 "cannot compute sizeof (long long) |
| 12541 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12542 | else |
| 12543 | ac_cv_sizeof_long_long=0 |
| 12544 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12545 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12546 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12547 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12549 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12550 | |
| 12551 | |
| 12552 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12553 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12554 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12555 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12556 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12557 | |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 12558 | # The cast to long int works around a bug in the HP C Compiler |
| 12559 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12560 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12561 | # This bug is HP SR number 8606223364. |
| 12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 12563 | $as_echo_n "checking size of off_t... " >&6; } |
| 12564 | if ${ac_cv_sizeof_off_t+:} false; then : |
| 12565 | $as_echo_n "(cached) " >&6 |
| 12566 | else |
| 12567 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : |
| 12568 | |
| 12569 | else |
| 12570 | if test "$ac_cv_type_off_t" = yes; then |
| 12571 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12572 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12573 | as_fn_error 77 "cannot compute sizeof (off_t) |
| 12574 | See \`config.log' for more details" "$LINENO" 5; } |
| 12575 | else |
| 12576 | ac_cv_sizeof_off_t=0 |
| 12577 | fi |
| 12578 | fi |
| 12579 | |
| 12580 | fi |
| 12581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 12582 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 12583 | |
| 12584 | |
| 12585 | |
| 12586 | cat >>confdefs.h <<_ACEOF |
| 12587 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 12588 | _ACEOF |
| 12589 | |
| 12590 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12591 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 12592 | SIZEOF_INT=$ac_cv_sizeof_int |
| 12593 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12594 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 12595 | SIZEOF_OFF_T=$ac_cv_sizeof_off_t |
| 12596 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12597 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12598 | |
| 12599 | |
| 12600 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12602 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12603 | if ${ac_cv_c_bigendian+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12604 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12605 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12606 | ac_cv_c_bigendian=unknown |
| 12607 | # See if we're dealing with a universal compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12609 | /* end confdefs.h. */ |
| 12610 | #ifndef __APPLE_CC__ |
| 12611 | not a universal capable compiler |
| 12612 | #endif |
| 12613 | typedef int dummy; |
| 12614 | |
| 12615 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12616 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12617 | |
| 12618 | # Check for potential -arch flags. It is not universal unless |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12619 | # there are at least two -arch flags with different values. |
| 12620 | ac_arch= |
| 12621 | ac_prev= |
| 12622 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 12623 | if test -n "$ac_prev"; then |
| 12624 | case $ac_word in |
| 12625 | i?86 | x86_64 | ppc | ppc64) |
| 12626 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 12627 | ac_arch=$ac_word |
| 12628 | else |
| 12629 | ac_cv_c_bigendian=universal |
| 12630 | break |
| 12631 | fi |
| 12632 | ;; |
| 12633 | esac |
| 12634 | ac_prev= |
| 12635 | elif test "x$ac_word" = "x-arch"; then |
| 12636 | ac_prev=arch |
| 12637 | fi |
| 12638 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12639 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12641 | if test $ac_cv_c_bigendian = unknown; then |
| 12642 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12644 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12645 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12646 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12647 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12648 | int |
| 12649 | main () |
| 12650 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12651 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 12652 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 12653 | && LITTLE_ENDIAN) |
| 12654 | bogus endian macros |
| 12655 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12656 | |
| 12657 | ; |
| 12658 | return 0; |
| 12659 | } |
| 12660 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12661 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12662 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12664 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12665 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12666 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12667 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12668 | int |
| 12669 | main () |
| 12670 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12671 | #if BYTE_ORDER != BIG_ENDIAN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12672 | not big endian |
| 12673 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12674 | |
| 12675 | ; |
| 12676 | return 0; |
| 12677 | } |
| 12678 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12679 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12680 | ac_cv_c_bigendian=yes |
| 12681 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12682 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12683 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12685 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12687 | fi |
| 12688 | if test $ac_cv_c_bigendian = unknown; then |
| 12689 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12691 | /* end confdefs.h. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12692 | #include <limits.h> |
| 12693 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12694 | int |
| 12695 | main () |
| 12696 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12697 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 12698 | bogus endian macros |
| 12699 | #endif |
| 12700 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12701 | ; |
| 12702 | return 0; |
| 12703 | } |
| 12704 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12705 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12706 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12708 | /* end confdefs.h. */ |
| 12709 | #include <limits.h> |
| 12710 | |
| 12711 | int |
| 12712 | main () |
| 12713 | { |
| 12714 | #ifndef _BIG_ENDIAN |
| 12715 | not big endian |
| 12716 | #endif |
| 12717 | |
| 12718 | ; |
| 12719 | return 0; |
| 12720 | } |
| 12721 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12722 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12723 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12724 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12725 | ac_cv_c_bigendian=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12726 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12728 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12730 | fi |
| 12731 | if test $ac_cv_c_bigendian = unknown; then |
| 12732 | # Compile a test program. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12733 | if test "$cross_compiling" = yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12734 | # Try to guess by grepping values from an object file. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12736 | /* end confdefs.h. */ |
| 12737 | short int ascii_mm[] = |
| 12738 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 12739 | short int ascii_ii[] = |
| 12740 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 12741 | int use_ascii (int i) { |
| 12742 | return ascii_mm[i] + ascii_ii[i]; |
| 12743 | } |
| 12744 | short int ebcdic_ii[] = |
| 12745 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 12746 | short int ebcdic_mm[] = |
| 12747 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 12748 | int use_ebcdic (int i) { |
| 12749 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 12750 | } |
| 12751 | extern int foo; |
| 12752 | |
| 12753 | int |
| 12754 | main () |
| 12755 | { |
| 12756 | return use_ascii (foo) == use_ebcdic (foo); |
| 12757 | ; |
| 12758 | return 0; |
| 12759 | } |
| 12760 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12761 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12762 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 12763 | ac_cv_c_bigendian=yes |
| 12764 | fi |
| 12765 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 12766 | if test "$ac_cv_c_bigendian" = unknown; then |
| 12767 | ac_cv_c_bigendian=no |
| 12768 | else |
| 12769 | # finding both strings is unlikely to happen, but who knows? |
| 12770 | ac_cv_c_bigendian=unknown |
| 12771 | fi |
| 12772 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12773 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12775 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12777 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12778 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12779 | int |
| 12780 | main () |
| 12781 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12782 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12783 | /* Are we little or big endian? From Harbison&Steele. */ |
| 12784 | union |
| 12785 | { |
| 12786 | long int l; |
| 12787 | char c[sizeof (long int)]; |
| 12788 | } u; |
| 12789 | u.l = 1; |
| 12790 | return u.c[sizeof (long int) - 1] == 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12791 | |
| 12792 | ; |
| 12793 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12794 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12795 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12796 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12797 | ac_cv_c_bigendian=no |
| 12798 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12799 | ac_cv_c_bigendian=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12800 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12801 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12802 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12803 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12804 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12805 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12806 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12808 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 12809 | case $ac_cv_c_bigendian in #( |
| 12810 | yes) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12811 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12812 | ;; #( |
| 12813 | no) |
| 12814 | ;; #( |
| 12815 | universal) |
| 12816 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12817 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12818 | |
| 12819 | ;; #( |
| 12820 | *) |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12821 | as_fn_error $? "unknown endianness |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12822 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12823 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12824 | |
Chen Qi | 91f0468 | 2014-05-05 21:08:42 -0400 | [diff] [blame] | 12825 | if test $cross_compiling = no; then |
| 12826 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
| 12827 | else |
| 12828 | CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
| 12829 | fi |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 12830 | ASM_TYPES_HEADER=./asm_types.h |
| 12831 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 12832 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 12833 | > public_config.h |
| 12834 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 12835 | uniq tmp_config.$$ >> public_config.h |
| 12836 | else |
| 12837 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 12838 | fi |
| 12839 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 12840 | uniq tmp_config.$$ >> public_config.h |
| 12841 | else |
| 12842 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 12843 | fi |
| 12844 | rm -f tmp_config.$$ |
| 12845 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 12846 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12847 | for ac_header in inttypes.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12848 | do : |
| 12849 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12850 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12851 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12852 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12853 | _ACEOF |
| 12854 | |
| 12855 | fi |
| 12856 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 12857 | done |
| 12858 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12859 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12860 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12861 | |
| 12862 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 12863 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12864 | _ACEOF |
| 12865 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 12866 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12867 | fi |
| 12868 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12870 | $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12871 | if ${e2fsprogs_cv_struct_st_flags+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12872 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12873 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12875 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12876 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12877 | int |
| 12878 | main () |
| 12879 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12880 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12881 | ; |
| 12882 | return 0; |
| 12883 | } |
| 12884 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12885 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12886 | e2fsprogs_cv_struct_st_flags=yes |
| 12887 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12888 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12889 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12891 | fi |
| 12892 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12894 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12895 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12897 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12898 | if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12899 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12900 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12902 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12903 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12904 | int |
| 12905 | main () |
| 12906 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12907 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12908 | ; |
| 12909 | return 0; |
| 12910 | } |
| 12911 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12912 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12913 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 12914 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12915 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12916 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12918 | fi |
| 12919 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12921 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12922 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12923 | |
| 12924 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12925 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 12926 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12927 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12928 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12929 | #include <sys/socket.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12930 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12931 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12932 | |
| 12933 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 12934 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12935 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 12936 | |
| 12937 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12938 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12939 | if test -n "$BLKID_CMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12941 | $as_echo_n "checking for library containing blkid_probe_all... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12942 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12943 | $as_echo_n "(cached) " >&6 |
| 12944 | else |
| 12945 | ac_func_search_save_LIBS=$LIBS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12947 | /* end confdefs.h. */ |
| 12948 | |
| 12949 | /* Override any GCC internal prototype to avoid an error. |
| 12950 | Use char because int might match the return type of a GCC |
| 12951 | builtin and then its argument prototype would still apply. */ |
| 12952 | #ifdef __cplusplus |
| 12953 | extern "C" |
| 12954 | #endif |
| 12955 | char blkid_probe_all (); |
| 12956 | int |
| 12957 | main () |
| 12958 | { |
| 12959 | return blkid_probe_all (); |
| 12960 | ; |
| 12961 | return 0; |
| 12962 | } |
| 12963 | _ACEOF |
| 12964 | for ac_lib in '' blkid; do |
| 12965 | if test -z "$ac_lib"; then |
| 12966 | ac_res="none required" |
| 12967 | else |
| 12968 | ac_res=-l$ac_lib |
| 12969 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 12970 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12971 | if ac_fn_c_try_link "$LINENO"; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12972 | ac_cv_search_blkid_probe_all=$ac_res |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12973 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12974 | rm -f core conftest.err conftest.$ac_objext \ |
| 12975 | conftest$ac_exeext |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12976 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12977 | break |
| 12978 | fi |
| 12979 | done |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12980 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12981 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12982 | else |
| 12983 | ac_cv_search_blkid_probe_all=no |
| 12984 | fi |
| 12985 | rm conftest.$ac_ext |
| 12986 | LIBS=$ac_func_search_save_LIBS |
| 12987 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12989 | $as_echo "$ac_cv_search_blkid_probe_all" >&6; } |
| 12990 | ac_res=$ac_cv_search_blkid_probe_all |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12991 | if test "$ac_res" != no; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 12992 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 12993 | |
| 12994 | fi |
| 12995 | |
| 12996 | fi |
Theodore Ts'o | c42de75 | 2014-07-08 20:02:48 -0400 | [diff] [blame] | 12997 | for ac_func in __secure_getenv backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12998 | do : |
| 12999 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13000 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13001 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13002 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13003 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13004 | _ACEOF |
| 13005 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13006 | fi |
| 13007 | done |
| 13008 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13009 | SOCKET_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13011 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13012 | if ${ac_cv_lib_socket_socket+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13013 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13014 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13015 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13016 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13018 | /* end confdefs.h. */ |
| 13019 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13020 | /* Override any GCC internal prototype to avoid an error. |
| 13021 | Use char because int might match the return type of a GCC |
| 13022 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13023 | #ifdef __cplusplus |
| 13024 | extern "C" |
| 13025 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13026 | char socket (); |
| 13027 | int |
| 13028 | main () |
| 13029 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13030 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13031 | ; |
| 13032 | return 0; |
| 13033 | } |
| 13034 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13035 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13036 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13037 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13038 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13039 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13040 | rm -f core conftest.err conftest.$ac_objext \ |
| 13041 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13042 | LIBS=$ac_check_lib_save_LIBS |
| 13043 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13045 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13046 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13047 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13048 | fi |
| 13049 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13050 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13052 | $as_echo_n "checking for optreset... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13053 | if ${ac_cv_have_optreset+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13054 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13055 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13057 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13058 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13059 | |
| 13060 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13061 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13062 | $EGREP "optreset" >/dev/null 2>&1; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13063 | ac_cv_have_optreset=yes |
| 13064 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13065 | ac_cv_have_optreset=no |
| 13066 | fi |
| 13067 | rm -f conftest* |
| 13068 | |
| 13069 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13071 | $as_echo "$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13072 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13073 | |
| 13074 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13075 | |
| 13076 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13077 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13078 | SEM_INIT_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13079 | ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13080 | if test "x$ac_cv_func_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13081 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13082 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13084 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13085 | if ${ac_cv_lib_pthread_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13086 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13087 | else |
| 13088 | ac_check_lib_save_LIBS=$LIBS |
| 13089 | LIBS="-lpthread $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13091 | /* end confdefs.h. */ |
| 13092 | |
| 13093 | /* Override any GCC internal prototype to avoid an error. |
| 13094 | Use char because int might match the return type of a GCC |
| 13095 | builtin and then its argument prototype would still apply. */ |
| 13096 | #ifdef __cplusplus |
| 13097 | extern "C" |
| 13098 | #endif |
| 13099 | char sem_init (); |
| 13100 | int |
| 13101 | main () |
| 13102 | { |
| 13103 | return sem_init (); |
| 13104 | ; |
| 13105 | return 0; |
| 13106 | } |
| 13107 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13108 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13109 | ac_cv_lib_pthread_sem_init=yes |
| 13110 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13111 | ac_cv_lib_pthread_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13112 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13113 | rm -f core conftest.err conftest.$ac_objext \ |
| 13114 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13115 | LIBS=$ac_check_lib_save_LIBS |
| 13116 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13118 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13119 | if test "x$ac_cv_lib_pthread_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13120 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13121 | |
| 13122 | SEM_INIT_LIB=-lpthread |
| 13123 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13125 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13126 | if ${ac_cv_lib_rt_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13127 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13128 | else |
| 13129 | ac_check_lib_save_LIBS=$LIBS |
| 13130 | LIBS="-lrt $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13132 | /* end confdefs.h. */ |
| 13133 | |
| 13134 | /* Override any GCC internal prototype to avoid an error. |
| 13135 | Use char because int might match the return type of a GCC |
| 13136 | builtin and then its argument prototype would still apply. */ |
| 13137 | #ifdef __cplusplus |
| 13138 | extern "C" |
| 13139 | #endif |
| 13140 | char sem_init (); |
| 13141 | int |
| 13142 | main () |
| 13143 | { |
| 13144 | return sem_init (); |
| 13145 | ; |
| 13146 | return 0; |
| 13147 | } |
| 13148 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13149 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13150 | ac_cv_lib_rt_sem_init=yes |
| 13151 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13152 | ac_cv_lib_rt_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13153 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13154 | rm -f core conftest.err conftest.$ac_objext \ |
| 13155 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13156 | LIBS=$ac_check_lib_save_LIBS |
| 13157 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13159 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13160 | if test "x$ac_cv_lib_rt_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13161 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13162 | |
| 13163 | SEM_INIT_LIB=-lrt |
| 13164 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13166 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13167 | if ${ac_cv_lib_posix4_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13168 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13169 | else |
| 13170 | ac_check_lib_save_LIBS=$LIBS |
| 13171 | LIBS="-lposix4 $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13173 | /* end confdefs.h. */ |
| 13174 | |
| 13175 | /* Override any GCC internal prototype to avoid an error. |
| 13176 | Use char because int might match the return type of a GCC |
| 13177 | builtin and then its argument prototype would still apply. */ |
| 13178 | #ifdef __cplusplus |
| 13179 | extern "C" |
| 13180 | #endif |
| 13181 | char sem_init (); |
| 13182 | int |
| 13183 | main () |
| 13184 | { |
| 13185 | return sem_init (); |
| 13186 | ; |
| 13187 | return 0; |
| 13188 | } |
| 13189 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13190 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13191 | ac_cv_lib_posix4_sem_init=yes |
| 13192 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13193 | ac_cv_lib_posix4_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13194 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13195 | rm -f core conftest.err conftest.$ac_objext \ |
| 13196 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13197 | LIBS=$ac_check_lib_save_LIBS |
| 13198 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13200 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13201 | if test "x$ac_cv_lib_posix4_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13202 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 13203 | |
| 13204 | SEM_INIT_LIB=-lposix4 |
| 13205 | fi |
| 13206 | |
| 13207 | fi |
| 13208 | |
| 13209 | fi |
| 13210 | |
| 13211 | fi |
| 13212 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13214 | $as_echo_n "checking for unified diff option... " >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 13215 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 13216 | UNI_DIFF_OPTS=-u |
| 13217 | else |
| 13218 | UNI_DIFF_OPTS=-c |
| 13219 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13221 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 13222 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 13223 | case "$host_os" in |
| 13224 | linux*) |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13225 | |
| 13226 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13227 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 13228 | ;; |
| 13229 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13230 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13231 | CYGWIN_CMT="#" |
| 13232 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13233 | case "$host_os" in |
| 13234 | linux*) |
| 13235 | LINUX_CMT= |
| 13236 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13237 | cygwin) |
| 13238 | CYGWIN_CMT= |
| 13239 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13240 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13241 | esac |
| 13242 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13243 | |
| 13244 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13245 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13246 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13247 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 13248 | root_prefix=""; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13250 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13251 | fi |
| 13252 | ;; |
| 13253 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13254 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13255 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13256 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13257 | prefix="/usr"; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13259 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 13260 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13262 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 13263 | mandir=/usr/share/man |
| 13264 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13265 | fi |
| 13266 | ;; |
| 13267 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13268 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 13269 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13270 | root_prefix="$ac_default_prefix" |
| 13271 | else |
| 13272 | root_prefix="$prefix" |
| 13273 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 13274 | root_bindir=$bindir |
| 13275 | root_sbindir=$sbindir |
| 13276 | root_libdir=$libdir |
| 13277 | root_sysconfdir=$sysconfdir |
| 13278 | else |
| 13279 | root_bindir='${root_prefix}/bin' |
| 13280 | root_sbindir='${root_prefix}/sbin' |
| 13281 | root_libdir='${root_prefix}/lib' |
| 13282 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13283 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13284 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 13285 | root_bindir=$bindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13287 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13288 | fi |
| 13289 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 13290 | root_sbindir=$sbindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13292 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13293 | fi |
| 13294 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 13295 | root_libdir=$libdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13297 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13298 | fi |
| 13299 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 13300 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13302 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 13303 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13304 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13305 | |
| 13306 | |
| 13307 | |
| 13308 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 13309 | |
| 13310 | # Check whether --with-multiarch was given. |
| 13311 | if test "${with_multiarch+set}" = set; then : |
Theodore Ts'o | d7fa410 | 2014-02-05 15:45:36 -0500 | [diff] [blame] | 13312 | withval=$with_multiarch; if test "$withval" = "lib64"; then |
| 13313 | libdir=/usr/lib64 |
| 13314 | root_libdir=/lib64 |
| 13315 | else |
| 13316 | libdir=$libdir/$withval |
| 13317 | root_libdir=$root_libdir/$withval |
| 13318 | fi |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 13319 | |
| 13320 | fi |
Theodore Ts'o | d3de1a7 | 2012-12-15 22:10:27 -0500 | [diff] [blame] | 13321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5 |
| 13322 | $as_echo_n "checking whether we can link with -static... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13323 | if ${ac_cv_e2fsprogs_use_static+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13324 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13325 | else |
| 13326 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13328 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13329 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13330 | int |
| 13331 | main () |
| 13332 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13333 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13334 | ; |
| 13335 | return 0; |
| 13336 | } |
| 13337 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13338 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13339 | ac_cv_e2fsprogs_use_static=yes |
| 13340 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13341 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13342 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13343 | rm -f core conftest.err conftest.$ac_objext \ |
| 13344 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13345 | LDFLAGS=$SAVE_LDFLAGS |
| 13346 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13347 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13348 | case "$host_os" in |
| 13349 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13350 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13351 | ;; |
| 13352 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13354 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 13355 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13356 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13357 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13358 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13359 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13360 | case "$host_os" in |
| 13361 | darwin*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13363 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13364 | |
| 13365 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13366 | |
| 13367 | ;; |
| 13368 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13369 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 13370 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 13371 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13372 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13373 | if test "$cross_compiling" = yes ; then |
| 13374 | DO_TEST_SUITE= |
| 13375 | else |
| 13376 | DO_TEST_SUITE=check |
| 13377 | fi |
| 13378 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13379 | INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' |
| 13380 | if test -n "$CPPFLAGS" ; then |
| 13381 | INCLUDES="$INCLUDES $CPPFLAGS" |
| 13382 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13383 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13384 | INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13385 | fi |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 13386 | if test -n "$WITH_DIET_LIBC" ; then |
| 13387 | INCLUDES="$INCLUDES -D_REENTRANT" |
| 13388 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 13389 | |
Theodore Ts'o | 5b5bd2c | 2014-07-10 00:17:05 -0400 | [diff] [blame] | 13390 | |
| 13391 | MKINSTALLDIRS= |
| 13392 | if test -n "$ac_aux_dir"; then |
| 13393 | case "$ac_aux_dir" in |
| 13394 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 13395 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 13396 | esac |
| 13397 | fi |
| 13398 | if test -z "$MKINSTALLDIRS"; then |
| 13399 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 13400 | fi |
| 13401 | |
| 13402 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 13403 | if test $cross_compiling = no; then |
Theodore Ts'o | 2873927 | 2014-01-03 00:26:43 -0500 | [diff] [blame] | 13404 | BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H" |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 13405 | BUILD_LDFLAGS="$LDFLAGS" |
| 13406 | else |
| 13407 | BUILD_CFLAGS= |
| 13408 | BUILD_LDFLAGS= |
| 13409 | fi |
| 13410 | |
| 13411 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13412 | test -d lib || mkdir lib |
| 13413 | test -d include || mkdir include |
| 13414 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13415 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 13416 | for i in MCONFIG Makefile e2fsprogs.spec \ |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 13417 | util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 13418 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 13419 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 13420 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 13421 | lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 13422 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 13423 | lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame] | 13424 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 13425 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
Matthias Andree | 98a5ad6 | 2009-07-15 17:37:52 +0200 | [diff] [blame] | 13426 | resize/Makefile doc/Makefile intl/Makefile \ |
| 13427 | intl/libgnuintl.h po/Makefile.in ; do |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 13428 | if test -d `dirname ${srcdir}/$i` ; then |
| 13429 | outlist="$outlist $i" |
| 13430 | fi |
| 13431 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13432 | ac_config_files="$ac_config_files $outlist" |
| 13433 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13434 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13435 | # This file is a shell script that caches the results of configure |
| 13436 | # tests run on this system so they can be shared between configure |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13437 | # scripts and configure runs, see configure's option --config-cache. |
| 13438 | # It is not useful on other systems. If it contains results you don't |
| 13439 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13440 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13441 | # config.status only pays attention to the cache file if you give it |
| 13442 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13443 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13444 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 13445 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13446 | # following values. |
| 13447 | |
| 13448 | _ACEOF |
| 13449 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 13450 | # The following way of writing the cache mishandles newlines in values, |
| 13451 | # but we know of no workaround that is simple, portable, and efficient. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13452 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13453 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13454 | # and sets the high bit in the cache file unless we assign to the vars. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13455 | ( |
| 13456 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13457 | eval ac_val=\$$ac_var |
| 13458 | case $ac_val in #( |
| 13459 | *${as_nl}*) |
| 13460 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13461 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13462 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13463 | esac |
| 13464 | case $ac_var in #( |
| 13465 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13466 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13467 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13468 | esac ;; |
| 13469 | esac |
| 13470 | done |
| 13471 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13472 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13473 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13474 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13475 | # `set' does not quote correctly, so add quotes: double-quote |
| 13476 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13477 | sed -n \ |
| 13478 | "s/'/'\\\\''/g; |
| 13479 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13480 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13481 | *) |
| 13482 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13483 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13484 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13485 | esac | |
| 13486 | sort |
| 13487 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13488 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13489 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13490 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13491 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13492 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13493 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13494 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13495 | :end' >>confcache |
| 13496 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13497 | if test -w "$cache_file"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13498 | if test "x$cache_file" != "x/dev/null"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13499 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13500 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13501 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 13502 | cat confcache >"$cache_file" |
| 13503 | else |
| 13504 | case $cache_file in #( |
| 13505 | */* | ?:*) |
| 13506 | mv -f confcache "$cache_file"$$ && |
| 13507 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 13508 | *) |
| 13509 | mv -f confcache "$cache_file" ;; |
| 13510 | esac |
| 13511 | fi |
| 13512 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13513 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13514 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13515 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13516 | fi |
| 13517 | fi |
| 13518 | rm -f confcache |
| 13519 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13520 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13521 | # Let make expand exec_prefix. |
| 13522 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 13523 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13524 | DEFS=-DHAVE_CONFIG_H |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13525 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13526 | ac_libobjs= |
| 13527 | ac_ltlibobjs= |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13528 | U= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13529 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13530 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13531 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13532 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13533 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 13534 | # will be set to the directory where LIBOBJS objects are built. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13535 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 13536 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13537 | done |
| 13538 | LIBOBJS=$ac_libobjs |
| 13539 | |
| 13540 | LTLIBOBJS=$ac_ltlibobjs |
| 13541 | |
| 13542 | |
| 13543 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13544 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13545 | : "${CONFIG_STATUS=./config.status}" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13546 | ac_write_fail=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13547 | ac_clean_files_save=$ac_clean_files |
| 13548 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13549 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13550 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13551 | as_write_fail=0 |
| 13552 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13553 | #! $SHELL |
| 13554 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13555 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13556 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13557 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13558 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13559 | debug=false |
| 13560 | ac_cs_recheck=false |
| 13561 | ac_cs_silent=false |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13562 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13563 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 13564 | export SHELL |
| 13565 | _ASEOF |
| 13566 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 13567 | ## -------------------- ## |
| 13568 | ## M4sh Initialization. ## |
| 13569 | ## -------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13570 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13571 | # Be more Bourne compatible |
| 13572 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13573 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13574 | emulate sh |
| 13575 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13576 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13577 | # is contrary to our usage. Disable this feature. |
| 13578 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13579 | setopt NO_GLOB_SUBST |
| 13580 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13581 | case `(set -o) 2>/dev/null` in #( |
| 13582 | *posix*) : |
| 13583 | set -o posix ;; #( |
| 13584 | *) : |
| 13585 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13586 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13587 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13588 | |
| 13589 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13590 | as_nl=' |
| 13591 | ' |
| 13592 | export as_nl |
| 13593 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 13594 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 13595 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 13596 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13597 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 13598 | # but without wasting forks for bash or zsh. |
| 13599 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 13600 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 13601 | as_echo='print -r --' |
| 13602 | as_echo_n='print -rn --' |
| 13603 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13604 | as_echo='printf %s\n' |
| 13605 | as_echo_n='printf %s' |
| 13606 | else |
| 13607 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 13608 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 13609 | as_echo_n='/usr/ucb/echo -n' |
| 13610 | else |
| 13611 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 13612 | as_echo_n_body='eval |
| 13613 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13614 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13615 | *"$as_nl"*) |
| 13616 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 13617 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 13618 | esac; |
| 13619 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 13620 | ' |
| 13621 | export as_echo_n_body |
| 13622 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 13623 | fi |
| 13624 | export as_echo_body |
| 13625 | as_echo='sh -c $as_echo_body as_echo' |
| 13626 | fi |
| 13627 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13628 | # The user is always right. |
| 13629 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13630 | PATH_SEPARATOR=: |
| 13631 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 13632 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 13633 | PATH_SEPARATOR=';' |
| 13634 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13635 | fi |
| 13636 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13637 | |
| 13638 | # IFS |
| 13639 | # We need space, tab and new line, in precisely that order. Quoting is |
| 13640 | # there to prevent editors from complaining about space-tab. |
| 13641 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 13642 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13643 | IFS=" "" $as_nl" |
| 13644 | |
| 13645 | # Find who we are. Look in the path if we contain no directory separator. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13646 | as_myself= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13647 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13648 | *[\\/]* ) as_myself=$0 ;; |
| 13649 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13650 | for as_dir in $PATH |
| 13651 | do |
| 13652 | IFS=$as_save_IFS |
| 13653 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13654 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 13655 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13656 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13657 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13658 | ;; |
| 13659 | esac |
| 13660 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 13661 | # in which case we are not to be found in the path. |
| 13662 | if test "x$as_myself" = x; then |
| 13663 | as_myself=$0 |
| 13664 | fi |
| 13665 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13666 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13667 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13668 | fi |
| 13669 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13670 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 13671 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 13672 | # suppresses any "Segmentation fault" message there. '((' could |
| 13673 | # trigger a bug in pdksh 5.2.14. |
| 13674 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 13675 | do eval test x\${$as_var+set} = xset \ |
| 13676 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13677 | done |
| 13678 | PS1='$ ' |
| 13679 | PS2='> ' |
| 13680 | PS4='+ ' |
| 13681 | |
| 13682 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13683 | LC_ALL=C |
| 13684 | export LC_ALL |
| 13685 | LANGUAGE=C |
| 13686 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13687 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13688 | # CDPATH. |
| 13689 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 13690 | |
| 13691 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13692 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 13693 | # ---------------------------------------- |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13694 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 13695 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13696 | # script with STATUS, using 1 if that was 0. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13697 | as_fn_error () |
| 13698 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13699 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 13700 | if test "$4"; then |
| 13701 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 13702 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13703 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13704 | $as_echo "$as_me: error: $2" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13705 | as_fn_exit $as_status |
| 13706 | } # as_fn_error |
| 13707 | |
| 13708 | |
| 13709 | # as_fn_set_status STATUS |
| 13710 | # ----------------------- |
| 13711 | # Set $? to STATUS, without forking. |
| 13712 | as_fn_set_status () |
| 13713 | { |
| 13714 | return $1 |
| 13715 | } # as_fn_set_status |
| 13716 | |
| 13717 | # as_fn_exit STATUS |
| 13718 | # ----------------- |
| 13719 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 13720 | as_fn_exit () |
| 13721 | { |
| 13722 | set +e |
| 13723 | as_fn_set_status $1 |
| 13724 | exit $1 |
| 13725 | } # as_fn_exit |
| 13726 | |
| 13727 | # as_fn_unset VAR |
| 13728 | # --------------- |
| 13729 | # Portably unset VAR. |
| 13730 | as_fn_unset () |
| 13731 | { |
| 13732 | { eval $1=; unset $1;} |
| 13733 | } |
| 13734 | as_unset=as_fn_unset |
| 13735 | # as_fn_append VAR VALUE |
| 13736 | # ---------------------- |
| 13737 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 13738 | # advantage of any shell optimizations that allow amortized linear growth over |
| 13739 | # repeated appends, instead of the typical quadratic growth present in naive |
| 13740 | # implementations. |
| 13741 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 13742 | eval 'as_fn_append () |
| 13743 | { |
| 13744 | eval $1+=\$2 |
| 13745 | }' |
| 13746 | else |
| 13747 | as_fn_append () |
| 13748 | { |
| 13749 | eval $1=\$$1\$2 |
| 13750 | } |
| 13751 | fi # as_fn_append |
| 13752 | |
| 13753 | # as_fn_arith ARG... |
| 13754 | # ------------------ |
| 13755 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 13756 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 13757 | # must be portable across $(()) and expr. |
| 13758 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 13759 | eval 'as_fn_arith () |
| 13760 | { |
| 13761 | as_val=$(( $* )) |
| 13762 | }' |
| 13763 | else |
| 13764 | as_fn_arith () |
| 13765 | { |
| 13766 | as_val=`expr "$@" || test $? -eq 1` |
| 13767 | } |
| 13768 | fi # as_fn_arith |
| 13769 | |
| 13770 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13771 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 13772 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 13773 | as_expr=expr |
| 13774 | else |
| 13775 | as_expr=false |
| 13776 | fi |
| 13777 | |
| 13778 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 13779 | as_basename=basename |
| 13780 | else |
| 13781 | as_basename=false |
| 13782 | fi |
| 13783 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13784 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 13785 | as_dirname=dirname |
| 13786 | else |
| 13787 | as_dirname=false |
| 13788 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13789 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13790 | as_me=`$as_basename -- "$0" || |
| 13791 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 13792 | X"$0" : 'X\(//\)$' \| \ |
| 13793 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13794 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13795 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 13796 | s//\1/ |
| 13797 | q |
| 13798 | } |
| 13799 | /^X\/\(\/\/\)$/{ |
| 13800 | s//\1/ |
| 13801 | q |
| 13802 | } |
| 13803 | /^X\/\(\/\).*/{ |
| 13804 | s//\1/ |
| 13805 | q |
| 13806 | } |
| 13807 | s/.*/./; q'` |
| 13808 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13809 | # Avoid depending upon Character Ranges. |
| 13810 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 13811 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 13812 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 13813 | as_cr_digits='0123456789' |
| 13814 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13815 | |
| 13816 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13817 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13818 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13819 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13820 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13821 | xy) ECHO_C='\c';; |
| 13822 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 13823 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13824 | esac;; |
| 13825 | *) |
| 13826 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13827 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13828 | |
| 13829 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13830 | if test -d conf$$.dir; then |
| 13831 | rm -f conf$$.dir/conf$$.file |
| 13832 | else |
| 13833 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13834 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13835 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13836 | if (echo >conf$$.file) 2>/dev/null; then |
| 13837 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 13838 | as_ln_s='ln -s' |
| 13839 | # ... but there are two gotchas: |
| 13840 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 13841 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13842 | # In both cases, we have to default to `cp -pR'. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13843 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13844 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13845 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 13846 | as_ln_s=ln |
| 13847 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13848 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13849 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13850 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13851 | as_ln_s='cp -pR' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13852 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13853 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 13854 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13855 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13856 | |
| 13857 | # as_fn_mkdir_p |
| 13858 | # ------------- |
| 13859 | # Create "$as_dir" as a directory, including parents if necessary. |
| 13860 | as_fn_mkdir_p () |
| 13861 | { |
| 13862 | |
| 13863 | case $as_dir in #( |
| 13864 | -*) as_dir=./$as_dir;; |
| 13865 | esac |
| 13866 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 13867 | as_dirs= |
| 13868 | while :; do |
| 13869 | case $as_dir in #( |
| 13870 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 13871 | *) as_qdir=$as_dir;; |
| 13872 | esac |
| 13873 | as_dirs="'$as_qdir' $as_dirs" |
| 13874 | as_dir=`$as_dirname -- "$as_dir" || |
| 13875 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13876 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13877 | X"$as_dir" : 'X\(//\)$' \| \ |
| 13878 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 13879 | $as_echo X"$as_dir" | |
| 13880 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13881 | s//\1/ |
| 13882 | q |
| 13883 | } |
| 13884 | /^X\(\/\/\)[^/].*/{ |
| 13885 | s//\1/ |
| 13886 | q |
| 13887 | } |
| 13888 | /^X\(\/\/\)$/{ |
| 13889 | s//\1/ |
| 13890 | q |
| 13891 | } |
| 13892 | /^X\(\/\).*/{ |
| 13893 | s//\1/ |
| 13894 | q |
| 13895 | } |
| 13896 | s/.*/./; q'` |
| 13897 | test -d "$as_dir" && break |
| 13898 | done |
| 13899 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13900 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13901 | |
| 13902 | |
| 13903 | } # as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13904 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13905 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13906 | else |
| 13907 | test -d ./-p && rmdir ./-p |
| 13908 | as_mkdir_p=false |
| 13909 | fi |
| 13910 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13911 | |
| 13912 | # as_fn_executable_p FILE |
| 13913 | # ----------------------- |
| 13914 | # Test if FILE is an executable regular file. |
| 13915 | as_fn_executable_p () |
| 13916 | { |
| 13917 | test -f "$1" && test -x "$1" |
| 13918 | } # as_fn_executable_p |
| 13919 | as_test_x='test -x' |
| 13920 | as_executable_p=as_fn_executable_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13921 | |
| 13922 | # Sed expression to map a string onto a valid CPP name. |
| 13923 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 13924 | |
| 13925 | # Sed expression to map a string onto a valid variable name. |
| 13926 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 13927 | |
| 13928 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13929 | exec 6>&1 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13930 | ## ----------------------------------- ## |
| 13931 | ## Main body of $CONFIG_STATUS script. ## |
| 13932 | ## ----------------------------------- ## |
| 13933 | _ASEOF |
| 13934 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13935 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13936 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13937 | # Save the log message, to keep $0 and so on meaningful, and to |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13938 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13939 | # values after options handling. |
| 13940 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13941 | This file was extended by $as_me, which was |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 13942 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13943 | |
| 13944 | CONFIG_FILES = $CONFIG_FILES |
| 13945 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 13946 | CONFIG_LINKS = $CONFIG_LINKS |
| 13947 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 13948 | $ $0 $@ |
| 13949 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13950 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 13951 | " |
| 13952 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13953 | _ACEOF |
| 13954 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13955 | case $ac_config_files in *" |
| 13956 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 13957 | esac |
| 13958 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13959 | case $ac_config_headers in *" |
| 13960 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 13961 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13962 | |
| 13963 | |
| 13964 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13965 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13966 | config_files="$ac_config_files" |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13967 | config_headers="$ac_config_headers" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13968 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13969 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13970 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13971 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13972 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13973 | ac_cs_usage="\ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13974 | \`$as_me' instantiates files and other configuration actions |
| 13975 | from templates according to the current configuration. Unless the files |
| 13976 | and actions are specified as TAGs, all are instantiated by default. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13977 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13978 | Usage: $0 [OPTION]... [TAG]... |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13979 | |
| 13980 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13981 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 13982 | --config print configuration, then exit |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13983 | -q, --quiet, --silent |
| 13984 | do not print progress messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13985 | -d, --debug don't remove temporary files |
| 13986 | --recheck update $as_me by reconfiguring in the same conditions |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 13987 | --file=FILE[:TEMPLATE] |
| 13988 | instantiate the configuration file FILE |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13989 | --header=FILE[:TEMPLATE] |
| 13990 | instantiate the configuration header FILE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13991 | |
| 13992 | Configuration files: |
| 13993 | $config_files |
| 13994 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 13995 | Configuration headers: |
| 13996 | $config_headers |
| 13997 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13998 | Configuration commands: |
| 13999 | $config_commands |
| 14000 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14001 | Report bugs to the package provider." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14002 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14003 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14004 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14005 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14006 | ac_cs_version="\\ |
| 14007 | config.status |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14008 | configured by $0, generated by GNU Autoconf 2.69, |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14009 | with options \\"\$ac_cs_config\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14010 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14011 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14012 | This config.status script is free software; the Free Software Foundation |
| 14013 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14014 | |
| 14015 | ac_pwd='$ac_pwd' |
| 14016 | srcdir='$srcdir' |
| 14017 | INSTALL='$INSTALL' |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14018 | MKDIR_P='$MKDIR_P' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14019 | AWK='$AWK' |
| 14020 | test -n "\$AWK" || AWK=awk |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14021 | _ACEOF |
| 14022 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14023 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14024 | # The default lists apply if the user does not specify any file. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14025 | ac_need_defaults=: |
| 14026 | while test $# != 0 |
| 14027 | do |
| 14028 | case $1 in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14029 | --*=?*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14030 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14031 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14032 | ac_shift=: |
| 14033 | ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14034 | --*=) |
| 14035 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 14036 | ac_optarg= |
| 14037 | ac_shift=: |
| 14038 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14039 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14040 | ac_option=$1 |
| 14041 | ac_optarg=$2 |
| 14042 | ac_shift=shift |
| 14043 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14044 | esac |
| 14045 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14046 | case $ac_option in |
| 14047 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14048 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 14049 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14050 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14051 | $as_echo "$ac_cs_version"; exit ;; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14052 | --config | --confi | --conf | --con | --co | --c ) |
| 14053 | $as_echo "$ac_cs_config"; exit ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14054 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14055 | debug=: ;; |
| 14056 | --file | --fil | --fi | --f ) |
| 14057 | $ac_shift |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14058 | case $ac_optarg in |
| 14059 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14060 | '') as_fn_error $? "missing file argument" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14061 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14062 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14063 | ac_need_defaults=false;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14064 | --header | --heade | --head | --hea ) |
| 14065 | $ac_shift |
| 14066 | case $ac_optarg in |
| 14067 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 14068 | esac |
| 14069 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 14070 | ac_need_defaults=false;; |
| 14071 | --he | --h) |
| 14072 | # Conflict between --help and --header |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14073 | as_fn_error $? "ambiguous option: \`$1' |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14074 | Try \`$0 --help' for more information.";; |
| 14075 | --help | --hel | -h ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14076 | $as_echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14077 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 14078 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 14079 | ac_cs_silent=: ;; |
| 14080 | |
| 14081 | # This is an error. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14082 | -*) as_fn_error $? "unrecognized option: \`$1' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14083 | Try \`$0 --help' for more information." ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14084 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14085 | *) as_fn_append ac_config_targets " $1" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14086 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14087 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14088 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14089 | shift |
| 14090 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14091 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14092 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14093 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14094 | if $ac_cs_silent; then |
| 14095 | exec 6>/dev/null |
| 14096 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 14097 | fi |
| 14098 | |
| 14099 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14100 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14101 | if \$ac_cs_recheck; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14102 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14103 | shift |
| 14104 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 14105 | CONFIG_SHELL='$SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14106 | export CONFIG_SHELL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14107 | exec "\$@" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14108 | fi |
| 14109 | |
| 14110 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14111 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14112 | exec 5>>config.log |
| 14113 | { |
| 14114 | echo |
| 14115 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 14116 | ## Running $as_me. ## |
| 14117 | _ASBOX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14118 | $as_echo "$ac_log" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14119 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14120 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14121 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14122 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14123 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14124 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14125 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14126 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14127 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14128 | # from automake < 1.5. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14129 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14130 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 14131 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14132 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14133 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14134 | _ACEOF |
| 14135 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14136 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14137 | |
| 14138 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14139 | for ac_config_target in $ac_config_targets |
| 14140 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14141 | case $ac_config_target in |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14142 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14143 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14144 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 14145 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14146 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14147 | esac |
| 14148 | done |
| 14149 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14150 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14151 | # If the user did not use the arguments to specify the items to instantiate, |
| 14152 | # then the envvar interface is used. Set only those that are not. |
| 14153 | # We use the long form for the default assignment because of an extremely |
| 14154 | # bizarre bug on SunOS 4.1.3. |
| 14155 | if $ac_need_defaults; then |
| 14156 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14157 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14158 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 14159 | fi |
| 14160 | |
| 14161 | # Have a temporary directory for convenience. Make it in the build tree |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14162 | # simply because there is no reason against having it here, and in addition, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14163 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14164 | # Hook for its removal unless debugging. |
| 14165 | # Note that there is a small window in which the directory will not be cleaned: |
| 14166 | # after its creation but before its name has been assigned to `$tmp'. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14167 | $debug || |
| 14168 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14169 | tmp= ac_tmp= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14170 | trap 'exit_status=$? |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14171 | : "${ac_tmp:=$tmp}" |
| 14172 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14173 | ' 0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14174 | trap 'as_fn_exit 1' 1 2 13 15 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14175 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14176 | # Create a (secure) tmp directory for tmp files. |
| 14177 | |
| 14178 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14179 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14180 | test -d "$tmp" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14181 | } || |
| 14182 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14183 | tmp=./conf$$-$RANDOM |
| 14184 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14185 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 14186 | ac_tmp=$tmp |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14187 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14188 | # Set up the scripts for CONFIG_FILES section. |
| 14189 | # No need to generate them if there are no CONFIG_FILES. |
| 14190 | # This happens for instance with `./config.status config.h'. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14191 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14192 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14193 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 14194 | ac_cs_awk_getline=: |
| 14195 | ac_cs_awk_pipe_init= |
| 14196 | ac_cs_awk_read_file=' |
| 14197 | while ((getline aline < (F[key])) > 0) |
| 14198 | print(aline) |
| 14199 | close(F[key])' |
| 14200 | ac_cs_awk_pipe_fini= |
| 14201 | else |
| 14202 | ac_cs_awk_getline=false |
| 14203 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 14204 | ac_cs_awk_read_file=' |
| 14205 | print "|#_!!_#|" |
| 14206 | print "cat " F[key] " &&" |
| 14207 | '$ac_cs_awk_pipe_init |
| 14208 | # The final `:' finishes the AND list. |
| 14209 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 14210 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14211 | ac_cr=`echo X | tr X '\015'` |
| 14212 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 14213 | # But we know of no other shell where ac_cr would be empty at this |
| 14214 | # point, so we can use a bashism as a fallback. |
| 14215 | if test "x$ac_cr" = x; then |
| 14216 | eval ac_cr=\$\'\\r\' |
| 14217 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14218 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 14219 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14220 | ac_cs_awk_cr='\\r' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14221 | else |
| 14222 | ac_cs_awk_cr=$ac_cr |
| 14223 | fi |
| 14224 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14225 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14226 | _ACEOF |
| 14227 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14228 | # Create commands to substitute file output variables. |
| 14229 | { |
| 14230 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14231 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14232 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 14233 | echo "_ACAWK" && |
| 14234 | echo "_ACEOF" |
| 14235 | } >conf$$files.sh && |
| 14236 | . ./conf$$files.sh || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14237 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14238 | rm -f conf$$files.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14239 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14240 | { |
| 14241 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 14242 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 14243 | echo "_ACEOF" |
| 14244 | } >conf$$subs.sh || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14245 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 14246 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14247 | ac_delim='%!_!# ' |
| 14248 | for ac_last_try in false false false false false :; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14249 | . ./conf$$subs.sh || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14250 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14251 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14252 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 14253 | if test $ac_delim_n = $ac_delim_num; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14254 | break |
| 14255 | elif $ac_last_try; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14256 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14257 | else |
| 14258 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14259 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14260 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14261 | rm -f conf$$subs.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14262 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14263 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14264 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14265 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14266 | sed -n ' |
| 14267 | h |
| 14268 | s/^/S["/; s/!.*/"]=/ |
| 14269 | p |
| 14270 | g |
| 14271 | s/^[^!]*!// |
| 14272 | :repl |
| 14273 | t repl |
| 14274 | s/'"$ac_delim"'$// |
| 14275 | t delim |
| 14276 | :nl |
| 14277 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14278 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14279 | t more1 |
| 14280 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14281 | p |
| 14282 | n |
| 14283 | b repl |
| 14284 | :more1 |
| 14285 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14286 | p |
| 14287 | g |
| 14288 | s/.\{148\}// |
| 14289 | t nl |
| 14290 | :delim |
| 14291 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 14292 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14293 | t more2 |
| 14294 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14295 | p |
| 14296 | b |
| 14297 | :more2 |
| 14298 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14299 | p |
| 14300 | g |
| 14301 | s/.\{148\}// |
| 14302 | t delim |
| 14303 | ' <conf$$subs.awk | sed ' |
| 14304 | /^[^""]/{ |
| 14305 | N |
| 14306 | s/\n// |
| 14307 | } |
| 14308 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14309 | rm -f conf$$subs.awk |
| 14310 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14311 | _ACAWK |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14312 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14313 | for (key in S) S_is_set[key] = 1 |
| 14314 | FS = "" |
| 14315 | \$ac_cs_awk_pipe_init |
| 14316 | } |
| 14317 | { |
| 14318 | line = $ 0 |
| 14319 | nfields = split(line, field, "@") |
| 14320 | substed = 0 |
| 14321 | len = length(field[1]) |
| 14322 | for (i = 2; i < nfields; i++) { |
| 14323 | key = field[i] |
| 14324 | keylen = length(key) |
| 14325 | if (S_is_set[key]) { |
| 14326 | value = S[key] |
| 14327 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 14328 | len += length(value) + length(field[++i]) |
| 14329 | substed = 1 |
| 14330 | } else |
| 14331 | len += 1 + keylen |
| 14332 | } |
| 14333 | if (nfields == 3 && !substed) { |
| 14334 | key = field[2] |
| 14335 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 14336 | \$ac_cs_awk_read_file |
| 14337 | next |
| 14338 | } |
| 14339 | } |
| 14340 | print line |
| 14341 | } |
| 14342 | \$ac_cs_awk_pipe_fini |
| 14343 | _ACAWK |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14344 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14345 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14346 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 14347 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 14348 | else |
| 14349 | cat |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14350 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 14351 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14352 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14353 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14354 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 14355 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14356 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14357 | # (actually we leave an empty line to preserve line numbers). |
| 14358 | if test "x$srcdir" = x.; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14359 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 14360 | h |
| 14361 | s/// |
| 14362 | s/^/:/ |
| 14363 | s/[ ]*$/:/ |
| 14364 | s/:\$(srcdir):/:/g |
| 14365 | s/:\${srcdir}:/:/g |
| 14366 | s/:@srcdir@:/:/g |
| 14367 | s/^:*// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14368 | s/:*$// |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14369 | x |
| 14370 | s/\(=[ ]*\).*/\1/ |
| 14371 | G |
| 14372 | s/\n// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14373 | s/^[^=]*=[ ]*$// |
| 14374 | }' |
| 14375 | fi |
| 14376 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14377 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14378 | fi # test -n "$CONFIG_FILES" |
| 14379 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14380 | # Set up the scripts for CONFIG_HEADERS section. |
| 14381 | # No need to generate them if there are no CONFIG_HEADERS. |
| 14382 | # This happens for instance with `./config.status Makefile'. |
| 14383 | if test -n "$CONFIG_HEADERS"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14384 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14385 | BEGIN { |
| 14386 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14387 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14388 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 14389 | # here-document in config.status, that substitutes the proper values into |
| 14390 | # config.h.in to produce config.h. |
| 14391 | |
| 14392 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 14393 | # handling of long lines. |
| 14394 | ac_delim='%!_!# ' |
| 14395 | for ac_last_try in false false :; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14396 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 14397 | if test -z "$ac_tt"; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14398 | break |
| 14399 | elif $ac_last_try; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14400 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14401 | else |
| 14402 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14403 | fi |
| 14404 | done |
| 14405 | |
| 14406 | # For the awk script, D is an array of macro values keyed by name, |
| 14407 | # likewise P contains macro parameters if any. Preserve backslash |
| 14408 | # newline sequences. |
| 14409 | |
| 14410 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14411 | sed -n ' |
| 14412 | s/.\{148\}/&'"$ac_delim"'/g |
| 14413 | t rset |
| 14414 | :rset |
| 14415 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 14416 | t def |
| 14417 | d |
| 14418 | :def |
| 14419 | s/\\$// |
| 14420 | t bsnl |
| 14421 | s/["\\]/\\&/g |
| 14422 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14423 | D["\1"]=" \3"/p |
| 14424 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 14425 | d |
| 14426 | :bsnl |
| 14427 | s/["\\]/\\&/g |
| 14428 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14429 | D["\1"]=" \3\\\\\\n"\\/p |
| 14430 | t cont |
| 14431 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 14432 | t cont |
| 14433 | d |
| 14434 | :cont |
| 14435 | n |
| 14436 | s/.\{148\}/&'"$ac_delim"'/g |
| 14437 | t clear |
| 14438 | :clear |
| 14439 | s/\\$// |
| 14440 | t bsnlc |
| 14441 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 14442 | d |
| 14443 | :bsnlc |
| 14444 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 14445 | b cont |
| 14446 | ' <confdefs.h | sed ' |
| 14447 | s/'"$ac_delim"'/"\\\ |
| 14448 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14449 | |
| 14450 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14451 | for (key in D) D_is_set[key] = 1 |
| 14452 | FS = "" |
| 14453 | } |
| 14454 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 14455 | line = \$ 0 |
| 14456 | split(line, arg, " ") |
| 14457 | if (arg[1] == "#") { |
| 14458 | defundef = arg[2] |
| 14459 | mac1 = arg[3] |
| 14460 | } else { |
| 14461 | defundef = substr(arg[1], 2) |
| 14462 | mac1 = arg[2] |
| 14463 | } |
| 14464 | split(mac1, mac2, "(") #) |
| 14465 | macro = mac2[1] |
| 14466 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 14467 | if (D_is_set[macro]) { |
| 14468 | # Preserve the white space surrounding the "#". |
| 14469 | print prefix "define", macro P[macro] D[macro] |
| 14470 | next |
| 14471 | } else { |
| 14472 | # Replace #undef with comments. This is necessary, for example, |
| 14473 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 14474 | # on some systems where configure will not decide to define it. |
| 14475 | if (defundef == "undef") { |
| 14476 | print "/*", prefix defundef, macro, "*/" |
| 14477 | next |
| 14478 | } |
| 14479 | } |
| 14480 | } |
| 14481 | { print } |
| 14482 | _ACAWK |
| 14483 | _ACEOF |
| 14484 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14485 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14486 | fi # test -n "$CONFIG_HEADERS" |
| 14487 | |
| 14488 | |
| 14489 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14490 | shift |
| 14491 | for ac_tag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14492 | do |
| 14493 | case $ac_tag in |
| 14494 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 14495 | esac |
| 14496 | case $ac_mode$ac_tag in |
| 14497 | :[FHL]*:*);; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14498 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14499 | :[FH]-) ac_tag=-:-;; |
| 14500 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 14501 | esac |
| 14502 | ac_save_IFS=$IFS |
| 14503 | IFS=: |
| 14504 | set x $ac_tag |
| 14505 | IFS=$ac_save_IFS |
| 14506 | shift |
| 14507 | ac_file=$1 |
| 14508 | shift |
| 14509 | |
| 14510 | case $ac_mode in |
| 14511 | :L) ac_source=$1;; |
| 14512 | :[FH]) |
| 14513 | ac_file_inputs= |
| 14514 | for ac_f |
| 14515 | do |
| 14516 | case $ac_f in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14517 | -) ac_f="$ac_tmp/stdin";; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14518 | *) # Look for the file first in the build tree, then in the source tree |
| 14519 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 14520 | # because $ac_f cannot contain `:'. |
| 14521 | test -f "$ac_f" || |
| 14522 | case $ac_f in |
| 14523 | [\\/$]*) false;; |
| 14524 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 14525 | esac || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14526 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14527 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14528 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14529 | as_fn_append ac_file_inputs " '$ac_f'" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14530 | done |
| 14531 | |
| 14532 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14533 | # use $as_me), people would be surprised to read: |
| 14534 | # /* config.h. Generated by config.status. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14535 | configure_input='Generated from '` |
| 14536 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 14537 | `' by configure.' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14538 | if test x"$ac_file" != x-; then |
| 14539 | configure_input="$ac_file. $configure_input" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14540 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14541 | $as_echo "$as_me: creating $ac_file" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14542 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14543 | # Neutralize special characters interpreted by sed in replacement strings. |
| 14544 | case $configure_input in #( |
| 14545 | *\&* | *\|* | *\\* ) |
| 14546 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 14547 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 14548 | *) ac_sed_conf_input=$configure_input;; |
| 14549 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14550 | |
| 14551 | case $ac_tag in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14552 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 14553 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14554 | esac |
| 14555 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14556 | esac |
| 14557 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14558 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14559 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14560 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14561 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14562 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14563 | $as_echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14564 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14565 | s//\1/ |
| 14566 | q |
| 14567 | } |
| 14568 | /^X\(\/\/\)[^/].*/{ |
| 14569 | s//\1/ |
| 14570 | q |
| 14571 | } |
| 14572 | /^X\(\/\/\)$/{ |
| 14573 | s//\1/ |
| 14574 | q |
| 14575 | } |
| 14576 | /^X\(\/\).*/{ |
| 14577 | s//\1/ |
| 14578 | q |
| 14579 | } |
| 14580 | s/.*/./; q'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14581 | as_dir="$ac_dir"; as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14582 | ac_builddir=. |
| 14583 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14584 | case "$ac_dir" in |
| 14585 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14586 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14587 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14588 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14589 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14590 | case $ac_top_builddir_sub in |
| 14591 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14592 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14593 | esac ;; |
| 14594 | esac |
| 14595 | ac_abs_top_builddir=$ac_pwd |
| 14596 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 14597 | # for backward compatibility: |
| 14598 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14599 | |
| 14600 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14601 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14602 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14603 | ac_top_srcdir=$ac_top_builddir_sub |
| 14604 | ac_abs_top_srcdir=$ac_pwd ;; |
| 14605 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14606 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14607 | ac_top_srcdir=$srcdir |
| 14608 | ac_abs_top_srcdir=$srcdir ;; |
| 14609 | *) # Relative name. |
| 14610 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 14611 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 14612 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14613 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14614 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14615 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14616 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14617 | case $ac_mode in |
| 14618 | :F) |
| 14619 | # |
| 14620 | # CONFIG_FILE |
| 14621 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14622 | |
| 14623 | case $INSTALL in |
| 14624 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14625 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14626 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14627 | ac_MKDIR_P=$MKDIR_P |
| 14628 | case $MKDIR_P in |
| 14629 | [\\/$]* | ?:[\\/]* ) ;; |
| 14630 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 14631 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14632 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14633 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14634 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14635 | # If the template does not know about datarootdir, expand it. |
| 14636 | # FIXME: This hack should be removed a few years after 2.60. |
| 14637 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14638 | ac_sed_dataroot=' |
| 14639 | /datarootdir/ { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14640 | p |
| 14641 | q |
| 14642 | } |
| 14643 | /@datadir@/p |
| 14644 | /@docdir@/p |
| 14645 | /@infodir@/p |
| 14646 | /@localedir@/p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14647 | /@mandir@/p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14648 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14649 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 14650 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14651 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14652 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14653 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14654 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14655 | ac_datarootdir_hack=' |
| 14656 | s&@datadir@&$datadir&g |
| 14657 | s&@docdir@&$docdir&g |
| 14658 | s&@infodir@&$infodir&g |
| 14659 | s&@localedir@&$localedir&g |
| 14660 | s&@mandir@&$mandir&g |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14661 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14662 | esac |
| 14663 | _ACEOF |
| 14664 | |
| 14665 | # Neutralize VPATH when `$srcdir' = `.'. |
| 14666 | # Shell code in configure.ac might set extrasub. |
| 14667 | # FIXME: do we really want to maintain this feature? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14668 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14669 | ac_sed_extra="$ac_vpsub |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14670 | $extrasub |
| 14671 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14672 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14673 | :t |
| 14674 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14675 | s|@configure_input@|$ac_sed_conf_input|;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14676 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14677 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14678 | s&@srcdir@&$ac_srcdir&;t t |
| 14679 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 14680 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 14681 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 14682 | s&@builddir@&$ac_builddir&;t t |
| 14683 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 14684 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 14685 | s&@INSTALL@&$ac_INSTALL&;t t |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14686 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14687 | $ac_datarootdir_hack |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14688 | " |
| 14689 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 14690 | if $ac_cs_awk_getline; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14691 | $AWK -f "$ac_tmp/subs.awk" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14692 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14693 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
| 14694 | fi \ |
| 14695 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14696 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14697 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14698 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 14699 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 14700 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14702 | which seems to be undefined. Please make sure it is defined" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14703 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14704 | which seems to be undefined. Please make sure it is defined" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14705 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14706 | rm -f "$ac_tmp/stdin" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14707 | case $ac_file in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14708 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 14709 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14710 | esac \ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14711 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14712 | ;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14713 | :H) |
| 14714 | # |
| 14715 | # CONFIG_HEADER |
| 14716 | # |
| 14717 | if test x"$ac_file" != x-; then |
| 14718 | { |
| 14719 | $as_echo "/* $configure_input */" \ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14720 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 14721 | } >"$ac_tmp/config.h" \ |
| 14722 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 14723 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14724 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 14725 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 14726 | else |
| 14727 | rm -f "$ac_file" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14728 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 14729 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14730 | fi |
| 14731 | else |
| 14732 | $as_echo "/* $configure_input */" \ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14733 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 14734 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 14735 | fi |
| 14736 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14737 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14738 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14739 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14740 | ;; |
| 14741 | esac |
| 14742 | |
| 14743 | |
| 14744 | case $ac_file$ac_mode in |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14745 | "po-directories":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14746 | for ac_file in $CONFIG_FILES; do |
| 14747 | # Support "outfile[:infile[:infile...]]" |
| 14748 | case "$ac_file" in |
| 14749 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 14750 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14751 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 14752 | case "$ac_file" in */Makefile.in) |
| 14753 | # Adjust a relative srcdir. |
| 14754 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14755 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14756 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 14757 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 14758 | # In autoconf-2.50 it is called $srcdir. |
| 14759 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 14760 | case "$ac_given_srcdir" in |
| 14761 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 14762 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 14763 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 14764 | esac |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14765 | # Treat a directory as a PO directory if and only if it has a |
| 14766 | # POTFILES.in file. This allows packages to have multiple PO |
| 14767 | # directories under different names or in different locations. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14768 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 14769 | rm -f "$ac_dir/POTFILES" |
| 14770 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14771 | gt_tab=`printf '\t'` |
| 14772 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14773 | POMAKEFILEDEPS="POTFILES.in" |
| 14774 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14775 | # on $ac_dir but don't depend on user-specified configuration |
| 14776 | # parameters. |
| 14777 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 14778 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14779 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14780 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 14781 | fi |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14782 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 14783 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14784 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14785 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 14786 | else |
| 14787 | # The set of available languages was given in configure.in. |
Theodore Ts'o | 9361395 | 2014-07-03 23:44:13 -0400 | [diff] [blame] | 14788 | # Hide the ALL_LINGUAS assignment from automake < 1.5. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14789 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14790 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14791 | # Compute POFILES |
| 14792 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 14793 | # Compute UPDATEPOFILES |
| 14794 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 14795 | # Compute DUMMYPOFILES |
| 14796 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 14797 | # Compute GMOFILES |
| 14798 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14799 | case "$ac_given_srcdir" in |
| 14800 | .) srcdirpre= ;; |
| 14801 | *) srcdirpre='$(srcdir)/' ;; |
| 14802 | esac |
| 14803 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14804 | UPDATEPOFILES= |
| 14805 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14806 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14807 | for lang in $ALL_LINGUAS; do |
| 14808 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14809 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 14810 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14811 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14812 | done |
| 14813 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 14814 | # environment variable. |
| 14815 | INST_LINGUAS= |
| 14816 | if test -n "$ALL_LINGUAS"; then |
| 14817 | for presentlang in $ALL_LINGUAS; do |
| 14818 | useit=no |
| 14819 | if test "%UNSET%" != "$LINGUAS"; then |
| 14820 | desiredlanguages="$LINGUAS" |
| 14821 | else |
| 14822 | desiredlanguages="$ALL_LINGUAS" |
| 14823 | fi |
| 14824 | for desiredlang in $desiredlanguages; do |
| 14825 | # Use the presentlang catalog if desiredlang is |
| 14826 | # a. equal to presentlang, or |
| 14827 | # b. a variant of presentlang (because in this case, |
| 14828 | # presentlang can be used as a fallback for messages |
| 14829 | # which are not translated in the desiredlang catalog). |
| 14830 | case "$desiredlang" in |
| 14831 | "$presentlang"*) useit=yes;; |
| 14832 | esac |
| 14833 | done |
| 14834 | if test $useit = yes; then |
| 14835 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 14836 | fi |
| 14837 | done |
| 14838 | fi |
| 14839 | CATALOGS= |
| 14840 | if test -n "$INST_LINGUAS"; then |
| 14841 | for lang in $INST_LINGUAS; do |
| 14842 | CATALOGS="$CATALOGS $lang.gmo" |
| 14843 | done |
| 14844 | fi |
| 14845 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14846 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14847 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 14848 | if test -f "$f"; then |
| 14849 | case "$f" in |
| 14850 | *.orig | *.bak | *~) ;; |
| 14851 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 14852 | esac |
| 14853 | fi |
| 14854 | done |
| 14855 | fi |
| 14856 | ;; |
| 14857 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14858 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14859 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14860 | esac |
| 14861 | done # for ac_tag |
| 14862 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14863 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14864 | as_fn_exit 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14865 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14866 | ac_clean_files=$ac_clean_files_save |
| 14867 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14868 | test $ac_write_fail = 0 || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14869 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14870 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14871 | |
| 14872 | # configure is writing to config.log, and then calls config.status. |
| 14873 | # config.status does its own redirection, appending to config.log. |
| 14874 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 14875 | # by configure, so config.status won't be able to write to it; its |
| 14876 | # output is simply discarded. So we exec the FD to /dev/null, |
| 14877 | # effectively closing config.log, so it can be properly (re)opened and |
| 14878 | # appended to by config.status. When coming back to configure, we |
| 14879 | # need to make the FD available again. |
| 14880 | if test "$no_create" != yes; then |
| 14881 | ac_cs_success=: |
| 14882 | ac_config_status_args= |
| 14883 | test "$silent" = yes && |
| 14884 | ac_config_status_args="$ac_config_status_args --quiet" |
| 14885 | exec 5>/dev/null |
| 14886 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 14887 | exec 5>>config.log |
| 14888 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 14889 | # would make configure fail if this is the last instruction. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 14890 | $ac_cs_success || as_fn_exit 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14891 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14892 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 14893 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 14894 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 14895 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14896 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 14897 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |