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 | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 622 | ac_header_list= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 623 | ac_subst_vars='LTLIBOBJS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 624 | LIBOBJS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 625 | BUILD_LDFLAGS |
| 626 | BUILD_CFLAGS |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 627 | INCLUDES |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 628 | DO_TEST_SUITE |
| 629 | ET_DIR |
| 630 | SS_DIR |
| 631 | LDFLAG_STATIC |
| 632 | root_sysconfdir |
| 633 | root_libdir |
| 634 | root_sbindir |
| 635 | root_bindir |
| 636 | root_prefix |
| 637 | UNIX_CMT |
| 638 | CYGWIN_CMT |
| 639 | LINUX_CMT |
| 640 | UNI_DIFF_OPTS |
| 641 | SEM_INIT_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 642 | SOCKET_LIB |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 643 | SIZEOF_OFF_T |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 644 | SIZEOF_LONG_LONG |
| 645 | SIZEOF_LONG |
| 646 | SIZEOF_INT |
| 647 | SIZEOF_SHORT |
| 648 | BUILD_CC |
| 649 | MAKEINFO |
| 650 | STRIP |
| 651 | AR |
| 652 | LDCONFIG |
| 653 | PERL |
| 654 | SED |
| 655 | AWK |
| 656 | CHMOD |
| 657 | RM |
| 658 | CP |
| 659 | MV |
| 660 | LN_S |
| 661 | LN |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 662 | ifNotGNUmake |
| 663 | ifGNUmake |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 664 | BINARY_TYPE |
| 665 | POSUB |
| 666 | LTLIBINTL |
| 667 | LIBINTL |
| 668 | INTLLIBS |
| 669 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 670 | INTLOBJS |
| 671 | GENCAT |
| 672 | INSTOBJEXT |
| 673 | DATADIRNAME |
| 674 | CATOBJEXT |
| 675 | USE_INCLUDED_LIBINTL |
| 676 | BUILD_INCLUDED_LIBINTL |
| 677 | INTLBISON |
| 678 | LTLIBICONV |
| 679 | LIBICONV |
| 680 | HAVE_WPRINTF |
| 681 | HAVE_SNPRINTF |
| 682 | HAVE_ASPRINTF |
| 683 | HAVE_POSIX_PRINTF |
| 684 | GLIBC21 |
| 685 | ALLOCA |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 686 | EGREP |
| 687 | GREP |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 688 | RANLIB |
| 689 | MSGMERGE |
| 690 | XGETTEXT |
| 691 | GMSGFMT |
| 692 | MSGFMT |
| 693 | USE_NLS |
| 694 | MKINSTALLDIRS |
| 695 | INSTALL_DATA |
| 696 | INSTALL_SCRIPT |
| 697 | INSTALL_PROGRAM |
| 698 | SET_MAKE |
| 699 | VERSION |
| 700 | PACKAGE |
| 701 | GETTEXT_PACKAGE |
| 702 | UUIDD_CMT |
| 703 | E2INITRD_MAN |
| 704 | E2INITRD_PROG |
| 705 | FSCK_MAN |
| 706 | FSCK_PROG |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 707 | DEFRAG_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 708 | RESIZER_CMT |
| 709 | IMAGER_CMT |
| 710 | DEBUGFS_CMT |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 711 | QUOTA_CMT |
| 712 | DEPPROFILED_LIBQUOTA |
| 713 | PROFILED_LIBQUOTA |
| 714 | DEPSTATIC_LIBQUOTA |
| 715 | STATIC_LIBQUOTA |
| 716 | DEPLIBQUOTA |
| 717 | LIBQUOTA |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 718 | QUOTA_MAN_COMMENT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 719 | BLKID_CMT |
| 720 | DEPPROFILED_LIBBLKID |
| 721 | PROFILED_LIBBLKID |
| 722 | DEPSTATIC_LIBBLKID |
| 723 | STATIC_LIBBLKID |
| 724 | DEPLIBBLKID |
| 725 | LIBBLKID |
| 726 | UUID_CMT |
| 727 | DEPPROFILED_LIBUUID |
| 728 | PROFILED_LIBUUID |
| 729 | DEPSTATIC_LIBUUID |
| 730 | STATIC_LIBUUID |
| 731 | DEPLIBUUID |
| 732 | LIBUUID |
| 733 | PKG_CONFIG |
| 734 | TEST_IO_CMT |
| 735 | PRIVATE_LIBS_CMT |
| 736 | LDFLAG_DYNAMIC |
| 737 | PROFILED_LIB_EXT |
| 738 | STATIC_LIB_EXT |
| 739 | LIB_EXT |
| 740 | CHECKER_CMT |
| 741 | PROFILE_CMT |
| 742 | BSDLIB_CMT |
| 743 | ELF_CMT |
| 744 | HTREE_CMT |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 745 | Q |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 746 | ES |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 747 | E |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 748 | LINK_BUILD_FLAGS |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 749 | SYMLINK_RELATIVE |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 750 | LINK_INSTALL_FLAGS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 751 | MAINTAINER_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 752 | CPP |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 753 | RDYNAMIC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 754 | DLOPEN_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 755 | OBJEXT |
| 756 | EXEEXT |
| 757 | ac_ct_CC |
| 758 | CPPFLAGS |
| 759 | LDFLAGS |
| 760 | CFLAGS |
| 761 | CC |
| 762 | host_os |
| 763 | host_vendor |
| 764 | host_cpu |
| 765 | host |
| 766 | build_os |
| 767 | build_vendor |
| 768 | build_cpu |
| 769 | build |
| 770 | E2FSPROGS_PKGVER |
| 771 | E2FSPROGS_VERSION |
| 772 | E2FSPROGS_DAY |
| 773 | E2FSPROGS_MONTH |
| 774 | E2FSPROGS_YEAR |
| 775 | target_alias |
| 776 | host_alias |
| 777 | build_alias |
| 778 | LIBS |
| 779 | ECHO_T |
| 780 | ECHO_N |
| 781 | ECHO_C |
| 782 | DEFS |
| 783 | mandir |
| 784 | localedir |
| 785 | libdir |
| 786 | psdir |
| 787 | pdfdir |
| 788 | dvidir |
| 789 | htmldir |
| 790 | infodir |
| 791 | docdir |
| 792 | oldincludedir |
| 793 | includedir |
| 794 | localstatedir |
| 795 | sharedstatedir |
| 796 | sysconfdir |
| 797 | datadir |
| 798 | datarootdir |
| 799 | libexecdir |
| 800 | sbindir |
| 801 | bindir |
| 802 | program_transform_name |
| 803 | prefix |
| 804 | exec_prefix |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 805 | PACKAGE_URL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 806 | PACKAGE_BUGREPORT |
| 807 | PACKAGE_STRING |
| 808 | PACKAGE_VERSION |
| 809 | PACKAGE_TARNAME |
| 810 | PACKAGE_NAME |
| 811 | PATH_SEPARATOR |
| 812 | SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 813 | ac_subst_files='MCONFIG |
| 814 | MAKEFILE_ELF |
| 815 | MAKEFILE_BSDLIB |
| 816 | MAKEFILE_PROFILE |
| 817 | MAKEFILE_CHECKER |
| 818 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 819 | ASM_TYPES_HEADER |
| 820 | PUBLIC_CONFIG_HEADER' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 821 | ac_user_opts=' |
| 822 | enable_option_checking |
| 823 | with_diet_libc |
| 824 | with_cc |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 825 | with_ccopts |
| 826 | with_ldopts |
| 827 | with_root_prefix |
| 828 | enable_maintainer_mode |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 829 | enable_symlink_install |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 830 | enable_relative_symlinks |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 831 | enable_symlink_relative_symlinks |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 832 | enable_symlink_build |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 833 | enable_verbose_makecmds |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 834 | enable_compression |
| 835 | enable_htree |
| 836 | enable_elf_shlibs |
| 837 | enable_bsd_shlibs |
| 838 | enable_profile |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 839 | enable_gcov |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 840 | enable_checker |
| 841 | enable_jbd_debug |
| 842 | enable_blkid_debug |
| 843 | enable_testio_debug |
| 844 | enable_libuuid |
| 845 | enable_libblkid |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 846 | enable_quota |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 847 | enable_backtrace |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 848 | enable_debugfs |
| 849 | enable_imager |
| 850 | enable_resizer |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 851 | enable_defrag |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 852 | enable_fsck |
| 853 | enable_e2initrd_helper |
| 854 | enable_tls |
| 855 | enable_uuidd |
| 856 | enable_nls |
| 857 | with_gnu_ld |
| 858 | enable_rpath |
| 859 | with_libiconv_prefix |
| 860 | with_included_gettext |
| 861 | with_libintl_prefix |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 862 | with_multiarch |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 863 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 864 | ac_precious_vars='build_alias |
| 865 | host_alias |
| 866 | target_alias |
| 867 | CC |
| 868 | CFLAGS |
| 869 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 870 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 871 | CPPFLAGS |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 872 | CPP |
| 873 | PKG_CONFIG' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 874 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 875 | |
| 876 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 877 | ac_init_help= |
| 878 | ac_init_version=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 879 | ac_unrecognized_opts= |
| 880 | ac_unrecognized_sep= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 881 | # The variables have the same names as the options, with |
| 882 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 883 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 884 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 885 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 886 | no_recursion= |
| 887 | prefix=NONE |
| 888 | program_prefix=NONE |
| 889 | program_suffix=NONE |
| 890 | program_transform_name=s,x,x, |
| 891 | silent= |
| 892 | site= |
| 893 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 894 | verbose= |
| 895 | x_includes=NONE |
| 896 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 897 | |
| 898 | # Installation directory options. |
| 899 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 900 | # and all the variables that are supposed to be based on exec_prefix |
| 901 | # by default will actually change. |
| 902 | # 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] | 903 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 904 | bindir='${exec_prefix}/bin' |
| 905 | sbindir='${exec_prefix}/sbin' |
| 906 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 907 | datarootdir='${prefix}/share' |
| 908 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 909 | sysconfdir='${prefix}/etc' |
| 910 | sharedstatedir='${prefix}/com' |
| 911 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 912 | includedir='${prefix}/include' |
| 913 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 914 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 915 | infodir='${datarootdir}/info' |
| 916 | htmldir='${docdir}' |
| 917 | dvidir='${docdir}' |
| 918 | pdfdir='${docdir}' |
| 919 | psdir='${docdir}' |
| 920 | libdir='${exec_prefix}/lib' |
| 921 | localedir='${datarootdir}/locale' |
| 922 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 923 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 924 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 925 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 926 | for ac_option |
| 927 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 928 | # If the previous option needs an argument, assign it. |
| 929 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 930 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 931 | ac_prev= |
| 932 | continue |
| 933 | fi |
| 934 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 935 | case $ac_option in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 936 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 937 | *=) ac_optarg= ;; |
| 938 | *) ac_optarg=yes ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 939 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 940 | |
| 941 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 942 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 943 | case $ac_dashdash$ac_option in |
| 944 | --) |
| 945 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 946 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 947 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 948 | ac_prev=bindir ;; |
| 949 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 950 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 951 | |
| 952 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 953 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 954 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 955 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 956 | |
| 957 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 958 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 959 | ac_prev=cache_file ;; |
| 960 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 961 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 962 | cache_file=$ac_optarg ;; |
| 963 | |
| 964 | --config-cache | -C) |
| 965 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 966 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 967 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 968 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 969 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 970 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 971 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 972 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 973 | | --dataroo | --dataro | --datar) |
| 974 | ac_prev=datarootdir ;; |
| 975 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 976 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 977 | datarootdir=$ac_optarg ;; |
| 978 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 979 | -disable-* | --disable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 980 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 981 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 982 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 983 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 984 | ac_useropt_orig=$ac_useropt |
| 985 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 986 | case $ac_user_opts in |
| 987 | *" |
| 988 | "enable_$ac_useropt" |
| 989 | "*) ;; |
| 990 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 991 | ac_unrecognized_sep=', ';; |
| 992 | esac |
| 993 | eval enable_$ac_useropt=no ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 994 | |
| 995 | -docdir | --docdir | --docdi | --doc | --do) |
| 996 | ac_prev=docdir ;; |
| 997 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 998 | docdir=$ac_optarg ;; |
| 999 | |
| 1000 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1001 | ac_prev=dvidir ;; |
| 1002 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1003 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1004 | |
| 1005 | -enable-* | --enable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1006 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1007 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1008 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1009 | as_fn_error $? "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1010 | ac_useropt_orig=$ac_useropt |
| 1011 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1012 | case $ac_user_opts in |
| 1013 | *" |
| 1014 | "enable_$ac_useropt" |
| 1015 | "*) ;; |
| 1016 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1017 | ac_unrecognized_sep=', ';; |
| 1018 | esac |
| 1019 | eval enable_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1020 | |
| 1021 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1022 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1023 | | --exec | --exe | --ex) |
| 1024 | ac_prev=exec_prefix ;; |
| 1025 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1026 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1027 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1028 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1029 | |
| 1030 | -gas | --gas | --ga | --g) |
| 1031 | # Obsolete; use --with-gas. |
| 1032 | with_gas=yes ;; |
| 1033 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1034 | -help | --help | --hel | --he | -h) |
| 1035 | ac_init_help=long ;; |
| 1036 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1037 | ac_init_help=recursive ;; |
| 1038 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1039 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1040 | |
| 1041 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1042 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1043 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1044 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1045 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1046 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1047 | ac_prev=htmldir ;; |
| 1048 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1049 | | --ht=*) |
| 1050 | htmldir=$ac_optarg ;; |
| 1051 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1052 | -includedir | --includedir | --includedi | --included | --include \ |
| 1053 | | --includ | --inclu | --incl | --inc) |
| 1054 | ac_prev=includedir ;; |
| 1055 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1056 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1057 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1058 | |
| 1059 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1060 | ac_prev=infodir ;; |
| 1061 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1062 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1063 | |
| 1064 | -libdir | --libdir | --libdi | --libd) |
| 1065 | ac_prev=libdir ;; |
| 1066 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1067 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1068 | |
| 1069 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1070 | | --libexe | --libex | --libe) |
| 1071 | ac_prev=libexecdir ;; |
| 1072 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1073 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1074 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1075 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1076 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1077 | ac_prev=localedir ;; |
| 1078 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1079 | localedir=$ac_optarg ;; |
| 1080 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1081 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1082 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1083 | ac_prev=localstatedir ;; |
| 1084 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1085 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1086 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1087 | |
| 1088 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1089 | ac_prev=mandir ;; |
| 1090 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1091 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1092 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1093 | -nfp | --nfp | --nf) |
| 1094 | # Obsolete; use --without-fp. |
| 1095 | with_fp=no ;; |
| 1096 | |
| 1097 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1098 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1099 | no_create=yes ;; |
| 1100 | |
| 1101 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1102 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1103 | no_recursion=yes ;; |
| 1104 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1105 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1106 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1107 | | --oldin | --oldi | --old | --ol | --o) |
| 1108 | ac_prev=oldincludedir ;; |
| 1109 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1110 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1111 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1112 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1113 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1114 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1115 | ac_prev=prefix ;; |
| 1116 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1117 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1118 | |
| 1119 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1120 | | --program-pre | --program-pr | --program-p) |
| 1121 | ac_prev=program_prefix ;; |
| 1122 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1123 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1124 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1125 | |
| 1126 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1127 | | --program-suf | --program-su | --program-s) |
| 1128 | ac_prev=program_suffix ;; |
| 1129 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1130 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1131 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1132 | |
| 1133 | -program-transform-name | --program-transform-name \ |
| 1134 | | --program-transform-nam | --program-transform-na \ |
| 1135 | | --program-transform-n | --program-transform- \ |
| 1136 | | --program-transform | --program-transfor \ |
| 1137 | | --program-transfo | --program-transf \ |
| 1138 | | --program-trans | --program-tran \ |
| 1139 | | --progr-tra | --program-tr | --program-t) |
| 1140 | ac_prev=program_transform_name ;; |
| 1141 | -program-transform-name=* | --program-transform-name=* \ |
| 1142 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1143 | | --program-transform-n=* | --program-transform-=* \ |
| 1144 | | --program-transform=* | --program-transfor=* \ |
| 1145 | | --program-transfo=* | --program-transf=* \ |
| 1146 | | --program-trans=* | --program-tran=* \ |
| 1147 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1148 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1149 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1150 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1151 | ac_prev=pdfdir ;; |
| 1152 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1153 | pdfdir=$ac_optarg ;; |
| 1154 | |
| 1155 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1156 | ac_prev=psdir ;; |
| 1157 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1158 | psdir=$ac_optarg ;; |
| 1159 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1160 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1161 | | -silent | --silent | --silen | --sile | --sil) |
| 1162 | silent=yes ;; |
| 1163 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1164 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1165 | ac_prev=sbindir ;; |
| 1166 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1167 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1168 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1169 | |
| 1170 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1171 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1172 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1173 | | --sha | --sh) |
| 1174 | ac_prev=sharedstatedir ;; |
| 1175 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1176 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1177 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1178 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1179 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1180 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1181 | -site | --site | --sit) |
| 1182 | ac_prev=site ;; |
| 1183 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1184 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1185 | |
| 1186 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1187 | ac_prev=srcdir ;; |
| 1188 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1189 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1190 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1191 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1192 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1193 | ac_prev=sysconfdir ;; |
| 1194 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1195 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1196 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1197 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1198 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1199 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1200 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1201 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1202 | |
| 1203 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1204 | verbose=yes ;; |
| 1205 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1206 | -version | --version | --versio | --versi | --vers | -V) |
| 1207 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1208 | |
| 1209 | -with-* | --with-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1210 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1211 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1212 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1213 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1214 | ac_useropt_orig=$ac_useropt |
| 1215 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1216 | case $ac_user_opts in |
| 1217 | *" |
| 1218 | "with_$ac_useropt" |
| 1219 | "*) ;; |
| 1220 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1221 | ac_unrecognized_sep=', ';; |
| 1222 | esac |
| 1223 | eval with_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1224 | |
| 1225 | -without-* | --without-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1226 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1227 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1228 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1229 | as_fn_error $? "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1230 | ac_useropt_orig=$ac_useropt |
| 1231 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1232 | case $ac_user_opts in |
| 1233 | *" |
| 1234 | "with_$ac_useropt" |
| 1235 | "*) ;; |
| 1236 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1237 | ac_unrecognized_sep=', ';; |
| 1238 | esac |
| 1239 | eval with_$ac_useropt=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1240 | |
| 1241 | --x) |
| 1242 | # Obsolete; use --with-x. |
| 1243 | with_x=yes ;; |
| 1244 | |
| 1245 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1246 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1247 | ac_prev=x_includes ;; |
| 1248 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1249 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1250 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1251 | |
| 1252 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1253 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1254 | ac_prev=x_libraries ;; |
| 1255 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1256 | | --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] | 1257 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1258 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1259 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1260 | Try \`$0 --help' for more information" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1261 | ;; |
| 1262 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1263 | *=*) |
| 1264 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1265 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1266 | case $ac_envvar in #( |
| 1267 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1268 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1269 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1270 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1271 | export $ac_envvar ;; |
| 1272 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1273 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1274 | # FIXME: should be removed in autoconf 3.0. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1275 | $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] | 1276 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1277 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1278 | : "${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] | 1279 | ;; |
| 1280 | |
| 1281 | esac |
| 1282 | done |
| 1283 | |
| 1284 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1285 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1286 | as_fn_error $? "missing argument to $ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1287 | fi |
| 1288 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1289 | if test -n "$ac_unrecognized_opts"; then |
| 1290 | case $enable_option_checking in |
| 1291 | no) ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1292 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1293 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1294 | esac |
| 1295 | fi |
| 1296 | |
| 1297 | # Check all directory arguments for consistency. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1298 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1299 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1300 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1301 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1302 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1303 | eval ac_val=\$$ac_var |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1304 | # Remove trailing slashes. |
| 1305 | case $ac_val in |
| 1306 | */ ) |
| 1307 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1308 | eval $ac_var=\$ac_val;; |
| 1309 | esac |
| 1310 | # Be sure to have absolute directory names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1311 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1312 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1313 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1314 | esac |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1315 | 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] | 1316 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1317 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1318 | # There might be people who depend on the old broken behavior: `$host' |
| 1319 | # used to hold the argument of --host etc. |
| 1320 | # FIXME: To remove some day. |
| 1321 | build=$build_alias |
| 1322 | host=$host_alias |
| 1323 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1324 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1325 | # FIXME: To remove some day. |
| 1326 | if test "x$host_alias" != x; then |
| 1327 | if test "x$build_alias" = x; then |
| 1328 | cross_compiling=maybe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1329 | elif test "x$build_alias" != "x$host_alias"; then |
| 1330 | cross_compiling=yes |
| 1331 | fi |
| 1332 | fi |
| 1333 | |
| 1334 | ac_tool_prefix= |
| 1335 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1336 | |
| 1337 | test "$silent" = yes && exec 6>/dev/null |
| 1338 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1339 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1340 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1341 | ac_ls_di=`ls -di .` && |
| 1342 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1343 | as_fn_error $? "working directory cannot be determined" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1344 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1345 | as_fn_error $? "pwd does not report name of working directory" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1346 | |
| 1347 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1348 | # Find the source files, if location was not specified. |
| 1349 | if test -z "$srcdir"; then |
| 1350 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1351 | # Try the directory containing this script, then the parent directory. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1352 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1353 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1354 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1355 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1356 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1357 | $as_echo X"$as_myself" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1358 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1359 | s//\1/ |
| 1360 | q |
| 1361 | } |
| 1362 | /^X\(\/\/\)[^/].*/{ |
| 1363 | s//\1/ |
| 1364 | q |
| 1365 | } |
| 1366 | /^X\(\/\/\)$/{ |
| 1367 | s//\1/ |
| 1368 | q |
| 1369 | } |
| 1370 | /^X\(\/\).*/{ |
| 1371 | s//\1/ |
| 1372 | q |
| 1373 | } |
| 1374 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1375 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1376 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1377 | srcdir=.. |
| 1378 | fi |
| 1379 | else |
| 1380 | ac_srcdir_defaulted=no |
| 1381 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1382 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1383 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1384 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1385 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1386 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1387 | ac_abs_confdir=`( |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1388 | 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] | 1389 | pwd)` |
| 1390 | # When building in place, set srcdir=. |
| 1391 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1392 | srcdir=. |
| 1393 | fi |
| 1394 | # Remove unnecessary trailing slashes from srcdir. |
| 1395 | # Double slashes in file names in object file debugging info |
| 1396 | # mess up M-x gdb in Emacs. |
| 1397 | case $srcdir in |
| 1398 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1399 | esac |
| 1400 | for ac_var in $ac_precious_vars; do |
| 1401 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1402 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1403 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1404 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1405 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1406 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1407 | # |
| 1408 | # Report the --help message. |
| 1409 | # |
| 1410 | if test "$ac_init_help" = "long"; then |
| 1411 | # Omit some internal or obsolete options to make the list less imposing. |
| 1412 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1413 | cat <<_ACEOF |
| 1414 | \`configure' configures this package to adapt to many kinds of systems. |
| 1415 | |
| 1416 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1417 | |
| 1418 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1419 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1420 | |
| 1421 | Defaults for the options are specified in brackets. |
| 1422 | |
| 1423 | Configuration: |
| 1424 | -h, --help display this help and exit |
| 1425 | --help=short display options specific to this package |
| 1426 | --help=recursive display the short help of all the included packages |
| 1427 | -V, --version display version information and exit |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1428 | -q, --quiet, --silent do not print \`checking ...' messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1429 | --cache-file=FILE cache test results in FILE [disabled] |
| 1430 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1431 | -n, --no-create do not create output files |
| 1432 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1433 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1434 | Installation directories: |
| 1435 | --prefix=PREFIX install architecture-independent files in PREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1436 | [$ac_default_prefix] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1437 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1438 | [PREFIX] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1439 | |
| 1440 | By default, \`make install' will install all the files in |
| 1441 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1442 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1443 | for instance \`--prefix=\$HOME'. |
| 1444 | |
| 1445 | For better control, use the options below. |
| 1446 | |
| 1447 | Fine tuning of the installation directories: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1448 | --bindir=DIR user executables [EPREFIX/bin] |
| 1449 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1450 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1451 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1452 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1453 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1454 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1455 | --includedir=DIR C header files [PREFIX/include] |
| 1456 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1457 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1458 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1459 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1460 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1461 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1462 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1463 | --htmldir=DIR html documentation [DOCDIR] |
| 1464 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1465 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1466 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1467 | _ACEOF |
| 1468 | |
| 1469 | cat <<\_ACEOF |
| 1470 | |
| 1471 | System types: |
| 1472 | --build=BUILD configure for building on BUILD [guessed] |
| 1473 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1474 | _ACEOF |
| 1475 | fi |
| 1476 | |
| 1477 | if test -n "$ac_init_help"; then |
| 1478 | |
| 1479 | cat <<\_ACEOF |
| 1480 | |
| 1481 | Optional Features: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1482 | --disable-option-checking ignore unrecognized --enable/--with options |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1483 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1484 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1485 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1486 | --enable-symlink-install use symlinks when installing instead of hard links |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 1487 | --enable-relative-symlinks use relative symlinks when installing |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1488 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1489 | --enable-symlink-build use symlinks while building instead of hard links |
| 1490 | --enable-verbose-makecmds enable verbose make command output |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1491 | --enable-compression enable EXPERIMENTAL compression support |
| 1492 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1493 | --enable-elf-shlibs select ELF shared libraries |
| 1494 | --enable-bsd-shlibs select BSD shared libraries |
| 1495 | --enable-profile build profiling libraries |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 1496 | --enable-gcov build for coverage testing using gcov |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1497 | --enable-checker build checker libraries |
| 1498 | --enable-jbd-debug enable journal debugging |
| 1499 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 1500 | --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] | 1501 | --disable-libuuid do not build private uuid library |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1502 | --disable-libblkid do not build private blkid library |
Eric Sandeen | 7b8912e | 2012-11-27 12:21:56 -0600 | [diff] [blame] | 1503 | --enable-quota enable quota support |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 1504 | --disable-backtrace disable use backtrace |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1505 | --disable-debugfs disable support of debugfs program |
| 1506 | --disable-imager disable support of e2image program |
| 1507 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 1508 | --disable-defrag disable support of e4defrag program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1509 | --enable-fsck build fsck wrapper program |
| 1510 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1511 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1512 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1513 | --disable-nls do not use Native Language Support |
| 1514 | --disable-rpath do not hardcode runtime library paths |
| 1515 | |
| 1516 | Optional Packages: |
| 1517 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1518 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1519 | --with-diet-libc use diet libc |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 1520 | --with-cc no longer supported, use CC= instead |
| 1521 | --with-ccopts no longer supported, use CFLAGS= instead |
| 1522 | --with-ldopts no longer supported, use LDFLAGS= instead |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1523 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1524 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1525 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1526 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1527 | --with-included-gettext use the GNU gettext library included here |
| 1528 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1529 | --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] | 1530 | --with-multiarch=ARCH specify the multiarch triplet |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1531 | |
| 1532 | Some influential environment variables: |
| 1533 | CC C compiler command |
| 1534 | CFLAGS C compiler flags |
| 1535 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1536 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1537 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1538 | 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] | 1539 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1540 | CPP C preprocessor |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1541 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1542 | |
| 1543 | Use these variables to override the choices made by `configure' or to help |
| 1544 | it to find libraries and programs with nonstandard names/locations. |
| 1545 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1546 | Report bugs to the package provider. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1547 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1548 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1549 | fi |
| 1550 | |
| 1551 | if test "$ac_init_help" = "recursive"; then |
| 1552 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1553 | 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] | 1554 | test -d "$ac_dir" || |
| 1555 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1556 | continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1557 | ac_builddir=. |
| 1558 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1559 | case "$ac_dir" in |
| 1560 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1561 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1562 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1563 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1564 | 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] | 1565 | case $ac_top_builddir_sub in |
| 1566 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1567 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1568 | esac ;; |
| 1569 | esac |
| 1570 | ac_abs_top_builddir=$ac_pwd |
| 1571 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1572 | # for backward compatibility: |
| 1573 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1574 | |
| 1575 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1576 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1577 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1578 | ac_top_srcdir=$ac_top_builddir_sub |
| 1579 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1580 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1581 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1582 | ac_top_srcdir=$srcdir |
| 1583 | ac_abs_top_srcdir=$srcdir ;; |
| 1584 | *) # Relative name. |
| 1585 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1586 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1587 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1588 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1589 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1590 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1591 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1592 | # Check for guested configure. |
| 1593 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1594 | echo && |
| 1595 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1596 | elif test -f "$ac_srcdir/configure"; then |
| 1597 | echo && |
| 1598 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1599 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1600 | $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] | 1601 | fi || ac_status=$? |
| 1602 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1603 | done |
| 1604 | fi |
| 1605 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1606 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1607 | if $ac_init_version; then |
| 1608 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1609 | configure |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1610 | generated by GNU Autoconf 2.69 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1611 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1612 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1613 | This configure script is free software; the Free Software Foundation |
| 1614 | gives unlimited permission to copy, distribute and modify it. |
| 1615 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1616 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1617 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1618 | |
| 1619 | ## ------------------------ ## |
| 1620 | ## Autoconf initialization. ## |
| 1621 | ## ------------------------ ## |
| 1622 | |
| 1623 | # ac_fn_c_try_compile LINENO |
| 1624 | # -------------------------- |
| 1625 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1626 | ac_fn_c_try_compile () |
| 1627 | { |
| 1628 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1629 | rm -f conftest.$ac_objext |
| 1630 | if { { ac_try="$ac_compile" |
| 1631 | case "(($ac_try" in |
| 1632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1633 | *) ac_try_echo=$ac_try;; |
| 1634 | esac |
| 1635 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1636 | $as_echo "$ac_try_echo"; } >&5 |
| 1637 | (eval "$ac_compile") 2>conftest.err |
| 1638 | ac_status=$? |
| 1639 | if test -s conftest.err; then |
| 1640 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1641 | cat conftest.er1 >&5 |
| 1642 | mv -f conftest.er1 conftest.err |
| 1643 | fi |
| 1644 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1645 | test $ac_status = 0; } && { |
| 1646 | test -z "$ac_c_werror_flag" || |
| 1647 | test ! -s conftest.err |
| 1648 | } && test -s conftest.$ac_objext; then : |
| 1649 | ac_retval=0 |
| 1650 | else |
| 1651 | $as_echo "$as_me: failed program was:" >&5 |
| 1652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1653 | |
| 1654 | ac_retval=1 |
| 1655 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1656 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1657 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1658 | |
| 1659 | } # ac_fn_c_try_compile |
| 1660 | |
| 1661 | # ac_fn_c_try_link LINENO |
| 1662 | # ----------------------- |
| 1663 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1664 | ac_fn_c_try_link () |
| 1665 | { |
| 1666 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1667 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1668 | if { { ac_try="$ac_link" |
| 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_link") 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_exeext && { |
| 1687 | test "$cross_compiling" = yes || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1688 | test -x conftest$ac_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1689 | }; then : |
| 1690 | ac_retval=0 |
| 1691 | else |
| 1692 | $as_echo "$as_me: failed program was:" >&5 |
| 1693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1694 | |
| 1695 | ac_retval=1 |
| 1696 | fi |
| 1697 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1698 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1699 | # interfere with the next link command; also delete a directory that is |
| 1700 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1701 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1702 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1703 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1704 | |
| 1705 | } # ac_fn_c_try_link |
| 1706 | |
| 1707 | # ac_fn_c_try_cpp LINENO |
| 1708 | # ---------------------- |
| 1709 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1710 | ac_fn_c_try_cpp () |
| 1711 | { |
| 1712 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1713 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1714 | case "(($ac_try" in |
| 1715 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1716 | *) ac_try_echo=$ac_try;; |
| 1717 | esac |
| 1718 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1719 | $as_echo "$ac_try_echo"; } >&5 |
| 1720 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1721 | ac_status=$? |
| 1722 | if test -s conftest.err; then |
| 1723 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1724 | cat conftest.er1 >&5 |
| 1725 | mv -f conftest.er1 conftest.err |
| 1726 | fi |
| 1727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1728 | test $ac_status = 0; } > conftest.i && { |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1729 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1730 | test ! -s conftest.err |
| 1731 | }; then : |
| 1732 | ac_retval=0 |
| 1733 | else |
| 1734 | $as_echo "$as_me: failed program was:" >&5 |
| 1735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1736 | |
| 1737 | ac_retval=1 |
| 1738 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1739 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1740 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1741 | |
| 1742 | } # ac_fn_c_try_cpp |
| 1743 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1744 | # ac_fn_c_try_run LINENO |
| 1745 | # ---------------------- |
| 1746 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1747 | # that executables *can* be run. |
| 1748 | ac_fn_c_try_run () |
| 1749 | { |
| 1750 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1751 | if { { ac_try="$ac_link" |
| 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_link") 2>&5 |
| 1759 | ac_status=$? |
| 1760 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1761 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1762 | { { case "(($ac_try" in |
| 1763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1764 | *) ac_try_echo=$ac_try;; |
| 1765 | esac |
| 1766 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1767 | $as_echo "$ac_try_echo"; } >&5 |
| 1768 | (eval "$ac_try") 2>&5 |
| 1769 | ac_status=$? |
| 1770 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1771 | test $ac_status = 0; }; }; then : |
| 1772 | ac_retval=0 |
| 1773 | else |
| 1774 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1775 | $as_echo "$as_me: failed program was:" >&5 |
| 1776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1777 | |
| 1778 | ac_retval=$ac_status |
| 1779 | fi |
| 1780 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1781 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1782 | as_fn_set_status $ac_retval |
| 1783 | |
| 1784 | } # ac_fn_c_try_run |
| 1785 | |
| 1786 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1787 | # ------------------------------------------- |
| 1788 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1789 | # variable VAR accordingly. |
| 1790 | ac_fn_c_check_type () |
| 1791 | { |
| 1792 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1794 | $as_echo_n "checking for $2... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1795 | if eval \${$3+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1796 | $as_echo_n "(cached) " >&6 |
| 1797 | else |
| 1798 | eval "$3=no" |
| 1799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1800 | /* end confdefs.h. */ |
| 1801 | $4 |
| 1802 | int |
| 1803 | main () |
| 1804 | { |
| 1805 | if (sizeof ($2)) |
| 1806 | return 0; |
| 1807 | ; |
| 1808 | return 0; |
| 1809 | } |
| 1810 | _ACEOF |
| 1811 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1813 | /* end confdefs.h. */ |
| 1814 | $4 |
| 1815 | int |
| 1816 | main () |
| 1817 | { |
| 1818 | if (sizeof (($2))) |
| 1819 | return 0; |
| 1820 | ; |
| 1821 | return 0; |
| 1822 | } |
| 1823 | _ACEOF |
| 1824 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1825 | |
| 1826 | else |
| 1827 | eval "$3=yes" |
| 1828 | fi |
| 1829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1830 | fi |
| 1831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1832 | fi |
| 1833 | eval ac_res=\$$3 |
| 1834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1835 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1836 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1837 | |
| 1838 | } # ac_fn_c_check_type |
| 1839 | |
| 1840 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1841 | # ------------------------------------------------------- |
| 1842 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1843 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1844 | ac_fn_c_check_header_compile () |
| 1845 | { |
| 1846 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1848 | $as_echo_n "checking for $2... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1849 | if eval \${$3+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1850 | $as_echo_n "(cached) " >&6 |
| 1851 | else |
| 1852 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1853 | /* end confdefs.h. */ |
| 1854 | $4 |
| 1855 | #include <$2> |
| 1856 | _ACEOF |
| 1857 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1858 | eval "$3=yes" |
| 1859 | else |
| 1860 | eval "$3=no" |
| 1861 | fi |
| 1862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1863 | fi |
| 1864 | eval ac_res=\$$3 |
| 1865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1866 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1867 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1868 | |
| 1869 | } # ac_fn_c_check_header_compile |
| 1870 | |
| 1871 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1872 | # ---------------------------------- |
| 1873 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1874 | ac_fn_c_check_func () |
| 1875 | { |
| 1876 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1878 | $as_echo_n "checking for $2... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1879 | if eval \${$3+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1880 | $as_echo_n "(cached) " >&6 |
| 1881 | else |
| 1882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1883 | /* end confdefs.h. */ |
| 1884 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1885 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1886 | #define $2 innocuous_$2 |
| 1887 | |
| 1888 | /* System header to define __stub macros and hopefully few prototypes, |
| 1889 | which can conflict with char $2 (); below. |
| 1890 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1891 | <limits.h> exists even on freestanding compilers. */ |
| 1892 | |
| 1893 | #ifdef __STDC__ |
| 1894 | # include <limits.h> |
| 1895 | #else |
| 1896 | # include <assert.h> |
| 1897 | #endif |
| 1898 | |
| 1899 | #undef $2 |
| 1900 | |
| 1901 | /* Override any GCC internal prototype to avoid an error. |
| 1902 | Use char because int might match the return type of a GCC |
| 1903 | builtin and then its argument prototype would still apply. */ |
| 1904 | #ifdef __cplusplus |
| 1905 | extern "C" |
| 1906 | #endif |
| 1907 | char $2 (); |
| 1908 | /* The GNU C library defines this for functions which it implements |
| 1909 | to always fail with ENOSYS. Some functions are actually named |
| 1910 | something starting with __ and the normal name is an alias. */ |
| 1911 | #if defined __stub_$2 || defined __stub___$2 |
| 1912 | choke me |
| 1913 | #endif |
| 1914 | |
| 1915 | int |
| 1916 | main () |
| 1917 | { |
| 1918 | return $2 (); |
| 1919 | ; |
| 1920 | return 0; |
| 1921 | } |
| 1922 | _ACEOF |
| 1923 | if ac_fn_c_try_link "$LINENO"; then : |
| 1924 | eval "$3=yes" |
| 1925 | else |
| 1926 | eval "$3=no" |
| 1927 | fi |
| 1928 | rm -f core conftest.err conftest.$ac_objext \ |
| 1929 | conftest$ac_exeext conftest.$ac_ext |
| 1930 | fi |
| 1931 | eval ac_res=\$$3 |
| 1932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1933 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1934 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1935 | |
| 1936 | } # ac_fn_c_check_func |
| 1937 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1938 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1939 | # ------------------------------------------------------- |
| 1940 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1941 | # the include files in INCLUDES and setting the cache variable VAR |
| 1942 | # accordingly. |
| 1943 | ac_fn_c_check_header_mongrel () |
| 1944 | { |
| 1945 | 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] | 1946 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1948 | $as_echo_n "checking for $2... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1949 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1950 | $as_echo_n "(cached) " >&6 |
| 1951 | fi |
| 1952 | eval ac_res=\$$3 |
| 1953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1954 | $as_echo "$ac_res" >&6; } |
| 1955 | else |
| 1956 | # Is the header compilable? |
| 1957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1958 | $as_echo_n "checking $2 usability... " >&6; } |
| 1959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1960 | /* end confdefs.h. */ |
| 1961 | $4 |
| 1962 | #include <$2> |
| 1963 | _ACEOF |
| 1964 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1965 | ac_header_compiler=yes |
| 1966 | else |
| 1967 | ac_header_compiler=no |
| 1968 | fi |
| 1969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1971 | $as_echo "$ac_header_compiler" >&6; } |
| 1972 | |
| 1973 | # Is the header present? |
| 1974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1975 | $as_echo_n "checking $2 presence... " >&6; } |
| 1976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1977 | /* end confdefs.h. */ |
| 1978 | #include <$2> |
| 1979 | _ACEOF |
| 1980 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1981 | ac_header_preproc=yes |
| 1982 | else |
| 1983 | ac_header_preproc=no |
| 1984 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 1985 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1987 | $as_echo "$ac_header_preproc" >&6; } |
| 1988 | |
| 1989 | # So? What about this header? |
| 1990 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1991 | yes:no: ) |
| 1992 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1993 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1994 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1995 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1996 | ;; |
| 1997 | no:yes:* ) |
| 1998 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1999 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2000 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2001 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2002 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2003 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2004 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2005 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2006 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2007 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2008 | ;; |
| 2009 | esac |
| 2010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2011 | $as_echo_n "checking for $2... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2012 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2013 | $as_echo_n "(cached) " >&6 |
| 2014 | else |
| 2015 | eval "$3=\$ac_header_compiler" |
| 2016 | fi |
| 2017 | eval ac_res=\$$3 |
| 2018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2019 | $as_echo "$ac_res" >&6; } |
| 2020 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2021 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2022 | |
| 2023 | } # ac_fn_c_check_header_mongrel |
| 2024 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2025 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2026 | # -------------------------------------------- |
| 2027 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2028 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2029 | # computed |
| 2030 | ac_fn_c_compute_int () |
| 2031 | { |
| 2032 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2033 | if test "$cross_compiling" = yes; then |
| 2034 | # Depending upon the size, compute the lo and hi bounds. |
| 2035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2036 | /* end confdefs.h. */ |
| 2037 | $4 |
| 2038 | int |
| 2039 | main () |
| 2040 | { |
| 2041 | static int test_array [1 - 2 * !(($2) >= 0)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2042 | test_array [0] = 0; |
| 2043 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2044 | |
| 2045 | ; |
| 2046 | return 0; |
| 2047 | } |
| 2048 | _ACEOF |
| 2049 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2050 | ac_lo=0 ac_mid=0 |
| 2051 | while :; do |
| 2052 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2053 | /* end confdefs.h. */ |
| 2054 | $4 |
| 2055 | int |
| 2056 | main () |
| 2057 | { |
| 2058 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2059 | test_array [0] = 0; |
| 2060 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2061 | |
| 2062 | ; |
| 2063 | return 0; |
| 2064 | } |
| 2065 | _ACEOF |
| 2066 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2067 | ac_hi=$ac_mid; break |
| 2068 | else |
| 2069 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2070 | if test $ac_lo -le $ac_mid; then |
| 2071 | ac_lo= ac_hi= |
| 2072 | break |
| 2073 | fi |
| 2074 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2075 | fi |
| 2076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2077 | done |
| 2078 | else |
| 2079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2080 | /* end confdefs.h. */ |
| 2081 | $4 |
| 2082 | int |
| 2083 | main () |
| 2084 | { |
| 2085 | static int test_array [1 - 2 * !(($2) < 0)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2086 | test_array [0] = 0; |
| 2087 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2088 | |
| 2089 | ; |
| 2090 | return 0; |
| 2091 | } |
| 2092 | _ACEOF |
| 2093 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2094 | ac_hi=-1 ac_mid=-1 |
| 2095 | while :; do |
| 2096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2097 | /* end confdefs.h. */ |
| 2098 | $4 |
| 2099 | int |
| 2100 | main () |
| 2101 | { |
| 2102 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2103 | test_array [0] = 0; |
| 2104 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2105 | |
| 2106 | ; |
| 2107 | return 0; |
| 2108 | } |
| 2109 | _ACEOF |
| 2110 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2111 | ac_lo=$ac_mid; break |
| 2112 | else |
| 2113 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2114 | if test $ac_mid -le $ac_hi; then |
| 2115 | ac_lo= ac_hi= |
| 2116 | break |
| 2117 | fi |
| 2118 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2119 | fi |
| 2120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2121 | done |
| 2122 | else |
| 2123 | ac_lo= ac_hi= |
| 2124 | fi |
| 2125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2126 | fi |
| 2127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2128 | # Binary search between lo and hi bounds. |
| 2129 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2130 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2132 | /* end confdefs.h. */ |
| 2133 | $4 |
| 2134 | int |
| 2135 | main () |
| 2136 | { |
| 2137 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2138 | test_array [0] = 0; |
| 2139 | return test_array [0]; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2140 | |
| 2141 | ; |
| 2142 | return 0; |
| 2143 | } |
| 2144 | _ACEOF |
| 2145 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2146 | ac_hi=$ac_mid |
| 2147 | else |
| 2148 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2149 | fi |
| 2150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2151 | done |
| 2152 | case $ac_lo in #(( |
| 2153 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2154 | '') ac_retval=1 ;; |
| 2155 | esac |
| 2156 | else |
| 2157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2158 | /* end confdefs.h. */ |
| 2159 | $4 |
| 2160 | static long int longval () { return $2; } |
| 2161 | static unsigned long int ulongval () { return $2; } |
| 2162 | #include <stdio.h> |
| 2163 | #include <stdlib.h> |
| 2164 | int |
| 2165 | main () |
| 2166 | { |
| 2167 | |
| 2168 | FILE *f = fopen ("conftest.val", "w"); |
| 2169 | if (! f) |
| 2170 | return 1; |
| 2171 | if (($2) < 0) |
| 2172 | { |
| 2173 | long int i = longval (); |
| 2174 | if (i != ($2)) |
| 2175 | return 1; |
| 2176 | fprintf (f, "%ld", i); |
| 2177 | } |
| 2178 | else |
| 2179 | { |
| 2180 | unsigned long int i = ulongval (); |
| 2181 | if (i != ($2)) |
| 2182 | return 1; |
| 2183 | fprintf (f, "%lu", i); |
| 2184 | } |
| 2185 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2186 | on some platforms. */ |
| 2187 | return ferror (f) || fclose (f) != 0; |
| 2188 | |
| 2189 | ; |
| 2190 | return 0; |
| 2191 | } |
| 2192 | _ACEOF |
| 2193 | if ac_fn_c_try_run "$LINENO"; then : |
| 2194 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2195 | else |
| 2196 | ac_retval=1 |
| 2197 | fi |
| 2198 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2199 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2200 | rm -f conftest.val |
| 2201 | |
| 2202 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2203 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2204 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2205 | |
| 2206 | } # ac_fn_c_compute_int |
| 2207 | |
| 2208 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2209 | # ---------------------------------------------------- |
| 2210 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2211 | # INCLUDES, setting cache variable VAR accordingly. |
| 2212 | ac_fn_c_check_member () |
| 2213 | { |
| 2214 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2216 | $as_echo_n "checking for $2.$3... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2217 | if eval \${$4+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2218 | $as_echo_n "(cached) " >&6 |
| 2219 | else |
| 2220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2221 | /* end confdefs.h. */ |
| 2222 | $5 |
| 2223 | int |
| 2224 | main () |
| 2225 | { |
| 2226 | static $2 ac_aggr; |
| 2227 | if (ac_aggr.$3) |
| 2228 | return 0; |
| 2229 | ; |
| 2230 | return 0; |
| 2231 | } |
| 2232 | _ACEOF |
| 2233 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2234 | eval "$4=yes" |
| 2235 | else |
| 2236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2237 | /* end confdefs.h. */ |
| 2238 | $5 |
| 2239 | int |
| 2240 | main () |
| 2241 | { |
| 2242 | static $2 ac_aggr; |
| 2243 | if (sizeof ac_aggr.$3) |
| 2244 | return 0; |
| 2245 | ; |
| 2246 | return 0; |
| 2247 | } |
| 2248 | _ACEOF |
| 2249 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2250 | eval "$4=yes" |
| 2251 | else |
| 2252 | eval "$4=no" |
| 2253 | fi |
| 2254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2255 | fi |
| 2256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2257 | fi |
| 2258 | eval ac_res=\$$4 |
| 2259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2260 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2261 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2262 | |
| 2263 | } # ac_fn_c_check_member |
| 2264 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2265 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2266 | # --------------------------------------------- |
| 2267 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2268 | # accordingly. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2269 | ac_fn_c_check_decl () |
| 2270 | { |
| 2271 | 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] | 2272 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2273 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2275 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2276 | if eval \${$3+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2277 | $as_echo_n "(cached) " >&6 |
| 2278 | else |
| 2279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2280 | /* end confdefs.h. */ |
| 2281 | $4 |
| 2282 | int |
| 2283 | main () |
| 2284 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2285 | #ifndef $as_decl_name |
| 2286 | #ifdef __cplusplus |
| 2287 | (void) $as_decl_use; |
| 2288 | #else |
| 2289 | (void) $as_decl_name; |
| 2290 | #endif |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2291 | #endif |
| 2292 | |
| 2293 | ; |
| 2294 | return 0; |
| 2295 | } |
| 2296 | _ACEOF |
| 2297 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2298 | eval "$3=yes" |
| 2299 | else |
| 2300 | eval "$3=no" |
| 2301 | fi |
| 2302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2303 | fi |
| 2304 | eval ac_res=\$$3 |
| 2305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2306 | $as_echo "$ac_res" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2307 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2308 | |
| 2309 | } # ac_fn_c_check_decl |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2310 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2311 | This file contains any messages produced by compilers while |
| 2312 | running configure, to aid debugging if configure makes a mistake. |
| 2313 | |
| 2314 | It was created by $as_me, which was |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2315 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2316 | |
| 2317 | $ $0 $@ |
| 2318 | |
| 2319 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2320 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2321 | { |
| 2322 | cat <<_ASUNAME |
| 2323 | ## --------- ## |
| 2324 | ## Platform. ## |
| 2325 | ## --------- ## |
| 2326 | |
| 2327 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2328 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2329 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2330 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2331 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2332 | |
| 2333 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2334 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2335 | |
| 2336 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2337 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2338 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2339 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2340 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2341 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2342 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2343 | |
| 2344 | _ASUNAME |
| 2345 | |
| 2346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2347 | for as_dir in $PATH |
| 2348 | do |
| 2349 | IFS=$as_save_IFS |
| 2350 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2351 | $as_echo "PATH: $as_dir" |
| 2352 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2353 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2354 | |
| 2355 | } >&5 |
| 2356 | |
| 2357 | cat >&5 <<_ACEOF |
| 2358 | |
| 2359 | |
| 2360 | ## ----------- ## |
| 2361 | ## Core tests. ## |
| 2362 | ## ----------- ## |
| 2363 | |
| 2364 | _ACEOF |
| 2365 | |
| 2366 | |
| 2367 | # Keep a trace of the command line. |
| 2368 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2369 | # Strip out --silent because we don't want to record it for future runs. |
| 2370 | # Also quote any args containing shell meta-characters. |
| 2371 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2372 | ac_configure_args= |
| 2373 | ac_configure_args0= |
| 2374 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2375 | ac_must_keep_next=false |
| 2376 | for ac_pass in 1 2 |
| 2377 | do |
| 2378 | for ac_arg |
| 2379 | do |
| 2380 | case $ac_arg in |
| 2381 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2382 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2383 | | -silent | --silent | --silen | --sile | --sil) |
| 2384 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2385 | *\'*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2386 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2387 | esac |
| 2388 | case $ac_pass in |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2389 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2390 | 2) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2391 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2392 | if test $ac_must_keep_next = true; then |
| 2393 | ac_must_keep_next=false # Got value, back to normal. |
| 2394 | else |
| 2395 | case $ac_arg in |
| 2396 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2397 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2398 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2399 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2400 | case "$ac_configure_args0 " in |
| 2401 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2402 | esac |
| 2403 | ;; |
| 2404 | -* ) ac_must_keep_next=true ;; |
| 2405 | esac |
| 2406 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2407 | as_fn_append ac_configure_args " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2408 | ;; |
| 2409 | esac |
| 2410 | done |
| 2411 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2412 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2413 | { ac_configure_args1=; unset ac_configure_args1;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2414 | |
| 2415 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2416 | # config.log. We remove comments because anyway the quotes in there |
| 2417 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2418 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2419 | # 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] | 2420 | trap 'exit_status=$? |
| 2421 | # Save into config.log some information that might help in debugging. |
| 2422 | { |
| 2423 | echo |
| 2424 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2425 | $as_echo "## ---------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2426 | ## Cache variables. ## |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2427 | ## ---------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2428 | echo |
| 2429 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2430 | ( |
| 2431 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2432 | eval ac_val=\$$ac_var |
| 2433 | case $ac_val in #( |
| 2434 | *${as_nl}*) |
| 2435 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2436 | *_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] | 2437 | $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] | 2438 | esac |
| 2439 | case $ac_var in #( |
| 2440 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2441 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2442 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2443 | esac ;; |
| 2444 | esac |
| 2445 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2446 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2447 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2448 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2449 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2450 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2451 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2452 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2453 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2454 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2455 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2456 | esac | |
| 2457 | sort |
| 2458 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2459 | echo |
| 2460 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2461 | $as_echo "## ----------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2462 | ## Output variables. ## |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2463 | ## ----------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2464 | echo |
| 2465 | for ac_var in $ac_subst_vars |
| 2466 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2467 | eval ac_val=\$$ac_var |
| 2468 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2469 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2470 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2471 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2472 | done | sort |
| 2473 | echo |
| 2474 | |
| 2475 | if test -n "$ac_subst_files"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2476 | $as_echo "## ------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2477 | ## File substitutions. ## |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2478 | ## ------------------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2479 | echo |
| 2480 | for ac_var in $ac_subst_files |
| 2481 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2482 | eval ac_val=\$$ac_var |
| 2483 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2484 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2485 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2486 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2487 | done | sort |
| 2488 | echo |
| 2489 | fi |
| 2490 | |
| 2491 | if test -s confdefs.h; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2492 | $as_echo "## ----------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2493 | ## confdefs.h. ## |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2494 | ## ----------- ##" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2495 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2496 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2497 | echo |
| 2498 | fi |
| 2499 | test "$ac_signal" != 0 && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2500 | $as_echo "$as_me: caught signal $ac_signal" |
| 2501 | $as_echo "$as_me: exit $exit_status" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2502 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2503 | rm -f core *.core core.conftest.* && |
| 2504 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2505 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2506 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2507 | for ac_signal in 1 2 13 15; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2508 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2509 | done |
| 2510 | ac_signal=0 |
| 2511 | |
| 2512 | # 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] | 2513 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2514 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2515 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2516 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2517 | # Predefined preprocessor variables. |
| 2518 | |
| 2519 | cat >>confdefs.h <<_ACEOF |
| 2520 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2521 | _ACEOF |
| 2522 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2523 | cat >>confdefs.h <<_ACEOF |
| 2524 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2525 | _ACEOF |
| 2526 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2527 | cat >>confdefs.h <<_ACEOF |
| 2528 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2529 | _ACEOF |
| 2530 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2531 | cat >>confdefs.h <<_ACEOF |
| 2532 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2533 | _ACEOF |
| 2534 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2535 | cat >>confdefs.h <<_ACEOF |
| 2536 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2537 | _ACEOF |
| 2538 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2539 | cat >>confdefs.h <<_ACEOF |
| 2540 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2541 | _ACEOF |
| 2542 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2543 | |
| 2544 | # 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] | 2545 | # Prefer an explicitly selected file to automatically selected ones. |
| 2546 | ac_site_file1=NONE |
| 2547 | ac_site_file2=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2548 | if test -n "$CONFIG_SITE"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2549 | # We do not want a PATH search for config.site. |
| 2550 | case $CONFIG_SITE in #(( |
| 2551 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2552 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2553 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2554 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2555 | elif test "x$prefix" != xNONE; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2556 | ac_site_file1=$prefix/share/config.site |
| 2557 | ac_site_file2=$prefix/etc/config.site |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2558 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2559 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2560 | ac_site_file2=$ac_default_prefix/etc/config.site |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2561 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2562 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2563 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2564 | test "x$ac_site_file" = xNONE && continue |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2565 | 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] | 2566 | { $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] | 2567 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2568 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2569 | . "$ac_site_file" \ |
| 2570 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2571 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2572 | as_fn_error $? "failed to load site script $ac_site_file |
| 2573 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2574 | fi |
| 2575 | done |
| 2576 | |
| 2577 | if test -r "$cache_file"; then |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2578 | # Some versions of bash will fail to source /dev/null (special files |
| 2579 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2580 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2581 | { $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] | 2582 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2583 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2584 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2585 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2586 | esac |
| 2587 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2588 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2589 | { $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] | 2590 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2591 | >$cache_file |
| 2592 | fi |
| 2593 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2594 | as_fn_append ac_header_list " stdlib.h" |
| 2595 | as_fn_append ac_header_list " unistd.h" |
| 2596 | as_fn_append ac_header_list " sys/param.h" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2597 | # Check that the precious variables saved in the cache have kept the same |
| 2598 | # value. |
| 2599 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2600 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2601 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2602 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2603 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2604 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2605 | case $ac_old_set,$ac_new_set in |
| 2606 | set,) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2607 | { $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] | 2608 | $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] | 2609 | ac_cache_corrupted=: ;; |
| 2610 | ,set) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2611 | { $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] | 2612 | $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] | 2613 | ac_cache_corrupted=: ;; |
| 2614 | ,);; |
| 2615 | *) |
| 2616 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2617 | # differences in whitespace do not lead to failure. |
| 2618 | ac_old_val_w=`echo x $ac_old_val` |
| 2619 | ac_new_val_w=`echo x $ac_new_val` |
| 2620 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2621 | { $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] | 2622 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2623 | ac_cache_corrupted=: |
| 2624 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2625 | { $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] | 2626 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2627 | eval $ac_var=\$ac_old_val |
| 2628 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2629 | { $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] | 2630 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2631 | { $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] | 2632 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2633 | fi;; |
| 2634 | esac |
| 2635 | # Pass precious variables to config.status. |
| 2636 | if test "$ac_new_set" = set; then |
| 2637 | case $ac_new_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2638 | *\'*) 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] | 2639 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2640 | esac |
| 2641 | case " $ac_configure_args " in |
| 2642 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2643 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2644 | esac |
| 2645 | fi |
| 2646 | done |
| 2647 | if $ac_cache_corrupted; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2648 | { $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] | 2649 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2650 | { $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] | 2651 | $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] | 2652 | 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] | 2653 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2654 | ## -------------------- ## |
| 2655 | ## Main body of script. ## |
| 2656 | ## -------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2657 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2658 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2659 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2660 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2661 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2662 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2663 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2664 | |
| 2665 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2666 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2667 | for ac_dir in config "$srcdir"/config; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2668 | if test -f "$ac_dir/install-sh"; then |
| 2669 | ac_aux_dir=$ac_dir |
| 2670 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2671 | break |
| 2672 | elif test -f "$ac_dir/install.sh"; then |
| 2673 | ac_aux_dir=$ac_dir |
| 2674 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2675 | break |
| 2676 | elif test -f "$ac_dir/shtool"; then |
| 2677 | ac_aux_dir=$ac_dir |
| 2678 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2679 | break |
| 2680 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2681 | done |
| 2682 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2683 | 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] | 2684 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2685 | |
| 2686 | # These three variables are undocumented and unsupported, |
| 2687 | # and are intended to be withdrawn in a future Autoconf release. |
| 2688 | # They can cause serious problems if a builder's source tree is in a directory |
| 2689 | # whose full name contains unusual characters. |
| 2690 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2691 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2692 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2693 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2694 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 2695 | ac_config_headers="$ac_config_headers lib/config.h" |
| 2696 | |
| 2697 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2698 | MCONFIG=./MCONFIG |
| 2699 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2700 | BINARY_TYPE=bin |
| 2701 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 2702 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 2703 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 2704 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 2705 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2706 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 2707 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 2708 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 2709 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 2710 | E2FSPROGS_YEAR=$YEAR |
| 2711 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2712 | E2FSPROGS_YEAR=19$YEAR |
| 2713 | else |
| 2714 | E2FSPROGS_YEAR=20$YEAR |
| 2715 | fi |
| 2716 | |
| 2717 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2718 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 2719 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 2720 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 2721 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 2722 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 2723 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 2724 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 2725 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 2726 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 2727 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 2728 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 2729 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2730 | *) { $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] | 2731 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2732 | esac |
| 2733 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2734 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 2735 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2736 | |
| 2737 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 2738 | |
| 2739 | case $E2FSPROGS_VERSION in |
| 2740 | *-WIP|pre-*) |
Theodore Ts'o | ab06396 | 2008-07-07 16:07:43 -0400 | [diff] [blame] | 2741 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2742 | ;; |
| 2743 | *) |
| 2744 | E2FSPROGS_PKGVER="$base_ver" |
| 2745 | ;; |
| 2746 | esac |
| 2747 | |
| 2748 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2749 | { $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] | 2750 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2751 | { $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] | 2752 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2753 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2754 | |
| 2755 | |
| 2756 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2757 | |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 2758 | WITH_DIET_LIBC= |
| 2759 | |
| 2760 | # Check whether --with-diet-libc was given. |
| 2761 | if test "${with_diet_libc+set}" = set; then : |
| 2762 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 2763 | WITH_DIET_LIBC=yes |
| 2764 | if test -z "$LIBS" |
| 2765 | then |
| 2766 | LIBS="-lcompat" |
| 2767 | else |
| 2768 | LIBS="$LIBS -lcompat" |
| 2769 | fi |
| 2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 |
| 2771 | $as_echo "CC=$CC" >&6; } |
| 2772 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2773 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2774 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2775 | 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] | 2776 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2777 | { $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] | 2778 | $as_echo_n "checking build system type... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2779 | if ${ac_cv_build+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2780 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2781 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2782 | ac_build_alias=$build_alias |
| 2783 | test "x$ac_build_alias" = x && |
| 2784 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2785 | test "x$ac_build_alias" = x && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2786 | 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] | 2787 | 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] | 2788 | 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] | 2789 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2790 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2791 | { $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] | 2792 | $as_echo "$ac_cv_build" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2793 | case $ac_cv_build in |
| 2794 | *-*-*) ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2795 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2796 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2797 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2798 | ac_save_IFS=$IFS; IFS='-' |
| 2799 | set x $ac_cv_build |
| 2800 | shift |
| 2801 | build_cpu=$1 |
| 2802 | build_vendor=$2 |
| 2803 | shift; shift |
| 2804 | # Remember, the first character of IFS is used to create $*, |
| 2805 | # except with old shells: |
| 2806 | build_os=$* |
| 2807 | IFS=$ac_save_IFS |
| 2808 | 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] | 2809 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2810 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2811 | { $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] | 2812 | $as_echo_n "checking host system type... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2813 | if ${ac_cv_host+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2814 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2815 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2816 | if test "x$host_alias" = x; then |
| 2817 | ac_cv_host=$ac_cv_build |
| 2818 | else |
| 2819 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2820 | 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] | 2821 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2822 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2823 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2824 | { $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] | 2825 | $as_echo "$ac_cv_host" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2826 | case $ac_cv_host in |
| 2827 | *-*-*) ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2828 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2829 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2830 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2831 | ac_save_IFS=$IFS; IFS='-' |
| 2832 | set x $ac_cv_host |
| 2833 | shift |
| 2834 | host_cpu=$1 |
| 2835 | host_vendor=$2 |
| 2836 | shift; shift |
| 2837 | # Remember, the first character of IFS is used to create $*, |
| 2838 | # except with old shells: |
| 2839 | host_os=$* |
| 2840 | IFS=$ac_save_IFS |
| 2841 | 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] | 2842 | |
| 2843 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2844 | DLOPEN_LIB='' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2845 | ac_ext=c |
| 2846 | ac_cpp='$CPP $CPPFLAGS' |
| 2847 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2848 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2849 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2850 | if test -n "$ac_tool_prefix"; then |
| 2851 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2852 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2853 | { $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] | 2854 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2855 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2856 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2857 | else |
| 2858 | if test -n "$CC"; then |
| 2859 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2860 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2862 | for as_dir in $PATH |
| 2863 | do |
| 2864 | IFS=$as_save_IFS |
| 2865 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2866 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2867 | 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] | 2868 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2869 | $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] | 2870 | break 2 |
| 2871 | fi |
| 2872 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2873 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2874 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2875 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2876 | fi |
| 2877 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2878 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2879 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2881 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2882 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2884 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2885 | fi |
| 2886 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2887 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2888 | fi |
| 2889 | if test -z "$ac_cv_prog_CC"; then |
| 2890 | ac_ct_CC=$CC |
| 2891 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2892 | set dummy 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_ac_ct_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 | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2897 | else |
| 2898 | if test -n "$ac_ct_CC"; then |
| 2899 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2900 | else |
| 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_ac_ct_CC="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 | |
| 2916 | fi |
| 2917 | fi |
| 2918 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2919 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2920 | { $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] | 2921 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [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 | if test "x$ac_ct_CC" = x; then |
| 2928 | CC="" |
| 2929 | else |
| 2930 | case $cross_compiling:$ac_tool_warned in |
| 2931 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2932 | { $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] | 2933 | $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] | 2934 | ac_tool_warned=yes ;; |
| 2935 | esac |
| 2936 | CC=$ac_ct_CC |
| 2937 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2938 | else |
| 2939 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2940 | fi |
| 2941 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2942 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2943 | if test -n "$ac_tool_prefix"; then |
| 2944 | # 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] | 2945 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2946 | { $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] | 2947 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2948 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2949 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2950 | else |
| 2951 | if test -n "$CC"; then |
| 2952 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2953 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2955 | for as_dir in $PATH |
| 2956 | do |
| 2957 | IFS=$as_save_IFS |
| 2958 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2959 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 2960 | 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] | 2961 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2962 | $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] | 2963 | break 2 |
| 2964 | fi |
| 2965 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2966 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2967 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2968 | |
| 2969 | fi |
| 2970 | fi |
| 2971 | CC=$ac_cv_prog_CC |
| 2972 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2974 | $as_echo "$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2975 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2977 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2978 | fi |
| 2979 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2980 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2981 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2982 | fi |
| 2983 | if test -z "$CC"; then |
| 2984 | # Extract the first word of "cc", so it can be a program name with args. |
| 2985 | set dummy 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 | b0cacab | 2004-11-30 19:00:19 -0500 | [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 | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2994 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2996 | for as_dir in $PATH |
| 2997 | do |
| 2998 | IFS=$as_save_IFS |
| 2999 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3000 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3001 | 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] | 3002 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3003 | ac_prog_rejected=yes |
| 3004 | continue |
| 3005 | fi |
| 3006 | ac_cv_prog_CC="cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3007 | $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] | 3008 | break 2 |
| 3009 | fi |
| 3010 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3011 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3012 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3013 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3014 | if test $ac_prog_rejected = yes; then |
| 3015 | # We found a bogon in the path, so make sure we never use it. |
| 3016 | set dummy $ac_cv_prog_CC |
| 3017 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3018 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3019 | # We chose a different compiler from the bogus one. |
| 3020 | # However, it has the same basename, so the bogon will be chosen |
| 3021 | # first if we set CC to just the basename; use the full file name. |
| 3022 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3023 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3024 | fi |
| 3025 | fi |
| 3026 | fi |
| 3027 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3028 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3029 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3031 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3032 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3034 | $as_echo "no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3035 | fi |
| 3036 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3037 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3038 | fi |
| 3039 | if test -z "$CC"; then |
| 3040 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3041 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3042 | do |
| 3043 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3044 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3045 | { $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] | 3046 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3047 | if ${ac_cv_prog_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3048 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3049 | else |
| 3050 | if test -n "$CC"; then |
| 3051 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3052 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3054 | for as_dir in $PATH |
| 3055 | do |
| 3056 | IFS=$as_save_IFS |
| 3057 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3058 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3059 | 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] | 3060 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3061 | $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] | 3062 | break 2 |
| 3063 | fi |
| 3064 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3065 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3066 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3067 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3068 | fi |
| 3069 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3070 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3071 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3073 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3074 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3076 | $as_echo "no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3077 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3078 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3079 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3080 | test -n "$CC" && break |
| 3081 | done |
| 3082 | fi |
| 3083 | if test -z "$CC"; then |
| 3084 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3085 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3086 | do |
| 3087 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3088 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3089 | { $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] | 3090 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3091 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3092 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3093 | else |
| 3094 | if test -n "$ac_ct_CC"; then |
| 3095 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3096 | else |
| 3097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3098 | for as_dir in $PATH |
| 3099 | do |
| 3100 | IFS=$as_save_IFS |
| 3101 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3102 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3103 | 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] | 3104 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3105 | $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] | 3106 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3107 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3108 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3109 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3110 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3111 | |
| 3112 | fi |
| 3113 | fi |
| 3114 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3115 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3116 | { $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] | 3117 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3118 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3120 | $as_echo "no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3121 | fi |
| 3122 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3123 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3124 | test -n "$ac_ct_CC" && break |
| 3125 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3126 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3127 | if test "x$ac_ct_CC" = x; then |
| 3128 | CC="" |
| 3129 | else |
| 3130 | case $cross_compiling:$ac_tool_warned in |
| 3131 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3132 | { $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] | 3133 | $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] | 3134 | ac_tool_warned=yes ;; |
| 3135 | esac |
| 3136 | CC=$ac_ct_CC |
| 3137 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3138 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3139 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3140 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3141 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3142 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3143 | 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] | 3144 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3145 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3146 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3147 | |
| 3148 | # Provide some information about the compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3149 | $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] | 3150 | set X $ac_compile |
| 3151 | ac_compiler=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3152 | for ac_option in --version -v -V -qversion; do |
| 3153 | { { ac_try="$ac_compiler $ac_option >&5" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3154 | case "(($ac_try" in |
| 3155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3156 | *) ac_try_echo=$ac_try;; |
| 3157 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3158 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3159 | $as_echo "$ac_try_echo"; } >&5 |
| 3160 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3161 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3162 | if test -s conftest.err; then |
| 3163 | sed '10a\ |
| 3164 | ... rest of stderr output deleted ... |
| 3165 | 10q' conftest.err >conftest.er1 |
| 3166 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3167 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3168 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3169 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3170 | test $ac_status = 0; } |
| 3171 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3172 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3174 | /* end confdefs.h. */ |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3175 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3176 | int |
| 3177 | main () |
| 3178 | { |
| 3179 | |
| 3180 | ; |
| 3181 | return 0; |
| 3182 | } |
| 3183 | _ACEOF |
| 3184 | ac_clean_files_save=$ac_clean_files |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3185 | 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] | 3186 | # Try to create an executable without -o first, disregard a.out. |
| 3187 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3188 | # of exeext. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3190 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3191 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3192 | |
| 3193 | # The possible output files: |
| 3194 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3195 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3196 | ac_rmfiles= |
| 3197 | for ac_file in $ac_files |
| 3198 | do |
| 3199 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3200 | *.$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] | 3201 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3202 | esac |
| 3203 | done |
| 3204 | rm -f $ac_rmfiles |
| 3205 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3206 | if { { ac_try="$ac_link_default" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3207 | case "(($ac_try" in |
| 3208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3209 | *) ac_try_echo=$ac_try;; |
| 3210 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3211 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3212 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3213 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3214 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3215 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3216 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3217 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3218 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3219 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3220 | # so that the user can short-circuit this test for compilers unknown to |
| 3221 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3222 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3223 | do |
| 3224 | test -f "$ac_file" || continue |
| 3225 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3226 | *.$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] | 3227 | ;; |
| 3228 | [ab].out ) |
| 3229 | # We found the default executable, but exeext='' is most |
| 3230 | # certainly right. |
| 3231 | break;; |
| 3232 | *.* ) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3233 | 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] | 3234 | then :; else |
| 3235 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3236 | fi |
| 3237 | # We set ac_cv_exeext here because the later test for it is not |
| 3238 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3239 | # argument, so we may need to know it at that point already. |
| 3240 | # Even if this section looks crufty: it has the advantage of |
| 3241 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3242 | break;; |
| 3243 | * ) |
| 3244 | break;; |
| 3245 | esac |
| 3246 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3247 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3248 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3249 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3250 | ac_file='' |
| 3251 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3252 | if test -z "$ac_file"; then : |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3254 | $as_echo "no" >&6; } |
| 3255 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3257 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3258 | { { $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] | 3259 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3260 | as_fn_error 77 "C compiler cannot create executables |
| 3261 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3262 | else |
| 3263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3264 | $as_echo "yes" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3265 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3267 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3269 | $as_echo "$ac_file" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3270 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3271 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3272 | 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] | 3273 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3274 | { $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] | 3275 | $as_echo_n "checking for suffix of executables... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3276 | if { { ac_try="$ac_link" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3277 | case "(($ac_try" in |
| 3278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3279 | *) ac_try_echo=$ac_try;; |
| 3280 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3281 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3282 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3283 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3284 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3285 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3286 | test $ac_status = 0; }; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3287 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3288 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3289 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3290 | # `rm'. |
| 3291 | for ac_file in conftest.exe conftest conftest.*; do |
| 3292 | test -f "$ac_file" || continue |
| 3293 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3294 | *.$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] | 3295 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3296 | break;; |
| 3297 | * ) break;; |
| 3298 | esac |
| 3299 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3300 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3301 | { { $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] | 3302 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3303 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3304 | See \`config.log' for more details" "$LINENO" 5; } |
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 | rm -f conftest conftest$ac_cv_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3307 | { $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] | 3308 | $as_echo "$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3309 | |
| 3310 | rm -f conftest.$ac_ext |
| 3311 | EXEEXT=$ac_cv_exeext |
| 3312 | ac_exeext=$EXEEXT |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3314 | /* end confdefs.h. */ |
| 3315 | #include <stdio.h> |
| 3316 | int |
| 3317 | main () |
| 3318 | { |
| 3319 | FILE *f = fopen ("conftest.out", "w"); |
| 3320 | return ferror (f) || fclose (f) != 0; |
| 3321 | |
| 3322 | ; |
| 3323 | return 0; |
| 3324 | } |
| 3325 | _ACEOF |
| 3326 | ac_clean_files="$ac_clean_files conftest.out" |
| 3327 | # Check that the compiler produces executables we can run. If not, either |
| 3328 | # the compiler is broken, or we cross compile. |
| 3329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3330 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3331 | if test "$cross_compiling" != yes; then |
| 3332 | { { ac_try="$ac_link" |
| 3333 | case "(($ac_try" in |
| 3334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3335 | *) ac_try_echo=$ac_try;; |
| 3336 | esac |
| 3337 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3338 | $as_echo "$ac_try_echo"; } >&5 |
| 3339 | (eval "$ac_link") 2>&5 |
| 3340 | ac_status=$? |
| 3341 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3342 | test $ac_status = 0; } |
| 3343 | if { ac_try='./conftest$ac_cv_exeext' |
| 3344 | { { case "(($ac_try" in |
| 3345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3346 | *) ac_try_echo=$ac_try;; |
| 3347 | esac |
| 3348 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3349 | $as_echo "$ac_try_echo"; } >&5 |
| 3350 | (eval "$ac_try") 2>&5 |
| 3351 | ac_status=$? |
| 3352 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3353 | test $ac_status = 0; }; }; then |
| 3354 | cross_compiling=no |
| 3355 | else |
| 3356 | if test "$cross_compiling" = maybe; then |
| 3357 | cross_compiling=yes |
| 3358 | else |
| 3359 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3360 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3361 | as_fn_error $? "cannot run C compiled programs. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3362 | If you meant to cross compile, use \`--host'. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3363 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3364 | fi |
| 3365 | fi |
| 3366 | fi |
| 3367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3368 | $as_echo "$cross_compiling" >&6; } |
| 3369 | |
| 3370 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3371 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3372 | { $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] | 3373 | $as_echo_n "checking for suffix of object files... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3374 | if ${ac_cv_objext+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3375 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3376 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3378 | /* end confdefs.h. */ |
| 3379 | |
| 3380 | int |
| 3381 | main () |
| 3382 | { |
| 3383 | |
| 3384 | ; |
| 3385 | return 0; |
| 3386 | } |
| 3387 | _ACEOF |
| 3388 | rm -f conftest.o conftest.obj |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3389 | if { { ac_try="$ac_compile" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3390 | case "(($ac_try" in |
| 3391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3392 | *) ac_try_echo=$ac_try;; |
| 3393 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3394 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3395 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3396 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3397 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3398 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3399 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3400 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3401 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3402 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3403 | *.$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] | 3404 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3405 | break;; |
| 3406 | esac |
| 3407 | done |
| 3408 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3409 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3411 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3412 | { { $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] | 3413 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3414 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3415 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3416 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3417 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3418 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3419 | { $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] | 3420 | $as_echo "$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3421 | OBJEXT=$ac_cv_objext |
| 3422 | ac_objext=$OBJEXT |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3423 | { $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] | 3424 | $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] | 3425 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3426 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3427 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3429 | /* end confdefs.h. */ |
| 3430 | |
| 3431 | int |
| 3432 | main () |
| 3433 | { |
| 3434 | #ifndef __GNUC__ |
| 3435 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3436 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3437 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3438 | ; |
| 3439 | return 0; |
| 3440 | } |
| 3441 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3442 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3443 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3444 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3445 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3446 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3448 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3449 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3450 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3451 | { $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] | 3452 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3453 | if test $ac_compiler_gnu = yes; then |
| 3454 | GCC=yes |
| 3455 | else |
| 3456 | GCC= |
| 3457 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3458 | ac_test_CFLAGS=${CFLAGS+set} |
| 3459 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3460 | { $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] | 3461 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3462 | if ${ac_cv_prog_cc_g+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3463 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3464 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3465 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3466 | ac_c_werror_flag=yes |
| 3467 | ac_cv_prog_cc_g=no |
| 3468 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3470 | /* end confdefs.h. */ |
| 3471 | |
| 3472 | int |
| 3473 | main () |
| 3474 | { |
| 3475 | |
| 3476 | ; |
| 3477 | return 0; |
| 3478 | } |
| 3479 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3480 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3481 | ac_cv_prog_cc_g=yes |
| 3482 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3483 | CFLAGS="" |
| 3484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3485 | /* end confdefs.h. */ |
| 3486 | |
| 3487 | int |
| 3488 | main () |
| 3489 | { |
| 3490 | |
| 3491 | ; |
| 3492 | return 0; |
| 3493 | } |
| 3494 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3495 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3496 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3497 | else |
| 3498 | ac_c_werror_flag=$ac_save_c_werror_flag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3499 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3501 | /* end confdefs.h. */ |
| 3502 | |
| 3503 | int |
| 3504 | main () |
| 3505 | { |
| 3506 | |
| 3507 | ; |
| 3508 | return 0; |
| 3509 | } |
| 3510 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3511 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3512 | ac_cv_prog_cc_g=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3513 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3515 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3517 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3519 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3520 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3521 | { $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] | 3522 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3523 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3524 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3525 | elif test $ac_cv_prog_cc_g = yes; then |
| 3526 | if test "$GCC" = yes; then |
| 3527 | CFLAGS="-g -O2" |
| 3528 | else |
| 3529 | CFLAGS="-g" |
| 3530 | fi |
| 3531 | else |
| 3532 | if test "$GCC" = yes; then |
| 3533 | CFLAGS="-O2" |
| 3534 | else |
| 3535 | CFLAGS= |
| 3536 | fi |
| 3537 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3538 | { $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] | 3539 | $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] | 3540 | if ${ac_cv_prog_cc_c89+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3541 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3542 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3543 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3544 | ac_save_CC=$CC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3546 | /* end confdefs.h. */ |
| 3547 | #include <stdarg.h> |
| 3548 | #include <stdio.h> |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3549 | struct stat; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3550 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3551 | struct buf { int x; }; |
| 3552 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3553 | static char *e (p, i) |
| 3554 | char **p; |
| 3555 | int i; |
| 3556 | { |
| 3557 | return p[i]; |
| 3558 | } |
| 3559 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3560 | { |
| 3561 | char *s; |
| 3562 | va_list v; |
| 3563 | va_start (v,p); |
| 3564 | s = g (p, va_arg (v,int)); |
| 3565 | va_end (v); |
| 3566 | return s; |
| 3567 | } |
| 3568 | |
| 3569 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3570 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3571 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3572 | 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] | 3573 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3574 | 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] | 3575 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3576 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3577 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3578 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3579 | inside strings and character constants. */ |
| 3580 | #define FOO(x) 'x' |
| 3581 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3582 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3583 | int test (int i, double x); |
| 3584 | struct s1 {int (*f) (int a);}; |
| 3585 | struct s2 {int (*f) (double a);}; |
| 3586 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3587 | int argc; |
| 3588 | char **argv; |
| 3589 | int |
| 3590 | main () |
| 3591 | { |
| 3592 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3593 | ; |
| 3594 | return 0; |
| 3595 | } |
| 3596 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3597 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3598 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3599 | do |
| 3600 | CC="$ac_save_CC $ac_arg" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3601 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3602 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3603 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3604 | rm -f core conftest.err conftest.$ac_objext |
| 3605 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3606 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3607 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3608 | CC=$ac_save_CC |
| 3609 | |
| 3610 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3611 | # AC_CACHE_VAL |
| 3612 | case "x$ac_cv_prog_cc_c89" in |
| 3613 | x) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3615 | $as_echo "none needed" >&6; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3616 | xno) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3618 | $as_echo "unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3619 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3620 | CC="$CC $ac_cv_prog_cc_c89" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3621 | { $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] | 3622 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3623 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3624 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3625 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3626 | fi |
| 3627 | |
| 3628 | ac_ext=c |
| 3629 | ac_cpp='$CPP $CPPFLAGS' |
| 3630 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3631 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3632 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3633 | |
| 3634 | |
| 3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 3636 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3637 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3638 | $as_echo_n "(cached) " >&6 |
| 3639 | else |
| 3640 | ac_check_lib_save_LIBS=$LIBS |
| 3641 | LIBS="-ldl $LIBS" |
| 3642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3643 | /* end confdefs.h. */ |
| 3644 | |
| 3645 | /* Override any GCC internal prototype to avoid an error. |
| 3646 | Use char because int might match the return type of a GCC |
| 3647 | builtin and then its argument prototype would still apply. */ |
| 3648 | #ifdef __cplusplus |
| 3649 | extern "C" |
| 3650 | #endif |
| 3651 | char dlopen (); |
| 3652 | int |
| 3653 | main () |
| 3654 | { |
| 3655 | return dlopen (); |
| 3656 | ; |
| 3657 | return 0; |
| 3658 | } |
| 3659 | _ACEOF |
| 3660 | if ac_fn_c_try_link "$LINENO"; then : |
| 3661 | ac_cv_lib_dl_dlopen=yes |
| 3662 | else |
| 3663 | ac_cv_lib_dl_dlopen=no |
| 3664 | fi |
| 3665 | rm -f core conftest.err conftest.$ac_objext \ |
| 3666 | conftest$ac_exeext conftest.$ac_ext |
| 3667 | LIBS=$ac_check_lib_save_LIBS |
| 3668 | fi |
| 3669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 3670 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3671 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3672 | DLOPEN_LIB=-ldl |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 3673 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3674 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
| 3675 | |
| 3676 | fi |
| 3677 | |
| 3678 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3679 | |
| 3680 | # Check whether --with-cc was given. |
| 3681 | if test "${with_cc+set}" = set; then : |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3682 | 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] | 3683 | fi |
| 3684 | |
| 3685 | |
| 3686 | # Check whether --with-ccopts was given. |
| 3687 | if test "${with_ccopts+set}" = set; then : |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3688 | 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] | 3689 | fi |
| 3690 | |
| 3691 | |
| 3692 | # Check whether --with-ldopts was given. |
| 3693 | if test "${with_ldopts+set}" = set; then : |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3694 | 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] | 3695 | fi |
| 3696 | |
| 3697 | ac_ext=c |
| 3698 | ac_cpp='$CPP $CPPFLAGS' |
| 3699 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3700 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3701 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3702 | if test -n "$ac_tool_prefix"; then |
| 3703 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3704 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3706 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3707 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3708 | $as_echo_n "(cached) " >&6 |
| 3709 | else |
| 3710 | if test -n "$CC"; then |
| 3711 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3712 | else |
| 3713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3714 | for as_dir in $PATH |
| 3715 | do |
| 3716 | IFS=$as_save_IFS |
| 3717 | test -z "$as_dir" && as_dir=. |
| 3718 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3719 | 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] | 3720 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3722 | break 2 |
| 3723 | fi |
| 3724 | done |
| 3725 | done |
| 3726 | IFS=$as_save_IFS |
| 3727 | |
| 3728 | fi |
| 3729 | fi |
| 3730 | CC=$ac_cv_prog_CC |
| 3731 | if test -n "$CC"; then |
| 3732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3733 | $as_echo "$CC" >&6; } |
| 3734 | else |
| 3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3736 | $as_echo "no" >&6; } |
| 3737 | fi |
| 3738 | |
| 3739 | |
| 3740 | fi |
| 3741 | if test -z "$ac_cv_prog_CC"; then |
| 3742 | ac_ct_CC=$CC |
| 3743 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3744 | set dummy 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_ac_ct_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 "$ac_ct_CC"; then |
| 3751 | ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3771 | if test -n "$ac_ct_CC"; then |
| 3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3773 | $as_echo "$ac_ct_CC" >&6; } |
| 3774 | else |
| 3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3776 | $as_echo "no" >&6; } |
| 3777 | fi |
| 3778 | |
| 3779 | if test "x$ac_ct_CC" = x; then |
| 3780 | CC="" |
| 3781 | else |
| 3782 | case $cross_compiling:$ac_tool_warned in |
| 3783 | yes:) |
| 3784 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3785 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3786 | ac_tool_warned=yes ;; |
| 3787 | esac |
| 3788 | CC=$ac_ct_CC |
| 3789 | fi |
| 3790 | else |
| 3791 | CC="$ac_cv_prog_CC" |
| 3792 | fi |
| 3793 | |
| 3794 | if test -z "$CC"; then |
| 3795 | if test -n "$ac_tool_prefix"; then |
| 3796 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3797 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3799 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3800 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3801 | $as_echo_n "(cached) " >&6 |
| 3802 | else |
| 3803 | if test -n "$CC"; then |
| 3804 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3805 | else |
| 3806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3807 | for as_dir in $PATH |
| 3808 | do |
| 3809 | IFS=$as_save_IFS |
| 3810 | test -z "$as_dir" && as_dir=. |
| 3811 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3812 | 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] | 3813 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3814 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3815 | break 2 |
| 3816 | fi |
| 3817 | done |
| 3818 | done |
| 3819 | IFS=$as_save_IFS |
| 3820 | |
| 3821 | fi |
| 3822 | fi |
| 3823 | CC=$ac_cv_prog_CC |
| 3824 | if test -n "$CC"; then |
| 3825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3826 | $as_echo "$CC" >&6; } |
| 3827 | else |
| 3828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3829 | $as_echo "no" >&6; } |
| 3830 | fi |
| 3831 | |
| 3832 | |
| 3833 | fi |
| 3834 | fi |
| 3835 | if test -z "$CC"; then |
| 3836 | # Extract the first word of "cc", so it can be a program name with args. |
| 3837 | set dummy 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 | ac_prog_rejected=no |
| 3847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3848 | for as_dir in $PATH |
| 3849 | do |
| 3850 | IFS=$as_save_IFS |
| 3851 | test -z "$as_dir" && as_dir=. |
| 3852 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3853 | 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] | 3854 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3855 | ac_prog_rejected=yes |
| 3856 | continue |
| 3857 | fi |
| 3858 | ac_cv_prog_CC="cc" |
| 3859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3860 | break 2 |
| 3861 | fi |
| 3862 | done |
| 3863 | done |
| 3864 | IFS=$as_save_IFS |
| 3865 | |
| 3866 | if test $ac_prog_rejected = yes; then |
| 3867 | # We found a bogon in the path, so make sure we never use it. |
| 3868 | set dummy $ac_cv_prog_CC |
| 3869 | shift |
| 3870 | if test $# != 0; then |
| 3871 | # We chose a different compiler from the bogus one. |
| 3872 | # However, it has the same basename, so the bogon will be chosen |
| 3873 | # first if we set CC to just the basename; use the full file name. |
| 3874 | shift |
| 3875 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3876 | fi |
| 3877 | fi |
| 3878 | fi |
| 3879 | fi |
| 3880 | CC=$ac_cv_prog_CC |
| 3881 | if test -n "$CC"; then |
| 3882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3883 | $as_echo "$CC" >&6; } |
| 3884 | else |
| 3885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3886 | $as_echo "no" >&6; } |
| 3887 | fi |
| 3888 | |
| 3889 | |
| 3890 | fi |
| 3891 | if test -z "$CC"; then |
| 3892 | if test -n "$ac_tool_prefix"; then |
| 3893 | for ac_prog in cl.exe |
| 3894 | do |
| 3895 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3896 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3898 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3899 | if ${ac_cv_prog_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3900 | $as_echo_n "(cached) " >&6 |
| 3901 | else |
| 3902 | if test -n "$CC"; then |
| 3903 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3904 | else |
| 3905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3906 | for as_dir in $PATH |
| 3907 | do |
| 3908 | IFS=$as_save_IFS |
| 3909 | test -z "$as_dir" && as_dir=. |
| 3910 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3911 | 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] | 3912 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3914 | break 2 |
| 3915 | fi |
| 3916 | done |
| 3917 | done |
| 3918 | IFS=$as_save_IFS |
| 3919 | |
| 3920 | fi |
| 3921 | fi |
| 3922 | CC=$ac_cv_prog_CC |
| 3923 | if test -n "$CC"; then |
| 3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3925 | $as_echo "$CC" >&6; } |
| 3926 | else |
| 3927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3928 | $as_echo "no" >&6; } |
| 3929 | fi |
| 3930 | |
| 3931 | |
| 3932 | test -n "$CC" && break |
| 3933 | done |
| 3934 | fi |
| 3935 | if test -z "$CC"; then |
| 3936 | ac_ct_CC=$CC |
| 3937 | for ac_prog in cl.exe |
| 3938 | do |
| 3939 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3940 | set dummy $ac_prog; ac_word=$2 |
| 3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3942 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3943 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3944 | $as_echo_n "(cached) " >&6 |
| 3945 | else |
| 3946 | if test -n "$ac_ct_CC"; then |
| 3947 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3948 | else |
| 3949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3950 | for as_dir in $PATH |
| 3951 | do |
| 3952 | IFS=$as_save_IFS |
| 3953 | test -z "$as_dir" && as_dir=. |
| 3954 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3955 | 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] | 3956 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3958 | break 2 |
| 3959 | fi |
| 3960 | done |
| 3961 | done |
| 3962 | IFS=$as_save_IFS |
| 3963 | |
| 3964 | fi |
| 3965 | fi |
| 3966 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3967 | if test -n "$ac_ct_CC"; then |
| 3968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3969 | $as_echo "$ac_ct_CC" >&6; } |
| 3970 | else |
| 3971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3972 | $as_echo "no" >&6; } |
| 3973 | fi |
| 3974 | |
| 3975 | |
| 3976 | test -n "$ac_ct_CC" && break |
| 3977 | done |
| 3978 | |
| 3979 | if test "x$ac_ct_CC" = x; then |
| 3980 | CC="" |
| 3981 | else |
| 3982 | case $cross_compiling:$ac_tool_warned in |
| 3983 | yes:) |
| 3984 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3985 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3986 | ac_tool_warned=yes ;; |
| 3987 | esac |
| 3988 | CC=$ac_ct_CC |
| 3989 | fi |
| 3990 | fi |
| 3991 | |
| 3992 | fi |
| 3993 | |
| 3994 | |
| 3995 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3996 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 3997 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3998 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3999 | |
| 4000 | # Provide some information about the compiler. |
| 4001 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4002 | set X $ac_compile |
| 4003 | ac_compiler=$2 |
| 4004 | for ac_option in --version -v -V -qversion; do |
| 4005 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4006 | case "(($ac_try" in |
| 4007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4008 | *) ac_try_echo=$ac_try;; |
| 4009 | esac |
| 4010 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4011 | $as_echo "$ac_try_echo"; } >&5 |
| 4012 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4013 | ac_status=$? |
| 4014 | if test -s conftest.err; then |
| 4015 | sed '10a\ |
| 4016 | ... rest of stderr output deleted ... |
| 4017 | 10q' conftest.err >conftest.er1 |
| 4018 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4019 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 4020 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4021 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4022 | test $ac_status = 0; } |
| 4023 | done |
| 4024 | |
| 4025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4026 | $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] | 4027 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4028 | $as_echo_n "(cached) " >&6 |
| 4029 | else |
| 4030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4031 | /* end confdefs.h. */ |
| 4032 | |
| 4033 | int |
| 4034 | main () |
| 4035 | { |
| 4036 | #ifndef __GNUC__ |
| 4037 | choke me |
| 4038 | #endif |
| 4039 | |
| 4040 | ; |
| 4041 | return 0; |
| 4042 | } |
| 4043 | _ACEOF |
| 4044 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4045 | ac_compiler_gnu=yes |
| 4046 | else |
| 4047 | ac_compiler_gnu=no |
| 4048 | fi |
| 4049 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4050 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4051 | |
| 4052 | fi |
| 4053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4054 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4055 | if test $ac_compiler_gnu = yes; then |
| 4056 | GCC=yes |
| 4057 | else |
| 4058 | GCC= |
| 4059 | fi |
| 4060 | ac_test_CFLAGS=${CFLAGS+set} |
| 4061 | ac_save_CFLAGS=$CFLAGS |
| 4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4063 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4064 | if ${ac_cv_prog_cc_g+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4065 | $as_echo_n "(cached) " >&6 |
| 4066 | else |
| 4067 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4068 | ac_c_werror_flag=yes |
| 4069 | ac_cv_prog_cc_g=no |
| 4070 | CFLAGS="-g" |
| 4071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4072 | /* end confdefs.h. */ |
| 4073 | |
| 4074 | int |
| 4075 | main () |
| 4076 | { |
| 4077 | |
| 4078 | ; |
| 4079 | return 0; |
| 4080 | } |
| 4081 | _ACEOF |
| 4082 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4083 | ac_cv_prog_cc_g=yes |
| 4084 | else |
| 4085 | CFLAGS="" |
| 4086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4087 | /* end confdefs.h. */ |
| 4088 | |
| 4089 | int |
| 4090 | main () |
| 4091 | { |
| 4092 | |
| 4093 | ; |
| 4094 | return 0; |
| 4095 | } |
| 4096 | _ACEOF |
| 4097 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4098 | |
| 4099 | else |
| 4100 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4101 | CFLAGS="-g" |
| 4102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4103 | /* end confdefs.h. */ |
| 4104 | |
| 4105 | int |
| 4106 | main () |
| 4107 | { |
| 4108 | |
| 4109 | ; |
| 4110 | return 0; |
| 4111 | } |
| 4112 | _ACEOF |
| 4113 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4114 | ac_cv_prog_cc_g=yes |
| 4115 | fi |
| 4116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4117 | fi |
| 4118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4119 | fi |
| 4120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4121 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4122 | fi |
| 4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4124 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4125 | if test "$ac_test_CFLAGS" = set; then |
| 4126 | CFLAGS=$ac_save_CFLAGS |
| 4127 | elif test $ac_cv_prog_cc_g = yes; then |
| 4128 | if test "$GCC" = yes; then |
| 4129 | CFLAGS="-g -O2" |
| 4130 | else |
| 4131 | CFLAGS="-g" |
| 4132 | fi |
| 4133 | else |
| 4134 | if test "$GCC" = yes; then |
| 4135 | CFLAGS="-O2" |
| 4136 | else |
| 4137 | CFLAGS= |
| 4138 | fi |
| 4139 | fi |
| 4140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4141 | $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] | 4142 | if ${ac_cv_prog_cc_c89+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4143 | $as_echo_n "(cached) " >&6 |
| 4144 | else |
| 4145 | ac_cv_prog_cc_c89=no |
| 4146 | ac_save_CC=$CC |
| 4147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4148 | /* end confdefs.h. */ |
| 4149 | #include <stdarg.h> |
| 4150 | #include <stdio.h> |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4151 | struct stat; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4152 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4153 | struct buf { int x; }; |
| 4154 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4155 | static char *e (p, i) |
| 4156 | char **p; |
| 4157 | int i; |
| 4158 | { |
| 4159 | return p[i]; |
| 4160 | } |
| 4161 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4162 | { |
| 4163 | char *s; |
| 4164 | va_list v; |
| 4165 | va_start (v,p); |
| 4166 | s = g (p, va_arg (v,int)); |
| 4167 | va_end (v); |
| 4168 | return s; |
| 4169 | } |
| 4170 | |
| 4171 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4172 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4173 | These don't provoke an error unfortunately, instead are silently treated |
| 4174 | as 'x'. The following induces an error, until -std is added to get |
| 4175 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4176 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4177 | that's true only with -std. */ |
| 4178 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4179 | |
| 4180 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4181 | inside strings and character constants. */ |
| 4182 | #define FOO(x) 'x' |
| 4183 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4184 | |
| 4185 | int test (int i, double x); |
| 4186 | struct s1 {int (*f) (int a);}; |
| 4187 | struct s2 {int (*f) (double a);}; |
| 4188 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4189 | int argc; |
| 4190 | char **argv; |
| 4191 | int |
| 4192 | main () |
| 4193 | { |
| 4194 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4195 | ; |
| 4196 | return 0; |
| 4197 | } |
| 4198 | _ACEOF |
| 4199 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4200 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4201 | do |
| 4202 | CC="$ac_save_CC $ac_arg" |
| 4203 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4204 | ac_cv_prog_cc_c89=$ac_arg |
| 4205 | fi |
| 4206 | rm -f core conftest.err conftest.$ac_objext |
| 4207 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4208 | done |
| 4209 | rm -f conftest.$ac_ext |
| 4210 | CC=$ac_save_CC |
| 4211 | |
| 4212 | fi |
| 4213 | # AC_CACHE_VAL |
| 4214 | case "x$ac_cv_prog_cc_c89" in |
| 4215 | x) |
| 4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4217 | $as_echo "none needed" >&6; } ;; |
| 4218 | xno) |
| 4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4220 | $as_echo "unsupported" >&6; } ;; |
| 4221 | *) |
| 4222 | CC="$CC $ac_cv_prog_cc_c89" |
| 4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4224 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4225 | esac |
| 4226 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4227 | |
| 4228 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4229 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4230 | ac_ext=c |
| 4231 | ac_cpp='$CPP $CPPFLAGS' |
| 4232 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4233 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4234 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4235 | |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 4236 | if test "$GCC" = yes; then |
| 4237 | RDYNAMIC="-rdynamic" |
| 4238 | |
| 4239 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4240 | ac_ext=c |
| 4241 | ac_cpp='$CPP $CPPFLAGS' |
| 4242 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4243 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4244 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4245 | { $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] | 4246 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4247 | # On Suns, sometimes $CPP names a directory. |
| 4248 | if test -n "$CPP" && test -d "$CPP"; then |
| 4249 | CPP= |
| 4250 | fi |
| 4251 | if test -z "$CPP"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4252 | if ${ac_cv_prog_CPP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4253 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4254 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4255 | # Double quotes because CPP needs to be expanded |
| 4256 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4257 | do |
| 4258 | ac_preproc_ok=false |
| 4259 | for ac_c_preproc_warn_flag in '' yes |
| 4260 | do |
| 4261 | # Use a header file that comes with gcc, so configuring glibc |
| 4262 | # with a fresh cross-compiler works. |
| 4263 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4264 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4265 | # 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] | 4266 | # 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] | 4267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4268 | /* end confdefs.h. */ |
| 4269 | #ifdef __STDC__ |
| 4270 | # include <limits.h> |
| 4271 | #else |
| 4272 | # include <assert.h> |
| 4273 | #endif |
| 4274 | Syntax error |
| 4275 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4276 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4277 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4278 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4279 | # Broken: fails on valid input. |
| 4280 | continue |
| 4281 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4282 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4283 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4284 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4285 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4287 | /* end confdefs.h. */ |
| 4288 | #include <ac_nonexistent.h> |
| 4289 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4290 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4291 | # Broken: success on invalid input. |
| 4292 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4293 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4294 | # Passes both tests. |
| 4295 | ac_preproc_ok=: |
| 4296 | break |
| 4297 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4298 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4299 | |
| 4300 | done |
| 4301 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4302 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4303 | if $ac_preproc_ok; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4304 | break |
| 4305 | fi |
| 4306 | |
| 4307 | done |
| 4308 | ac_cv_prog_CPP=$CPP |
| 4309 | |
| 4310 | fi |
| 4311 | CPP=$ac_cv_prog_CPP |
| 4312 | else |
| 4313 | ac_cv_prog_CPP=$CPP |
| 4314 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4316 | $as_echo "$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4317 | ac_preproc_ok=false |
| 4318 | for ac_c_preproc_warn_flag in '' yes |
| 4319 | do |
| 4320 | # Use a header file that comes with gcc, so configuring glibc |
| 4321 | # with a fresh cross-compiler works. |
| 4322 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4323 | # <limits.h> exists even on freestanding compilers. |
| 4324 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4325 | # 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] | 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 | #ifdef __STDC__ |
| 4329 | # include <limits.h> |
| 4330 | #else |
| 4331 | # include <assert.h> |
| 4332 | #endif |
| 4333 | Syntax error |
| 4334 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4335 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4336 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4337 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4338 | # Broken: fails on valid input. |
| 4339 | continue |
| 4340 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4341 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4342 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4343 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4344 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4346 | /* end confdefs.h. */ |
| 4347 | #include <ac_nonexistent.h> |
| 4348 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4349 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4350 | # Broken: success on invalid input. |
| 4351 | continue |
| 4352 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4353 | # Passes both tests. |
| 4354 | ac_preproc_ok=: |
| 4355 | break |
| 4356 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4357 | rm -f conftest.err conftest.i conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4358 | |
| 4359 | done |
| 4360 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4361 | rm -f conftest.i conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4362 | if $ac_preproc_ok; then : |
| 4363 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4364 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4365 | { { $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] | 4366 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4367 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4368 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4369 | fi |
| 4370 | |
| 4371 | ac_ext=c |
| 4372 | ac_cpp='$CPP $CPPFLAGS' |
| 4373 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4374 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4375 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4376 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4377 | { $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] | 4378 | $as_echo_n "checking for additional special compiler flags... " >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4379 | if test "$GCC" = yes |
| 4380 | then |
| 4381 | case "$host_cpu" in |
| 4382 | alpha) addcflags="-mieee" ;; |
| 4383 | esac |
| 4384 | fi |
| 4385 | if test "x$addcflags" != x |
| 4386 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4388 | $as_echo "$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4389 | CFLAGS="$addcflags $CFLAGS" |
| 4390 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4392 | $as_echo "(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4393 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4394 | LIB_EXT=.a |
| 4395 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4396 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4397 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4398 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4399 | if test "${with_root_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4400 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4401 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4402 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4403 | fi |
| 4404 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4405 | if test "${enable_maintainer_mode+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4406 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4407 | then |
| 4408 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4409 | { $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] | 4410 | $as_echo "Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4411 | else |
| 4412 | MAINTAINER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4413 | { $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] | 4414 | $as_echo "Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4415 | fi |
| 4416 | |
| 4417 | else |
| 4418 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4419 | { $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] | 4420 | $as_echo "Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4421 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4422 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4423 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4424 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4425 | # Check whether --enable-symlink-install was given. |
| 4426 | if test "${enable_symlink_install+set}" = set; then : |
| 4427 | enableval=$enable_symlink_install; if test "$enableval" = "no" |
| 4428 | then |
| 4429 | LINK_INSTALL_FLAGS=-f |
| 4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4431 | $as_echo "Disabling symlinks for install" >&6; } |
| 4432 | else |
| 4433 | LINK_INSTALL_FLAGS=-sf |
| 4434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
| 4435 | $as_echo "Enabling symlinks for install" >&6; } |
| 4436 | fi |
| 4437 | |
| 4438 | else |
| 4439 | LINK_INSTALL_FLAGS=-f |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 |
| 4441 | $as_echo "Disabling symlinks for install by default" >&6; } |
| 4442 | |
| 4443 | fi |
| 4444 | |
| 4445 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4446 | relative_symlink_defined= |
| 4447 | # Check whether --enable-relative-symlinks was given. |
| 4448 | if test "${enable_relative_symlinks+set}" = set; then : |
| 4449 | enableval=$enable_relative_symlinks; if test "$enableval" = "no" |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4450 | then |
| 4451 | SYMLINK_RELATIVE= |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4452 | relative_symlink_defined=yes |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4454 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4455 | else |
| 4456 | SYMLINK_RELATIVE=--relative |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4457 | relative_symlink_defined=yes |
| 4458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4459 | $as_echo "Enabling relative symlinks for install" >&6; } |
| 4460 | fi |
| 4461 | fi |
| 4462 | |
| 4463 | # Check whether --enable-symlink-relative-symlinks was given. |
| 4464 | if test "${enable_symlink_relative_symlinks+set}" = set; then : |
| 4465 | enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" |
| 4466 | then |
| 4467 | SYMLINK_RELATIVE=yes |
| 4468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4469 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4470 | else |
| 4471 | SYMLINK_RELATIVE=--relative |
| 4472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 |
| 4473 | $as_echo "Enabling relative symlinks for install" >&6; } |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4474 | fi |
| 4475 | |
| 4476 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4477 | if test -z "$relative_symlink_defined" |
| 4478 | then |
| 4479 | SYMLINK_RELATIVE= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 |
| 4481 | $as_echo "Disabling relative symlinks for install by default" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4482 | fi |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4483 | |
| 4484 | fi |
| 4485 | |
| 4486 | |
| 4487 | # Check whether --enable-symlink-build was given. |
| 4488 | if test "${enable_symlink_build+set}" = set; then : |
| 4489 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
| 4490 | then |
| 4491 | LINK_BUILD_FLAGS= |
| 4492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4493 | $as_echo "Disabling symlinks for build" >&6; } |
| 4494 | else |
| 4495 | LINK_BUILD_FLAGS=-s |
| 4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 |
| 4497 | $as_echo "Enabling symlinks for build" >&6; } |
| 4498 | fi |
| 4499 | |
| 4500 | else |
| 4501 | LINK_BUILD_FLAGS= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 |
| 4503 | $as_echo "Disabling symlinks for build by default" >&6; } |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4504 | |
| 4505 | fi |
| 4506 | |
| 4507 | |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4508 | # Check whether --enable-verbose-makecmds was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4509 | if test "${enable_verbose_makecmds+set}" = set; then : |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4510 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
| 4511 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4512 | { $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] | 4513 | $as_echo "Disabling verbose make commands" >&6; } |
| 4514 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4515 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4516 | Q=@ |
| 4517 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4518 | { $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] | 4519 | $as_echo "Enabling verbose make commands" >&6; } |
| 4520 | E=@\\# |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4521 | ES=\\# |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4522 | Q= |
| 4523 | fi |
| 4524 | |
| 4525 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4526 | { $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] | 4527 | $as_echo "Disabling verbose make commands" >&6; } |
| 4528 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4529 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4530 | Q=@ |
| 4531 | |
| 4532 | fi |
| 4533 | |
| 4534 | |
| 4535 | |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame] | 4536 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4537 | # Check whether --enable-compression was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4538 | if test "${enable_compression+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4539 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4540 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4541 | { $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] | 4542 | $as_echo "Disabling compression support" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4543 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4544 | |
| 4545 | $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4546 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4547 | { $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] | 4548 | $as_echo "Enabling compression support" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4549 | { $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] | 4550 | $as_echo "$as_me: WARNING: Compression support is experimental" >&2;} |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4551 | fi |
| 4552 | |
| 4553 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4554 | { $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] | 4555 | $as_echo "Disabling compression support by default" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4556 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4557 | fi |
| 4558 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4559 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4560 | # Check whether --enable-htree was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4561 | if test "${enable_htree+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4562 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4563 | then |
| 4564 | HTREE_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4565 | { $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] | 4566 | $as_echo "Disabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4567 | else |
| 4568 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4569 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4570 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4571 | { $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] | 4572 | $as_echo "Enabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4573 | fi |
| 4574 | |
| 4575 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4576 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4577 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4578 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4579 | { $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] | 4580 | $as_echo "Enabling htree directory support by default" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4581 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4582 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4583 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4584 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4585 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4586 | LDFLAG_DYNAMIC= |
| 4587 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4588 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4589 | if test "${enable_elf_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4590 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4591 | then |
| 4592 | ELF_CMT=# |
| 4593 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4594 | { $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] | 4595 | $as_echo "Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4596 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4597 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4598 | ELF_CMT= |
| 4599 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 4600 | case "$host_os" in |
| 4601 | solaris2.*) |
| 4602 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 4603 | ;; |
| 4604 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4605 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4606 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4607 | PRIVATE_LIBS_CMT=# |
| 4608 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4609 | { $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] | 4610 | $as_echo "Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4611 | fi |
| 4612 | |
| 4613 | else |
| 4614 | MAKEFILE_ELF=/dev/null |
| 4615 | ELF_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4616 | { $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] | 4617 | $as_echo "Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4618 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4619 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4620 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4621 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4622 | |
| 4623 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4624 | if test "${enable_bsd_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4625 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4626 | then |
| 4627 | BSDLIB_CMT=# |
| 4628 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4629 | { $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] | 4630 | $as_echo "Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4631 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4632 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4633 | BSDLIB_CMT= |
| 4634 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4635 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4636 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4637 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4638 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4639 | LIB_EXT=.dylib |
| 4640 | ;; |
| 4641 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4642 | { $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] | 4643 | $as_echo "Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4644 | fi |
| 4645 | |
| 4646 | else |
| 4647 | MAKEFILE_BSDLIB=/dev/null |
| 4648 | BSDLIB_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4649 | { $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] | 4650 | $as_echo "Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4651 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4652 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4653 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4654 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4655 | |
| 4656 | # Check whether --enable-profile was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4657 | if test "${enable_profile+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4658 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4659 | then |
| 4660 | PROFILE_CMT=# |
| 4661 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4662 | { $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] | 4663 | $as_echo "Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4664 | else |
| 4665 | PROFILE_CMT= |
| 4666 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 4667 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4668 | { $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] | 4669 | $as_echo "Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4670 | fi |
| 4671 | |
| 4672 | else |
| 4673 | PROFILE_CMT=# |
| 4674 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4675 | { $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] | 4676 | $as_echo "Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4677 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4678 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4679 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4680 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4681 | |
Theodore Ts'o | fedfb27 | 2014-02-23 00:17:09 -0500 | [diff] [blame] | 4682 | # Check whether --enable-gcov was given. |
| 4683 | if test "${enable_gcov+set}" = set; then : |
| 4684 | enableval=$enable_gcov; if test "$enableval" = "yes" |
| 4685 | then |
| 4686 | CFLAGS="-g -fprofile-arcs -ftest-coverage" |
| 4687 | LDFLAGS="-fprofile-arcs -ftest-coverage" |
| 4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5 |
| 4689 | $as_echo "Enabling gcov support" >&6; } |
| 4690 | fi |
| 4691 | |
| 4692 | fi |
| 4693 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4694 | # Check whether --enable-checker was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4695 | if test "${enable_checker+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4696 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4697 | then |
| 4698 | CHECKER_CMT=# |
| 4699 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4701 | $as_echo "Disabling checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4702 | else |
| 4703 | CHECKER_CMT= |
| 4704 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4706 | $as_echo "Building checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4707 | fi |
| 4708 | |
| 4709 | else |
| 4710 | CHECKER_CMT=# |
| 4711 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4713 | $as_echo "Disabling checker libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4714 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4715 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4716 | |
| 4717 | |
| 4718 | |
| 4719 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4720 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4721 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4722 | |
| 4723 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4724 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4725 | if test "${enable_jbd_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4726 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4727 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4728 | { $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] | 4729 | $as_echo "Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4730 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4731 | |
| 4732 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4733 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4734 | { $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] | 4735 | $as_echo "Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4736 | fi |
| 4737 | |
| 4738 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4739 | { $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] | 4740 | $as_echo "Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4741 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4742 | fi |
| 4743 | |
| 4744 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4745 | if test "${enable_blkid_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4746 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4747 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4748 | { $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] | 4749 | $as_echo "Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4750 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4751 | |
| 4752 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4753 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4754 | { $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] | 4755 | $as_echo "Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4756 | fi |
| 4757 | |
| 4758 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4759 | { $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] | 4760 | $as_echo "Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4761 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4762 | fi |
| 4763 | |
| 4764 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4765 | if test "${enable_testio_debug+set}" = set; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4766 | enableval=$enable_testio_debug; |
| 4767 | if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4768 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4769 | { $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] | 4770 | $as_echo "Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4771 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4772 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4773 | TEST_IO_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4774 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4775 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4776 | { $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] | 4777 | $as_echo "Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4778 | fi |
| 4779 | |
| 4780 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4781 | { $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] | 4782 | $as_echo "Enabling testio debugging by default" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4783 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4784 | |
| 4785 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4786 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4787 | fi |
| 4788 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4789 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4790 | |
| 4791 | |
| 4792 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4793 | if test -n "$ac_tool_prefix"; then |
| 4794 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4795 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4796 | { $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] | 4797 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4798 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4799 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4800 | else |
| 4801 | case $PKG_CONFIG in |
| 4802 | [\\/]* | ?:[\\/]*) |
| 4803 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4804 | ;; |
| 4805 | *) |
| 4806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4807 | for as_dir in $PATH |
| 4808 | do |
| 4809 | IFS=$as_save_IFS |
| 4810 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4811 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4812 | 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] | 4813 | 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] | 4814 | $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] | 4815 | break 2 |
| 4816 | fi |
| 4817 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4818 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4819 | IFS=$as_save_IFS |
| 4820 | |
| 4821 | ;; |
| 4822 | esac |
| 4823 | fi |
| 4824 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4825 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4827 | $as_echo "$PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4828 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4830 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4831 | fi |
| 4832 | |
| 4833 | |
| 4834 | fi |
| 4835 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4836 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4837 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4838 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4839 | { $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] | 4840 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4841 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4842 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4843 | else |
| 4844 | case $ac_pt_PKG_CONFIG in |
| 4845 | [\\/]* | ?:[\\/]*) |
| 4846 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4847 | ;; |
| 4848 | *) |
| 4849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4850 | for as_dir in $PATH |
| 4851 | do |
| 4852 | IFS=$as_save_IFS |
| 4853 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4854 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4855 | 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] | 4856 | 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] | 4857 | $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] | 4858 | break 2 |
| 4859 | fi |
| 4860 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4861 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4862 | IFS=$as_save_IFS |
| 4863 | |
| 4864 | ;; |
| 4865 | esac |
| 4866 | fi |
| 4867 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4868 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4869 | { $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] | 4870 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4871 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4873 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4874 | fi |
| 4875 | |
| 4876 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4877 | PKG_CONFIG="" |
| 4878 | else |
| 4879 | case $cross_compiling:$ac_tool_warned in |
| 4880 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4881 | { $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] | 4882 | $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] | 4883 | ac_tool_warned=yes ;; |
| 4884 | esac |
| 4885 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4886 | fi |
| 4887 | else |
| 4888 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4889 | fi |
| 4890 | |
| 4891 | fi |
| 4892 | if test -n "$PKG_CONFIG"; then |
| 4893 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4894 | { $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] | 4895 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4896 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4898 | $as_echo "yes" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4899 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4901 | $as_echo "no" >&6; } |
| 4902 | PKG_CONFIG="" |
| 4903 | fi |
| 4904 | |
| 4905 | fi |
| 4906 | LIBUUID= |
| 4907 | DEPLIBUUID= |
| 4908 | STATIC_LIBUUID= |
| 4909 | DEPSTATIC_LIBUUID= |
| 4910 | PROFILED_LIBUUID= |
| 4911 | DEPPROFILED_LIBUUID= |
| 4912 | UUID_CMT= |
| 4913 | # Check whether --enable-libuuid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4914 | if test "${enable_libuuid+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4915 | enableval=$enable_libuuid; if test "$enableval" = "no" |
| 4916 | then |
| 4917 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4918 | 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] | 4919 | fi |
| 4920 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4921 | { $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] | 4922 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4923 | if ${ac_cv_lib_uuid_uuid_generate+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4924 | $as_echo_n "(cached) " >&6 |
| 4925 | else |
| 4926 | ac_check_lib_save_LIBS=$LIBS |
| 4927 | LIBS="-luuid $LIBUUID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4929 | /* end confdefs.h. */ |
| 4930 | |
| 4931 | /* Override any GCC internal prototype to avoid an error. |
| 4932 | Use char because int might match the return type of a GCC |
| 4933 | builtin and then its argument prototype would still apply. */ |
| 4934 | #ifdef __cplusplus |
| 4935 | extern "C" |
| 4936 | #endif |
| 4937 | char uuid_generate (); |
| 4938 | int |
| 4939 | main () |
| 4940 | { |
| 4941 | return uuid_generate (); |
| 4942 | ; |
| 4943 | return 0; |
| 4944 | } |
| 4945 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4946 | if ac_fn_c_try_link "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4947 | ac_cv_lib_uuid_uuid_generate=yes |
| 4948 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4949 | ac_cv_lib_uuid_uuid_generate=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4950 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4951 | rm -f core conftest.err conftest.$ac_objext \ |
| 4952 | conftest$ac_exeext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4953 | LIBS=$ac_check_lib_save_LIBS |
| 4954 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4955 | { $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] | 4956 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4957 | if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4958 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 4959 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 4960 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 4961 | as_fn_error $? "external uuid library not found" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4962 | fi |
| 4963 | |
| 4964 | UUID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4965 | { $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] | 4966 | $as_echo "Disabling private uuid library" >&6; } |
| 4967 | else |
| 4968 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 4969 | DEPLIBUUID=$LIBUUID |
| 4970 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 4971 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 4972 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 4973 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4974 | { $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] | 4975 | $as_echo "Enabling private uuid library" >&6; } |
| 4976 | fi |
| 4977 | |
| 4978 | else |
| 4979 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 4980 | DEPLIBUUID=$LIBUUID |
| 4981 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 4982 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 4983 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 4984 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4985 | { $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] | 4986 | $as_echo "Enabling private uuid library by default" >&6; } |
| 4987 | |
| 4988 | fi |
| 4989 | |
| 4990 | |
| 4991 | |
| 4992 | |
| 4993 | |
| 4994 | |
| 4995 | |
| 4996 | |
| 4997 | |
| 4998 | |
| 4999 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 5000 | if test -n "$ac_tool_prefix"; then |
| 5001 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5002 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5003 | { $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] | 5004 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5005 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5006 | $as_echo_n "(cached) " >&6 |
| 5007 | else |
| 5008 | case $PKG_CONFIG in |
| 5009 | [\\/]* | ?:[\\/]*) |
| 5010 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5011 | ;; |
| 5012 | *) |
| 5013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5014 | for as_dir in $PATH |
| 5015 | do |
| 5016 | IFS=$as_save_IFS |
| 5017 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5018 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5019 | 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] | 5020 | 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] | 5021 | $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] | 5022 | break 2 |
| 5023 | fi |
| 5024 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5025 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5026 | IFS=$as_save_IFS |
| 5027 | |
| 5028 | ;; |
| 5029 | esac |
| 5030 | fi |
| 5031 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5032 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5034 | $as_echo "$PKG_CONFIG" >&6; } |
| 5035 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5037 | $as_echo "no" >&6; } |
| 5038 | fi |
| 5039 | |
| 5040 | |
| 5041 | fi |
| 5042 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5043 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5044 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5045 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5046 | { $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] | 5047 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5048 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5049 | $as_echo_n "(cached) " >&6 |
| 5050 | else |
| 5051 | case $ac_pt_PKG_CONFIG in |
| 5052 | [\\/]* | ?:[\\/]*) |
| 5053 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5054 | ;; |
| 5055 | *) |
| 5056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5057 | for as_dir in $PATH |
| 5058 | do |
| 5059 | IFS=$as_save_IFS |
| 5060 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5061 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5062 | 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] | 5063 | 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] | 5064 | $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] | 5065 | break 2 |
| 5066 | fi |
| 5067 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5068 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5069 | IFS=$as_save_IFS |
| 5070 | |
| 5071 | ;; |
| 5072 | esac |
| 5073 | fi |
| 5074 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5075 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5076 | { $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] | 5077 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5078 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5080 | $as_echo "no" >&6; } |
| 5081 | fi |
| 5082 | |
| 5083 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5084 | PKG_CONFIG="" |
| 5085 | else |
| 5086 | case $cross_compiling:$ac_tool_warned in |
| 5087 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5088 | { $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] | 5089 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5090 | ac_tool_warned=yes ;; |
| 5091 | esac |
| 5092 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5093 | fi |
| 5094 | else |
| 5095 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5096 | fi |
| 5097 | |
| 5098 | fi |
| 5099 | if test -n "$PKG_CONFIG"; then |
| 5100 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5101 | { $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] | 5102 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 5103 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5105 | $as_echo "yes" >&6; } |
| 5106 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5108 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5109 | PKG_CONFIG="" |
| 5110 | fi |
| 5111 | |
| 5112 | fi |
| 5113 | LIBBLKID= |
| 5114 | DEPLIBBLKID= |
| 5115 | STATIC_LIBBLKID= |
| 5116 | DEPSTATIC_LIBBLKID= |
| 5117 | PROFILED_LIBBLKID= |
| 5118 | DEPPROFILED_LIBBLKID= |
| 5119 | BLKID_CMT= |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5120 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5121 | # Check whether --enable-libblkid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5122 | if test "${enable_libblkid+set}" = set; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5123 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 5124 | then |
| 5125 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5126 | 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] | 5127 | fi |
| 5128 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5129 | { $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] | 5130 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5131 | if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5132 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5133 | else |
| 5134 | ac_check_lib_save_LIBS=$LIBS |
| 5135 | LIBS="-lblkid $LIBBLKID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5137 | /* end confdefs.h. */ |
| 5138 | |
| 5139 | /* Override any GCC internal prototype to avoid an error. |
| 5140 | Use char because int might match the return type of a GCC |
| 5141 | builtin and then its argument prototype would still apply. */ |
| 5142 | #ifdef __cplusplus |
| 5143 | extern "C" |
| 5144 | #endif |
| 5145 | char blkid_get_cache (); |
| 5146 | int |
| 5147 | main () |
| 5148 | { |
| 5149 | return blkid_get_cache (); |
| 5150 | ; |
| 5151 | return 0; |
| 5152 | } |
| 5153 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5154 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5155 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5156 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5157 | ac_cv_lib_blkid_blkid_get_cache=no |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5158 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5159 | rm -f core conftest.err conftest.$ac_objext \ |
| 5160 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5161 | LIBS=$ac_check_lib_save_LIBS |
| 5162 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5163 | { $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] | 5164 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5165 | 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] | 5166 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5167 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5168 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5169 | as_fn_error $? "external blkid library not found" "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5170 | fi |
| 5171 | |
| 5172 | BLKID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5173 | { $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] | 5174 | $as_echo "Disabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5175 | else |
| 5176 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5177 | DEPLIBBLKID=$LIBBLKID |
| 5178 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5179 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5180 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5181 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5182 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5183 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5184 | { $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] | 5185 | $as_echo "Enabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5186 | fi |
| 5187 | |
| 5188 | else |
| 5189 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5190 | DEPLIBBLKID=$LIBBLKID |
| 5191 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5192 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5193 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5194 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5195 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5196 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5197 | { $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] | 5198 | $as_echo "Enabling private blkid library by default" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5199 | |
| 5200 | fi |
| 5201 | |
| 5202 | |
| 5203 | |
| 5204 | |
| 5205 | |
| 5206 | |
| 5207 | |
| 5208 | |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 5209 | QUOTA_MAN_COMMENT='.\"' |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5210 | QUOTA_CMT= |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 5211 | |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5212 | |
| 5213 | |
| 5214 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 5215 | if test -n "$ac_tool_prefix"; then |
| 5216 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5217 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5219 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5220 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5221 | $as_echo_n "(cached) " >&6 |
| 5222 | else |
| 5223 | case $PKG_CONFIG in |
| 5224 | [\\/]* | ?:[\\/]*) |
| 5225 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5226 | ;; |
| 5227 | *) |
| 5228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5229 | for as_dir in $PATH |
| 5230 | do |
| 5231 | IFS=$as_save_IFS |
| 5232 | test -z "$as_dir" && as_dir=. |
| 5233 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5234 | 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] | 5235 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5237 | break 2 |
| 5238 | fi |
| 5239 | done |
| 5240 | done |
| 5241 | IFS=$as_save_IFS |
| 5242 | |
| 5243 | ;; |
| 5244 | esac |
| 5245 | fi |
| 5246 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5247 | if test -n "$PKG_CONFIG"; then |
| 5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 5249 | $as_echo "$PKG_CONFIG" >&6; } |
| 5250 | else |
| 5251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5252 | $as_echo "no" >&6; } |
| 5253 | fi |
| 5254 | |
| 5255 | |
| 5256 | fi |
| 5257 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5258 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5259 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5260 | set dummy pkg-config; ac_word=$2 |
| 5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5262 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5263 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5264 | $as_echo_n "(cached) " >&6 |
| 5265 | else |
| 5266 | case $ac_pt_PKG_CONFIG in |
| 5267 | [\\/]* | ?:[\\/]*) |
| 5268 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5269 | ;; |
| 5270 | *) |
| 5271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5272 | for as_dir in $PATH |
| 5273 | do |
| 5274 | IFS=$as_save_IFS |
| 5275 | test -z "$as_dir" && as_dir=. |
| 5276 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5277 | 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] | 5278 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5280 | break 2 |
| 5281 | fi |
| 5282 | done |
| 5283 | done |
| 5284 | IFS=$as_save_IFS |
| 5285 | |
| 5286 | ;; |
| 5287 | esac |
| 5288 | fi |
| 5289 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5290 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 5292 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5293 | else |
| 5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5295 | $as_echo "no" >&6; } |
| 5296 | fi |
| 5297 | |
| 5298 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5299 | PKG_CONFIG="" |
| 5300 | else |
| 5301 | case $cross_compiling:$ac_tool_warned in |
| 5302 | yes:) |
| 5303 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5304 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5305 | ac_tool_warned=yes ;; |
| 5306 | esac |
| 5307 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5308 | fi |
| 5309 | else |
| 5310 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5311 | fi |
| 5312 | |
| 5313 | fi |
| 5314 | if test -n "$PKG_CONFIG"; then |
| 5315 | _pkg_min_version=0.9.0 |
| 5316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 5317 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 5318 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5320 | $as_echo "yes" >&6; } |
| 5321 | else |
| 5322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5323 | $as_echo "no" >&6; } |
| 5324 | PKG_CONFIG="" |
| 5325 | fi |
| 5326 | |
| 5327 | fi |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5328 | |
| 5329 | # Check whether --enable-quota was given. |
| 5330 | if test "${enable_quota+set}" = set; then : |
| 5331 | enableval=$enable_quota; if test "$enableval" = "no" |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5332 | then |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5333 | QUOTA_CMT=# |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5 |
| 5335 | $as_echo "Disabling quota support" >&6; } |
| 5336 | else |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5337 | QUOTA_CMT= |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5338 | $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5339 | |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5 |
| 5341 | $as_echo "Enabling quota support" >&6; } |
Eric Sandeen | f5589f4 | 2013-10-14 08:54:15 -0400 | [diff] [blame] | 5342 | QUOTA_MAN_COMMENT="" |
| 5343 | |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5344 | fi |
| 5345 | |
| 5346 | else |
Niu Yawei | 43075b4 | 2013-10-14 09:49:27 -0400 | [diff] [blame] | 5347 | QUOTA_CMT=# |
| 5348 | { $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] | 5349 | $as_echo "Disabling quota support by default" >&6; } |
| 5350 | |
| 5351 | fi |
| 5352 | |
| 5353 | LIBQUOTA='$(LIB)/libquota'$LIB_EXT |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5354 | DEPLIBQUOTA=$LIBQUOTA |
| 5355 | STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT |
| 5356 | DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA |
| 5357 | PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT |
| 5358 | DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5359 | |
| 5360 | |
| 5361 | |
| 5362 | |
| 5363 | |
| 5364 | |
| 5365 | |
Theodore Ts'o | 3df6014 | 2013-06-16 16:14:40 -0400 | [diff] [blame] | 5366 | |
| 5367 | # Check whether --enable-backtrace was given. |
| 5368 | if test "${enable_backtrace+set}" = set; then : |
| 5369 | enableval=$enable_backtrace; if test "$enableval" = "no" |
| 5370 | then |
| 5371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5 |
| 5372 | $as_echo "Disabling use of backtrace" >&6; } |
| 5373 | $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h |
| 5374 | |
| 5375 | else |
| 5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5 |
| 5377 | $as_echo "Enabling use of backtrace" >&6; } |
| 5378 | fi |
| 5379 | |
| 5380 | else |
| 5381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5 |
| 5382 | $as_echo "Enabling use of backtrace by default" >&6; } |
| 5383 | |
| 5384 | fi |
| 5385 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5386 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5387 | if test "${enable_debugfs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5388 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5389 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5390 | { $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] | 5391 | $as_echo "Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5392 | DEBUGFS_CMT="#" |
| 5393 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5394 | DEBUGFS_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5395 | { $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] | 5396 | $as_echo "Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5397 | fi |
| 5398 | |
| 5399 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5400 | { $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] | 5401 | $as_echo "Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5402 | DEBUGFS_CMT= |
| 5403 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5404 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5405 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5406 | |
| 5407 | # Check whether --enable-imager was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5408 | if test "${enable_imager+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5409 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5410 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5411 | { $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] | 5412 | $as_echo "Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5413 | IMAGER_CMT="#" |
| 5414 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5415 | IMAGER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5416 | { $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] | 5417 | $as_echo "Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5418 | fi |
| 5419 | |
| 5420 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5421 | { $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] | 5422 | $as_echo "Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5423 | IMAGER_CMT= |
| 5424 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5425 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5426 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5427 | |
| 5428 | # Check whether --enable-resizer was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5429 | if test "${enable_resizer+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5430 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5431 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5432 | { $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] | 5433 | $as_echo "Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5434 | RESIZER_CMT="#" |
| 5435 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5436 | RESIZER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5437 | { $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] | 5438 | $as_echo "Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5439 | fi |
| 5440 | |
| 5441 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5442 | { $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] | 5443 | $as_echo "Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5444 | RESIZER_CMT= |
| 5445 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5446 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5447 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5448 | |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5449 | # Check whether --enable-defrag was given. |
| 5450 | if test "${enable_defrag+set}" = set; then : |
| 5451 | enableval=$enable_defrag; if test "$enableval" = "no" |
| 5452 | then |
| 5453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 |
| 5454 | $as_echo "Disabling e4defrag support" >&6; } |
| 5455 | DEFRAG_CMT="#" |
| 5456 | else |
| 5457 | DEFRAG_CMT= |
| 5458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 |
| 5459 | $as_echo "Enabling e4defrag support" >&6; } |
| 5460 | fi |
| 5461 | |
| 5462 | else |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 5463 | if test -z "$WITH_DIET_LIBC" |
| 5464 | then |
| 5465 | { $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] | 5466 | $as_echo "Enabling e4defrag support by default" >&6; } |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 5467 | DEFRAG_CMT= |
| 5468 | else |
| 5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5 |
| 5470 | $as_echo "Disabling e4defrag support by default" >&6; } |
| 5471 | DEFRAG_CMT="#" |
| 5472 | fi |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5473 | |
| 5474 | fi |
| 5475 | |
| 5476 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5477 | # Check whether --enable-fsck was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5478 | if test "${enable_fsck+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5479 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5480 | then |
| 5481 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5482 | { $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] | 5483 | $as_echo "Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5484 | else |
| 5485 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5486 | { $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] | 5487 | $as_echo "Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5488 | fi |
| 5489 | |
| 5490 | else |
| 5491 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 5492 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5493 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5494 | { $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] | 5495 | $as_echo "Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5496 | ;; |
| 5497 | *) |
| 5498 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5499 | { $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] | 5500 | $as_echo "Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5501 | esac |
| 5502 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5503 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5504 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5505 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5506 | |
| 5507 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5508 | if test "${enable_e2initrd_helper+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5509 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5510 | then |
| 5511 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5512 | { $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] | 5513 | $as_echo "Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5514 | else |
| 5515 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5516 | { $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] | 5517 | $as_echo "Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5518 | fi |
| 5519 | |
| 5520 | else |
| 5521 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5522 | { $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] | 5523 | $as_echo "Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5524 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5525 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5526 | |
| 5527 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5528 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5529 | # Check whether --enable-tls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5530 | if test "${enable_tls+set}" = set; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5531 | enableval=$enable_tls; if test "$enableval" = "no" |
| 5532 | then |
| 5533 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5534 | { $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] | 5535 | $as_echo "Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5536 | else |
| 5537 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5538 | { $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] | 5539 | $as_echo "Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5540 | fi |
| 5541 | |
| 5542 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5543 | if test -n "$WITH_DIET_LIBC" |
| 5544 | then |
| 5545 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5546 | { $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] | 5547 | $as_echo "Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5548 | else |
| 5549 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5550 | { $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] | 5551 | $as_echo "Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5552 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5553 | |
| 5554 | fi |
| 5555 | |
| 5556 | if test "$try_tls" = "yes" |
| 5557 | then |
| 5558 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5559 | { $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] | 5560 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5561 | if ${ac_cv_tls+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5562 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5563 | else |
| 5564 | |
| 5565 | ax_tls_keywords="__thread __declspec(thread) none" |
| 5566 | for ax_tls_keyword in $ax_tls_keywords; do |
| 5567 | case $ax_tls_keyword in |
| 5568 | none) ac_cv_tls=none ; break ;; |
| 5569 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5571 | /* end confdefs.h. */ |
| 5572 | #include <stdlib.h> |
| 5573 | static void |
| 5574 | foo(void) { |
| 5575 | static $ax_tls_keyword int bar; |
| 5576 | exit(1); |
| 5577 | } |
| 5578 | int |
| 5579 | main () |
| 5580 | { |
| 5581 | |
| 5582 | ; |
| 5583 | return 0; |
| 5584 | } |
| 5585 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5586 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5587 | ac_cv_tls=$ax_tls_keyword ; break |
| 5588 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5589 | ac_cv_tls=none |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5590 | |
| 5591 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5593 | esac |
| 5594 | done |
| 5595 | |
| 5596 | fi |
| 5597 | |
| 5598 | |
| 5599 | if test "$ac_cv_tls" != "none"; then |
| 5600 | |
| 5601 | cat >>confdefs.h <<_ACEOF |
| 5602 | #define TLS $ac_cv_tls |
| 5603 | _ACEOF |
| 5604 | |
| 5605 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5606 | { $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] | 5607 | $as_echo "$ac_cv_tls" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5608 | |
| 5609 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5610 | |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5611 | # Check whether --enable-uuidd was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5612 | if test "${enable_uuidd+set}" = set; then : |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5613 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 5614 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5615 | { $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] | 5616 | $as_echo "Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5617 | UUIDD_CMT="#" |
| 5618 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5619 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5620 | |
| 5621 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5623 | $as_echo "Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5624 | fi |
| 5625 | |
| 5626 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5627 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5628 | |
| 5629 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5630 | { $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] | 5631 | $as_echo "Building uuidd by default" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5632 | |
| 5633 | fi |
| 5634 | |
| 5635 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5636 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 5637 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5638 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5639 | PACKAGE=e2fsprogs |
| 5640 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5641 | VERSION=0.14.1 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5642 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5643 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5644 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5645 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5646 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5647 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5648 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5649 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5650 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5651 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5652 | |
| 5653 | |
| 5654 | |
| 5655 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5656 | { $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] | 5657 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 5658 | set x ${MAKE-make} |
| 5659 | 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] | 5660 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5661 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5662 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5663 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5664 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5665 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5666 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5667 | _ACEOF |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5668 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5669 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 5670 | *@@@%%%=?*=@@@%%%*) |
| 5671 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 5672 | *) |
| 5673 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 5674 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5675 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5676 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5677 | 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] | 5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5679 | $as_echo "yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5680 | SET_MAKE= |
| 5681 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5683 | $as_echo "no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5684 | SET_MAKE="MAKE=${MAKE-make}" |
| 5685 | fi |
| 5686 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5687 | # Find a good install program. We prefer a C program (faster), |
| 5688 | # so one script is as good as another. But avoid the broken or |
| 5689 | # incompatible versions: |
| 5690 | # SysV /etc/install, /usr/sbin/install |
| 5691 | # SunOS /usr/etc/install |
| 5692 | # IRIX /sbin/install |
| 5693 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5694 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5695 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5696 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5697 | # 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] | 5698 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5699 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5700 | # Reject install programs that cannot install multiple files. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5701 | { $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] | 5702 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5703 | if test -z "$INSTALL"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5704 | if ${ac_cv_path_install+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5705 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5706 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5708 | for as_dir in $PATH |
| 5709 | do |
| 5710 | IFS=$as_save_IFS |
| 5711 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5712 | # Account for people who put trailing slashes in PATH elements. |
| 5713 | case $as_dir/ in #(( |
| 5714 | ./ | .// | /[cC]/* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5715 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5716 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5717 | /usr/ucb/* ) ;; |
| 5718 | *) |
| 5719 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5720 | # Don't use installbsd from OSF since it installs stuff as root |
| 5721 | # by default. |
| 5722 | for ac_prog in ginstall scoinst install; do |
| 5723 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5724 | 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] | 5725 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5726 | 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] | 5727 | # AIX install. It has an incompatible calling convention. |
| 5728 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5729 | elif test $ac_prog = install && |
| 5730 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5731 | # program-specific install script used by HP pwplus--don't use. |
| 5732 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5733 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5734 | rm -rf conftest.one conftest.two conftest.dir |
| 5735 | echo one > conftest.one |
| 5736 | echo two > conftest.two |
| 5737 | mkdir conftest.dir |
| 5738 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5739 | test -s conftest.one && test -s conftest.two && |
| 5740 | test -s conftest.dir/conftest.one && |
| 5741 | test -s conftest.dir/conftest.two |
| 5742 | then |
| 5743 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5744 | break 3 |
| 5745 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5746 | fi |
| 5747 | fi |
| 5748 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5749 | done |
| 5750 | ;; |
| 5751 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5752 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5753 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5754 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5755 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5756 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5757 | |
| 5758 | fi |
| 5759 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5760 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5761 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5762 | # As a last resort, use the slow shell script. Don't cache a |
| 5763 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5764 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5765 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5766 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5767 | fi |
| 5768 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5770 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5771 | |
| 5772 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5773 | # It thinks the first close brace ends the variable substitution. |
| 5774 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5775 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5776 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5777 | |
| 5778 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5779 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5780 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5781 | MKINSTALLDIRS= |
| 5782 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5783 | case "$ac_aux_dir" in |
| 5784 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 5785 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 5786 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5787 | fi |
| 5788 | if test -z "$MKINSTALLDIRS"; then |
| 5789 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 5790 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5791 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5792 | |
| 5793 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5794 | { $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] | 5795 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5796 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5797 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5798 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5799 | else |
| 5800 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5801 | fi |
| 5802 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5804 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5805 | |
| 5806 | |
| 5807 | |
| 5808 | |
| 5809 | |
| 5810 | |
| 5811 | # Prepare PATH_SEPARATOR. |
| 5812 | # The user is always right. |
| 5813 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5814 | echo "#! /bin/sh" >conf$$.sh |
| 5815 | echo "exit 0" >>conf$$.sh |
| 5816 | chmod +x conf$$.sh |
| 5817 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5818 | PATH_SEPARATOR=';' |
| 5819 | else |
| 5820 | PATH_SEPARATOR=: |
| 5821 | fi |
| 5822 | rm -f conf$$.sh |
| 5823 | fi |
| 5824 | |
| 5825 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5826 | # as systems may use methods other than mode bits to determine executability. |
| 5827 | cat >conf$$.file <<_ASEOF |
| 5828 | #! /bin/sh |
| 5829 | exit 0 |
| 5830 | _ASEOF |
| 5831 | chmod +x conf$$.file |
| 5832 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5833 | ac_executable_p="test -x" |
| 5834 | else |
| 5835 | ac_executable_p="test -f" |
| 5836 | fi |
| 5837 | rm -f conf$$.file |
| 5838 | |
| 5839 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 5840 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5841 | { $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] | 5842 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5843 | if ${ac_cv_path_MSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5844 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5845 | else |
| 5846 | case "$MSGFMT" in |
| 5847 | [\\/]* | ?:[\\/]*) |
| 5848 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 5849 | ;; |
| 5850 | *) |
| 5851 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5852 | for ac_dir in $PATH; do |
| 5853 | IFS="$ac_save_IFS" |
| 5854 | test -z "$ac_dir" && ac_dir=. |
| 5855 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5856 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5857 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 5858 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5859 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 5860 | break 2 |
| 5861 | fi |
| 5862 | fi |
| 5863 | done |
| 5864 | done |
| 5865 | IFS="$ac_save_IFS" |
| 5866 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 5867 | ;; |
| 5868 | esac |
| 5869 | fi |
| 5870 | MSGFMT="$ac_cv_path_MSGFMT" |
| 5871 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5873 | $as_echo "$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5874 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5876 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5877 | fi |
| 5878 | |
| 5879 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 5880 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5881 | { $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] | 5882 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5883 | if ${ac_cv_path_GMSGFMT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5884 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5885 | else |
| 5886 | case $GMSGFMT in |
| 5887 | [\\/]* | ?:[\\/]*) |
| 5888 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 5889 | ;; |
| 5890 | *) |
| 5891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5892 | for as_dir in $PATH |
| 5893 | do |
| 5894 | IFS=$as_save_IFS |
| 5895 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5896 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5897 | 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] | 5898 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5899 | $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] | 5900 | break 2 |
| 5901 | fi |
| 5902 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5903 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5904 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5905 | |
| 5906 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 5907 | ;; |
| 5908 | esac |
| 5909 | fi |
| 5910 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5911 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5913 | $as_echo "$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5914 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5916 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5917 | fi |
| 5918 | |
| 5919 | |
| 5920 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5921 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5922 | # Prepare PATH_SEPARATOR. |
| 5923 | # The user is always right. |
| 5924 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5925 | echo "#! /bin/sh" >conf$$.sh |
| 5926 | echo "exit 0" >>conf$$.sh |
| 5927 | chmod +x conf$$.sh |
| 5928 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5929 | PATH_SEPARATOR=';' |
| 5930 | else |
| 5931 | PATH_SEPARATOR=: |
| 5932 | fi |
| 5933 | rm -f conf$$.sh |
| 5934 | fi |
| 5935 | |
| 5936 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5937 | # as systems may use methods other than mode bits to determine executability. |
| 5938 | cat >conf$$.file <<_ASEOF |
| 5939 | #! /bin/sh |
| 5940 | exit 0 |
| 5941 | _ASEOF |
| 5942 | chmod +x conf$$.file |
| 5943 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5944 | ac_executable_p="test -x" |
| 5945 | else |
| 5946 | ac_executable_p="test -f" |
| 5947 | fi |
| 5948 | rm -f conf$$.file |
| 5949 | |
| 5950 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 5951 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5952 | { $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] | 5953 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 5954 | if ${ac_cv_path_XGETTEXT+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5955 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5956 | else |
| 5957 | case "$XGETTEXT" in |
| 5958 | [\\/]* | ?:[\\/]*) |
| 5959 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 5960 | ;; |
| 5961 | *) |
| 5962 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5963 | for ac_dir in $PATH; do |
| 5964 | IFS="$ac_save_IFS" |
| 5965 | test -z "$ac_dir" && ac_dir=. |
| 5966 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5967 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5968 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5969 | (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 |
| 5970 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 5971 | break 2 |
| 5972 | fi |
| 5973 | fi |
| 5974 | done |
| 5975 | done |
| 5976 | IFS="$ac_save_IFS" |
| 5977 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 5978 | ;; |
| 5979 | esac |
| 5980 | fi |
| 5981 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 5982 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5984 | $as_echo "$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5985 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5987 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5988 | fi |
| 5989 | |
| 5990 | rm -f messages.po |
| 5991 | |
| 5992 | |
| 5993 | # Prepare PATH_SEPARATOR. |
| 5994 | # The user is always right. |
| 5995 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5996 | echo "#! /bin/sh" >conf$$.sh |
| 5997 | echo "exit 0" >>conf$$.sh |
| 5998 | chmod +x conf$$.sh |
| 5999 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 6000 | PATH_SEPARATOR=';' |
| 6001 | else |
| 6002 | PATH_SEPARATOR=: |
| 6003 | fi |
| 6004 | rm -f conf$$.sh |
| 6005 | fi |
| 6006 | |
| 6007 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 6008 | # as systems may use methods other than mode bits to determine executability. |
| 6009 | cat >conf$$.file <<_ASEOF |
| 6010 | #! /bin/sh |
| 6011 | exit 0 |
| 6012 | _ASEOF |
| 6013 | chmod +x conf$$.file |
| 6014 | if test -x conf$$.file >/dev/null 2>&1; then |
| 6015 | ac_executable_p="test -x" |
| 6016 | else |
| 6017 | ac_executable_p="test -f" |
| 6018 | fi |
| 6019 | rm -f conf$$.file |
| 6020 | |
| 6021 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 6022 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6023 | { $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] | 6024 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6025 | if ${ac_cv_path_MSGMERGE+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6026 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6027 | else |
| 6028 | case "$MSGMERGE" in |
| 6029 | [\\/]* | ?:[\\/]*) |
| 6030 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 6031 | ;; |
| 6032 | *) |
| 6033 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 6034 | for ac_dir in $PATH; do |
| 6035 | IFS="$ac_save_IFS" |
| 6036 | test -z "$ac_dir" && ac_dir=. |
| 6037 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6038 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 6039 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 6040 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 6041 | break 2 |
| 6042 | fi |
| 6043 | fi |
| 6044 | done |
| 6045 | done |
| 6046 | IFS="$ac_save_IFS" |
| 6047 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 6048 | ;; |
| 6049 | esac |
| 6050 | fi |
| 6051 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 6052 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6054 | $as_echo "$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6055 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6057 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6058 | fi |
| 6059 | |
| 6060 | |
| 6061 | if test "$GMSGFMT" != ":"; then |
| 6062 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 6063 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 6064 | : ; |
| 6065 | else |
| 6066 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6068 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6069 | GMSGFMT=":" |
| 6070 | fi |
| 6071 | fi |
| 6072 | |
| 6073 | if test "$XGETTEXT" != ":"; then |
| 6074 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 6075 | (if $XGETTEXT --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 |
| 6076 | : ; |
| 6077 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6079 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6080 | XGETTEXT=":" |
| 6081 | fi |
| 6082 | rm -f messages.po |
| 6083 | fi |
| 6084 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6085 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6086 | |
| 6087 | |
| 6088 | if test -n "$ac_tool_prefix"; then |
| 6089 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6090 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6091 | { $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] | 6092 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6093 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6094 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6095 | else |
| 6096 | if test -n "$RANLIB"; then |
| 6097 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6098 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6100 | for as_dir in $PATH |
| 6101 | do |
| 6102 | IFS=$as_save_IFS |
| 6103 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6104 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6105 | 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] | 6106 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6107 | $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] | 6108 | break 2 |
| 6109 | fi |
| 6110 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6111 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6112 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6113 | |
| 6114 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6115 | fi |
| 6116 | RANLIB=$ac_cv_prog_RANLIB |
| 6117 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6119 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6120 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6122 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6123 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6124 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6125 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6126 | fi |
| 6127 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6128 | ac_ct_RANLIB=$RANLIB |
| 6129 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6130 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6131 | { $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] | 6132 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6133 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6134 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6135 | else |
| 6136 | if test -n "$ac_ct_RANLIB"; then |
| 6137 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6138 | else |
| 6139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6140 | for as_dir in $PATH |
| 6141 | do |
| 6142 | IFS=$as_save_IFS |
| 6143 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6144 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6145 | 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] | 6146 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6147 | $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] | 6148 | break 2 |
| 6149 | fi |
| 6150 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6151 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6152 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6153 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6154 | fi |
| 6155 | fi |
| 6156 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6157 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6158 | { $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] | 6159 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6160 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6162 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6163 | fi |
| 6164 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6165 | if test "x$ac_ct_RANLIB" = x; then |
| 6166 | RANLIB=":" |
| 6167 | else |
| 6168 | case $cross_compiling:$ac_tool_warned in |
| 6169 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6170 | { $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] | 6171 | $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] | 6172 | ac_tool_warned=yes ;; |
| 6173 | esac |
| 6174 | RANLIB=$ac_ct_RANLIB |
| 6175 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6176 | else |
| 6177 | RANLIB="$ac_cv_prog_RANLIB" |
| 6178 | fi |
| 6179 | |
| 6180 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6182 | $as_echo_n "checking for strerror in -lcposix... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6183 | if ${ac_cv_lib_cposix_strerror+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6184 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6185 | else |
| 6186 | ac_check_lib_save_LIBS=$LIBS |
| 6187 | LIBS="-lcposix $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6189 | /* end confdefs.h. */ |
| 6190 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6191 | /* Override any GCC internal prototype to avoid an error. |
| 6192 | Use char because int might match the return type of a GCC |
| 6193 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6194 | #ifdef __cplusplus |
| 6195 | extern "C" |
| 6196 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6197 | char strerror (); |
| 6198 | int |
| 6199 | main () |
| 6200 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6201 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6202 | ; |
| 6203 | return 0; |
| 6204 | } |
| 6205 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6206 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6207 | ac_cv_lib_cposix_strerror=yes |
| 6208 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6209 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6210 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6211 | rm -f core conftest.err conftest.$ac_objext \ |
| 6212 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6213 | LIBS=$ac_check_lib_save_LIBS |
| 6214 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6216 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6217 | if test "x$ac_cv_lib_cposix_strerror" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6218 | LIBS="$LIBS -lcposix" |
| 6219 | fi |
| 6220 | |
| 6221 | |
| 6222 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6223 | |
| 6224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 6225 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6226 | if ${ac_cv_path_GREP+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6227 | $as_echo_n "(cached) " >&6 |
| 6228 | else |
| 6229 | if test -z "$GREP"; then |
| 6230 | ac_path_GREP_found=false |
| 6231 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6233 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6234 | do |
| 6235 | IFS=$as_save_IFS |
| 6236 | test -z "$as_dir" && as_dir=. |
| 6237 | for ac_prog in grep ggrep; do |
| 6238 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6239 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6240 | as_fn_executable_p "$ac_path_GREP" || continue |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6241 | # Check for GNU ac_path_GREP and select it if it is found. |
| 6242 | # Check for GNU $ac_path_GREP |
| 6243 | case `"$ac_path_GREP" --version 2>&1` in |
| 6244 | *GNU*) |
| 6245 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 6246 | *) |
| 6247 | ac_count=0 |
| 6248 | $as_echo_n 0123456789 >"conftest.in" |
| 6249 | while : |
| 6250 | do |
| 6251 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6252 | mv "conftest.tmp" "conftest.in" |
| 6253 | cp "conftest.in" "conftest.nl" |
| 6254 | $as_echo 'GREP' >> "conftest.nl" |
| 6255 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6256 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6257 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6258 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 6259 | # Best one so far, save it but keep looking for a better one |
| 6260 | ac_cv_path_GREP="$ac_path_GREP" |
| 6261 | ac_path_GREP_max=$ac_count |
| 6262 | fi |
| 6263 | # 10*(2^10) chars as input seems more than enough |
| 6264 | test $ac_count -gt 10 && break |
| 6265 | done |
| 6266 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6267 | esac |
| 6268 | |
| 6269 | $ac_path_GREP_found && break 3 |
| 6270 | done |
| 6271 | done |
| 6272 | done |
| 6273 | IFS=$as_save_IFS |
| 6274 | if test -z "$ac_cv_path_GREP"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6275 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6276 | fi |
| 6277 | else |
| 6278 | ac_cv_path_GREP=$GREP |
| 6279 | fi |
| 6280 | |
| 6281 | fi |
| 6282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 6283 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 6284 | GREP="$ac_cv_path_GREP" |
| 6285 | |
| 6286 | |
| 6287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 6288 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6289 | if ${ac_cv_path_EGREP+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6290 | $as_echo_n "(cached) " >&6 |
| 6291 | else |
| 6292 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 6293 | then ac_cv_path_EGREP="$GREP -E" |
| 6294 | else |
| 6295 | if test -z "$EGREP"; then |
| 6296 | ac_path_EGREP_found=false |
| 6297 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6299 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6300 | do |
| 6301 | IFS=$as_save_IFS |
| 6302 | test -z "$as_dir" && as_dir=. |
| 6303 | for ac_prog in egrep; do |
| 6304 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6305 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6306 | as_fn_executable_p "$ac_path_EGREP" || continue |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6307 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 6308 | # Check for GNU $ac_path_EGREP |
| 6309 | case `"$ac_path_EGREP" --version 2>&1` in |
| 6310 | *GNU*) |
| 6311 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 6312 | *) |
| 6313 | ac_count=0 |
| 6314 | $as_echo_n 0123456789 >"conftest.in" |
| 6315 | while : |
| 6316 | do |
| 6317 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6318 | mv "conftest.tmp" "conftest.in" |
| 6319 | cp "conftest.in" "conftest.nl" |
| 6320 | $as_echo 'EGREP' >> "conftest.nl" |
| 6321 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6322 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6323 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6324 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 6325 | # Best one so far, save it but keep looking for a better one |
| 6326 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 6327 | ac_path_EGREP_max=$ac_count |
| 6328 | fi |
| 6329 | # 10*(2^10) chars as input seems more than enough |
| 6330 | test $ac_count -gt 10 && break |
| 6331 | done |
| 6332 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6333 | esac |
| 6334 | |
| 6335 | $ac_path_EGREP_found && break 3 |
| 6336 | done |
| 6337 | done |
| 6338 | done |
| 6339 | IFS=$as_save_IFS |
| 6340 | if test -z "$ac_cv_path_EGREP"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6341 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6342 | fi |
| 6343 | else |
| 6344 | ac_cv_path_EGREP=$EGREP |
| 6345 | fi |
| 6346 | |
| 6347 | fi |
| 6348 | fi |
| 6349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 6350 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 6351 | EGREP="$ac_cv_path_EGREP" |
| 6352 | |
| 6353 | |
| 6354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 6355 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6356 | if ${ac_cv_header_stdc+:} false; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6357 | $as_echo_n "(cached) " >&6 |
| 6358 | else |
| 6359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6360 | /* end confdefs.h. */ |
| 6361 | #include <stdlib.h> |
| 6362 | #include <stdarg.h> |
| 6363 | #include <string.h> |
| 6364 | #include <float.h> |
| 6365 | |
| 6366 | int |
| 6367 | main () |
| 6368 | { |
| 6369 | |
| 6370 | ; |
| 6371 | return 0; |
| 6372 | } |
| 6373 | _ACEOF |
| 6374 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6375 | ac_cv_header_stdc=yes |
| 6376 | else |
| 6377 | ac_cv_header_stdc=no |
| 6378 | fi |
| 6379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6380 | |
| 6381 | if test $ac_cv_header_stdc = yes; then |
| 6382 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6384 | /* end confdefs.h. */ |
| 6385 | #include <string.h> |
| 6386 | |
| 6387 | _ACEOF |
| 6388 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6389 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6390 | |
| 6391 | else |
| 6392 | ac_cv_header_stdc=no |
| 6393 | fi |
| 6394 | rm -f conftest* |
| 6395 | |
| 6396 | fi |
| 6397 | |
| 6398 | if test $ac_cv_header_stdc = yes; then |
| 6399 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6401 | /* end confdefs.h. */ |
| 6402 | #include <stdlib.h> |
| 6403 | |
| 6404 | _ACEOF |
| 6405 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6406 | $EGREP "free" >/dev/null 2>&1; then : |
| 6407 | |
| 6408 | else |
| 6409 | ac_cv_header_stdc=no |
| 6410 | fi |
| 6411 | rm -f conftest* |
| 6412 | |
| 6413 | fi |
| 6414 | |
| 6415 | if test $ac_cv_header_stdc = yes; then |
| 6416 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6417 | if test "$cross_compiling" = yes; then : |
| 6418 | : |
| 6419 | else |
| 6420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6421 | /* end confdefs.h. */ |
| 6422 | #include <ctype.h> |
| 6423 | #include <stdlib.h> |
| 6424 | #if ((' ' & 0x0FF) == 0x020) |
| 6425 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6426 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6427 | #else |
| 6428 | # define ISLOWER(c) \ |
| 6429 | (('a' <= (c) && (c) <= 'i') \ |
| 6430 | || ('j' <= (c) && (c) <= 'r') \ |
| 6431 | || ('s' <= (c) && (c) <= 'z')) |
| 6432 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6433 | #endif |
| 6434 | |
| 6435 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6436 | int |
| 6437 | main () |
| 6438 | { |
| 6439 | int i; |
| 6440 | for (i = 0; i < 256; i++) |
| 6441 | if (XOR (islower (i), ISLOWER (i)) |
| 6442 | || toupper (i) != TOUPPER (i)) |
| 6443 | return 2; |
| 6444 | return 0; |
| 6445 | } |
| 6446 | _ACEOF |
| 6447 | if ac_fn_c_try_run "$LINENO"; then : |
| 6448 | |
| 6449 | else |
| 6450 | ac_cv_header_stdc=no |
| 6451 | fi |
| 6452 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6453 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6454 | fi |
| 6455 | |
| 6456 | fi |
| 6457 | fi |
| 6458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 6459 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 6460 | if test $ac_cv_header_stdc = yes; then |
| 6461 | |
| 6462 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 6463 | |
| 6464 | fi |
| 6465 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6467 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6468 | if ${ac_cv_c_const+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6469 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6470 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6472 | /* end confdefs.h. */ |
| 6473 | |
| 6474 | int |
| 6475 | main () |
| 6476 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6477 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6478 | #ifndef __cplusplus |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6479 | /* Ultrix mips cc rejects this sort of thing. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6480 | typedef int charset[2]; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6481 | const charset cs = { 0, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6482 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6483 | char const *const *pcpcc; |
| 6484 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6485 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 6486 | struct point {int x, y;}; |
| 6487 | static struct point const zero = {0,0}; |
| 6488 | /* AIX XL C 1.02.0.0 rejects this. |
| 6489 | It does not let you subtract one const X* pointer from another in |
| 6490 | an arm of an if-expression whose if-part is not a constant |
| 6491 | expression */ |
| 6492 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6493 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6494 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6495 | ++pcpcc; |
| 6496 | ppc = (char**) pcpcc; |
| 6497 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6498 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 6499 | char tx; |
| 6500 | char *t = &tx; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6501 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 6502 | |
| 6503 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6504 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6505 | } |
| 6506 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 6507 | int x[] = {25, 17}; |
| 6508 | const int *foo = &x[0]; |
| 6509 | ++foo; |
| 6510 | } |
| 6511 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 6512 | typedef const int *iptr; |
| 6513 | iptr p = 0; |
| 6514 | ++p; |
| 6515 | } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6516 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6517 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6518 | struct s { int j; const int *ap[3]; } bx; |
| 6519 | struct s *b = &bx; b->j = 5; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6520 | } |
| 6521 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6522 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6523 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6524 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6525 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6526 | #endif |
| 6527 | |
| 6528 | ; |
| 6529 | return 0; |
| 6530 | } |
| 6531 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6532 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6533 | ac_cv_c_const=yes |
| 6534 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6535 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6536 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6537 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6538 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6540 | $as_echo "$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6541 | if test $ac_cv_c_const = no; then |
| 6542 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6543 | $as_echo "#define const /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6544 | |
| 6545 | fi |
| 6546 | |
| 6547 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6549 | $as_echo_n "checking for signed... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6550 | if ${bh_cv_c_signed+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6551 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6552 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6554 | /* end confdefs.h. */ |
| 6555 | |
| 6556 | int |
| 6557 | main () |
| 6558 | { |
| 6559 | signed char x; |
| 6560 | ; |
| 6561 | return 0; |
| 6562 | } |
| 6563 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6564 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6565 | bh_cv_c_signed=yes |
| 6566 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6567 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6568 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6570 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6572 | $as_echo "$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6573 | if test $bh_cv_c_signed = no; then |
| 6574 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6575 | $as_echo "#define signed /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6576 | |
| 6577 | fi |
| 6578 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6580 | $as_echo_n "checking for inline... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6581 | if ${ac_cv_c_inline+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6582 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6583 | else |
| 6584 | ac_cv_c_inline=no |
| 6585 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6587 | /* end confdefs.h. */ |
| 6588 | #ifndef __cplusplus |
| 6589 | typedef int foo_t; |
| 6590 | static $ac_kw foo_t static_foo () {return 0; } |
| 6591 | $ac_kw foo_t foo () {return 0; } |
| 6592 | #endif |
| 6593 | |
| 6594 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6595 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6596 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6597 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6599 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6600 | done |
| 6601 | |
| 6602 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6603 | { $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] | 6604 | $as_echo "$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6605 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6606 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6607 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6608 | *) |
| 6609 | case $ac_cv_c_inline in |
| 6610 | no) ac_val=;; |
| 6611 | *) ac_val=$ac_cv_c_inline;; |
| 6612 | esac |
| 6613 | cat >>confdefs.h <<_ACEOF |
| 6614 | #ifndef __cplusplus |
| 6615 | #define inline $ac_val |
| 6616 | #endif |
| 6617 | _ACEOF |
| 6618 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6619 | esac |
| 6620 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6621 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6622 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6623 | inttypes.h stdint.h unistd.h |
| 6624 | do : |
| 6625 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6626 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6627 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6628 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6629 | cat >>confdefs.h <<_ACEOF |
| 6630 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6631 | _ACEOF |
| 6632 | |
| 6633 | fi |
| 6634 | |
| 6635 | done |
| 6636 | |
| 6637 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6638 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6639 | if test "x$ac_cv_type_off_t" = xyes; then : |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6640 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6641 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6642 | |
| 6643 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6644 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6645 | _ACEOF |
| 6646 | |
| 6647 | fi |
| 6648 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6649 | 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] | 6650 | if test "x$ac_cv_type_size_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6651 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6652 | else |
| 6653 | |
| 6654 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6655 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6656 | _ACEOF |
| 6657 | |
| 6658 | fi |
| 6659 | |
| 6660 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6662 | $as_echo_n "checking for long long... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6663 | if ${ac_cv_type_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6664 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6665 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6667 | /* end confdefs.h. */ |
| 6668 | long long ll = 1LL; int i = 63; |
| 6669 | int |
| 6670 | main () |
| 6671 | { |
| 6672 | long long llmax = (long long) -1; |
| 6673 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 6674 | ; |
| 6675 | return 0; |
| 6676 | } |
| 6677 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6678 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6679 | ac_cv_type_long_long=yes |
| 6680 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6681 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6682 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6683 | rm -f core conftest.err conftest.$ac_objext \ |
| 6684 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6685 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6687 | $as_echo "$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6688 | if test $ac_cv_type_long_long = yes; then |
| 6689 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6690 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6691 | |
| 6692 | fi |
| 6693 | |
| 6694 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6696 | $as_echo_n "checking for long double... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6697 | if ${gt_cv_c_long_double+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6698 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6699 | else |
| 6700 | if test "$GCC" = yes; then |
| 6701 | gt_cv_c_long_double=yes |
| 6702 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6704 | /* end confdefs.h. */ |
| 6705 | |
| 6706 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 6707 | long double foo = 0.0; |
| 6708 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 6709 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 6710 | |
| 6711 | int |
| 6712 | main () |
| 6713 | { |
| 6714 | |
| 6715 | ; |
| 6716 | return 0; |
| 6717 | } |
| 6718 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6719 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6720 | gt_cv_c_long_double=yes |
| 6721 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6722 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6723 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6725 | fi |
| 6726 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6728 | $as_echo "$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6729 | if test $gt_cv_c_long_double = yes; then |
| 6730 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6731 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6732 | |
| 6733 | fi |
| 6734 | |
| 6735 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6737 | $as_echo_n "checking for wchar_t... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6738 | if ${gt_cv_c_wchar_t+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6739 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6740 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6742 | /* end confdefs.h. */ |
| 6743 | #include <stddef.h> |
| 6744 | wchar_t foo = (wchar_t)'\0'; |
| 6745 | int |
| 6746 | main () |
| 6747 | { |
| 6748 | |
| 6749 | ; |
| 6750 | return 0; |
| 6751 | } |
| 6752 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6753 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6754 | gt_cv_c_wchar_t=yes |
| 6755 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6756 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6757 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6759 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6761 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6762 | if test $gt_cv_c_wchar_t = yes; then |
| 6763 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6764 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6765 | |
| 6766 | fi |
| 6767 | |
| 6768 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6770 | $as_echo_n "checking for wint_t... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6771 | if ${gt_cv_c_wint_t+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6772 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6773 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6775 | /* end confdefs.h. */ |
| 6776 | #include <wchar.h> |
| 6777 | wint_t foo = (wchar_t)'\0'; |
| 6778 | int |
| 6779 | main () |
| 6780 | { |
| 6781 | |
| 6782 | ; |
| 6783 | return 0; |
| 6784 | } |
| 6785 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6786 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6787 | gt_cv_c_wint_t=yes |
| 6788 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6789 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6790 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6792 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6794 | $as_echo "$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6795 | if test $gt_cv_c_wint_t = yes; then |
| 6796 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6797 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6798 | |
| 6799 | fi |
| 6800 | |
| 6801 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6803 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6804 | if ${jm_ac_cv_header_inttypes_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6805 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6806 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6808 | /* end confdefs.h. */ |
| 6809 | #include <sys/types.h> |
| 6810 | #include <inttypes.h> |
| 6811 | int |
| 6812 | main () |
| 6813 | { |
| 6814 | uintmax_t i = (uintmax_t) -1; |
| 6815 | ; |
| 6816 | return 0; |
| 6817 | } |
| 6818 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6819 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6820 | jm_ac_cv_header_inttypes_h=yes |
| 6821 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6822 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6823 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6825 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6827 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6828 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 6829 | |
| 6830 | cat >>confdefs.h <<_ACEOF |
| 6831 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 6832 | _ACEOF |
| 6833 | |
| 6834 | fi |
| 6835 | |
| 6836 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6837 | { $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] | 6838 | $as_echo_n "checking for stdint.h... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6839 | if ${jm_ac_cv_header_stdint_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6840 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6841 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6843 | /* end confdefs.h. */ |
| 6844 | #include <sys/types.h> |
| 6845 | #include <stdint.h> |
| 6846 | int |
| 6847 | main () |
| 6848 | { |
| 6849 | uintmax_t i = (uintmax_t) -1; |
| 6850 | ; |
| 6851 | return 0; |
| 6852 | } |
| 6853 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6854 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6855 | jm_ac_cv_header_stdint_h=yes |
| 6856 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6857 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6858 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6862 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6863 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 6864 | |
| 6865 | cat >>confdefs.h <<_ACEOF |
| 6866 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6867 | _ACEOF |
| 6868 | |
| 6869 | fi |
| 6870 | |
| 6871 | |
| 6872 | |
| 6873 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6875 | $as_echo_n "checking for intmax_t... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6876 | if ${gt_cv_c_intmax_t+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6877 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6878 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6880 | /* end confdefs.h. */ |
| 6881 | |
| 6882 | #include <stddef.h> |
| 6883 | #include <stdlib.h> |
| 6884 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 6885 | #include <stdint.h> |
| 6886 | #endif |
| 6887 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 6888 | #include <inttypes.h> |
| 6889 | #endif |
| 6890 | |
| 6891 | int |
| 6892 | main () |
| 6893 | { |
| 6894 | intmax_t x = -1; |
| 6895 | ; |
| 6896 | return 0; |
| 6897 | } |
| 6898 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6899 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6900 | gt_cv_c_intmax_t=yes |
| 6901 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6902 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6903 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6905 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6907 | $as_echo "$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6908 | if test $gt_cv_c_intmax_t = yes; then |
| 6909 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6910 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6911 | |
| 6912 | fi |
| 6913 | |
| 6914 | |
| 6915 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6917 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6918 | if ${gt_cv_func_printf_posix+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6919 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6920 | else |
| 6921 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6922 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6923 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6925 | /* end confdefs.h. */ |
| 6926 | |
| 6927 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 6928 | notposix |
| 6929 | #endif |
| 6930 | |
| 6931 | _ACEOF |
| 6932 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6933 | $EGREP "notposix" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6934 | gt_cv_func_printf_posix="guessing no" |
| 6935 | else |
| 6936 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6937 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6938 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6939 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6940 | |
| 6941 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6943 | /* end confdefs.h. */ |
| 6944 | |
| 6945 | #include <stdio.h> |
| 6946 | #include <string.h> |
| 6947 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 6948 | dollar expansion (possibly an autoconf bug). */ |
| 6949 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 6950 | static char buf[100]; |
| 6951 | int main () |
| 6952 | { |
| 6953 | sprintf (buf, format, 33, 55); |
| 6954 | return (strcmp (buf, "55 33") != 0); |
| 6955 | } |
| 6956 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6957 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6958 | gt_cv_func_printf_posix=yes |
| 6959 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6960 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6961 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6962 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6963 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6964 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6965 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6966 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6967 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6969 | $as_echo "$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6970 | case $gt_cv_func_printf_posix in |
| 6971 | *yes) |
| 6972 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6973 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6974 | |
| 6975 | ;; |
| 6976 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6977 | |
| 6978 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6979 | # for constant arguments. Useless! |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6980 | { $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] | 6981 | $as_echo_n "checking for working alloca.h... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 6982 | if ${ac_cv_working_alloca_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6983 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6984 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6986 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6987 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6988 | int |
| 6989 | main () |
| 6990 | { |
| 6991 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6992 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6993 | ; |
| 6994 | return 0; |
| 6995 | } |
| 6996 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6997 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6998 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6999 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7000 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7001 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7002 | rm -f core conftest.err conftest.$ac_objext \ |
| 7003 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7004 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7005 | { $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] | 7006 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7007 | if test $ac_cv_working_alloca_h = yes; then |
| 7008 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7009 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7010 | |
| 7011 | fi |
| 7012 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7014 | $as_echo_n "checking for alloca... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7015 | if ${ac_cv_func_alloca_works+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7016 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7017 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7019 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7020 | #ifdef __GNUC__ |
| 7021 | # define alloca __builtin_alloca |
| 7022 | #else |
| 7023 | # ifdef _MSC_VER |
| 7024 | # include <malloc.h> |
| 7025 | # define alloca _alloca |
| 7026 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7027 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7028 | # include <alloca.h> |
| 7029 | # else |
| 7030 | # ifdef _AIX |
| 7031 | #pragma alloca |
| 7032 | # else |
| 7033 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7034 | void *alloca (size_t); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7035 | # endif |
| 7036 | # endif |
| 7037 | # endif |
| 7038 | # endif |
| 7039 | #endif |
| 7040 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7041 | int |
| 7042 | main () |
| 7043 | { |
| 7044 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7045 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7046 | ; |
| 7047 | return 0; |
| 7048 | } |
| 7049 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7050 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7051 | ac_cv_func_alloca_works=yes |
| 7052 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7053 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7054 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7055 | rm -f core conftest.err conftest.$ac_objext \ |
| 7056 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7057 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7058 | { $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] | 7059 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7060 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7061 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7062 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7063 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7064 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7065 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7066 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 7067 | # that cause trouble. Some versions do not even contain alloca or |
| 7068 | # contain a buggy version. If you still want to use their alloca, |
| 7069 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 7070 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7071 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7072 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7073 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7074 | |
| 7075 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7076 | { $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] | 7077 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7078 | if ${ac_cv_os_cray+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7079 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7080 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7082 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7083 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7084 | webecray |
| 7085 | #else |
| 7086 | wenotbecray |
| 7087 | #endif |
| 7088 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7089 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7090 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7091 | $EGREP "webecray" >/dev/null 2>&1; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7092 | ac_cv_os_cray=yes |
| 7093 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7094 | ac_cv_os_cray=no |
| 7095 | fi |
| 7096 | rm -f conftest* |
| 7097 | |
| 7098 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7099 | { $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] | 7100 | $as_echo "$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7101 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7102 | for ac_func in _getb67 GETB67 getb67; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7103 | 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] | 7104 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7105 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7106 | |
| 7107 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7108 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7109 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7110 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7111 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7112 | fi |
| 7113 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7114 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7115 | fi |
| 7116 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7117 | { $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] | 7118 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7119 | if ${ac_cv_c_stack_direction+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7120 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7121 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7122 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7123 | ac_cv_c_stack_direction=0 |
| 7124 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7126 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7127 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7128 | int |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7129 | find_stack_direction (int *addr, int depth) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7130 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7131 | int dir, dummy = 0; |
| 7132 | if (! addr) |
| 7133 | addr = &dummy; |
| 7134 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 7135 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 7136 | return dir + dummy; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7137 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7138 | |
| 7139 | int |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7140 | main (int argc, char **argv) |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7141 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7142 | return find_stack_direction (0, argc + !argv + 20) < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7143 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7144 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7145 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7146 | ac_cv_c_stack_direction=1 |
| 7147 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7148 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7149 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7150 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7151 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7152 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7153 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7154 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7155 | { $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] | 7156 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7157 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7158 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7159 | _ACEOF |
| 7160 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7161 | |
| 7162 | fi |
| 7163 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7164 | |
| 7165 | |
| 7166 | |
| 7167 | for ac_header in $ac_header_list |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7168 | do : |
| 7169 | 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] | 7170 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7171 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7172 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7173 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7174 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7175 | _ACEOF |
| 7176 | |
| 7177 | fi |
| 7178 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7179 | done |
| 7180 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7181 | |
| 7182 | |
| 7183 | |
| 7184 | |
| 7185 | |
| 7186 | |
| 7187 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7188 | for ac_func in getpagesize |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7189 | do : |
| 7190 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7191 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7192 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7193 | #define HAVE_GETPAGESIZE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7194 | _ACEOF |
| 7195 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7196 | fi |
| 7197 | done |
| 7198 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7199 | { $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] | 7200 | $as_echo_n "checking for working mmap... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7201 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7202 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7203 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7204 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7205 | ac_cv_func_mmap_fixed_mapped=no |
| 7206 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7208 | /* end confdefs.h. */ |
| 7209 | $ac_includes_default |
| 7210 | /* malloc might have been renamed as rpl_malloc. */ |
| 7211 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7212 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7213 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7214 | Here is a matrix of mmap possibilities: |
| 7215 | mmap private not fixed |
| 7216 | mmap private fixed at somewhere currently unmapped |
| 7217 | mmap private fixed at somewhere already mapped |
| 7218 | mmap shared not fixed |
| 7219 | mmap shared fixed at somewhere currently unmapped |
| 7220 | mmap shared fixed at somewhere already mapped |
| 7221 | For private mappings, we should verify that changes cannot be read() |
| 7222 | back from the file, nor mmap's back from the file at a different |
| 7223 | address. (There have been systems where private was not correctly |
| 7224 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7225 | 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] | 7226 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7227 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7228 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7229 | |
| 7230 | Grep wants private fixed already mapped. |
| 7231 | The main things grep needs to know about mmap are: |
| 7232 | * does it exist and is it safe to write into the mmap'd area |
| 7233 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7234 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7235 | #include <fcntl.h> |
| 7236 | #include <sys/mman.h> |
| 7237 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7238 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7239 | char *malloc (); |
| 7240 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7241 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7242 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7243 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7244 | # ifdef _SC_PAGESIZE |
| 7245 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7246 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7247 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7248 | # include <sys/param.h> |
| 7249 | # ifdef EXEC_PAGESIZE |
| 7250 | # define getpagesize() EXEC_PAGESIZE |
| 7251 | # else /* no EXEC_PAGESIZE */ |
| 7252 | # ifdef NBPG |
| 7253 | # define getpagesize() NBPG * CLSIZE |
| 7254 | # ifndef CLSIZE |
| 7255 | # define CLSIZE 1 |
| 7256 | # endif /* no CLSIZE */ |
| 7257 | # else /* no NBPG */ |
| 7258 | # ifdef NBPC |
| 7259 | # define getpagesize() NBPC |
| 7260 | # else /* no NBPC */ |
| 7261 | # ifdef PAGESIZE |
| 7262 | # define getpagesize() PAGESIZE |
| 7263 | # endif /* PAGESIZE */ |
| 7264 | # endif /* no NBPC */ |
| 7265 | # endif /* no NBPG */ |
| 7266 | # endif /* no EXEC_PAGESIZE */ |
| 7267 | # else /* no HAVE_SYS_PARAM_H */ |
| 7268 | # define getpagesize() 8192 /* punt totally */ |
| 7269 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7270 | # endif /* no _SC_PAGESIZE */ |
| 7271 | |
| 7272 | #endif /* no HAVE_GETPAGESIZE */ |
| 7273 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7274 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7275 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7276 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7277 | char *data, *data2, *data3; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7278 | const char *cdata2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7279 | int i, pagesize; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7280 | int fd, fd2; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7281 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7282 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7283 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7284 | /* First, make a file with some known garbage in it. */ |
| 7285 | data = (char *) malloc (pagesize); |
| 7286 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7287 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7288 | for (i = 0; i < pagesize; ++i) |
| 7289 | *(data + i) = rand (); |
| 7290 | umask (0); |
| 7291 | fd = creat ("conftest.mmap", 0600); |
| 7292 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7293 | return 2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7294 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7295 | return 3; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7296 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7297 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7298 | /* Next, check that the tail of a page is zero-filled. File must have |
| 7299 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 7300 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 7301 | if (fd2 < 0) |
| 7302 | return 4; |
| 7303 | cdata2 = ""; |
| 7304 | if (write (fd2, cdata2, 1) != 1) |
| 7305 | return 5; |
| 7306 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 7307 | if (data2 == MAP_FAILED) |
| 7308 | return 6; |
| 7309 | for (i = 0; i < pagesize; ++i) |
| 7310 | if (*(data2 + i)) |
| 7311 | return 7; |
| 7312 | close (fd2); |
| 7313 | if (munmap (data2, pagesize)) |
| 7314 | return 8; |
| 7315 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7316 | /* Next, try to mmap the file at a fixed address which already has |
| 7317 | something else allocated at it. If we can, also make sure that |
| 7318 | we see the same garbage. */ |
| 7319 | fd = open ("conftest.mmap", O_RDWR); |
| 7320 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7321 | return 9; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7322 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 7323 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7324 | return 10; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7325 | for (i = 0; i < pagesize; ++i) |
| 7326 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7327 | return 11; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7328 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7329 | /* Finally, make sure that changes to the mapped area do not |
| 7330 | percolate back to the file as seen by read(). (This is a bug on |
| 7331 | some variants of i386 svr4.0.) */ |
| 7332 | for (i = 0; i < pagesize; ++i) |
| 7333 | *(data2 + i) = *(data2 + i) + 1; |
| 7334 | data3 = (char *) malloc (pagesize); |
| 7335 | if (!data3) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7336 | return 12; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7337 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7338 | return 13; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7339 | for (i = 0; i < pagesize; ++i) |
| 7340 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7341 | return 14; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7342 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7343 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7344 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7345 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7346 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7347 | ac_cv_func_mmap_fixed_mapped=yes |
| 7348 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7349 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7350 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7351 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7352 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7353 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7354 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7355 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7356 | { $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] | 7357 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7358 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7359 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7360 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7361 | |
| 7362 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7363 | rm -f conftest.mmap conftest.txt |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7364 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7365 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7367 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7368 | if ${ac_cv_gnu_library_2_1+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7369 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7370 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7372 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7373 | |
| 7374 | #include <features.h> |
| 7375 | #ifdef __GNU_LIBRARY__ |
| 7376 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 7377 | Lucky GNU user |
| 7378 | #endif |
| 7379 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7380 | |
| 7381 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7382 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7383 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7384 | ac_cv_gnu_library_2_1=yes |
| 7385 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7386 | ac_cv_gnu_library_2_1=no |
| 7387 | fi |
| 7388 | rm -f conftest* |
| 7389 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7390 | |
| 7391 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7392 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7394 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7395 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7396 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7397 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7398 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7399 | |
| 7400 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7401 | { $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] | 7402 | $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] | 7403 | if ${gt_cv_int_divbyzero_sigfpe+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7404 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7405 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7406 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7407 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7408 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7409 | # Guess based on the CPU. |
| 7410 | case "$host_cpu" in |
| 7411 | alpha* | i3456786 | m68k | s390*) |
| 7412 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7413 | *) |
| 7414 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7415 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7416 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7417 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7419 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7420 | |
| 7421 | #include <stdlib.h> |
| 7422 | #include <signal.h> |
| 7423 | |
| 7424 | static void |
| 7425 | #ifdef __cplusplus |
| 7426 | sigfpe_handler (int sig) |
| 7427 | #else |
| 7428 | sigfpe_handler (sig) int sig; |
| 7429 | #endif |
| 7430 | { |
| 7431 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7432 | exit (sig != SIGFPE); |
| 7433 | } |
| 7434 | |
| 7435 | int x = 1; |
| 7436 | int y = 0; |
| 7437 | int z; |
| 7438 | int nan; |
| 7439 | |
| 7440 | int main () |
| 7441 | { |
| 7442 | signal (SIGFPE, sigfpe_handler); |
| 7443 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7444 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7445 | signal (SIGTRAP, sigfpe_handler); |
| 7446 | #endif |
| 7447 | /* Linux/SPARC yields signal SIGILL. */ |
| 7448 | #if defined (__sparc__) && defined (__linux__) |
| 7449 | signal (SIGILL, sigfpe_handler); |
| 7450 | #endif |
| 7451 | |
| 7452 | z = x / y; |
| 7453 | nan = y / y; |
| 7454 | exit (1); |
| 7455 | } |
| 7456 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7457 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7458 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7459 | gt_cv_int_divbyzero_sigfpe=yes |
| 7460 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7461 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7462 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7463 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7464 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7465 | fi |
| 7466 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7467 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7468 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7469 | { $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] | 7470 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7471 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7472 | *yes) value=1;; |
| 7473 | *) value=0;; |
| 7474 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7475 | |
| 7476 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7477 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7478 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7479 | |
| 7480 | |
| 7481 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7483 | $as_echo_n "checking for unsigned long long... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7484 | if ${ac_cv_type_unsigned_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7485 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7486 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7488 | /* end confdefs.h. */ |
| 7489 | unsigned long long ull = 1ULL; int i = 63; |
| 7490 | int |
| 7491 | main () |
| 7492 | { |
| 7493 | unsigned long long ullmax = (unsigned long long) -1; |
| 7494 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 7495 | ; |
| 7496 | return 0; |
| 7497 | } |
| 7498 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7499 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7500 | ac_cv_type_unsigned_long_long=yes |
| 7501 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7502 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7503 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7504 | rm -f core conftest.err conftest.$ac_objext \ |
| 7505 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7506 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7508 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7509 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 7510 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7511 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7512 | |
| 7513 | fi |
| 7514 | |
| 7515 | |
| 7516 | |
| 7517 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7518 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7519 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7520 | test $ac_cv_type_unsigned_long_long = yes \ |
| 7521 | && ac_type='unsigned long long' \ |
| 7522 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7523 | |
| 7524 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7525 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7526 | _ACEOF |
| 7527 | |
| 7528 | else |
| 7529 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7530 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7531 | |
| 7532 | fi |
| 7533 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7534 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7536 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7537 | if ${gt_cv_header_inttypes_h+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7538 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7539 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7540 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7542 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7543 | #include <sys/types.h> |
| 7544 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7545 | int |
| 7546 | main () |
| 7547 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7548 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7549 | ; |
| 7550 | return 0; |
| 7551 | } |
| 7552 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7553 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7554 | gt_cv_header_inttypes_h=yes |
| 7555 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7556 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7557 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7559 | |
| 7560 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7562 | $as_echo "$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7563 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7564 | |
| 7565 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7566 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7567 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7568 | |
| 7569 | fi |
| 7570 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7571 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7572 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7573 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7574 | { $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] | 7575 | $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] | 7576 | if ${gt_cv_inttypes_pri_broken+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7577 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7578 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7579 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7581 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7582 | #include <inttypes.h> |
| 7583 | #ifdef PRId32 |
| 7584 | char *p = PRId32; |
| 7585 | #endif |
| 7586 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7587 | int |
| 7588 | main () |
| 7589 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7590 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7591 | ; |
| 7592 | return 0; |
| 7593 | } |
| 7594 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7595 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7596 | gt_cv_inttypes_pri_broken=no |
| 7597 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7598 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7599 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7601 | |
| 7602 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7603 | { $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] | 7604 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7605 | fi |
| 7606 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7607 | |
| 7608 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7609 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7610 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7611 | |
| 7612 | fi |
| 7613 | |
| 7614 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7615 | for ac_header in stdint.h |
| 7616 | do : |
| 7617 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7618 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7619 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7620 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7621 | _ACEOF |
| 7622 | |
| 7623 | fi |
| 7624 | |
| 7625 | done |
| 7626 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7628 | $as_echo_n "checking for SIZE_MAX... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7629 | result= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7631 | /* end confdefs.h. */ |
| 7632 | |
| 7633 | #include <limits.h> |
| 7634 | #if HAVE_STDINT_H |
| 7635 | #include <stdint.h> |
| 7636 | #endif |
| 7637 | #ifdef SIZE_MAX |
| 7638 | Found it |
| 7639 | #endif |
| 7640 | |
| 7641 | _ACEOF |
| 7642 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7643 | $EGREP "Found it" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7644 | result=yes |
| 7645 | fi |
| 7646 | rm -f conftest* |
| 7647 | |
| 7648 | if test -z "$result"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7649 | if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7650 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7651 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7652 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7653 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7654 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7655 | |
| 7656 | if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then : |
| 7657 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7658 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7659 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7660 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7661 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7662 | |
| 7663 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
| 7664 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7665 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7666 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7667 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7668 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7669 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7670 | if test "$fits_in_uint" = 1; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7672 | /* end confdefs.h. */ |
| 7673 | #include <stddef.h> |
| 7674 | extern size_t foo; |
| 7675 | extern unsigned long foo; |
| 7676 | |
| 7677 | int |
| 7678 | main () |
| 7679 | { |
| 7680 | |
| 7681 | ; |
| 7682 | return 0; |
| 7683 | } |
| 7684 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7685 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7686 | fits_in_uint=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7687 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7689 | fi |
| 7690 | if test -z "$result"; then |
| 7691 | if test "$fits_in_uint" = 1; then |
| 7692 | result="$res_hi$res_lo"U |
| 7693 | else |
| 7694 | result="$res_hi$res_lo"UL |
| 7695 | fi |
| 7696 | else |
| 7697 | result='~(size_t)0' |
| 7698 | fi |
| 7699 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7701 | $as_echo "$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7702 | if test "$result" != yes; then |
| 7703 | |
| 7704 | cat >>confdefs.h <<_ACEOF |
| 7705 | #define SIZE_MAX $result |
| 7706 | _ACEOF |
| 7707 | |
| 7708 | fi |
| 7709 | |
| 7710 | |
| 7711 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7712 | for ac_header in stdint.h |
| 7713 | do : |
| 7714 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7715 | if test "x$ac_cv_header_stdint_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7716 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7717 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7718 | _ACEOF |
| 7719 | |
| 7720 | fi |
| 7721 | |
| 7722 | done |
| 7723 | |
| 7724 | |
| 7725 | |
| 7726 | if test "X$prefix" = "XNONE"; then |
| 7727 | acl_final_prefix="$ac_default_prefix" |
| 7728 | else |
| 7729 | acl_final_prefix="$prefix" |
| 7730 | fi |
| 7731 | if test "X$exec_prefix" = "XNONE"; then |
| 7732 | acl_final_exec_prefix='${prefix}' |
| 7733 | else |
| 7734 | acl_final_exec_prefix="$exec_prefix" |
| 7735 | fi |
| 7736 | acl_save_prefix="$prefix" |
| 7737 | prefix="$acl_final_prefix" |
| 7738 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 7739 | prefix="$acl_save_prefix" |
| 7740 | |
| 7741 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7742 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7743 | if test "${with_gnu_ld+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7744 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7745 | else |
| 7746 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7747 | fi |
| 7748 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7749 | # Prepare PATH_SEPARATOR. |
| 7750 | # The user is always right. |
| 7751 | if test "${PATH_SEPARATOR+set}" != set; then |
| 7752 | echo "#! /bin/sh" >conf$$.sh |
| 7753 | echo "exit 0" >>conf$$.sh |
| 7754 | chmod +x conf$$.sh |
| 7755 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 7756 | PATH_SEPARATOR=';' |
| 7757 | else |
| 7758 | PATH_SEPARATOR=: |
| 7759 | fi |
| 7760 | rm -f conf$$.sh |
| 7761 | fi |
| 7762 | ac_prog=ld |
| 7763 | if test "$GCC" = yes; then |
| 7764 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7766 | $as_echo_n "checking for ld used by GCC... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7767 | case $host in |
| 7768 | *-*-mingw*) |
| 7769 | # gcc leaves a trailing carriage return which upsets mingw |
| 7770 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7771 | *) |
| 7772 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7773 | esac |
| 7774 | case $ac_prog in |
| 7775 | # Accept absolute paths. |
| 7776 | [\\/]* | [A-Za-z]:[\\/]*) |
| 7777 | re_direlt='/[^/][^/]*/\.\./' |
| 7778 | # Canonicalize the path of ld |
| 7779 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 7780 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 7781 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 7782 | done |
| 7783 | test -z "$LD" && LD="$ac_prog" |
| 7784 | ;; |
| 7785 | "") |
| 7786 | # If it fails, then pretend we aren't using GCC. |
| 7787 | ac_prog=ld |
| 7788 | ;; |
| 7789 | *) |
| 7790 | # If it is relative, then search for the first ld in PATH. |
| 7791 | with_gnu_ld=unknown |
| 7792 | ;; |
| 7793 | esac |
| 7794 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7795 | { $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] | 7796 | $as_echo_n "checking for GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7797 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7798 | { $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] | 7799 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7800 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7801 | if ${acl_cv_path_LD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7802 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7803 | else |
| 7804 | if test -z "$LD"; then |
| 7805 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 7806 | for ac_dir in $PATH; do |
| 7807 | test -z "$ac_dir" && ac_dir=. |
| 7808 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7809 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 7810 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 7811 | # but apparently some GNU ld's only accept -v. |
| 7812 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 7813 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 7814 | *GNU* | *'with BFD'*) |
| 7815 | test "$with_gnu_ld" != no && break ;; |
| 7816 | *) |
| 7817 | test "$with_gnu_ld" != yes && break ;; |
| 7818 | esac |
| 7819 | fi |
| 7820 | done |
| 7821 | IFS="$ac_save_ifs" |
| 7822 | else |
| 7823 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7824 | fi |
| 7825 | fi |
| 7826 | |
| 7827 | LD="$acl_cv_path_LD" |
| 7828 | if test -n "$LD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7830 | $as_echo "$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7831 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7833 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7834 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7835 | 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] | 7836 | { $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] | 7837 | $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] | 7838 | if ${acl_cv_prog_gnu_ld+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7839 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7840 | else |
| 7841 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 7842 | case `$LD -v 2>&1 </dev/null` in |
| 7843 | *GNU* | *'with BFD'*) |
| 7844 | acl_cv_prog_gnu_ld=yes ;; |
| 7845 | *) |
| 7846 | acl_cv_prog_gnu_ld=no ;; |
| 7847 | esac |
| 7848 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7849 | { $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] | 7850 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7851 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 7852 | |
| 7853 | |
| 7854 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7855 | { $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] | 7856 | $as_echo_n "checking for shared library run path origin... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 7857 | if ${acl_cv_rpath+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7858 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7859 | else |
| 7860 | |
| 7861 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 7862 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 7863 | . ./conftest.sh |
| 7864 | rm -f ./conftest.sh |
| 7865 | acl_cv_rpath=done |
| 7866 | |
| 7867 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7868 | { $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] | 7869 | $as_echo "$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7870 | wl="$acl_cv_wl" |
| 7871 | libext="$acl_cv_libext" |
| 7872 | shlibext="$acl_cv_shlibext" |
| 7873 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 7874 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 7875 | hardcode_direct="$acl_cv_hardcode_direct" |
| 7876 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7877 | # Check whether --enable-rpath was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7878 | if test "${enable_rpath+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7879 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7880 | else |
| 7881 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7882 | fi |
| 7883 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7884 | |
| 7885 | |
| 7886 | |
| 7887 | |
| 7888 | |
| 7889 | |
| 7890 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7891 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7892 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7893 | acl_save_prefix="$prefix" |
| 7894 | prefix="$acl_final_prefix" |
| 7895 | acl_save_exec_prefix="$exec_prefix" |
| 7896 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7897 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7898 | eval additional_includedir=\"$includedir\" |
| 7899 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7900 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7901 | exec_prefix="$acl_save_exec_prefix" |
| 7902 | prefix="$acl_save_prefix" |
| 7903 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7904 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7905 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7906 | if test "${with_libiconv_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7907 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7908 | if test "X$withval" = "Xno"; then |
| 7909 | use_additional=no |
| 7910 | else |
| 7911 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7912 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7913 | acl_save_prefix="$prefix" |
| 7914 | prefix="$acl_final_prefix" |
| 7915 | acl_save_exec_prefix="$exec_prefix" |
| 7916 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7917 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7918 | eval additional_includedir=\"$includedir\" |
| 7919 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7920 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7921 | exec_prefix="$acl_save_exec_prefix" |
| 7922 | prefix="$acl_save_prefix" |
| 7923 | |
| 7924 | else |
| 7925 | additional_includedir="$withval/include" |
| 7926 | additional_libdir="$withval/lib" |
| 7927 | fi |
| 7928 | fi |
| 7929 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7930 | fi |
| 7931 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7932 | LIBICONV= |
| 7933 | LTLIBICONV= |
| 7934 | INCICONV= |
| 7935 | rpathdirs= |
| 7936 | ltrpathdirs= |
| 7937 | names_already_handled= |
| 7938 | names_next_round='iconv ' |
| 7939 | while test -n "$names_next_round"; do |
| 7940 | names_this_round="$names_next_round" |
| 7941 | names_next_round= |
| 7942 | for name in $names_this_round; do |
| 7943 | already_handled= |
| 7944 | for n in $names_already_handled; do |
| 7945 | if test "$n" = "$name"; then |
| 7946 | already_handled=yes |
| 7947 | break |
| 7948 | fi |
| 7949 | done |
| 7950 | if test -z "$already_handled"; then |
| 7951 | names_already_handled="$names_already_handled $name" |
| 7952 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 7953 | eval value=\"\$HAVE_LIB$uppername\" |
| 7954 | if test -n "$value"; then |
| 7955 | if test "$value" = yes; then |
| 7956 | eval value=\"\$LIB$uppername\" |
| 7957 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 7958 | eval value=\"\$LTLIB$uppername\" |
| 7959 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 7960 | else |
| 7961 | : |
| 7962 | fi |
| 7963 | else |
| 7964 | found_dir= |
| 7965 | found_la= |
| 7966 | found_so= |
| 7967 | found_a= |
| 7968 | if test $use_additional = yes; then |
| 7969 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 7970 | found_dir="$additional_libdir" |
| 7971 | found_so="$additional_libdir/lib$name.$shlibext" |
| 7972 | if test -f "$additional_libdir/lib$name.la"; then |
| 7973 | found_la="$additional_libdir/lib$name.la" |
| 7974 | fi |
| 7975 | else |
| 7976 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 7977 | found_dir="$additional_libdir" |
| 7978 | found_a="$additional_libdir/lib$name.$libext" |
| 7979 | if test -f "$additional_libdir/lib$name.la"; then |
| 7980 | found_la="$additional_libdir/lib$name.la" |
| 7981 | fi |
| 7982 | fi |
| 7983 | fi |
| 7984 | fi |
| 7985 | if test "X$found_dir" = "X"; then |
| 7986 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7987 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7988 | acl_save_prefix="$prefix" |
| 7989 | prefix="$acl_final_prefix" |
| 7990 | acl_save_exec_prefix="$exec_prefix" |
| 7991 | exec_prefix="$acl_final_exec_prefix" |
| 7992 | eval x=\"$x\" |
| 7993 | exec_prefix="$acl_save_exec_prefix" |
| 7994 | prefix="$acl_save_prefix" |
| 7995 | |
| 7996 | case "$x" in |
| 7997 | -L*) |
| 7998 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 7999 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 8000 | found_dir="$dir" |
| 8001 | found_so="$dir/lib$name.$shlibext" |
| 8002 | if test -f "$dir/lib$name.la"; then |
| 8003 | found_la="$dir/lib$name.la" |
| 8004 | fi |
| 8005 | else |
| 8006 | if test -f "$dir/lib$name.$libext"; then |
| 8007 | found_dir="$dir" |
| 8008 | found_a="$dir/lib$name.$libext" |
| 8009 | if test -f "$dir/lib$name.la"; then |
| 8010 | found_la="$dir/lib$name.la" |
| 8011 | fi |
| 8012 | fi |
| 8013 | fi |
| 8014 | ;; |
| 8015 | esac |
| 8016 | if test "X$found_dir" != "X"; then |
| 8017 | break |
| 8018 | fi |
| 8019 | done |
| 8020 | fi |
| 8021 | if test "X$found_dir" != "X"; then |
| 8022 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 8023 | if test "X$found_so" != "X"; then |
| 8024 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 8025 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8026 | else |
| 8027 | haveit= |
| 8028 | for x in $ltrpathdirs; do |
| 8029 | if test "X$x" = "X$found_dir"; then |
| 8030 | haveit=yes |
| 8031 | break |
| 8032 | fi |
| 8033 | done |
| 8034 | if test -z "$haveit"; then |
| 8035 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8036 | fi |
| 8037 | if test "$hardcode_direct" = yes; then |
| 8038 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8039 | else |
| 8040 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8041 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8042 | haveit= |
| 8043 | for x in $rpathdirs; do |
| 8044 | if test "X$x" = "X$found_dir"; then |
| 8045 | haveit=yes |
| 8046 | break |
| 8047 | fi |
| 8048 | done |
| 8049 | if test -z "$haveit"; then |
| 8050 | rpathdirs="$rpathdirs $found_dir" |
| 8051 | fi |
| 8052 | else |
| 8053 | haveit= |
| 8054 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8055 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8056 | acl_save_prefix="$prefix" |
| 8057 | prefix="$acl_final_prefix" |
| 8058 | acl_save_exec_prefix="$exec_prefix" |
| 8059 | exec_prefix="$acl_final_exec_prefix" |
| 8060 | eval x=\"$x\" |
| 8061 | exec_prefix="$acl_save_exec_prefix" |
| 8062 | prefix="$acl_save_prefix" |
| 8063 | |
| 8064 | if test "X$x" = "X-L$found_dir"; then |
| 8065 | haveit=yes |
| 8066 | break |
| 8067 | fi |
| 8068 | done |
| 8069 | if test -z "$haveit"; then |
| 8070 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 8071 | fi |
| 8072 | if test "$hardcode_minus_L" != no; then |
| 8073 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8074 | else |
| 8075 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8076 | fi |
| 8077 | fi |
| 8078 | fi |
| 8079 | fi |
| 8080 | else |
| 8081 | if test "X$found_a" != "X"; then |
| 8082 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 8083 | else |
| 8084 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8085 | fi |
| 8086 | fi |
| 8087 | additional_includedir= |
| 8088 | case "$found_dir" in |
| 8089 | */lib | */lib/) |
| 8090 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8091 | additional_includedir="$basedir/include" |
| 8092 | ;; |
| 8093 | esac |
| 8094 | if test "X$additional_includedir" != "X"; then |
| 8095 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8096 | haveit= |
| 8097 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8098 | if test -n "$GCC"; then |
| 8099 | case $host_os in |
| 8100 | linux*) haveit=yes;; |
| 8101 | esac |
| 8102 | fi |
| 8103 | fi |
| 8104 | if test -z "$haveit"; then |
| 8105 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8106 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8107 | acl_save_prefix="$prefix" |
| 8108 | prefix="$acl_final_prefix" |
| 8109 | acl_save_exec_prefix="$exec_prefix" |
| 8110 | exec_prefix="$acl_final_exec_prefix" |
| 8111 | eval x=\"$x\" |
| 8112 | exec_prefix="$acl_save_exec_prefix" |
| 8113 | prefix="$acl_save_prefix" |
| 8114 | |
| 8115 | if test "X$x" = "X-I$additional_includedir"; then |
| 8116 | haveit=yes |
| 8117 | break |
| 8118 | fi |
| 8119 | done |
| 8120 | if test -z "$haveit"; then |
| 8121 | if test -d "$additional_includedir"; then |
| 8122 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 8123 | fi |
| 8124 | fi |
| 8125 | fi |
| 8126 | fi |
| 8127 | fi |
| 8128 | if test -n "$found_la"; then |
| 8129 | save_libdir="$libdir" |
| 8130 | case "$found_la" in |
| 8131 | */* | *\\*) . "$found_la" ;; |
| 8132 | *) . "./$found_la" ;; |
| 8133 | esac |
| 8134 | libdir="$save_libdir" |
| 8135 | for dep in $dependency_libs; do |
| 8136 | case "$dep" in |
| 8137 | -L*) |
| 8138 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8139 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8140 | haveit= |
| 8141 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8142 | if test -n "$GCC"; then |
| 8143 | case $host_os in |
| 8144 | linux*) haveit=yes;; |
| 8145 | esac |
| 8146 | fi |
| 8147 | fi |
| 8148 | if test -z "$haveit"; then |
| 8149 | haveit= |
| 8150 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8151 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8152 | acl_save_prefix="$prefix" |
| 8153 | prefix="$acl_final_prefix" |
| 8154 | acl_save_exec_prefix="$exec_prefix" |
| 8155 | exec_prefix="$acl_final_exec_prefix" |
| 8156 | eval x=\"$x\" |
| 8157 | exec_prefix="$acl_save_exec_prefix" |
| 8158 | prefix="$acl_save_prefix" |
| 8159 | |
| 8160 | if test "X$x" = "X-L$additional_libdir"; then |
| 8161 | haveit=yes |
| 8162 | break |
| 8163 | fi |
| 8164 | done |
| 8165 | if test -z "$haveit"; then |
| 8166 | if test -d "$additional_libdir"; then |
| 8167 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 8168 | fi |
| 8169 | fi |
| 8170 | haveit= |
| 8171 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8172 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8173 | acl_save_prefix="$prefix" |
| 8174 | prefix="$acl_final_prefix" |
| 8175 | acl_save_exec_prefix="$exec_prefix" |
| 8176 | exec_prefix="$acl_final_exec_prefix" |
| 8177 | eval x=\"$x\" |
| 8178 | exec_prefix="$acl_save_exec_prefix" |
| 8179 | prefix="$acl_save_prefix" |
| 8180 | |
| 8181 | if test "X$x" = "X-L$additional_libdir"; then |
| 8182 | haveit=yes |
| 8183 | break |
| 8184 | fi |
| 8185 | done |
| 8186 | if test -z "$haveit"; then |
| 8187 | if test -d "$additional_libdir"; then |
| 8188 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 8189 | fi |
| 8190 | fi |
| 8191 | fi |
| 8192 | fi |
| 8193 | ;; |
| 8194 | -R*) |
| 8195 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8196 | if test "$enable_rpath" != no; then |
| 8197 | haveit= |
| 8198 | for x in $rpathdirs; do |
| 8199 | if test "X$x" = "X$dir"; then |
| 8200 | haveit=yes |
| 8201 | break |
| 8202 | fi |
| 8203 | done |
| 8204 | if test -z "$haveit"; then |
| 8205 | rpathdirs="$rpathdirs $dir" |
| 8206 | fi |
| 8207 | haveit= |
| 8208 | for x in $ltrpathdirs; do |
| 8209 | if test "X$x" = "X$dir"; then |
| 8210 | haveit=yes |
| 8211 | break |
| 8212 | fi |
| 8213 | done |
| 8214 | if test -z "$haveit"; then |
| 8215 | ltrpathdirs="$ltrpathdirs $dir" |
| 8216 | fi |
| 8217 | fi |
| 8218 | ;; |
| 8219 | -l*) |
| 8220 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8221 | ;; |
| 8222 | *.la) |
| 8223 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8224 | ;; |
| 8225 | *) |
| 8226 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 8227 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 8228 | ;; |
| 8229 | esac |
| 8230 | done |
| 8231 | fi |
| 8232 | else |
| 8233 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8234 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 8235 | fi |
| 8236 | fi |
| 8237 | fi |
| 8238 | done |
| 8239 | done |
| 8240 | if test "X$rpathdirs" != "X"; then |
| 8241 | if test -n "$hardcode_libdir_separator"; then |
| 8242 | alldirs= |
| 8243 | for found_dir in $rpathdirs; do |
| 8244 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8245 | done |
| 8246 | acl_save_libdir="$libdir" |
| 8247 | libdir="$alldirs" |
| 8248 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8249 | libdir="$acl_save_libdir" |
| 8250 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8251 | else |
| 8252 | for found_dir in $rpathdirs; do |
| 8253 | acl_save_libdir="$libdir" |
| 8254 | libdir="$found_dir" |
| 8255 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8256 | libdir="$acl_save_libdir" |
| 8257 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8258 | done |
| 8259 | fi |
| 8260 | fi |
| 8261 | if test "X$ltrpathdirs" != "X"; then |
| 8262 | for found_dir in $ltrpathdirs; do |
| 8263 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 8264 | done |
| 8265 | fi |
| 8266 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8267 | |
| 8268 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8269 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8270 | |
| 8271 | |
| 8272 | |
| 8273 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8274 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8275 | if test "x$ac_cv_type_ptrdiff_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8276 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8277 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8278 | |
| 8279 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8280 | |
| 8281 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8282 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8283 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8284 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8285 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8286 | do : |
| 8287 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8288 | 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] | 8289 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8290 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8291 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8292 | _ACEOF |
| 8293 | |
| 8294 | fi |
| 8295 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8296 | done |
| 8297 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8298 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8299 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 8300 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 8301 | __fsetlocking |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8302 | do : |
| 8303 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8304 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8305 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8306 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8307 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8308 | _ACEOF |
| 8309 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8310 | fi |
| 8311 | done |
| 8312 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8313 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8314 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8316 | $as_echo_n "checking whether _snprintf is declared... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8317 | if ${ac_cv_have_decl__snprintf+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8318 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8319 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8321 | /* end confdefs.h. */ |
| 8322 | #include <stdio.h> |
| 8323 | int |
| 8324 | main () |
| 8325 | { |
| 8326 | |
| 8327 | #ifndef _snprintf |
| 8328 | char *p = (char *) _snprintf; |
| 8329 | #endif |
| 8330 | |
| 8331 | ; |
| 8332 | return 0; |
| 8333 | } |
| 8334 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8335 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8336 | ac_cv_have_decl__snprintf=yes |
| 8337 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8338 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8339 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8341 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8343 | $as_echo "$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8344 | if test $ac_cv_have_decl__snprintf = yes; then |
| 8345 | gt_value=1 |
| 8346 | else |
| 8347 | gt_value=0 |
| 8348 | fi |
| 8349 | |
| 8350 | cat >>confdefs.h <<_ACEOF |
| 8351 | #define HAVE_DECL__SNPRINTF $gt_value |
| 8352 | _ACEOF |
| 8353 | |
| 8354 | |
| 8355 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8357 | $as_echo_n "checking whether _snwprintf is declared... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8358 | if ${ac_cv_have_decl__snwprintf+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8359 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8360 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8362 | /* end confdefs.h. */ |
| 8363 | #include <stdio.h> |
| 8364 | int |
| 8365 | main () |
| 8366 | { |
| 8367 | |
| 8368 | #ifndef _snwprintf |
| 8369 | char *p = (char *) _snwprintf; |
| 8370 | #endif |
| 8371 | |
| 8372 | ; |
| 8373 | return 0; |
| 8374 | } |
| 8375 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8376 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8377 | ac_cv_have_decl__snwprintf=yes |
| 8378 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8379 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8380 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8382 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8384 | $as_echo "$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8385 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 8386 | gt_value=1 |
| 8387 | else |
| 8388 | gt_value=0 |
| 8389 | fi |
| 8390 | |
| 8391 | cat >>confdefs.h <<_ACEOF |
| 8392 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 8393 | _ACEOF |
| 8394 | |
| 8395 | |
| 8396 | |
| 8397 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8399 | $as_echo_n "checking whether feof_unlocked is declared... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8400 | if ${ac_cv_have_decl_feof_unlocked+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8401 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8402 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8404 | /* end confdefs.h. */ |
| 8405 | #include <stdio.h> |
| 8406 | int |
| 8407 | main () |
| 8408 | { |
| 8409 | |
| 8410 | #ifndef feof_unlocked |
| 8411 | char *p = (char *) feof_unlocked; |
| 8412 | #endif |
| 8413 | |
| 8414 | ; |
| 8415 | return 0; |
| 8416 | } |
| 8417 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8418 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8419 | ac_cv_have_decl_feof_unlocked=yes |
| 8420 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8421 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8422 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8424 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8426 | $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8427 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 8428 | gt_value=1 |
| 8429 | else |
| 8430 | gt_value=0 |
| 8431 | fi |
| 8432 | |
| 8433 | cat >>confdefs.h <<_ACEOF |
| 8434 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 8435 | _ACEOF |
| 8436 | |
| 8437 | |
| 8438 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8440 | $as_echo_n "checking whether fgets_unlocked is declared... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8441 | if ${ac_cv_have_decl_fgets_unlocked+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8442 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8443 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8445 | /* end confdefs.h. */ |
| 8446 | #include <stdio.h> |
| 8447 | int |
| 8448 | main () |
| 8449 | { |
| 8450 | |
| 8451 | #ifndef fgets_unlocked |
| 8452 | char *p = (char *) fgets_unlocked; |
| 8453 | #endif |
| 8454 | |
| 8455 | ; |
| 8456 | return 0; |
| 8457 | } |
| 8458 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8459 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8460 | ac_cv_have_decl_fgets_unlocked=yes |
| 8461 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8462 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8463 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8465 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8467 | $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8468 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 8469 | gt_value=1 |
| 8470 | else |
| 8471 | gt_value=0 |
| 8472 | fi |
| 8473 | |
| 8474 | cat >>confdefs.h <<_ACEOF |
| 8475 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 8476 | _ACEOF |
| 8477 | |
| 8478 | |
| 8479 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8481 | $as_echo_n "checking whether getc_unlocked is declared... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8482 | if ${ac_cv_have_decl_getc_unlocked+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8483 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8484 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8486 | /* end confdefs.h. */ |
| 8487 | #include <stdio.h> |
| 8488 | int |
| 8489 | main () |
| 8490 | { |
| 8491 | |
| 8492 | #ifndef getc_unlocked |
| 8493 | char *p = (char *) getc_unlocked; |
| 8494 | #endif |
| 8495 | |
| 8496 | ; |
| 8497 | return 0; |
| 8498 | } |
| 8499 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8500 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8501 | ac_cv_have_decl_getc_unlocked=yes |
| 8502 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8503 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8504 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8506 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8508 | $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8509 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 8510 | gt_value=1 |
| 8511 | else |
| 8512 | gt_value=0 |
| 8513 | fi |
| 8514 | |
| 8515 | cat >>confdefs.h <<_ACEOF |
| 8516 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 8517 | _ACEOF |
| 8518 | |
| 8519 | |
| 8520 | |
| 8521 | case $gt_cv_func_printf_posix in |
| 8522 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 8523 | *) HAVE_POSIX_PRINTF=0 ;; |
| 8524 | esac |
| 8525 | |
| 8526 | if test "$ac_cv_func_asprintf" = yes; then |
| 8527 | HAVE_ASPRINTF=1 |
| 8528 | else |
| 8529 | HAVE_ASPRINTF=0 |
| 8530 | fi |
| 8531 | |
| 8532 | if test "$ac_cv_func_snprintf" = yes; then |
| 8533 | HAVE_SNPRINTF=1 |
| 8534 | else |
| 8535 | HAVE_SNPRINTF=0 |
| 8536 | fi |
| 8537 | |
| 8538 | if test "$ac_cv_func_wprintf" = yes; then |
| 8539 | HAVE_WPRINTF=1 |
| 8540 | else |
| 8541 | HAVE_WPRINTF=0 |
| 8542 | fi |
| 8543 | |
| 8544 | |
| 8545 | |
| 8546 | |
| 8547 | |
| 8548 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8549 | |
| 8550 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8551 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8552 | for element in $INCICONV; do |
| 8553 | haveit= |
| 8554 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8555 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8556 | acl_save_prefix="$prefix" |
| 8557 | prefix="$acl_final_prefix" |
| 8558 | acl_save_exec_prefix="$exec_prefix" |
| 8559 | exec_prefix="$acl_final_exec_prefix" |
| 8560 | eval x=\"$x\" |
| 8561 | exec_prefix="$acl_save_exec_prefix" |
| 8562 | prefix="$acl_save_prefix" |
| 8563 | |
| 8564 | if test "X$x" = "X$element"; then |
| 8565 | haveit=yes |
| 8566 | break |
| 8567 | fi |
| 8568 | done |
| 8569 | if test -z "$haveit"; then |
| 8570 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 8571 | fi |
| 8572 | done |
| 8573 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8574 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8576 | $as_echo_n "checking for iconv... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8577 | if ${am_cv_func_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8578 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8579 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8580 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8581 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 8582 | am_cv_lib_iconv=no |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8584 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8585 | #include <stdlib.h> |
| 8586 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8587 | int |
| 8588 | main () |
| 8589 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8590 | iconv_t cd = iconv_open("",""); |
| 8591 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8592 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8593 | ; |
| 8594 | return 0; |
| 8595 | } |
| 8596 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8597 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8598 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8599 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8600 | rm -f core conftest.err conftest.$ac_objext \ |
| 8601 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8602 | if test "$am_cv_func_iconv" != yes; then |
| 8603 | am_save_LIBS="$LIBS" |
| 8604 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8606 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8607 | #include <stdlib.h> |
| 8608 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8609 | int |
| 8610 | main () |
| 8611 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8612 | iconv_t cd = iconv_open("",""); |
| 8613 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8614 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8615 | ; |
| 8616 | return 0; |
| 8617 | } |
| 8618 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8619 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8620 | am_cv_lib_iconv=yes |
| 8621 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8622 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8623 | rm -f core conftest.err conftest.$ac_objext \ |
| 8624 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8625 | LIBS="$am_save_LIBS" |
| 8626 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8627 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8628 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8629 | { $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] | 8630 | $as_echo "$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8631 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8632 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8633 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8634 | |
| 8635 | fi |
| 8636 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8637 | { $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] | 8638 | $as_echo_n "checking how to link with libiconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8640 | $as_echo "$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8641 | else |
| 8642 | CPPFLAGS="$am_save_CPPFLAGS" |
| 8643 | LIBICONV= |
| 8644 | LTLIBICONV= |
| 8645 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8646 | |
| 8647 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8648 | |
| 8649 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8650 | { $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] | 8651 | $as_echo_n "checking for iconv declaration... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8652 | if ${am_cv_proto_iconv+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8653 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8654 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8655 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8657 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8658 | |
| 8659 | #include <stdlib.h> |
| 8660 | #include <iconv.h> |
| 8661 | extern |
| 8662 | #ifdef __cplusplus |
| 8663 | "C" |
| 8664 | #endif |
| 8665 | #if defined(__STDC__) || defined(__cplusplus) |
| 8666 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 8667 | #else |
| 8668 | size_t iconv(); |
| 8669 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8670 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8671 | int |
| 8672 | main () |
| 8673 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8674 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8675 | ; |
| 8676 | return 0; |
| 8677 | } |
| 8678 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8679 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8680 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8681 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8682 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8683 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8685 | 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] | 8686 | fi |
| 8687 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8688 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8690 | }$am_cv_proto_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8691 | $as_echo "${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8692 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8693 | |
| 8694 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8695 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8696 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8697 | |
| 8698 | fi |
| 8699 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8700 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8702 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8703 | if ${am_cv_langinfo_codeset+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8704 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8705 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8707 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8708 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8709 | int |
| 8710 | main () |
| 8711 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8712 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8713 | ; |
| 8714 | return 0; |
| 8715 | } |
| 8716 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8717 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8718 | am_cv_langinfo_codeset=yes |
| 8719 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8720 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8721 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8722 | rm -f core conftest.err conftest.$ac_objext \ |
| 8723 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8724 | |
| 8725 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8727 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8728 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8729 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8730 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8731 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8732 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8733 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8734 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8735 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8737 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8738 | if ${am_cv_val_LC_MESSAGES+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8739 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8740 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8742 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8743 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8744 | int |
| 8745 | main () |
| 8746 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8747 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8748 | ; |
| 8749 | return 0; |
| 8750 | } |
| 8751 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8752 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8753 | am_cv_val_LC_MESSAGES=yes |
| 8754 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8755 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8756 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8757 | rm -f core conftest.err conftest.$ac_objext \ |
| 8758 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8759 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8761 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8762 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8763 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8764 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8765 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8766 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8767 | |
| 8768 | fi |
| 8769 | |
| 8770 | for ac_prog in bison |
| 8771 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8772 | # 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] | 8773 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8774 | { $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] | 8775 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8776 | if ${ac_cv_prog_INTLBISON+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8777 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8778 | else |
| 8779 | if test -n "$INTLBISON"; then |
| 8780 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 8781 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8783 | for as_dir in $PATH |
| 8784 | do |
| 8785 | IFS=$as_save_IFS |
| 8786 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8787 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8788 | 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] | 8789 | ac_cv_prog_INTLBISON="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8790 | $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] | 8791 | break 2 |
| 8792 | fi |
| 8793 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8794 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8795 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8796 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8797 | fi |
| 8798 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8799 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8800 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8802 | $as_echo "$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8803 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8805 | $as_echo "no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8806 | fi |
| 8807 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8808 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8809 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8810 | done |
| 8811 | |
| 8812 | if test -z "$INTLBISON"; then |
| 8813 | ac_verc_fail=yes |
| 8814 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8815 | { $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] | 8816 | $as_echo_n "checking version of bison... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8817 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 8818 | case $ac_prog_version in |
| 8819 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 8820 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 8821 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 8822 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 8823 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8824 | { $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] | 8825 | $as_echo "$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8826 | fi |
| 8827 | if test $ac_verc_fail = yes; then |
| 8828 | INTLBISON=: |
| 8829 | fi |
| 8830 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8831 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8832 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8833 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8834 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8835 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8836 | |
| 8837 | |
| 8838 | |
| 8839 | |
| 8840 | |
| 8841 | |
| 8842 | |
| 8843 | |
| 8844 | |
| 8845 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8846 | { $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] | 8847 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8848 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8849 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8850 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8851 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8852 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8853 | fi |
| 8854 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8856 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8857 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8858 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8859 | |
| 8860 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8861 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8862 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8863 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8864 | LIBINTL= |
| 8865 | LTLIBINTL= |
| 8866 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8867 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8868 | if test "$USE_NLS" = "yes"; then |
| 8869 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8870 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8871 | { $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] | 8872 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8873 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8874 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8875 | if test "${with_included_gettext+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8876 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8877 | else |
| 8878 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8879 | fi |
| 8880 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8881 | { $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] | 8882 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8883 | |
| 8884 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 8885 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8886 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8887 | |
| 8888 | |
| 8889 | |
| 8890 | |
| 8891 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8892 | { $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] | 8893 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 8894 | if ${gt_cv_func_gnugettext1_libc+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8895 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8896 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8898 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8899 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8900 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8901 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8902 | int |
| 8903 | main () |
| 8904 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8905 | bindtextdomain ("", ""); |
| 8906 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8907 | ; |
| 8908 | return 0; |
| 8909 | } |
| 8910 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8911 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8912 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8913 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8914 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8915 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8916 | rm -f core conftest.err conftest.$ac_objext \ |
| 8917 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8918 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8920 | $as_echo "$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8921 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8922 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8923 | |
| 8924 | |
| 8925 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8926 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8927 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8928 | acl_save_prefix="$prefix" |
| 8929 | prefix="$acl_final_prefix" |
| 8930 | acl_save_exec_prefix="$exec_prefix" |
| 8931 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8932 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8933 | eval additional_includedir=\"$includedir\" |
| 8934 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8935 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8936 | exec_prefix="$acl_save_exec_prefix" |
| 8937 | prefix="$acl_save_prefix" |
| 8938 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8939 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8940 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8941 | if test "${with_libintl_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8942 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8943 | if test "X$withval" = "Xno"; then |
| 8944 | use_additional=no |
| 8945 | else |
| 8946 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8947 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8948 | acl_save_prefix="$prefix" |
| 8949 | prefix="$acl_final_prefix" |
| 8950 | acl_save_exec_prefix="$exec_prefix" |
| 8951 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8952 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8953 | eval additional_includedir=\"$includedir\" |
| 8954 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8955 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8956 | exec_prefix="$acl_save_exec_prefix" |
| 8957 | prefix="$acl_save_prefix" |
| 8958 | |
| 8959 | else |
| 8960 | additional_includedir="$withval/include" |
| 8961 | additional_libdir="$withval/lib" |
| 8962 | fi |
| 8963 | fi |
| 8964 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8965 | fi |
| 8966 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8967 | LIBINTL= |
| 8968 | LTLIBINTL= |
| 8969 | INCINTL= |
| 8970 | rpathdirs= |
| 8971 | ltrpathdirs= |
| 8972 | names_already_handled= |
| 8973 | names_next_round='intl ' |
| 8974 | while test -n "$names_next_round"; do |
| 8975 | names_this_round="$names_next_round" |
| 8976 | names_next_round= |
| 8977 | for name in $names_this_round; do |
| 8978 | already_handled= |
| 8979 | for n in $names_already_handled; do |
| 8980 | if test "$n" = "$name"; then |
| 8981 | already_handled=yes |
| 8982 | break |
| 8983 | fi |
| 8984 | done |
| 8985 | if test -z "$already_handled"; then |
| 8986 | names_already_handled="$names_already_handled $name" |
| 8987 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8988 | eval value=\"\$HAVE_LIB$uppername\" |
| 8989 | if test -n "$value"; then |
| 8990 | if test "$value" = yes; then |
| 8991 | eval value=\"\$LIB$uppername\" |
| 8992 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 8993 | eval value=\"\$LTLIB$uppername\" |
| 8994 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 8995 | else |
| 8996 | : |
| 8997 | fi |
| 8998 | else |
| 8999 | found_dir= |
| 9000 | found_la= |
| 9001 | found_so= |
| 9002 | found_a= |
| 9003 | if test $use_additional = yes; then |
| 9004 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 9005 | found_dir="$additional_libdir" |
| 9006 | found_so="$additional_libdir/lib$name.$shlibext" |
| 9007 | if test -f "$additional_libdir/lib$name.la"; then |
| 9008 | found_la="$additional_libdir/lib$name.la" |
| 9009 | fi |
| 9010 | else |
| 9011 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 9012 | found_dir="$additional_libdir" |
| 9013 | found_a="$additional_libdir/lib$name.$libext" |
| 9014 | if test -f "$additional_libdir/lib$name.la"; then |
| 9015 | found_la="$additional_libdir/lib$name.la" |
| 9016 | fi |
| 9017 | fi |
| 9018 | fi |
| 9019 | fi |
| 9020 | if test "X$found_dir" = "X"; then |
| 9021 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9022 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9023 | acl_save_prefix="$prefix" |
| 9024 | prefix="$acl_final_prefix" |
| 9025 | acl_save_exec_prefix="$exec_prefix" |
| 9026 | exec_prefix="$acl_final_exec_prefix" |
| 9027 | eval x=\"$x\" |
| 9028 | exec_prefix="$acl_save_exec_prefix" |
| 9029 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9030 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9031 | case "$x" in |
| 9032 | -L*) |
| 9033 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 9034 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 9035 | found_dir="$dir" |
| 9036 | found_so="$dir/lib$name.$shlibext" |
| 9037 | if test -f "$dir/lib$name.la"; then |
| 9038 | found_la="$dir/lib$name.la" |
| 9039 | fi |
| 9040 | else |
| 9041 | if test -f "$dir/lib$name.$libext"; then |
| 9042 | found_dir="$dir" |
| 9043 | found_a="$dir/lib$name.$libext" |
| 9044 | if test -f "$dir/lib$name.la"; then |
| 9045 | found_la="$dir/lib$name.la" |
| 9046 | fi |
| 9047 | fi |
| 9048 | fi |
| 9049 | ;; |
| 9050 | esac |
| 9051 | if test "X$found_dir" != "X"; then |
| 9052 | break |
| 9053 | fi |
| 9054 | done |
| 9055 | fi |
| 9056 | if test "X$found_dir" != "X"; then |
| 9057 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 9058 | if test "X$found_so" != "X"; then |
| 9059 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 9060 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9061 | else |
| 9062 | haveit= |
| 9063 | for x in $ltrpathdirs; do |
| 9064 | if test "X$x" = "X$found_dir"; then |
| 9065 | haveit=yes |
| 9066 | break |
| 9067 | fi |
| 9068 | done |
| 9069 | if test -z "$haveit"; then |
| 9070 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 9071 | fi |
| 9072 | if test "$hardcode_direct" = yes; then |
| 9073 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9074 | else |
| 9075 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 9076 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9077 | haveit= |
| 9078 | for x in $rpathdirs; do |
| 9079 | if test "X$x" = "X$found_dir"; then |
| 9080 | haveit=yes |
| 9081 | break |
| 9082 | fi |
| 9083 | done |
| 9084 | if test -z "$haveit"; then |
| 9085 | rpathdirs="$rpathdirs $found_dir" |
| 9086 | fi |
| 9087 | else |
| 9088 | haveit= |
| 9089 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9090 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9091 | acl_save_prefix="$prefix" |
| 9092 | prefix="$acl_final_prefix" |
| 9093 | acl_save_exec_prefix="$exec_prefix" |
| 9094 | exec_prefix="$acl_final_exec_prefix" |
| 9095 | eval x=\"$x\" |
| 9096 | exec_prefix="$acl_save_exec_prefix" |
| 9097 | prefix="$acl_save_prefix" |
| 9098 | |
| 9099 | if test "X$x" = "X-L$found_dir"; then |
| 9100 | haveit=yes |
| 9101 | break |
| 9102 | fi |
| 9103 | done |
| 9104 | if test -z "$haveit"; then |
| 9105 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 9106 | fi |
| 9107 | if test "$hardcode_minus_L" != no; then |
| 9108 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9109 | else |
| 9110 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 9111 | fi |
| 9112 | fi |
| 9113 | fi |
| 9114 | fi |
| 9115 | else |
| 9116 | if test "X$found_a" != "X"; then |
| 9117 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 9118 | else |
| 9119 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 9120 | fi |
| 9121 | fi |
| 9122 | additional_includedir= |
| 9123 | case "$found_dir" in |
| 9124 | */lib | */lib/) |
| 9125 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 9126 | additional_includedir="$basedir/include" |
| 9127 | ;; |
| 9128 | esac |
| 9129 | if test "X$additional_includedir" != "X"; then |
| 9130 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9131 | haveit= |
| 9132 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9133 | if test -n "$GCC"; then |
| 9134 | case $host_os in |
| 9135 | linux*) haveit=yes;; |
| 9136 | esac |
| 9137 | fi |
| 9138 | fi |
| 9139 | if test -z "$haveit"; then |
| 9140 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9141 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9142 | acl_save_prefix="$prefix" |
| 9143 | prefix="$acl_final_prefix" |
| 9144 | acl_save_exec_prefix="$exec_prefix" |
| 9145 | exec_prefix="$acl_final_exec_prefix" |
| 9146 | eval x=\"$x\" |
| 9147 | exec_prefix="$acl_save_exec_prefix" |
| 9148 | prefix="$acl_save_prefix" |
| 9149 | |
| 9150 | if test "X$x" = "X-I$additional_includedir"; then |
| 9151 | haveit=yes |
| 9152 | break |
| 9153 | fi |
| 9154 | done |
| 9155 | if test -z "$haveit"; then |
| 9156 | if test -d "$additional_includedir"; then |
| 9157 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 9158 | fi |
| 9159 | fi |
| 9160 | fi |
| 9161 | fi |
| 9162 | fi |
| 9163 | if test -n "$found_la"; then |
| 9164 | save_libdir="$libdir" |
| 9165 | case "$found_la" in |
| 9166 | */* | *\\*) . "$found_la" ;; |
| 9167 | *) . "./$found_la" ;; |
| 9168 | esac |
| 9169 | libdir="$save_libdir" |
| 9170 | for dep in $dependency_libs; do |
| 9171 | case "$dep" in |
| 9172 | -L*) |
| 9173 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 9174 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 9175 | haveit= |
| 9176 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 9177 | if test -n "$GCC"; then |
| 9178 | case $host_os in |
| 9179 | linux*) haveit=yes;; |
| 9180 | esac |
| 9181 | fi |
| 9182 | fi |
| 9183 | if test -z "$haveit"; then |
| 9184 | haveit= |
| 9185 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9186 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9187 | acl_save_prefix="$prefix" |
| 9188 | prefix="$acl_final_prefix" |
| 9189 | acl_save_exec_prefix="$exec_prefix" |
| 9190 | exec_prefix="$acl_final_exec_prefix" |
| 9191 | eval x=\"$x\" |
| 9192 | exec_prefix="$acl_save_exec_prefix" |
| 9193 | prefix="$acl_save_prefix" |
| 9194 | |
| 9195 | if test "X$x" = "X-L$additional_libdir"; then |
| 9196 | haveit=yes |
| 9197 | break |
| 9198 | fi |
| 9199 | done |
| 9200 | if test -z "$haveit"; then |
| 9201 | if test -d "$additional_libdir"; then |
| 9202 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 9203 | fi |
| 9204 | fi |
| 9205 | haveit= |
| 9206 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9207 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9208 | acl_save_prefix="$prefix" |
| 9209 | prefix="$acl_final_prefix" |
| 9210 | acl_save_exec_prefix="$exec_prefix" |
| 9211 | exec_prefix="$acl_final_exec_prefix" |
| 9212 | eval x=\"$x\" |
| 9213 | exec_prefix="$acl_save_exec_prefix" |
| 9214 | prefix="$acl_save_prefix" |
| 9215 | |
| 9216 | if test "X$x" = "X-L$additional_libdir"; then |
| 9217 | haveit=yes |
| 9218 | break |
| 9219 | fi |
| 9220 | done |
| 9221 | if test -z "$haveit"; then |
| 9222 | if test -d "$additional_libdir"; then |
| 9223 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 9224 | fi |
| 9225 | fi |
| 9226 | fi |
| 9227 | fi |
| 9228 | ;; |
| 9229 | -R*) |
| 9230 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9231 | if test "$enable_rpath" != no; then |
| 9232 | haveit= |
| 9233 | for x in $rpathdirs; do |
| 9234 | if test "X$x" = "X$dir"; then |
| 9235 | haveit=yes |
| 9236 | break |
| 9237 | fi |
| 9238 | done |
| 9239 | if test -z "$haveit"; then |
| 9240 | rpathdirs="$rpathdirs $dir" |
| 9241 | fi |
| 9242 | haveit= |
| 9243 | for x in $ltrpathdirs; do |
| 9244 | if test "X$x" = "X$dir"; then |
| 9245 | haveit=yes |
| 9246 | break |
| 9247 | fi |
| 9248 | done |
| 9249 | if test -z "$haveit"; then |
| 9250 | ltrpathdirs="$ltrpathdirs $dir" |
| 9251 | fi |
| 9252 | fi |
| 9253 | ;; |
| 9254 | -l*) |
| 9255 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9256 | ;; |
| 9257 | *.la) |
| 9258 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9259 | ;; |
| 9260 | *) |
| 9261 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 9262 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 9263 | ;; |
| 9264 | esac |
| 9265 | done |
| 9266 | fi |
| 9267 | else |
| 9268 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 9269 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 9270 | fi |
| 9271 | fi |
| 9272 | fi |
| 9273 | done |
| 9274 | done |
| 9275 | if test "X$rpathdirs" != "X"; then |
| 9276 | if test -n "$hardcode_libdir_separator"; then |
| 9277 | alldirs= |
| 9278 | for found_dir in $rpathdirs; do |
| 9279 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 9280 | done |
| 9281 | acl_save_libdir="$libdir" |
| 9282 | libdir="$alldirs" |
| 9283 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9284 | libdir="$acl_save_libdir" |
| 9285 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 9286 | else |
| 9287 | for found_dir in $rpathdirs; do |
| 9288 | acl_save_libdir="$libdir" |
| 9289 | libdir="$found_dir" |
| 9290 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9291 | libdir="$acl_save_libdir" |
| 9292 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 9293 | done |
| 9294 | fi |
| 9295 | fi |
| 9296 | if test "X$ltrpathdirs" != "X"; then |
| 9297 | for found_dir in $ltrpathdirs; do |
| 9298 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 9299 | done |
| 9300 | fi |
| 9301 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9302 | { $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] | 9303 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9304 | if ${gt_cv_func_gnugettext1_libintl+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9305 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9306 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9307 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 9308 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 9309 | gt_save_LIBS="$LIBS" |
| 9310 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9312 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9313 | #include <libintl.h> |
| 9314 | extern int _nl_msg_cat_cntr; |
| 9315 | extern |
| 9316 | #ifdef __cplusplus |
| 9317 | "C" |
| 9318 | #endif |
| 9319 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9320 | int |
| 9321 | main () |
| 9322 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9323 | bindtextdomain ("", ""); |
| 9324 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9325 | ; |
| 9326 | return 0; |
| 9327 | } |
| 9328 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9329 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9330 | gt_cv_func_gnugettext1_libintl=yes |
| 9331 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9332 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9333 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9334 | rm -f core conftest.err conftest.$ac_objext \ |
| 9335 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9336 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 9337 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9339 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9340 | #include <libintl.h> |
| 9341 | extern int _nl_msg_cat_cntr; |
| 9342 | extern |
| 9343 | #ifdef __cplusplus |
| 9344 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9345 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9346 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9347 | int |
| 9348 | main () |
| 9349 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9350 | bindtextdomain ("", ""); |
| 9351 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9352 | ; |
| 9353 | return 0; |
| 9354 | } |
| 9355 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9356 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9357 | LIBINTL="$LIBINTL $LIBICONV" |
| 9358 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 9359 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9360 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9361 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9362 | rm -f core conftest.err conftest.$ac_objext \ |
| 9363 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9364 | fi |
| 9365 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 9366 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9367 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9369 | $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9370 | fi |
| 9371 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9372 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 9373 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9374 | && test "$PACKAGE" != gettext-runtime \ |
| 9375 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9376 | gt_use_preinstalled_gnugettext=yes |
| 9377 | else |
| 9378 | LIBINTL= |
| 9379 | LTLIBINTL= |
| 9380 | INCINTL= |
| 9381 | fi |
| 9382 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9383 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9384 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 9385 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9386 | fi |
| 9387 | fi |
| 9388 | |
| 9389 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9390 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9391 | USE_INCLUDED_LIBINTL=yes |
| 9392 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 9393 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 9394 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9395 | fi |
| 9396 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9397 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9398 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 9399 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9400 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9401 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9402 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9403 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9404 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9405 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9406 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9407 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9408 | else |
| 9409 | USE_NLS=no |
| 9410 | fi |
| 9411 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9412 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9413 | { $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] | 9414 | $as_echo_n "checking whether to use NLS... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9416 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9417 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9418 | { $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] | 9419 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9420 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9421 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 9422 | gt_source="external libintl" |
| 9423 | else |
| 9424 | gt_source="libc" |
| 9425 | fi |
| 9426 | else |
| 9427 | gt_source="included intl directory" |
| 9428 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9430 | $as_echo "$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9431 | fi |
| 9432 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9433 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9434 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9435 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9436 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9437 | { $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] | 9438 | $as_echo_n "checking how to link with libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9440 | $as_echo "$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9441 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9442 | for element in $INCINTL; do |
| 9443 | haveit= |
| 9444 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9445 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9446 | acl_save_prefix="$prefix" |
| 9447 | prefix="$acl_final_prefix" |
| 9448 | acl_save_exec_prefix="$exec_prefix" |
| 9449 | exec_prefix="$acl_final_exec_prefix" |
| 9450 | eval x=\"$x\" |
| 9451 | exec_prefix="$acl_save_exec_prefix" |
| 9452 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9453 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9454 | if test "X$x" = "X$element"; then |
| 9455 | haveit=yes |
| 9456 | break |
| 9457 | fi |
| 9458 | done |
| 9459 | if test -z "$haveit"; then |
| 9460 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9461 | fi |
| 9462 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9463 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9464 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9465 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9466 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9467 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9468 | |
| 9469 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9470 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9471 | |
| 9472 | fi |
| 9473 | |
| 9474 | POSUB=po |
| 9475 | fi |
| 9476 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9477 | |
| 9478 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9479 | BUILD_INCLUDED_LIBINTL=yes |
| 9480 | fi |
| 9481 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9482 | |
| 9483 | |
| 9484 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9485 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9486 | nls_cv_header_intl= |
| 9487 | nls_cv_header_libgt= |
| 9488 | |
| 9489 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9490 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9491 | |
| 9492 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9493 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9494 | |
| 9495 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9496 | |
| 9497 | |
| 9498 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 9499 | INTLOBJS="\$(GETTOBJS)" |
| 9500 | fi |
| 9501 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9502 | |
| 9503 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9504 | |
| 9505 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9506 | |
| 9507 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9508 | |
| 9509 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9510 | |
| 9511 | |
| 9512 | |
| 9513 | |
| 9514 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9515 | { $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] | 9516 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 9517 | set x ${MAKE-make} |
| 9518 | 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] | 9519 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9520 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9521 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9522 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9523 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9524 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9525 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9526 | _ACEOF |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9527 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9528 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 9529 | *@@@%%%=?*=@@@%%%*) |
| 9530 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 9531 | *) |
| 9532 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 9533 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9534 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9535 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9536 | 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] | 9537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9538 | $as_echo "yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9539 | SET_MAKE= |
| 9540 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9542 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9543 | SET_MAKE="MAKE=${MAKE-make}" |
| 9544 | fi |
| 9545 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9546 | { $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] | 9547 | $as_echo_n "checking for GNU make... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9548 | if ${_cv_gnu_make_command+:} false; then : |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9549 | $as_echo_n "(cached) " >&6 |
| 9550 | else |
| 9551 | _cv_gnu_make_command='' ; |
| 9552 | for a in "$MAKE" make gmake gnumake ; do |
| 9553 | if test -z "$a" ; then continue ; fi ; |
| 9554 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 9555 | _cv_gnu_make_command=$a ; |
| 9556 | break; |
| 9557 | fi |
| 9558 | done ; |
| 9559 | |
| 9560 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9561 | { $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] | 9562 | $as_echo "$_cv_gnu_make_command" >&6; } ; |
| 9563 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 9564 | ifGNUmake='' ; |
| 9565 | ifNotGNUmake='#' ; |
| 9566 | else |
| 9567 | ifGNUmake='#' ; |
| 9568 | ifNotGNUmake='' ; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9570 | $as_echo "\"Not found\"" >&6; }; |
| 9571 | fi |
| 9572 | |
| 9573 | |
| 9574 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9575 | # Extract the first word of "ln", so it can be a program name with args. |
| 9576 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9577 | { $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] | 9578 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9579 | if ${ac_cv_path_LN+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9580 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9581 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9582 | case $LN in |
| 9583 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9584 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 9585 | ;; |
| 9586 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9588 | for as_dir in $PATH |
| 9589 | do |
| 9590 | IFS=$as_save_IFS |
| 9591 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9592 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9593 | 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] | 9594 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9595 | $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] | 9596 | break 2 |
| 9597 | fi |
| 9598 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9599 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9600 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9601 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9602 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 9603 | ;; |
| 9604 | esac |
| 9605 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9606 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9607 | if test -n "$LN"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9609 | $as_echo "$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9610 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9612 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9613 | fi |
| 9614 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9615 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9616 | { $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] | 9617 | $as_echo_n "checking whether ln -s works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9618 | LN_S=$as_ln_s |
| 9619 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9621 | $as_echo "yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9622 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9623 | { $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] | 9624 | $as_echo "no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9625 | fi |
| 9626 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9627 | # Extract the first word of "mv", so it can be a program name with args. |
| 9628 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9629 | { $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] | 9630 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9631 | if ${ac_cv_path_MV+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9632 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9633 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9634 | case $MV in |
| 9635 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9636 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 9637 | ;; |
| 9638 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9640 | for as_dir in $PATH |
| 9641 | do |
| 9642 | IFS=$as_save_IFS |
| 9643 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9644 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9645 | 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] | 9646 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9647 | $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] | 9648 | break 2 |
| 9649 | fi |
| 9650 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9651 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9652 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9653 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9654 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 9655 | ;; |
| 9656 | esac |
| 9657 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9658 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9659 | if test -n "$MV"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9661 | $as_echo "$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9662 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9664 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9665 | fi |
| 9666 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9667 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9668 | # Extract the first word of "cp", so it can be a program name with args. |
| 9669 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9670 | { $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] | 9671 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9672 | if ${ac_cv_path_CP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9673 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9674 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9675 | case $CP in |
| 9676 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9677 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 9678 | ;; |
| 9679 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9681 | for as_dir in $PATH |
| 9682 | do |
| 9683 | IFS=$as_save_IFS |
| 9684 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9685 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9686 | 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] | 9687 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9688 | $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] | 9689 | break 2 |
| 9690 | fi |
| 9691 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9692 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9693 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9694 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9695 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 9696 | ;; |
| 9697 | esac |
| 9698 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9699 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9700 | if test -n "$CP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9702 | $as_echo "$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9703 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9705 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9706 | fi |
| 9707 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9708 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9709 | # Extract the first word of "rm", so it can be a program name with args. |
| 9710 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9711 | { $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] | 9712 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9713 | if ${ac_cv_path_RM+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9714 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9715 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9716 | case $RM in |
| 9717 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9718 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 9719 | ;; |
| 9720 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9722 | for as_dir in $PATH |
| 9723 | do |
| 9724 | IFS=$as_save_IFS |
| 9725 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9726 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9727 | 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] | 9728 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9729 | $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] | 9730 | break 2 |
| 9731 | fi |
| 9732 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9733 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9734 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9735 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9736 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 9737 | ;; |
| 9738 | esac |
| 9739 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9740 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9741 | if test -n "$RM"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9743 | $as_echo "$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9744 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9746 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9747 | fi |
| 9748 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9749 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9750 | # Extract the first word of "chmod", so it can be a program name with args. |
| 9751 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9752 | { $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] | 9753 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9754 | if ${ac_cv_path_CHMOD+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9755 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9756 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9757 | case $CHMOD in |
| 9758 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9759 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 9760 | ;; |
| 9761 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9763 | for as_dir in $PATH |
| 9764 | do |
| 9765 | IFS=$as_save_IFS |
| 9766 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9767 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9768 | 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] | 9769 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9770 | $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] | 9771 | break 2 |
| 9772 | fi |
| 9773 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9774 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9775 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9776 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9777 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 9778 | ;; |
| 9779 | esac |
| 9780 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9781 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9782 | if test -n "$CHMOD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9784 | $as_echo "$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9785 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9787 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9788 | fi |
| 9789 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9790 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9791 | for ac_prog in gawk mawk nawk awk |
| 9792 | do |
| 9793 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9794 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9795 | { $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] | 9796 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9797 | if ${ac_cv_prog_AWK+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9798 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9799 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9800 | if test -n "$AWK"; then |
| 9801 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 9802 | else |
| 9803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9804 | for as_dir in $PATH |
| 9805 | do |
| 9806 | IFS=$as_save_IFS |
| 9807 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9808 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9809 | 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] | 9810 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9811 | $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] | 9812 | break 2 |
| 9813 | fi |
| 9814 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9815 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9816 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9817 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9818 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9819 | fi |
| 9820 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9821 | if test -n "$AWK"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9823 | $as_echo "$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9824 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9826 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9827 | fi |
| 9828 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9829 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9830 | test -n "$AWK" && break |
| 9831 | done |
| 9832 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9834 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9835 | if ${ac_cv_path_EGREP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9836 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9837 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9838 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 9839 | then ac_cv_path_EGREP="$GREP -E" |
| 9840 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9841 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9842 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9843 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 9844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9845 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 9846 | do |
| 9847 | IFS=$as_save_IFS |
| 9848 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9849 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9850 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9851 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9852 | as_fn_executable_p "$ac_path_EGREP" || continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9853 | # 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] | 9854 | # Check for GNU $ac_path_EGREP |
| 9855 | case `"$ac_path_EGREP" --version 2>&1` in |
| 9856 | *GNU*) |
| 9857 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 9858 | *) |
| 9859 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9860 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9861 | while : |
| 9862 | do |
| 9863 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 9864 | mv "conftest.tmp" "conftest.in" |
| 9865 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9866 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9867 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 9868 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9869 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9870 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 9871 | # Best one so far, save it but keep looking for a better one |
| 9872 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 9873 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9874 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9875 | # 10*(2^10) chars as input seems more than enough |
| 9876 | test $ac_count -gt 10 && break |
| 9877 | done |
| 9878 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 9879 | esac |
| 9880 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9881 | $ac_path_EGREP_found && break 3 |
| 9882 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9883 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9884 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9885 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9886 | if test -z "$ac_cv_path_EGREP"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9887 | 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] | 9888 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9889 | else |
| 9890 | ac_cv_path_EGREP=$EGREP |
| 9891 | fi |
| 9892 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9893 | fi |
| 9894 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9895 | { $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] | 9896 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9897 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9898 | |
| 9899 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9900 | # Extract the first word of "sed", so it can be a program name with args. |
| 9901 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9902 | { $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] | 9903 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9904 | if ${ac_cv_path_SED+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9905 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9906 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9907 | case $SED in |
| 9908 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9909 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 9910 | ;; |
| 9911 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9913 | for as_dir in $PATH |
| 9914 | do |
| 9915 | IFS=$as_save_IFS |
| 9916 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9917 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9918 | 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] | 9919 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9920 | $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] | 9921 | break 2 |
| 9922 | fi |
| 9923 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9924 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9925 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9926 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9927 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 9928 | ;; |
| 9929 | esac |
| 9930 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9931 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9932 | if test -n "$SED"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9934 | $as_echo "$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9935 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9937 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9938 | fi |
| 9939 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9940 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9941 | # Extract the first word of "perl", so it can be a program name with args. |
| 9942 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9943 | { $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] | 9944 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9945 | if ${ac_cv_path_PERL+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9946 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9947 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9948 | case $PERL in |
| 9949 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9950 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 9951 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9952 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9954 | for as_dir in $PATH |
| 9955 | do |
| 9956 | IFS=$as_save_IFS |
| 9957 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9958 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9959 | 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] | 9960 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9961 | $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] | 9962 | break 2 |
| 9963 | fi |
| 9964 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9965 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9966 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9967 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9968 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 9969 | ;; |
| 9970 | esac |
| 9971 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9972 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9973 | if test -n "$PERL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9975 | $as_echo "$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9976 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9978 | $as_echo "no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9979 | fi |
| 9980 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9981 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9982 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 9983 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9984 | { $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] | 9985 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 9986 | if ${ac_cv_path_LDCONFIG+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9987 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9988 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9989 | case $LDCONFIG in |
| 9990 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9991 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 9992 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9993 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9995 | for as_dir in $PATH |
| 9996 | do |
| 9997 | IFS=$as_save_IFS |
| 9998 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9999 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10000 | 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] | 10001 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10002 | $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] | 10003 | break 2 |
| 10004 | fi |
| 10005 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10006 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10007 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10008 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10009 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 10010 | ;; |
| 10011 | esac |
| 10012 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10013 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10014 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10016 | $as_echo "$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10017 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10019 | $as_echo "no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10020 | fi |
| 10021 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10022 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10023 | if test -n "$ac_tool_prefix"; then |
| 10024 | # 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] | 10025 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10026 | { $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] | 10027 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10028 | if ${ac_cv_prog_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10029 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10030 | else |
| 10031 | if test -n "$AR"; then |
| 10032 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 10033 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10035 | for as_dir in $PATH |
| 10036 | do |
| 10037 | IFS=$as_save_IFS |
| 10038 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10039 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10040 | 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] | 10041 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10042 | $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] | 10043 | break 2 |
| 10044 | fi |
| 10045 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10046 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10047 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10048 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10049 | fi |
| 10050 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10051 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10052 | if test -n "$AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10054 | $as_echo "$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10055 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10057 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10058 | fi |
| 10059 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10060 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10061 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10062 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10063 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10064 | # Extract the first word of "ar", so it can be a program name with args. |
| 10065 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10066 | { $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] | 10067 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10068 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10069 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10070 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10071 | if test -n "$ac_ct_AR"; then |
| 10072 | 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] | 10073 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10075 | for as_dir in $PATH |
| 10076 | do |
| 10077 | IFS=$as_save_IFS |
| 10078 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10079 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10080 | 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] | 10081 | ac_cv_prog_ac_ct_AR="ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10082 | $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] | 10083 | break 2 |
| 10084 | fi |
| 10085 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10086 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10087 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10088 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10089 | fi |
| 10090 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10091 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 10092 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10093 | { $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] | 10094 | $as_echo "$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10095 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10097 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10098 | fi |
| 10099 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10100 | if test "x$ac_ct_AR" = x; then |
| 10101 | AR="ar" |
| 10102 | else |
| 10103 | case $cross_compiling:$ac_tool_warned in |
| 10104 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10105 | { $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] | 10106 | $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] | 10107 | ac_tool_warned=yes ;; |
| 10108 | esac |
| 10109 | AR=$ac_ct_AR |
| 10110 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10111 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10112 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10113 | fi |
| 10114 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10115 | if test -n "$ac_tool_prefix"; then |
| 10116 | # 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] | 10117 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10118 | { $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] | 10119 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10120 | if ${ac_cv_prog_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10121 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10122 | else |
| 10123 | if test -n "$RANLIB"; then |
| 10124 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 10125 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10127 | for as_dir in $PATH |
| 10128 | do |
| 10129 | IFS=$as_save_IFS |
| 10130 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10131 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10132 | 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] | 10133 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10134 | $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] | 10135 | break 2 |
| 10136 | fi |
| 10137 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10138 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10139 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10140 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10141 | fi |
| 10142 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10143 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10144 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10146 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10147 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10149 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10150 | fi |
| 10151 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10152 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10153 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10154 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10155 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10156 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 10157 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10158 | { $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] | 10159 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10160 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10161 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10162 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10163 | if test -n "$ac_ct_RANLIB"; then |
| 10164 | 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] | 10165 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10167 | for as_dir in $PATH |
| 10168 | do |
| 10169 | IFS=$as_save_IFS |
| 10170 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10171 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10172 | 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] | 10173 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10174 | $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] | 10175 | break 2 |
| 10176 | fi |
| 10177 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10178 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10179 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10180 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10181 | fi |
| 10182 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10183 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 10184 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10185 | { $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] | 10186 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10187 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10189 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10190 | fi |
| 10191 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10192 | if test "x$ac_ct_RANLIB" = x; then |
| 10193 | RANLIB=":" |
| 10194 | else |
| 10195 | case $cross_compiling:$ac_tool_warned in |
| 10196 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10197 | { $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] | 10198 | $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] | 10199 | ac_tool_warned=yes ;; |
| 10200 | esac |
| 10201 | RANLIB=$ac_ct_RANLIB |
| 10202 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10203 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10204 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10205 | fi |
| 10206 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10207 | if test -n "$ac_tool_prefix"; then |
| 10208 | # 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] | 10209 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10210 | { $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] | 10211 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10212 | if ${ac_cv_prog_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10213 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10214 | else |
| 10215 | if test -n "$STRIP"; then |
| 10216 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 10217 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10219 | for as_dir in $PATH |
| 10220 | do |
| 10221 | IFS=$as_save_IFS |
| 10222 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10223 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10224 | 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] | 10225 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10226 | $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] | 10227 | break 2 |
| 10228 | fi |
| 10229 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10230 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10231 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10232 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10233 | fi |
| 10234 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10235 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10236 | if test -n "$STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10238 | $as_echo "$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10239 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10241 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10242 | fi |
| 10243 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10244 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10245 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10246 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10247 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10248 | # Extract the first word of "strip", so it can be a program name with args. |
| 10249 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10250 | { $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] | 10251 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10252 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10253 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10254 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10255 | if test -n "$ac_ct_STRIP"; then |
| 10256 | 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] | 10257 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10259 | for as_dir in $PATH |
| 10260 | do |
| 10261 | IFS=$as_save_IFS |
| 10262 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10263 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10264 | 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] | 10265 | ac_cv_prog_ac_ct_STRIP="strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10266 | $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] | 10267 | break 2 |
| 10268 | fi |
| 10269 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10270 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10271 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10272 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10273 | fi |
| 10274 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10275 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 10276 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10277 | { $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] | 10278 | $as_echo "$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10279 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10281 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10282 | fi |
| 10283 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10284 | if test "x$ac_ct_STRIP" = x; then |
| 10285 | STRIP=":" |
| 10286 | else |
| 10287 | case $cross_compiling:$ac_tool_warned in |
| 10288 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10289 | { $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] | 10290 | $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] | 10291 | ac_tool_warned=yes ;; |
| 10292 | esac |
| 10293 | STRIP=$ac_ct_STRIP |
| 10294 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10295 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10296 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10297 | fi |
| 10298 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10299 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 10300 | set dummy makeinfo; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10301 | { $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] | 10302 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10303 | if ${ac_cv_prog_MAKEINFO+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10304 | $as_echo_n "(cached) " >&6 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10305 | else |
| 10306 | if test -n "$MAKEINFO"; then |
| 10307 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 10308 | else |
| 10309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10310 | for as_dir in $PATH |
| 10311 | do |
| 10312 | IFS=$as_save_IFS |
| 10313 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10314 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10315 | 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] | 10316 | ac_cv_prog_MAKEINFO="makeinfo" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10317 | $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] | 10318 | break 2 |
| 10319 | fi |
| 10320 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10321 | done |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10322 | IFS=$as_save_IFS |
| 10323 | |
| 10324 | fi |
| 10325 | fi |
| 10326 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 10327 | if test -n "$MAKEINFO"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10329 | $as_echo "$MAKEINFO" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10330 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10332 | $as_echo "no" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10333 | fi |
| 10334 | |
| 10335 | |
| 10336 | if test "_$MAKEINFO" = "_"; then |
| 10337 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 10338 | else |
| 10339 | case "$MAKEINFO" in |
| 10340 | */missing.*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10342 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10343 | $as_echo "$as_me: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10344 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 10345 | ;; |
| 10346 | *) |
| 10347 | ;; |
| 10348 | esac |
| 10349 | fi |
| 10350 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10351 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10352 | # See if we need a separate native compiler. |
| 10353 | if test $cross_compiling = no; then |
| 10354 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10355 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10356 | else |
| 10357 | for ac_prog in gcc cc |
| 10358 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10359 | # 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] | 10360 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10361 | { $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] | 10362 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10363 | if ${ac_cv_prog_BUILD_CC+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10364 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10365 | else |
| 10366 | if test -n "$BUILD_CC"; then |
| 10367 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 10368 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10370 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10371 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10372 | IFS=$as_save_IFS |
| 10373 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10374 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10375 | 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] | 10376 | ac_cv_prog_BUILD_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10377 | $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] | 10378 | break 2 |
| 10379 | fi |
| 10380 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10381 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10382 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10383 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10384 | fi |
| 10385 | fi |
| 10386 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 10387 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10389 | $as_echo "$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10390 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10392 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10393 | fi |
| 10394 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10395 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10396 | test -n "$BUILD_CC" && break |
| 10397 | done |
| 10398 | |
| 10399 | fi |
Kazuya Mio | fbabd5c | 2013-12-16 00:48:12 -0500 | [diff] [blame] | 10400 | 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/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.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] | 10401 | do : |
| 10402 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10403 | 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] | 10404 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10405 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10406 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10407 | _ACEOF |
| 10408 | |
| 10409 | fi |
| 10410 | |
| 10411 | done |
| 10412 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10413 | for ac_header in sys/disk.h sys/mount.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10414 | do : |
| 10415 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10416 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10417 | #if HAVE_SYS_QUEUE_H |
| 10418 | #include <sys/queue.h> |
| 10419 | #endif |
| 10420 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10421 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10422 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10423 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10424 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10425 | _ACEOF |
| 10426 | |
| 10427 | fi |
| 10428 | |
| 10429 | done |
| 10430 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10431 | for ac_header in net/if.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10432 | do : |
| 10433 | 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] | 10434 | #if HAVE_SYS_TYPES_H |
| 10435 | #include <sys/types.h> |
| 10436 | #endif |
| 10437 | #if HAVE_SYS_SOCKET |
| 10438 | #include <sys/socket.h> |
| 10439 | #endif |
| 10440 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10441 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10442 | if test "x$ac_cv_header_net_if_h" = xyes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10443 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10444 | #define HAVE_NET_IF_H 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10445 | _ACEOF |
| 10446 | |
| 10447 | fi |
| 10448 | |
| 10449 | done |
| 10450 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10451 | for ac_func in vprintf |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10452 | do : |
| 10453 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10454 | if test "x$ac_cv_func_vprintf" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10455 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10456 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10457 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10458 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10459 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10460 | if test "x$ac_cv_func__doprnt" = xyes; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10461 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10462 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10463 | |
| 10464 | fi |
| 10465 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10466 | fi |
| 10467 | done |
| 10468 | |
| 10469 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10470 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
| 10471 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10472 | 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] | 10473 | |
| 10474 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10475 | |
| 10476 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10477 | |
Theodore Ts'o | 2873927 | 2014-01-03 00:26:43 -0500 | [diff] [blame] | 10478 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" |
| 10479 | if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : |
| 10480 | |
| 10481 | cat >>confdefs.h <<_ACEOF |
| 10482 | #define HAVE_STRUCT_STAT_ST_ATIM 1 |
| 10483 | _ACEOF |
| 10484 | |
| 10485 | |
| 10486 | fi |
| 10487 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10488 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
| 10489 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10490 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10491 | |
| 10492 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10493 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10494 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10495 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10496 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
| 10497 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10498 | if test "x$ac_cv_have_decl_llseek" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10499 | |
| 10500 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10501 | |
| 10502 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10503 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10504 | 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] | 10505 | #define _LARGEFILE64_SOURCE |
| 10506 | #include <unistd.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10507 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10508 | if test "x$ac_cv_have_decl_lseek64" = xyes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10509 | |
| 10510 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 10511 | |
| 10512 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10513 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10514 | # The cast to long int works around a bug in the HP C Compiler |
| 10515 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10516 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10517 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10518 | { $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] | 10519 | $as_echo_n "checking size of short... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10520 | if ${ac_cv_sizeof_short+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10521 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10522 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10523 | 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] | 10524 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10525 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10526 | if test "$ac_cv_type_short" = yes; then |
| 10527 | { { $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] | 10528 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10529 | as_fn_error 77 "cannot compute sizeof (short) |
| 10530 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10531 | else |
| 10532 | ac_cv_sizeof_short=0 |
| 10533 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10534 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10535 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10536 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10537 | { $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] | 10538 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10539 | |
| 10540 | |
| 10541 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10542 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10543 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10544 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10545 | |
| 10546 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10547 | # The cast to long int works around a bug in the HP C Compiler |
| 10548 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10549 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10550 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10551 | { $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] | 10552 | $as_echo_n "checking size of int... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10553 | if ${ac_cv_sizeof_int+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10554 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10555 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10556 | 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] | 10557 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10558 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10559 | if test "$ac_cv_type_int" = yes; then |
| 10560 | { { $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] | 10561 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10562 | as_fn_error 77 "cannot compute sizeof (int) |
| 10563 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10564 | else |
| 10565 | ac_cv_sizeof_int=0 |
| 10566 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10567 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10568 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10569 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10570 | { $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] | 10571 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10572 | |
| 10573 | |
| 10574 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10575 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10576 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10577 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10578 | |
| 10579 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10580 | # The cast to long int works around a bug in the HP C Compiler |
| 10581 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10582 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10583 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10584 | { $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] | 10585 | $as_echo_n "checking size of long... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10586 | if ${ac_cv_sizeof_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10587 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10588 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10589 | 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] | 10590 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10591 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10592 | if test "$ac_cv_type_long" = yes; then |
| 10593 | { { $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] | 10594 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10595 | as_fn_error 77 "cannot compute sizeof (long) |
| 10596 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10597 | else |
| 10598 | ac_cv_sizeof_long=0 |
| 10599 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10600 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10601 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10602 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10603 | { $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] | 10604 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10605 | |
| 10606 | |
| 10607 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10608 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10609 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10610 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10611 | |
| 10612 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10613 | # The cast to long int works around a bug in the HP C Compiler |
| 10614 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10615 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10616 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10617 | { $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] | 10618 | $as_echo_n "checking size of long long... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10619 | if ${ac_cv_sizeof_long_long+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10620 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10621 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10622 | 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] | 10623 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10624 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10625 | if test "$ac_cv_type_long_long" = yes; then |
| 10626 | { { $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] | 10627 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10628 | as_fn_error 77 "cannot compute sizeof (long long) |
| 10629 | See \`config.log' for more details" "$LINENO" 5; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10630 | else |
| 10631 | ac_cv_sizeof_long_long=0 |
| 10632 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10633 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10634 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10635 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10636 | { $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] | 10637 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10638 | |
| 10639 | |
| 10640 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10641 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10642 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10643 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10644 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10645 | |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 10646 | # The cast to long int works around a bug in the HP C Compiler |
| 10647 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10648 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10649 | # This bug is HP SR number 8606223364. |
| 10650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 10651 | $as_echo_n "checking size of off_t... " >&6; } |
| 10652 | if ${ac_cv_sizeof_off_t+:} false; then : |
| 10653 | $as_echo_n "(cached) " >&6 |
| 10654 | else |
| 10655 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : |
| 10656 | |
| 10657 | else |
| 10658 | if test "$ac_cv_type_off_t" = yes; then |
| 10659 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10660 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10661 | as_fn_error 77 "cannot compute sizeof (off_t) |
| 10662 | See \`config.log' for more details" "$LINENO" 5; } |
| 10663 | else |
| 10664 | ac_cv_sizeof_off_t=0 |
| 10665 | fi |
| 10666 | fi |
| 10667 | |
| 10668 | fi |
| 10669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 10670 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 10671 | |
| 10672 | |
| 10673 | |
| 10674 | cat >>confdefs.h <<_ACEOF |
| 10675 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 10676 | _ACEOF |
| 10677 | |
| 10678 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10679 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 10680 | SIZEOF_INT=$ac_cv_sizeof_int |
| 10681 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10682 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
Theodore Ts'o | cc68e8a | 2013-05-04 19:01:09 -0400 | [diff] [blame] | 10683 | SIZEOF_OFF_T=$ac_cv_sizeof_off_t |
| 10684 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10685 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10686 | |
| 10687 | |
| 10688 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10689 | { $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] | 10690 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10691 | if ${ac_cv_c_bigendian+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10692 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10693 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10694 | ac_cv_c_bigendian=unknown |
| 10695 | # See if we're dealing with a universal compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10697 | /* end confdefs.h. */ |
| 10698 | #ifndef __APPLE_CC__ |
| 10699 | not a universal capable compiler |
| 10700 | #endif |
| 10701 | typedef int dummy; |
| 10702 | |
| 10703 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10704 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10705 | |
| 10706 | # Check for potential -arch flags. It is not universal unless |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10707 | # there are at least two -arch flags with different values. |
| 10708 | ac_arch= |
| 10709 | ac_prev= |
| 10710 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 10711 | if test -n "$ac_prev"; then |
| 10712 | case $ac_word in |
| 10713 | i?86 | x86_64 | ppc | ppc64) |
| 10714 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 10715 | ac_arch=$ac_word |
| 10716 | else |
| 10717 | ac_cv_c_bigendian=universal |
| 10718 | break |
| 10719 | fi |
| 10720 | ;; |
| 10721 | esac |
| 10722 | ac_prev= |
| 10723 | elif test "x$ac_word" = "x-arch"; then |
| 10724 | ac_prev=arch |
| 10725 | fi |
| 10726 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10727 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10729 | if test $ac_cv_c_bigendian = unknown; then |
| 10730 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10732 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10733 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10734 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10735 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10736 | int |
| 10737 | main () |
| 10738 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10739 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 10740 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 10741 | && LITTLE_ENDIAN) |
| 10742 | bogus endian macros |
| 10743 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10744 | |
| 10745 | ; |
| 10746 | return 0; |
| 10747 | } |
| 10748 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10749 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10750 | # 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] | 10751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10752 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10753 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10754 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10755 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10756 | int |
| 10757 | main () |
| 10758 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10759 | #if BYTE_ORDER != BIG_ENDIAN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10760 | not big endian |
| 10761 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10762 | |
| 10763 | ; |
| 10764 | return 0; |
| 10765 | } |
| 10766 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10767 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10768 | ac_cv_c_bigendian=yes |
| 10769 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10770 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10771 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10773 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10775 | fi |
| 10776 | if test $ac_cv_c_bigendian = unknown; then |
| 10777 | # 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] | 10778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10779 | /* end confdefs.h. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10780 | #include <limits.h> |
| 10781 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10782 | int |
| 10783 | main () |
| 10784 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10785 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 10786 | bogus endian macros |
| 10787 | #endif |
| 10788 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10789 | ; |
| 10790 | return 0; |
| 10791 | } |
| 10792 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10793 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10794 | # 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] | 10795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10796 | /* end confdefs.h. */ |
| 10797 | #include <limits.h> |
| 10798 | |
| 10799 | int |
| 10800 | main () |
| 10801 | { |
| 10802 | #ifndef _BIG_ENDIAN |
| 10803 | not big endian |
| 10804 | #endif |
| 10805 | |
| 10806 | ; |
| 10807 | return 0; |
| 10808 | } |
| 10809 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10810 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10811 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10812 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10813 | ac_cv_c_bigendian=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10814 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10816 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10818 | fi |
| 10819 | if test $ac_cv_c_bigendian = unknown; then |
| 10820 | # Compile a test program. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10821 | if test "$cross_compiling" = yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10822 | # Try to guess by grepping values from an object file. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10824 | /* end confdefs.h. */ |
| 10825 | short int ascii_mm[] = |
| 10826 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 10827 | short int ascii_ii[] = |
| 10828 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 10829 | int use_ascii (int i) { |
| 10830 | return ascii_mm[i] + ascii_ii[i]; |
| 10831 | } |
| 10832 | short int ebcdic_ii[] = |
| 10833 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 10834 | short int ebcdic_mm[] = |
| 10835 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 10836 | int use_ebcdic (int i) { |
| 10837 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 10838 | } |
| 10839 | extern int foo; |
| 10840 | |
| 10841 | int |
| 10842 | main () |
| 10843 | { |
| 10844 | return use_ascii (foo) == use_ebcdic (foo); |
| 10845 | ; |
| 10846 | return 0; |
| 10847 | } |
| 10848 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10849 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10850 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 10851 | ac_cv_c_bigendian=yes |
| 10852 | fi |
| 10853 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 10854 | if test "$ac_cv_c_bigendian" = unknown; then |
| 10855 | ac_cv_c_bigendian=no |
| 10856 | else |
| 10857 | # finding both strings is unlikely to happen, but who knows? |
| 10858 | ac_cv_c_bigendian=unknown |
| 10859 | fi |
| 10860 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10861 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10862 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10863 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10865 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10866 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10867 | int |
| 10868 | main () |
| 10869 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10870 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10871 | /* Are we little or big endian? From Harbison&Steele. */ |
| 10872 | union |
| 10873 | { |
| 10874 | long int l; |
| 10875 | char c[sizeof (long int)]; |
| 10876 | } u; |
| 10877 | u.l = 1; |
| 10878 | return u.c[sizeof (long int) - 1] == 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10879 | |
| 10880 | ; |
| 10881 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10882 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10883 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10884 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10885 | ac_cv_c_bigendian=no |
| 10886 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10887 | ac_cv_c_bigendian=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10888 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10889 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10890 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10891 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10892 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10893 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10894 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10895 | { $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] | 10896 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 10897 | case $ac_cv_c_bigendian in #( |
| 10898 | yes) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10899 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10900 | ;; #( |
| 10901 | no) |
| 10902 | ;; #( |
| 10903 | universal) |
| 10904 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10905 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10906 | |
| 10907 | ;; #( |
| 10908 | *) |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10909 | as_fn_error $? "unknown endianness |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10910 | 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] | 10911 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10912 | |
Chen Qi | 91f0468 | 2014-05-05 21:08:42 -0400 | [diff] [blame^] | 10913 | if test $cross_compiling = no; then |
| 10914 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
| 10915 | else |
| 10916 | CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
| 10917 | fi |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 10918 | ASM_TYPES_HEADER=./asm_types.h |
| 10919 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 10920 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 10921 | > public_config.h |
| 10922 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 10923 | uniq tmp_config.$$ >> public_config.h |
| 10924 | else |
| 10925 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 10926 | fi |
| 10927 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 10928 | uniq tmp_config.$$ >> public_config.h |
| 10929 | else |
| 10930 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 10931 | fi |
| 10932 | rm -f tmp_config.$$ |
| 10933 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 10934 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10935 | for ac_header in inttypes.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10936 | do : |
| 10937 | 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] | 10938 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10939 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10940 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10941 | _ACEOF |
| 10942 | |
| 10943 | fi |
| 10944 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 10945 | done |
| 10946 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10947 | 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] | 10948 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10949 | |
| 10950 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10951 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10952 | _ACEOF |
| 10953 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10954 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10955 | fi |
| 10956 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10957 | { $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] | 10958 | $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] | 10959 | if ${e2fsprogs_cv_struct_st_flags+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10960 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10961 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10963 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10964 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10965 | int |
| 10966 | main () |
| 10967 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10968 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10969 | ; |
| 10970 | return 0; |
| 10971 | } |
| 10972 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10973 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10974 | e2fsprogs_cv_struct_st_flags=yes |
| 10975 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10976 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10977 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10979 | fi |
| 10980 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10981 | { $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] | 10982 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10983 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10984 | { $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] | 10985 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 10986 | if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10987 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10988 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10990 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10991 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10992 | int |
| 10993 | main () |
| 10994 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10995 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10996 | ; |
| 10997 | return 0; |
| 10998 | } |
| 10999 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11000 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 11001 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 11002 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11003 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 11004 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11006 | fi |
| 11007 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11008 | { $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] | 11009 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 11010 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11011 | |
| 11012 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11013 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 11014 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11015 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11016 | 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] | 11017 | #include <sys/socket.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11018 | " |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11019 | 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] | 11020 | |
| 11021 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 11022 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11023 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 11024 | |
| 11025 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11026 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11027 | if test -n "$BLKID_CMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11028 | { $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] | 11029 | $as_echo_n "checking for library containing blkid_probe_all... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11030 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11031 | $as_echo_n "(cached) " >&6 |
| 11032 | else |
| 11033 | ac_func_search_save_LIBS=$LIBS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11035 | /* end confdefs.h. */ |
| 11036 | |
| 11037 | /* Override any GCC internal prototype to avoid an error. |
| 11038 | Use char because int might match the return type of a GCC |
| 11039 | builtin and then its argument prototype would still apply. */ |
| 11040 | #ifdef __cplusplus |
| 11041 | extern "C" |
| 11042 | #endif |
| 11043 | char blkid_probe_all (); |
| 11044 | int |
| 11045 | main () |
| 11046 | { |
| 11047 | return blkid_probe_all (); |
| 11048 | ; |
| 11049 | return 0; |
| 11050 | } |
| 11051 | _ACEOF |
| 11052 | for ac_lib in '' blkid; do |
| 11053 | if test -z "$ac_lib"; then |
| 11054 | ac_res="none required" |
| 11055 | else |
| 11056 | ac_res=-l$ac_lib |
| 11057 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11058 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11059 | if ac_fn_c_try_link "$LINENO"; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11060 | ac_cv_search_blkid_probe_all=$ac_res |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11061 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11062 | rm -f core conftest.err conftest.$ac_objext \ |
| 11063 | conftest$ac_exeext |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11064 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11065 | break |
| 11066 | fi |
| 11067 | done |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11068 | if ${ac_cv_search_blkid_probe_all+:} false; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11069 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11070 | else |
| 11071 | ac_cv_search_blkid_probe_all=no |
| 11072 | fi |
| 11073 | rm conftest.$ac_ext |
| 11074 | LIBS=$ac_func_search_save_LIBS |
| 11075 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11076 | { $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] | 11077 | $as_echo "$ac_cv_search_blkid_probe_all" >&6; } |
| 11078 | ac_res=$ac_cv_search_blkid_probe_all |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11079 | if test "$ac_res" != no; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 11080 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 11081 | |
| 11082 | fi |
| 11083 | |
| 11084 | fi |
Theodore Ts'o | 2de2628 | 2014-05-05 01:22:22 -0400 | [diff] [blame] | 11085 | 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 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] | 11086 | do : |
| 11087 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11088 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11089 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11090 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11091 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11092 | _ACEOF |
| 11093 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11094 | fi |
| 11095 | done |
| 11096 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11097 | SOCKET_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11098 | { $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] | 11099 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11100 | if ${ac_cv_lib_socket_socket+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11101 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11102 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11103 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11104 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11106 | /* end confdefs.h. */ |
| 11107 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11108 | /* Override any GCC internal prototype to avoid an error. |
| 11109 | Use char because int might match the return type of a GCC |
| 11110 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11111 | #ifdef __cplusplus |
| 11112 | extern "C" |
| 11113 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11114 | char socket (); |
| 11115 | int |
| 11116 | main () |
| 11117 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11118 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11119 | ; |
| 11120 | return 0; |
| 11121 | } |
| 11122 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11123 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11124 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11125 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11126 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11127 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11128 | rm -f core conftest.err conftest.$ac_objext \ |
| 11129 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11130 | LIBS=$ac_check_lib_save_LIBS |
| 11131 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11132 | { $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] | 11133 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11134 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11135 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11136 | fi |
| 11137 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11138 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11140 | $as_echo_n "checking for optreset... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11141 | if ${ac_cv_have_optreset+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11142 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11143 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11145 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11146 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11147 | |
| 11148 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11149 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11150 | $EGREP "optreset" >/dev/null 2>&1; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11151 | ac_cv_have_optreset=yes |
| 11152 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11153 | ac_cv_have_optreset=no |
| 11154 | fi |
| 11155 | rm -f conftest* |
| 11156 | |
| 11157 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11158 | { $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] | 11159 | $as_echo "$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11160 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11161 | |
| 11162 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11163 | |
| 11164 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11165 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11166 | SEM_INIT_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11167 | 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] | 11168 | if test "x$ac_cv_func_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11169 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11170 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11171 | { $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] | 11172 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11173 | if ${ac_cv_lib_pthread_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11174 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11175 | else |
| 11176 | ac_check_lib_save_LIBS=$LIBS |
| 11177 | LIBS="-lpthread $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11179 | /* end confdefs.h. */ |
| 11180 | |
| 11181 | /* Override any GCC internal prototype to avoid an error. |
| 11182 | Use char because int might match the return type of a GCC |
| 11183 | builtin and then its argument prototype would still apply. */ |
| 11184 | #ifdef __cplusplus |
| 11185 | extern "C" |
| 11186 | #endif |
| 11187 | char sem_init (); |
| 11188 | int |
| 11189 | main () |
| 11190 | { |
| 11191 | return sem_init (); |
| 11192 | ; |
| 11193 | return 0; |
| 11194 | } |
| 11195 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11196 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11197 | ac_cv_lib_pthread_sem_init=yes |
| 11198 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11199 | ac_cv_lib_pthread_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11200 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11201 | rm -f core conftest.err conftest.$ac_objext \ |
| 11202 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11203 | LIBS=$ac_check_lib_save_LIBS |
| 11204 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11205 | { $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] | 11206 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11207 | if test "x$ac_cv_lib_pthread_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11208 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11209 | |
| 11210 | SEM_INIT_LIB=-lpthread |
| 11211 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11212 | { $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] | 11213 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11214 | if ${ac_cv_lib_rt_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11215 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11216 | else |
| 11217 | ac_check_lib_save_LIBS=$LIBS |
| 11218 | LIBS="-lrt $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11220 | /* end confdefs.h. */ |
| 11221 | |
| 11222 | /* Override any GCC internal prototype to avoid an error. |
| 11223 | Use char because int might match the return type of a GCC |
| 11224 | builtin and then its argument prototype would still apply. */ |
| 11225 | #ifdef __cplusplus |
| 11226 | extern "C" |
| 11227 | #endif |
| 11228 | char sem_init (); |
| 11229 | int |
| 11230 | main () |
| 11231 | { |
| 11232 | return sem_init (); |
| 11233 | ; |
| 11234 | return 0; |
| 11235 | } |
| 11236 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11237 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11238 | ac_cv_lib_rt_sem_init=yes |
| 11239 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11240 | ac_cv_lib_rt_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11241 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11242 | rm -f core conftest.err conftest.$ac_objext \ |
| 11243 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11244 | LIBS=$ac_check_lib_save_LIBS |
| 11245 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11246 | { $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] | 11247 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11248 | if test "x$ac_cv_lib_rt_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11249 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11250 | |
| 11251 | SEM_INIT_LIB=-lrt |
| 11252 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11253 | { $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] | 11254 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11255 | if ${ac_cv_lib_posix4_sem_init+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11256 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11257 | else |
| 11258 | ac_check_lib_save_LIBS=$LIBS |
| 11259 | LIBS="-lposix4 $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11261 | /* end confdefs.h. */ |
| 11262 | |
| 11263 | /* Override any GCC internal prototype to avoid an error. |
| 11264 | Use char because int might match the return type of a GCC |
| 11265 | builtin and then its argument prototype would still apply. */ |
| 11266 | #ifdef __cplusplus |
| 11267 | extern "C" |
| 11268 | #endif |
| 11269 | char sem_init (); |
| 11270 | int |
| 11271 | main () |
| 11272 | { |
| 11273 | return sem_init (); |
| 11274 | ; |
| 11275 | return 0; |
| 11276 | } |
| 11277 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11278 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11279 | ac_cv_lib_posix4_sem_init=yes |
| 11280 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11281 | ac_cv_lib_posix4_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11282 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11283 | rm -f core conftest.err conftest.$ac_objext \ |
| 11284 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11285 | LIBS=$ac_check_lib_save_LIBS |
| 11286 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11287 | { $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] | 11288 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11289 | if test "x$ac_cv_lib_posix4_sem_init" = xyes; then : |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11290 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11291 | |
| 11292 | SEM_INIT_LIB=-lposix4 |
| 11293 | fi |
| 11294 | |
| 11295 | fi |
| 11296 | |
| 11297 | fi |
| 11298 | |
| 11299 | fi |
| 11300 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11301 | { $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] | 11302 | $as_echo_n "checking for unified diff option... " >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 11303 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 11304 | UNI_DIFF_OPTS=-u |
| 11305 | else |
| 11306 | UNI_DIFF_OPTS=-c |
| 11307 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11308 | { $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] | 11309 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 11310 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 11311 | case "$host_os" in |
| 11312 | linux*) |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11313 | |
| 11314 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11315 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 11316 | ;; |
| 11317 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11318 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11319 | CYGWIN_CMT="#" |
| 11320 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11321 | case "$host_os" in |
| 11322 | linux*) |
| 11323 | LINUX_CMT= |
| 11324 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11325 | cygwin) |
| 11326 | CYGWIN_CMT= |
| 11327 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11328 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11329 | esac |
| 11330 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11331 | |
| 11332 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11333 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11334 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11335 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 11336 | root_prefix=""; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11337 | { $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] | 11338 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11339 | fi |
| 11340 | ;; |
| 11341 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11342 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11343 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11344 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11345 | prefix="/usr"; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11346 | { $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] | 11347 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 11348 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11349 | { $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] | 11350 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 11351 | mandir=/usr/share/man |
| 11352 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11353 | fi |
| 11354 | ;; |
| 11355 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11356 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 11357 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11358 | root_prefix="$ac_default_prefix" |
| 11359 | else |
| 11360 | root_prefix="$prefix" |
| 11361 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 11362 | root_bindir=$bindir |
| 11363 | root_sbindir=$sbindir |
| 11364 | root_libdir=$libdir |
| 11365 | root_sysconfdir=$sysconfdir |
| 11366 | else |
| 11367 | root_bindir='${root_prefix}/bin' |
| 11368 | root_sbindir='${root_prefix}/sbin' |
| 11369 | root_libdir='${root_prefix}/lib' |
| 11370 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11371 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11372 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 11373 | root_bindir=$bindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11374 | { $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] | 11375 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11376 | fi |
| 11377 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 11378 | root_sbindir=$sbindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11379 | { $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] | 11380 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11381 | fi |
| 11382 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 11383 | root_libdir=$libdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11384 | { $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] | 11385 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11386 | fi |
| 11387 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 11388 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11389 | { $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] | 11390 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11391 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11392 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11393 | |
| 11394 | |
| 11395 | |
| 11396 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 11397 | |
| 11398 | # Check whether --with-multiarch was given. |
| 11399 | if test "${with_multiarch+set}" = set; then : |
Theodore Ts'o | d7fa410 | 2014-02-05 15:45:36 -0500 | [diff] [blame] | 11400 | withval=$with_multiarch; if test "$withval" = "lib64"; then |
| 11401 | libdir=/usr/lib64 |
| 11402 | root_libdir=/lib64 |
| 11403 | else |
| 11404 | libdir=$libdir/$withval |
| 11405 | root_libdir=$root_libdir/$withval |
| 11406 | fi |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 11407 | |
| 11408 | fi |
Theodore Ts'o | d3de1a7 | 2012-12-15 22:10:27 -0500 | [diff] [blame] | 11409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5 |
| 11410 | $as_echo_n "checking whether we can link with -static... " >&6; } |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11411 | if ${ac_cv_e2fsprogs_use_static+:} false; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11412 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11413 | else |
| 11414 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11416 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11417 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11418 | int |
| 11419 | main () |
| 11420 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11421 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11422 | ; |
| 11423 | return 0; |
| 11424 | } |
| 11425 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11426 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11427 | ac_cv_e2fsprogs_use_static=yes |
| 11428 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11429 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11430 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11431 | rm -f core conftest.err conftest.$ac_objext \ |
| 11432 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11433 | LDFLAGS=$SAVE_LDFLAGS |
| 11434 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11435 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11436 | case "$host_os" in |
| 11437 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11438 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11439 | ;; |
| 11440 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11441 | { $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] | 11442 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 11443 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11444 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11445 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11446 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11447 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11448 | case "$host_os" in |
| 11449 | darwin*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11450 | { $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] | 11451 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11452 | |
| 11453 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11454 | |
| 11455 | ;; |
| 11456 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11457 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 11458 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 11459 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11460 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11461 | if test "$cross_compiling" = yes ; then |
| 11462 | DO_TEST_SUITE= |
| 11463 | else |
| 11464 | DO_TEST_SUITE=check |
| 11465 | fi |
| 11466 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11467 | INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' |
| 11468 | if test -n "$CPPFLAGS" ; then |
| 11469 | INCLUDES="$INCLUDES $CPPFLAGS" |
| 11470 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 11471 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11472 | INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 11473 | fi |
Theodore Ts'o | 6c59a66 | 2014-01-04 20:44:29 -0500 | [diff] [blame] | 11474 | if test -n "$WITH_DIET_LIBC" ; then |
| 11475 | INCLUDES="$INCLUDES -D_REENTRANT" |
| 11476 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 11477 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 11478 | if test $cross_compiling = no; then |
Theodore Ts'o | 2873927 | 2014-01-03 00:26:43 -0500 | [diff] [blame] | 11479 | BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H" |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 11480 | BUILD_LDFLAGS="$LDFLAGS" |
| 11481 | else |
| 11482 | BUILD_CFLAGS= |
| 11483 | BUILD_LDFLAGS= |
| 11484 | fi |
| 11485 | |
| 11486 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11487 | test -d lib || mkdir lib |
| 11488 | test -d include || mkdir include |
| 11489 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11490 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 11491 | for i in MCONFIG Makefile e2fsprogs.spec \ |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 11492 | util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 11493 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 11494 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11495 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 11496 | lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 11497 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 11498 | 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] | 11499 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11500 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
Matthias Andree | 98a5ad6 | 2009-07-15 17:37:52 +0200 | [diff] [blame] | 11501 | resize/Makefile doc/Makefile intl/Makefile \ |
| 11502 | intl/libgnuintl.h po/Makefile.in ; do |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11503 | if test -d `dirname ${srcdir}/$i` ; then |
| 11504 | outlist="$outlist $i" |
| 11505 | fi |
| 11506 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11507 | ac_config_files="$ac_config_files $outlist" |
| 11508 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11509 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11510 | # This file is a shell script that caches the results of configure |
| 11511 | # 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] | 11512 | # scripts and configure runs, see configure's option --config-cache. |
| 11513 | # It is not useful on other systems. If it contains results you don't |
| 11514 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11515 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11516 | # config.status only pays attention to the cache file if you give it |
| 11517 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11518 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11519 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 11520 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11521 | # following values. |
| 11522 | |
| 11523 | _ACEOF |
| 11524 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11525 | # The following way of writing the cache mishandles newlines in values, |
| 11526 | # 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] | 11527 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11528 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11529 | # 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] | 11530 | ( |
| 11531 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 11532 | eval ac_val=\$$ac_var |
| 11533 | case $ac_val in #( |
| 11534 | *${as_nl}*) |
| 11535 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11536 | *_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] | 11537 | $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] | 11538 | esac |
| 11539 | case $ac_var in #( |
| 11540 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11541 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11542 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11543 | esac ;; |
| 11544 | esac |
| 11545 | done |
| 11546 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11547 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11548 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 11549 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11550 | # `set' does not quote correctly, so add quotes: double-quote |
| 11551 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11552 | sed -n \ |
| 11553 | "s/'/'\\\\''/g; |
| 11554 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11555 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11556 | *) |
| 11557 | # `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] | 11558 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11559 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11560 | esac | |
| 11561 | sort |
| 11562 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11563 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11564 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11565 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11566 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11567 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11568 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11569 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11570 | :end' >>confcache |
| 11571 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 11572 | if test -w "$cache_file"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11573 | if test "x$cache_file" != "x/dev/null"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11574 | { $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] | 11575 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11576 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 11577 | cat confcache >"$cache_file" |
| 11578 | else |
| 11579 | case $cache_file in #( |
| 11580 | */* | ?:*) |
| 11581 | mv -f confcache "$cache_file"$$ && |
| 11582 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 11583 | *) |
| 11584 | mv -f confcache "$cache_file" ;; |
| 11585 | esac |
| 11586 | fi |
| 11587 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11588 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11589 | { $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] | 11590 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11591 | fi |
| 11592 | fi |
| 11593 | rm -f confcache |
| 11594 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11595 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11596 | # Let make expand exec_prefix. |
| 11597 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11598 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11599 | DEFS=-DHAVE_CONFIG_H |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11600 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11601 | ac_libobjs= |
| 11602 | ac_ltlibobjs= |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11603 | U= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11604 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11605 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11606 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11607 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11608 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 11609 | # will be set to the directory where LIBOBJS objects are built. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11610 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 11611 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11612 | done |
| 11613 | LIBOBJS=$ac_libobjs |
| 11614 | |
| 11615 | LTLIBOBJS=$ac_ltlibobjs |
| 11616 | |
| 11617 | |
| 11618 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11619 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11620 | : "${CONFIG_STATUS=./config.status}" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11621 | ac_write_fail=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11622 | ac_clean_files_save=$ac_clean_files |
| 11623 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11624 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11625 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11626 | as_write_fail=0 |
| 11627 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11628 | #! $SHELL |
| 11629 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11630 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11631 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11632 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11633 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11634 | debug=false |
| 11635 | ac_cs_recheck=false |
| 11636 | ac_cs_silent=false |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11637 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11638 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11639 | export SHELL |
| 11640 | _ASEOF |
| 11641 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 11642 | ## -------------------- ## |
| 11643 | ## M4sh Initialization. ## |
| 11644 | ## -------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11645 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11646 | # Be more Bourne compatible |
| 11647 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11648 | 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] | 11649 | emulate sh |
| 11650 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11651 | # 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] | 11652 | # is contrary to our usage. Disable this feature. |
| 11653 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11654 | setopt NO_GLOB_SUBST |
| 11655 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11656 | case `(set -o) 2>/dev/null` in #( |
| 11657 | *posix*) : |
| 11658 | set -o posix ;; #( |
| 11659 | *) : |
| 11660 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11661 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11662 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11663 | |
| 11664 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11665 | as_nl=' |
| 11666 | ' |
| 11667 | export as_nl |
| 11668 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 11669 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 11670 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 11671 | 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] | 11672 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 11673 | # but without wasting forks for bash or zsh. |
| 11674 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 11675 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 11676 | as_echo='print -r --' |
| 11677 | as_echo_n='print -rn --' |
| 11678 | 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] | 11679 | as_echo='printf %s\n' |
| 11680 | as_echo_n='printf %s' |
| 11681 | else |
| 11682 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 11683 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 11684 | as_echo_n='/usr/ucb/echo -n' |
| 11685 | else |
| 11686 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 11687 | as_echo_n_body='eval |
| 11688 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11689 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11690 | *"$as_nl"*) |
| 11691 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 11692 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 11693 | esac; |
| 11694 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 11695 | ' |
| 11696 | export as_echo_n_body |
| 11697 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 11698 | fi |
| 11699 | export as_echo_body |
| 11700 | as_echo='sh -c $as_echo_body as_echo' |
| 11701 | fi |
| 11702 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11703 | # The user is always right. |
| 11704 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11705 | PATH_SEPARATOR=: |
| 11706 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 11707 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 11708 | PATH_SEPARATOR=';' |
| 11709 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11710 | fi |
| 11711 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11712 | |
| 11713 | # IFS |
| 11714 | # We need space, tab and new line, in precisely that order. Quoting is |
| 11715 | # there to prevent editors from complaining about space-tab. |
| 11716 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 11717 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11718 | IFS=" "" $as_nl" |
| 11719 | |
| 11720 | # 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] | 11721 | as_myself= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11722 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11723 | *[\\/]* ) as_myself=$0 ;; |
| 11724 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11725 | for as_dir in $PATH |
| 11726 | do |
| 11727 | IFS=$as_save_IFS |
| 11728 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11729 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11730 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11731 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11732 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11733 | ;; |
| 11734 | esac |
| 11735 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11736 | # in which case we are not to be found in the path. |
| 11737 | if test "x$as_myself" = x; then |
| 11738 | as_myself=$0 |
| 11739 | fi |
| 11740 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11741 | $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] | 11742 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11743 | fi |
| 11744 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11745 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 11746 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 11747 | # suppresses any "Segmentation fault" message there. '((' could |
| 11748 | # trigger a bug in pdksh 5.2.14. |
| 11749 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 11750 | do eval test x\${$as_var+set} = xset \ |
| 11751 | && ( (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] | 11752 | done |
| 11753 | PS1='$ ' |
| 11754 | PS2='> ' |
| 11755 | PS4='+ ' |
| 11756 | |
| 11757 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11758 | LC_ALL=C |
| 11759 | export LC_ALL |
| 11760 | LANGUAGE=C |
| 11761 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11762 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11763 | # CDPATH. |
| 11764 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 11765 | |
| 11766 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11767 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 11768 | # ---------------------------------------- |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11769 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 11770 | # 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] | 11771 | # script with STATUS, using 1 if that was 0. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11772 | as_fn_error () |
| 11773 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11774 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 11775 | if test "$4"; then |
| 11776 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 11777 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11778 | fi |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11779 | $as_echo "$as_me: error: $2" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11780 | as_fn_exit $as_status |
| 11781 | } # as_fn_error |
| 11782 | |
| 11783 | |
| 11784 | # as_fn_set_status STATUS |
| 11785 | # ----------------------- |
| 11786 | # Set $? to STATUS, without forking. |
| 11787 | as_fn_set_status () |
| 11788 | { |
| 11789 | return $1 |
| 11790 | } # as_fn_set_status |
| 11791 | |
| 11792 | # as_fn_exit STATUS |
| 11793 | # ----------------- |
| 11794 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 11795 | as_fn_exit () |
| 11796 | { |
| 11797 | set +e |
| 11798 | as_fn_set_status $1 |
| 11799 | exit $1 |
| 11800 | } # as_fn_exit |
| 11801 | |
| 11802 | # as_fn_unset VAR |
| 11803 | # --------------- |
| 11804 | # Portably unset VAR. |
| 11805 | as_fn_unset () |
| 11806 | { |
| 11807 | { eval $1=; unset $1;} |
| 11808 | } |
| 11809 | as_unset=as_fn_unset |
| 11810 | # as_fn_append VAR VALUE |
| 11811 | # ---------------------- |
| 11812 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 11813 | # advantage of any shell optimizations that allow amortized linear growth over |
| 11814 | # repeated appends, instead of the typical quadratic growth present in naive |
| 11815 | # implementations. |
| 11816 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 11817 | eval 'as_fn_append () |
| 11818 | { |
| 11819 | eval $1+=\$2 |
| 11820 | }' |
| 11821 | else |
| 11822 | as_fn_append () |
| 11823 | { |
| 11824 | eval $1=\$$1\$2 |
| 11825 | } |
| 11826 | fi # as_fn_append |
| 11827 | |
| 11828 | # as_fn_arith ARG... |
| 11829 | # ------------------ |
| 11830 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 11831 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 11832 | # must be portable across $(()) and expr. |
| 11833 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 11834 | eval 'as_fn_arith () |
| 11835 | { |
| 11836 | as_val=$(( $* )) |
| 11837 | }' |
| 11838 | else |
| 11839 | as_fn_arith () |
| 11840 | { |
| 11841 | as_val=`expr "$@" || test $? -eq 1` |
| 11842 | } |
| 11843 | fi # as_fn_arith |
| 11844 | |
| 11845 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11846 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11847 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 11848 | as_expr=expr |
| 11849 | else |
| 11850 | as_expr=false |
| 11851 | fi |
| 11852 | |
| 11853 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 11854 | as_basename=basename |
| 11855 | else |
| 11856 | as_basename=false |
| 11857 | fi |
| 11858 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11859 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 11860 | as_dirname=dirname |
| 11861 | else |
| 11862 | as_dirname=false |
| 11863 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11864 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11865 | as_me=`$as_basename -- "$0" || |
| 11866 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11867 | X"$0" : 'X\(//\)$' \| \ |
| 11868 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11869 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11870 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 11871 | s//\1/ |
| 11872 | q |
| 11873 | } |
| 11874 | /^X\/\(\/\/\)$/{ |
| 11875 | s//\1/ |
| 11876 | q |
| 11877 | } |
| 11878 | /^X\/\(\/\).*/{ |
| 11879 | s//\1/ |
| 11880 | q |
| 11881 | } |
| 11882 | s/.*/./; q'` |
| 11883 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11884 | # Avoid depending upon Character Ranges. |
| 11885 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11886 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11887 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11888 | as_cr_digits='0123456789' |
| 11889 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11890 | |
| 11891 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11892 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11893 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11894 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11895 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11896 | xy) ECHO_C='\c';; |
| 11897 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 11898 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11899 | esac;; |
| 11900 | *) |
| 11901 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11902 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11903 | |
| 11904 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11905 | if test -d conf$$.dir; then |
| 11906 | rm -f conf$$.dir/conf$$.file |
| 11907 | else |
| 11908 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11909 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11910 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11911 | if (echo >conf$$.file) 2>/dev/null; then |
| 11912 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 11913 | as_ln_s='ln -s' |
| 11914 | # ... but there are two gotchas: |
| 11915 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 11916 | # 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] | 11917 | # In both cases, we have to default to `cp -pR'. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11918 | 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] | 11919 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11920 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11921 | as_ln_s=ln |
| 11922 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11923 | as_ln_s='cp -pR' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11924 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11925 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11926 | as_ln_s='cp -pR' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11927 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11928 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 11929 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11930 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11931 | |
| 11932 | # as_fn_mkdir_p |
| 11933 | # ------------- |
| 11934 | # Create "$as_dir" as a directory, including parents if necessary. |
| 11935 | as_fn_mkdir_p () |
| 11936 | { |
| 11937 | |
| 11938 | case $as_dir in #( |
| 11939 | -*) as_dir=./$as_dir;; |
| 11940 | esac |
| 11941 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 11942 | as_dirs= |
| 11943 | while :; do |
| 11944 | case $as_dir in #( |
| 11945 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 11946 | *) as_qdir=$as_dir;; |
| 11947 | esac |
| 11948 | as_dirs="'$as_qdir' $as_dirs" |
| 11949 | as_dir=`$as_dirname -- "$as_dir" || |
| 11950 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11951 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11952 | X"$as_dir" : 'X\(//\)$' \| \ |
| 11953 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 11954 | $as_echo X"$as_dir" | |
| 11955 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 11956 | s//\1/ |
| 11957 | q |
| 11958 | } |
| 11959 | /^X\(\/\/\)[^/].*/{ |
| 11960 | s//\1/ |
| 11961 | q |
| 11962 | } |
| 11963 | /^X\(\/\/\)$/{ |
| 11964 | s//\1/ |
| 11965 | q |
| 11966 | } |
| 11967 | /^X\(\/\).*/{ |
| 11968 | s//\1/ |
| 11969 | q |
| 11970 | } |
| 11971 | s/.*/./; q'` |
| 11972 | test -d "$as_dir" && break |
| 11973 | done |
| 11974 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11975 | } || 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] | 11976 | |
| 11977 | |
| 11978 | } # as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11979 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11980 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11981 | else |
| 11982 | test -d ./-p && rmdir ./-p |
| 11983 | as_mkdir_p=false |
| 11984 | fi |
| 11985 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 11986 | |
| 11987 | # as_fn_executable_p FILE |
| 11988 | # ----------------------- |
| 11989 | # Test if FILE is an executable regular file. |
| 11990 | as_fn_executable_p () |
| 11991 | { |
| 11992 | test -f "$1" && test -x "$1" |
| 11993 | } # as_fn_executable_p |
| 11994 | as_test_x='test -x' |
| 11995 | as_executable_p=as_fn_executable_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11996 | |
| 11997 | # Sed expression to map a string onto a valid CPP name. |
| 11998 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11999 | |
| 12000 | # Sed expression to map a string onto a valid variable name. |
| 12001 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 12002 | |
| 12003 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12004 | exec 6>&1 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12005 | ## ----------------------------------- ## |
| 12006 | ## Main body of $CONFIG_STATUS script. ## |
| 12007 | ## ----------------------------------- ## |
| 12008 | _ASEOF |
| 12009 | 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] | 12010 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12011 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12012 | # 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] | 12013 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12014 | # values after options handling. |
| 12015 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12016 | This file was extended by $as_me, which was |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12017 | generated by GNU Autoconf 2.69. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12018 | |
| 12019 | CONFIG_FILES = $CONFIG_FILES |
| 12020 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 12021 | CONFIG_LINKS = $CONFIG_LINKS |
| 12022 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 12023 | $ $0 $@ |
| 12024 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12025 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 12026 | " |
| 12027 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12028 | _ACEOF |
| 12029 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12030 | case $ac_config_files in *" |
| 12031 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 12032 | esac |
| 12033 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12034 | case $ac_config_headers in *" |
| 12035 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 12036 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12037 | |
| 12038 | |
| 12039 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12040 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12041 | config_files="$ac_config_files" |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12042 | config_headers="$ac_config_headers" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12043 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12044 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12045 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12046 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12047 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12048 | ac_cs_usage="\ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12049 | \`$as_me' instantiates files and other configuration actions |
| 12050 | from templates according to the current configuration. Unless the files |
| 12051 | and actions are specified as TAGs, all are instantiated by default. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12052 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12053 | Usage: $0 [OPTION]... [TAG]... |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12054 | |
| 12055 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12056 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12057 | --config print configuration, then exit |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12058 | -q, --quiet, --silent |
| 12059 | do not print progress messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12060 | -d, --debug don't remove temporary files |
| 12061 | --recheck update $as_me by reconfiguring in the same conditions |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12062 | --file=FILE[:TEMPLATE] |
| 12063 | instantiate the configuration file FILE |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12064 | --header=FILE[:TEMPLATE] |
| 12065 | instantiate the configuration header FILE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12066 | |
| 12067 | Configuration files: |
| 12068 | $config_files |
| 12069 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12070 | Configuration headers: |
| 12071 | $config_headers |
| 12072 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12073 | Configuration commands: |
| 12074 | $config_commands |
| 12075 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12076 | Report bugs to the package provider." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12077 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12078 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12079 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12080 | 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] | 12081 | ac_cs_version="\\ |
| 12082 | config.status |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12083 | configured by $0, generated by GNU Autoconf 2.69, |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12084 | with options \\"\$ac_cs_config\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12085 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12086 | Copyright (C) 2012 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12087 | This config.status script is free software; the Free Software Foundation |
| 12088 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12089 | |
| 12090 | ac_pwd='$ac_pwd' |
| 12091 | srcdir='$srcdir' |
| 12092 | INSTALL='$INSTALL' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12093 | AWK='$AWK' |
| 12094 | test -n "\$AWK" || AWK=awk |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12095 | _ACEOF |
| 12096 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12097 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12098 | # 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] | 12099 | ac_need_defaults=: |
| 12100 | while test $# != 0 |
| 12101 | do |
| 12102 | case $1 in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12103 | --*=?*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12104 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12105 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12106 | ac_shift=: |
| 12107 | ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12108 | --*=) |
| 12109 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12110 | ac_optarg= |
| 12111 | ac_shift=: |
| 12112 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12113 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12114 | ac_option=$1 |
| 12115 | ac_optarg=$2 |
| 12116 | ac_shift=shift |
| 12117 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12118 | esac |
| 12119 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12120 | case $ac_option in |
| 12121 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12122 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 12123 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12124 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12125 | $as_echo "$ac_cs_version"; exit ;; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12126 | --config | --confi | --conf | --con | --co | --c ) |
| 12127 | $as_echo "$ac_cs_config"; exit ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12128 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12129 | debug=: ;; |
| 12130 | --file | --fil | --fi | --f ) |
| 12131 | $ac_shift |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12132 | case $ac_optarg in |
| 12133 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12134 | '') as_fn_error $? "missing file argument" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12135 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12136 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12137 | ac_need_defaults=false;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12138 | --header | --heade | --head | --hea ) |
| 12139 | $ac_shift |
| 12140 | case $ac_optarg in |
| 12141 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 12142 | esac |
| 12143 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 12144 | ac_need_defaults=false;; |
| 12145 | --he | --h) |
| 12146 | # Conflict between --help and --header |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12147 | as_fn_error $? "ambiguous option: \`$1' |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12148 | Try \`$0 --help' for more information.";; |
| 12149 | --help | --hel | -h ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12150 | $as_echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12151 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 12152 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 12153 | ac_cs_silent=: ;; |
| 12154 | |
| 12155 | # This is an error. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12156 | -*) as_fn_error $? "unrecognized option: \`$1' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12157 | Try \`$0 --help' for more information." ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12158 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12159 | *) as_fn_append ac_config_targets " $1" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12160 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12161 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12162 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12163 | shift |
| 12164 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12165 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12166 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12167 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12168 | if $ac_cs_silent; then |
| 12169 | exec 6>/dev/null |
| 12170 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 12171 | fi |
| 12172 | |
| 12173 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12174 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12175 | if \$ac_cs_recheck; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12176 | 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] | 12177 | shift |
| 12178 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 12179 | CONFIG_SHELL='$SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12180 | export CONFIG_SHELL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12181 | exec "\$@" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12182 | fi |
| 12183 | |
| 12184 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12185 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12186 | exec 5>>config.log |
| 12187 | { |
| 12188 | echo |
| 12189 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 12190 | ## Running $as_me. ## |
| 12191 | _ASBOX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12192 | $as_echo "$ac_log" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12193 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12194 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12195 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12196 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12197 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12198 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12199 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12200 | # 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] | 12201 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12202 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12203 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12204 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 12205 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12206 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12207 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12208 | _ACEOF |
| 12209 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12210 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12211 | |
| 12212 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12213 | for ac_config_target in $ac_config_targets |
| 12214 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12215 | case $ac_config_target in |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12216 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12217 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 12218 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 12219 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12220 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12221 | esac |
| 12222 | done |
| 12223 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12224 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12225 | # If the user did not use the arguments to specify the items to instantiate, |
| 12226 | # then the envvar interface is used. Set only those that are not. |
| 12227 | # We use the long form for the default assignment because of an extremely |
| 12228 | # bizarre bug on SunOS 4.1.3. |
| 12229 | if $ac_need_defaults; then |
| 12230 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12231 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12232 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 12233 | fi |
| 12234 | |
| 12235 | # 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] | 12236 | # 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] | 12237 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12238 | # Hook for its removal unless debugging. |
| 12239 | # Note that there is a small window in which the directory will not be cleaned: |
| 12240 | # 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] | 12241 | $debug || |
| 12242 | { |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12243 | tmp= ac_tmp= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12244 | trap 'exit_status=$? |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12245 | : "${ac_tmp:=$tmp}" |
| 12246 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12247 | ' 0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12248 | trap 'as_fn_exit 1' 1 2 13 15 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12249 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12250 | # Create a (secure) tmp directory for tmp files. |
| 12251 | |
| 12252 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12253 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12254 | test -d "$tmp" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12255 | } || |
| 12256 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12257 | tmp=./conf$$-$RANDOM |
| 12258 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12259 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 12260 | ac_tmp=$tmp |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12261 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12262 | # Set up the scripts for CONFIG_FILES section. |
| 12263 | # No need to generate them if there are no CONFIG_FILES. |
| 12264 | # This happens for instance with `./config.status config.h'. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12265 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12266 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12267 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 12268 | ac_cs_awk_getline=: |
| 12269 | ac_cs_awk_pipe_init= |
| 12270 | ac_cs_awk_read_file=' |
| 12271 | while ((getline aline < (F[key])) > 0) |
| 12272 | print(aline) |
| 12273 | close(F[key])' |
| 12274 | ac_cs_awk_pipe_fini= |
| 12275 | else |
| 12276 | ac_cs_awk_getline=false |
| 12277 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 12278 | ac_cs_awk_read_file=' |
| 12279 | print "|#_!!_#|" |
| 12280 | print "cat " F[key] " &&" |
| 12281 | '$ac_cs_awk_pipe_init |
| 12282 | # The final `:' finishes the AND list. |
| 12283 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 12284 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12285 | ac_cr=`echo X | tr X '\015'` |
| 12286 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 12287 | # But we know of no other shell where ac_cr would be empty at this |
| 12288 | # point, so we can use a bashism as a fallback. |
| 12289 | if test "x$ac_cr" = x; then |
| 12290 | eval ac_cr=\$\'\\r\' |
| 12291 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12292 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 12293 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12294 | ac_cs_awk_cr='\\r' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12295 | else |
| 12296 | ac_cs_awk_cr=$ac_cr |
| 12297 | fi |
| 12298 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12299 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12300 | _ACEOF |
| 12301 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12302 | # Create commands to substitute file output variables. |
| 12303 | { |
| 12304 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12305 | echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12306 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 12307 | echo "_ACAWK" && |
| 12308 | echo "_ACEOF" |
| 12309 | } >conf$$files.sh && |
| 12310 | . ./conf$$files.sh || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12311 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12312 | rm -f conf$$files.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12313 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12314 | { |
| 12315 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 12316 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 12317 | echo "_ACEOF" |
| 12318 | } >conf$$subs.sh || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12319 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 12320 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12321 | ac_delim='%!_!# ' |
| 12322 | for ac_last_try in false false false false false :; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12323 | . ./conf$$subs.sh || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12324 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12325 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12326 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 12327 | if test $ac_delim_n = $ac_delim_num; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12328 | break |
| 12329 | elif $ac_last_try; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12330 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12331 | else |
| 12332 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12333 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12334 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12335 | rm -f conf$$subs.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12336 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12337 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12338 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12339 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12340 | sed -n ' |
| 12341 | h |
| 12342 | s/^/S["/; s/!.*/"]=/ |
| 12343 | p |
| 12344 | g |
| 12345 | s/^[^!]*!// |
| 12346 | :repl |
| 12347 | t repl |
| 12348 | s/'"$ac_delim"'$// |
| 12349 | t delim |
| 12350 | :nl |
| 12351 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12352 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12353 | t more1 |
| 12354 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 12355 | p |
| 12356 | n |
| 12357 | b repl |
| 12358 | :more1 |
| 12359 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12360 | p |
| 12361 | g |
| 12362 | s/.\{148\}// |
| 12363 | t nl |
| 12364 | :delim |
| 12365 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12366 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12367 | t more2 |
| 12368 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 12369 | p |
| 12370 | b |
| 12371 | :more2 |
| 12372 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12373 | p |
| 12374 | g |
| 12375 | s/.\{148\}// |
| 12376 | t delim |
| 12377 | ' <conf$$subs.awk | sed ' |
| 12378 | /^[^""]/{ |
| 12379 | N |
| 12380 | s/\n// |
| 12381 | } |
| 12382 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12383 | rm -f conf$$subs.awk |
| 12384 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12385 | _ACAWK |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12386 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12387 | for (key in S) S_is_set[key] = 1 |
| 12388 | FS = "" |
| 12389 | \$ac_cs_awk_pipe_init |
| 12390 | } |
| 12391 | { |
| 12392 | line = $ 0 |
| 12393 | nfields = split(line, field, "@") |
| 12394 | substed = 0 |
| 12395 | len = length(field[1]) |
| 12396 | for (i = 2; i < nfields; i++) { |
| 12397 | key = field[i] |
| 12398 | keylen = length(key) |
| 12399 | if (S_is_set[key]) { |
| 12400 | value = S[key] |
| 12401 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 12402 | len += length(value) + length(field[++i]) |
| 12403 | substed = 1 |
| 12404 | } else |
| 12405 | len += 1 + keylen |
| 12406 | } |
| 12407 | if (nfields == 3 && !substed) { |
| 12408 | key = field[2] |
| 12409 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 12410 | \$ac_cs_awk_read_file |
| 12411 | next |
| 12412 | } |
| 12413 | } |
| 12414 | print line |
| 12415 | } |
| 12416 | \$ac_cs_awk_pipe_fini |
| 12417 | _ACAWK |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12418 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12419 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12420 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 12421 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 12422 | else |
| 12423 | cat |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12424 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 12425 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12426 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12427 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12428 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 12429 | # ${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] | 12430 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 12431 | # (actually we leave an empty line to preserve line numbers). |
| 12432 | if test "x$srcdir" = x.; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12433 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 12434 | h |
| 12435 | s/// |
| 12436 | s/^/:/ |
| 12437 | s/[ ]*$/:/ |
| 12438 | s/:\$(srcdir):/:/g |
| 12439 | s/:\${srcdir}:/:/g |
| 12440 | s/:@srcdir@:/:/g |
| 12441 | s/^:*// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12442 | s/:*$// |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12443 | x |
| 12444 | s/\(=[ ]*\).*/\1/ |
| 12445 | G |
| 12446 | s/\n// |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12447 | s/^[^=]*=[ ]*$// |
| 12448 | }' |
| 12449 | fi |
| 12450 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12451 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12452 | fi # test -n "$CONFIG_FILES" |
| 12453 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12454 | # Set up the scripts for CONFIG_HEADERS section. |
| 12455 | # No need to generate them if there are no CONFIG_HEADERS. |
| 12456 | # This happens for instance with `./config.status Makefile'. |
| 12457 | if test -n "$CONFIG_HEADERS"; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12458 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12459 | BEGIN { |
| 12460 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12461 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12462 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 12463 | # here-document in config.status, that substitutes the proper values into |
| 12464 | # config.h.in to produce config.h. |
| 12465 | |
| 12466 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 12467 | # handling of long lines. |
| 12468 | ac_delim='%!_!# ' |
| 12469 | for ac_last_try in false false :; do |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12470 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 12471 | if test -z "$ac_tt"; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12472 | break |
| 12473 | elif $ac_last_try; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12474 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12475 | else |
| 12476 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 12477 | fi |
| 12478 | done |
| 12479 | |
| 12480 | # For the awk script, D is an array of macro values keyed by name, |
| 12481 | # likewise P contains macro parameters if any. Preserve backslash |
| 12482 | # newline sequences. |
| 12483 | |
| 12484 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 12485 | sed -n ' |
| 12486 | s/.\{148\}/&'"$ac_delim"'/g |
| 12487 | t rset |
| 12488 | :rset |
| 12489 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 12490 | t def |
| 12491 | d |
| 12492 | :def |
| 12493 | s/\\$// |
| 12494 | t bsnl |
| 12495 | s/["\\]/\\&/g |
| 12496 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12497 | D["\1"]=" \3"/p |
| 12498 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 12499 | d |
| 12500 | :bsnl |
| 12501 | s/["\\]/\\&/g |
| 12502 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12503 | D["\1"]=" \3\\\\\\n"\\/p |
| 12504 | t cont |
| 12505 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 12506 | t cont |
| 12507 | d |
| 12508 | :cont |
| 12509 | n |
| 12510 | s/.\{148\}/&'"$ac_delim"'/g |
| 12511 | t clear |
| 12512 | :clear |
| 12513 | s/\\$// |
| 12514 | t bsnlc |
| 12515 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 12516 | d |
| 12517 | :bsnlc |
| 12518 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 12519 | b cont |
| 12520 | ' <confdefs.h | sed ' |
| 12521 | s/'"$ac_delim"'/"\\\ |
| 12522 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12523 | |
| 12524 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12525 | for (key in D) D_is_set[key] = 1 |
| 12526 | FS = "" |
| 12527 | } |
| 12528 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 12529 | line = \$ 0 |
| 12530 | split(line, arg, " ") |
| 12531 | if (arg[1] == "#") { |
| 12532 | defundef = arg[2] |
| 12533 | mac1 = arg[3] |
| 12534 | } else { |
| 12535 | defundef = substr(arg[1], 2) |
| 12536 | mac1 = arg[2] |
| 12537 | } |
| 12538 | split(mac1, mac2, "(") #) |
| 12539 | macro = mac2[1] |
| 12540 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 12541 | if (D_is_set[macro]) { |
| 12542 | # Preserve the white space surrounding the "#". |
| 12543 | print prefix "define", macro P[macro] D[macro] |
| 12544 | next |
| 12545 | } else { |
| 12546 | # Replace #undef with comments. This is necessary, for example, |
| 12547 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 12548 | # on some systems where configure will not decide to define it. |
| 12549 | if (defundef == "undef") { |
| 12550 | print "/*", prefix defundef, macro, "*/" |
| 12551 | next |
| 12552 | } |
| 12553 | } |
| 12554 | } |
| 12555 | { print } |
| 12556 | _ACAWK |
| 12557 | _ACEOF |
| 12558 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12559 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12560 | fi # test -n "$CONFIG_HEADERS" |
| 12561 | |
| 12562 | |
| 12563 | 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] | 12564 | shift |
| 12565 | for ac_tag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12566 | do |
| 12567 | case $ac_tag in |
| 12568 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 12569 | esac |
| 12570 | case $ac_mode$ac_tag in |
| 12571 | :[FHL]*:*);; |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12572 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12573 | :[FH]-) ac_tag=-:-;; |
| 12574 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 12575 | esac |
| 12576 | ac_save_IFS=$IFS |
| 12577 | IFS=: |
| 12578 | set x $ac_tag |
| 12579 | IFS=$ac_save_IFS |
| 12580 | shift |
| 12581 | ac_file=$1 |
| 12582 | shift |
| 12583 | |
| 12584 | case $ac_mode in |
| 12585 | :L) ac_source=$1;; |
| 12586 | :[FH]) |
| 12587 | ac_file_inputs= |
| 12588 | for ac_f |
| 12589 | do |
| 12590 | case $ac_f in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12591 | -) ac_f="$ac_tmp/stdin";; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12592 | *) # Look for the file first in the build tree, then in the source tree |
| 12593 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 12594 | # because $ac_f cannot contain `:'. |
| 12595 | test -f "$ac_f" || |
| 12596 | case $ac_f in |
| 12597 | [\\/$]*) false;; |
| 12598 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 12599 | esac || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12600 | 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] | 12601 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12602 | 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] | 12603 | as_fn_append ac_file_inputs " '$ac_f'" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12604 | done |
| 12605 | |
| 12606 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12607 | # use $as_me), people would be surprised to read: |
| 12608 | # /* config.h. Generated by config.status. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12609 | configure_input='Generated from '` |
| 12610 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 12611 | `' by configure.' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12612 | if test x"$ac_file" != x-; then |
| 12613 | configure_input="$ac_file. $configure_input" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12614 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12615 | $as_echo "$as_me: creating $ac_file" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12616 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12617 | # Neutralize special characters interpreted by sed in replacement strings. |
| 12618 | case $configure_input in #( |
| 12619 | *\&* | *\|* | *\\* ) |
| 12620 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 12621 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 12622 | *) ac_sed_conf_input=$configure_input;; |
| 12623 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12624 | |
| 12625 | case $ac_tag in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12626 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 12627 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12628 | esac |
| 12629 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12630 | esac |
| 12631 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12632 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12633 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12634 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12635 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12636 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12637 | $as_echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12638 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12639 | s//\1/ |
| 12640 | q |
| 12641 | } |
| 12642 | /^X\(\/\/\)[^/].*/{ |
| 12643 | s//\1/ |
| 12644 | q |
| 12645 | } |
| 12646 | /^X\(\/\/\)$/{ |
| 12647 | s//\1/ |
| 12648 | q |
| 12649 | } |
| 12650 | /^X\(\/\).*/{ |
| 12651 | s//\1/ |
| 12652 | q |
| 12653 | } |
| 12654 | s/.*/./; q'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12655 | as_dir="$ac_dir"; as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12656 | ac_builddir=. |
| 12657 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12658 | case "$ac_dir" in |
| 12659 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12660 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12661 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12662 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12663 | 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] | 12664 | case $ac_top_builddir_sub in |
| 12665 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12666 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 12667 | esac ;; |
| 12668 | esac |
| 12669 | ac_abs_top_builddir=$ac_pwd |
| 12670 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 12671 | # for backward compatibility: |
| 12672 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12673 | |
| 12674 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12675 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12676 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12677 | ac_top_srcdir=$ac_top_builddir_sub |
| 12678 | ac_abs_top_srcdir=$ac_pwd ;; |
| 12679 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12680 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12681 | ac_top_srcdir=$srcdir |
| 12682 | ac_abs_top_srcdir=$srcdir ;; |
| 12683 | *) # Relative name. |
| 12684 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 12685 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 12686 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12687 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12688 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12689 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12690 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12691 | case $ac_mode in |
| 12692 | :F) |
| 12693 | # |
| 12694 | # CONFIG_FILE |
| 12695 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12696 | |
| 12697 | case $INSTALL in |
| 12698 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12699 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12700 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12701 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12702 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12703 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12704 | # If the template does not know about datarootdir, expand it. |
| 12705 | # FIXME: This hack should be removed a few years after 2.60. |
| 12706 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12707 | ac_sed_dataroot=' |
| 12708 | /datarootdir/ { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12709 | p |
| 12710 | q |
| 12711 | } |
| 12712 | /@datadir@/p |
| 12713 | /@docdir@/p |
| 12714 | /@infodir@/p |
| 12715 | /@localedir@/p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12716 | /@mandir@/p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12717 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12718 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 12719 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12720 | { $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] | 12721 | $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] | 12722 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12723 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12724 | ac_datarootdir_hack=' |
| 12725 | s&@datadir@&$datadir&g |
| 12726 | s&@docdir@&$docdir&g |
| 12727 | s&@infodir@&$infodir&g |
| 12728 | s&@localedir@&$localedir&g |
| 12729 | s&@mandir@&$mandir&g |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12730 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12731 | esac |
| 12732 | _ACEOF |
| 12733 | |
| 12734 | # Neutralize VPATH when `$srcdir' = `.'. |
| 12735 | # Shell code in configure.ac might set extrasub. |
| 12736 | # FIXME: do we really want to maintain this feature? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12737 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12738 | ac_sed_extra="$ac_vpsub |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12739 | $extrasub |
| 12740 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12741 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12742 | :t |
| 12743 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12744 | s|@configure_input@|$ac_sed_conf_input|;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12745 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12746 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12747 | s&@srcdir@&$ac_srcdir&;t t |
| 12748 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 12749 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 12750 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 12751 | s&@builddir@&$ac_builddir&;t t |
| 12752 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 12753 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 12754 | s&@INSTALL@&$ac_INSTALL&;t t |
| 12755 | $ac_datarootdir_hack |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12756 | " |
| 12757 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 12758 | if $ac_cs_awk_getline; then |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12759 | $AWK -f "$ac_tmp/subs.awk" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12760 | else |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12761 | $AWK -f "$ac_tmp/subs.awk" | $SHELL |
| 12762 | fi \ |
| 12763 | >$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] | 12764 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12765 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12766 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 12767 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 12768 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12769 | { $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] | 12770 | 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] | 12771 | $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] | 12772 | 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] | 12773 | |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12774 | rm -f "$ac_tmp/stdin" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12775 | case $ac_file in |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12776 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 12777 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12778 | esac \ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12779 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12780 | ;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12781 | :H) |
| 12782 | # |
| 12783 | # CONFIG_HEADER |
| 12784 | # |
| 12785 | if test x"$ac_file" != x-; then |
| 12786 | { |
| 12787 | $as_echo "/* $configure_input */" \ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12788 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 12789 | } >"$ac_tmp/config.h" \ |
| 12790 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 12791 | 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] | 12792 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 12793 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 12794 | else |
| 12795 | rm -f "$ac_file" |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12796 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 12797 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12798 | fi |
| 12799 | else |
| 12800 | $as_echo "/* $configure_input */" \ |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12801 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 12802 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12803 | fi |
| 12804 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12805 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12806 | :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] | 12807 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12808 | ;; |
| 12809 | esac |
| 12810 | |
| 12811 | |
| 12812 | case $ac_file$ac_mode in |
| 12813 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12814 | for ac_file in $CONFIG_FILES; do |
| 12815 | # Support "outfile[:infile[:infile...]]" |
| 12816 | case "$ac_file" in |
| 12817 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 12818 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12819 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 12820 | case "$ac_file" in */Makefile.in) |
| 12821 | # Adjust a relative srcdir. |
| 12822 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 12823 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 12824 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 12825 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 12826 | # In autoconf-2.50 it is called $srcdir. |
| 12827 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 12828 | case "$ac_given_srcdir" in |
| 12829 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 12830 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 12831 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 12832 | esac |
| 12833 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 12834 | rm -f "$ac_dir/POTFILES" |
| 12835 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 12836 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/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] | 12837 | POMAKEFILEDEPS="POTFILES.in" |
| 12838 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12839 | # on $ac_dir but don't depend on user-specified configuration |
| 12840 | # parameters. |
| 12841 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 12842 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12843 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12844 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 12845 | fi |
| 12846 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 12847 | # Hide the ALL_LINGUAS assigment from automake. |
| 12848 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12849 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 12850 | else |
| 12851 | # The set of available languages was given in configure.in. |
| 12852 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12853 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12854 | # Compute POFILES |
| 12855 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 12856 | # Compute UPDATEPOFILES |
| 12857 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 12858 | # Compute DUMMYPOFILES |
| 12859 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 12860 | # Compute GMOFILES |
| 12861 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12862 | case "$ac_given_srcdir" in |
| 12863 | .) srcdirpre= ;; |
| 12864 | *) srcdirpre='$(srcdir)/' ;; |
| 12865 | esac |
| 12866 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12867 | UPDATEPOFILES= |
| 12868 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12869 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12870 | for lang in $ALL_LINGUAS; do |
| 12871 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12872 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 12873 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12874 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12875 | done |
| 12876 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 12877 | # environment variable. |
| 12878 | INST_LINGUAS= |
| 12879 | if test -n "$ALL_LINGUAS"; then |
| 12880 | for presentlang in $ALL_LINGUAS; do |
| 12881 | useit=no |
| 12882 | if test "%UNSET%" != "$LINGUAS"; then |
| 12883 | desiredlanguages="$LINGUAS" |
| 12884 | else |
| 12885 | desiredlanguages="$ALL_LINGUAS" |
| 12886 | fi |
| 12887 | for desiredlang in $desiredlanguages; do |
| 12888 | # Use the presentlang catalog if desiredlang is |
| 12889 | # a. equal to presentlang, or |
| 12890 | # b. a variant of presentlang (because in this case, |
| 12891 | # presentlang can be used as a fallback for messages |
| 12892 | # which are not translated in the desiredlang catalog). |
| 12893 | case "$desiredlang" in |
| 12894 | "$presentlang"*) useit=yes;; |
| 12895 | esac |
| 12896 | done |
| 12897 | if test $useit = yes; then |
| 12898 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 12899 | fi |
| 12900 | done |
| 12901 | fi |
| 12902 | CATALOGS= |
| 12903 | if test -n "$INST_LINGUAS"; then |
| 12904 | for lang in $INST_LINGUAS; do |
| 12905 | CATALOGS="$CATALOGS $lang.gmo" |
| 12906 | done |
| 12907 | fi |
| 12908 | 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] | 12909 | 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] | 12910 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 12911 | if test -f "$f"; then |
| 12912 | case "$f" in |
| 12913 | *.orig | *.bak | *~) ;; |
| 12914 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 12915 | esac |
| 12916 | fi |
| 12917 | done |
| 12918 | fi |
| 12919 | ;; |
| 12920 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12921 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12922 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12923 | esac |
| 12924 | done # for ac_tag |
| 12925 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12926 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12927 | as_fn_exit 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12928 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12929 | ac_clean_files=$ac_clean_files_save |
| 12930 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12931 | test $ac_write_fail = 0 || |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12932 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12933 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12934 | |
| 12935 | # configure is writing to config.log, and then calls config.status. |
| 12936 | # config.status does its own redirection, appending to config.log. |
| 12937 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 12938 | # by configure, so config.status won't be able to write to it; its |
| 12939 | # output is simply discarded. So we exec the FD to /dev/null, |
| 12940 | # effectively closing config.log, so it can be properly (re)opened and |
| 12941 | # appended to by config.status. When coming back to configure, we |
| 12942 | # need to make the FD available again. |
| 12943 | if test "$no_create" != yes; then |
| 12944 | ac_cs_success=: |
| 12945 | ac_config_status_args= |
| 12946 | test "$silent" = yes && |
| 12947 | ac_config_status_args="$ac_config_status_args --quiet" |
| 12948 | exec 5>/dev/null |
| 12949 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 12950 | exec 5>>config.log |
| 12951 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12952 | # would make configure fail if this is the last instruction. |
Theodore Ts'o | 91d11da | 2012-09-06 23:01:14 -0400 | [diff] [blame] | 12953 | $ac_cs_success || as_fn_exit 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12954 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12955 | 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] | 12956 | { $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] | 12957 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 12958 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12959 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 12960 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |